Giter Site home page Giter Site logo

Comments (6)

jawspeak avatar jawspeak commented on August 29, 2024

Looks like something broke after we recently removed the dependency on our
own zip library fork. You can check out an older version to verify it used
to work. There aren't many commits, so going backwards should be easy to
find it. Otherwise, maybe you are missing a gem dependency - did you bundle?

On Wed, Oct 23, 2013 at 5:35 AM, Aurélien Malisart <[email protected]

wrote:

Hello,

This project looks really interesting !

I'm trying to test it independently to determine if it does what I need :
https://github.com/aurels/ruby-docx-templater-example

When running with file :
https://github.com/aurels/ruby-docx-templater-example/blob/master/run.rb

I get this NameError :

bundle exec ruby run.rb
/Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:34:in read_existing_template_docx': uninitialized constant DocxTemplater::DocxCreator::Zip (NameError) from /Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:19:ingenerate_docx_bytes'
from /Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:13:in generate_docx_file' from run.rb:14:in

'
aurels@ruby-docs-templater-test[]: bundle exec ruby run.rb
/Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:34:in read_existing_template_docx': uninitialized constant DocxTemplater::DocxCreator::Zip (NameError) from /Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:19:ingenerate_docx_bytes'
from /Users/aurels/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/bundler/gems/ruby-docx-templater-f9c7f2bca74e/lib/docx_templater/docx_creator.rb:13:in generate_docx_file' from run.rb:13:in'

Is something missing in the Gemfile ?
https://github.com/aurels/ruby-docx-templater-example/blob/master/Gemfile

Thanks,

Aurélien


Reply to this email directly or view it on GitHubhttps://github.com//issues/3
.

-Jonathan

from ruby-docx-templater.

aurels avatar aurels commented on August 29, 2024

Thanks for the reply, you are right : it works on 632454b.

from ruby-docx-templater.

tamird avatar tamird commented on August 29, 2024

@aurels it looks like you're using the fork of zipruby, even when you should not need it with the current version of ruby-docx-templater. can you try removing that from your gemfile?

from ruby-docx-templater.

tamird avatar tamird commented on August 29, 2024

I've updated the readme to prevent this issue from plaguing future users.

from ruby-docx-templater.

jawspeak avatar jawspeak commented on August 29, 2024

@tamird brilliant

from ruby-docx-templater.

aurels avatar aurels commented on August 29, 2024

@tamird : I confirm that it works, the README plagued me ;-)

from ruby-docx-templater.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.