Skip to content

Instantly share code, notes, and snippets.

@knowuh
Created February 18, 2011 19:07
Show Gist options
  • Save knowuh/834213 to your computer and use it in GitHub Desktop.
Save knowuh/834213 to your computer and use it in GitHub Desktop.
Stack Trace:
undefined method `include_pack_gzip' for #<Jnlp::Jnlp:0x1081666e8> (NoMethodError)
./app/models/maven_jnlp/versioned_jnlp.rb:174:in `parse_jnlp_object'
./app/models/maven_jnlp/versioned_jnlp_url.rb:30:in `create_versioned_jnlp'
./app/models/maven_jnlp/versioned_jnlp_url.rb:26:in `versioned_jnlp'
./spec/support/controller_helper.rb:33:in `generate_default_project_and_jnlps_with_factories'
./features/step_definitions/default_project_and_jnlps_steps.rb:13:in `/^The default project and jnlp resources exist using factories$/'
features/investigations_searching.feature:7:in `Given The default project and jnlp resources exist using factories'
Source around app/models/maven_jnlp/versioned_jnlp.rb:174
def parse_jnlp_object
# jnlp_object = Jnlp::Jnlp.new(jnlp.versioned_jnlp_url.url)
self.name = jnlp_object.name
self.main_class = jnlp_object.main_class
self.argument = jnlp_object.argument
self.offline_allowed = jnlp_object.offline_allowed
self.local_resource_signatures_verified = jnlp_object.local_resource_signatures_verified
self.include_pack_gzip = jnlp_object.include_pack_gzip
self.spec = jnlp_object.spec
# ...
# .. (more)
end
Grepping through the gem latest source for the JNLP gem, it looks like the instance var is supposed to be "include_pack_gz"
[master][~/lab/ruby/jnlp]$ grep -R -C6 -n pack_gzip . rvm:ruby-1.8.7-p302@jnlp
./lib/jnlp/jnlp.rb-928- #
./lib/jnlp/jnlp.rb-929- attr_reader :argument
./lib/jnlp/jnlp.rb-930- #
./lib/jnlp/jnlp.rb-931- # Create a new Jnlp by loading and parsing the Java Web Start
./lib/jnlp/jnlp.rb-932- # Jnlp located at url -- url can be a local path or a url.
./lib/jnlp/jnlp.rb-933- # * if you include _cache_dir_ then the jnlp resources will be cached locally when the object is created
./lib/jnlp/jnlp.rb:934: # * If you also include a boolean true the pack_gzip versions of the resources will be cached also.
./lib/jnlp/jnlp.rb-935- #
./lib/jnlp/jnlp.rb-936- def initialize(url=nil, cache_dir=nil, options={})
./lib/jnlp/jnlp.rb-937- @url = url
./lib/jnlp/jnlp.rb-938- self.local_cache_dir = cache_dir
./lib/jnlp/jnlp.rb-939- @options = options
./lib/jnlp/jnlp.rb-940- @include_pack_gz = options[:include_pack_gz]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment