« Return to Thread: Freezing gems that contain jars
Yeah, so it looks like it is finding hpricot ok, platform and all. At this point I'm not sure what's happening. Maybe you can instrument the Rails rake tasks and gem dependency code with puts and/or rescues to see where it might be going wrong.
/NickOn Wed, Jun 24, 2009 at 10:03 AM, Matthew Kanwisher <Matt@...> wrote:
Hrmm the platform does say jrubyLoading development environment (Rails 2.2.2)>> puts Rails::GemDependency.new('hpricot', :version => '0.6.164').send(:specification).to_ruby# -*- encoding: utf-8 -*-Gem::Specification.new do |s|s.name = %q{hpricot}s.version = "0.6.164"s.platform = %q{jruby}s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=s.authors = ["why the lucky stiff"]s.date = %q{2008-10-30}s.description = %q{a swift, liberal HTML parser with a fantastic library}s.email = %q%7Bwhy@...}s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]s.files = ["CHANGELOG", "COPYING", "README", "Rakefile", "test/test_paths.rb", "test/test_preserved.rb", "test/test_parser.rb", "test/files", "test/load_files.rb", "test/test_builder.rb", "test/test_xml.rb", "test/test_alter.rb", "test/files/cy0.html", "test/files/pace_application.html", "test/files/basic.xhtml", "test/files/utf8.html", "test/files/boingboing.html", "test/files/week9.html", "test/files/tenderlove.html", "test/files/immob.html", "test/files/why.xml", "test/files/uswebgen.html", "lib/hpricot", "lib/hpricot.rb", "lib/hpricot/tags.rb", "lib/hpricot/builder.rb", "lib/hpricot/traverse.rb", "lib/hpricot/elements.rb", "lib/hpricot/modules.rb", "lib/hpricot/inspect.rb", "lib/hpricot/tag.rb", "lib/hpricot/blankslate.rb", "lib/hpricot/xchar.rb", "lib/hpricot/htmlinfo.rb", "lib/hpricot/parse.rb", "extras/mingw-rbconfig.rb", "ext/hpricot_scan/hpricot_scan.h", "ext/hpricot_scan/hpricot_gram.h", "ext/hpricot_scan/HpricotScanService.java", "ext/fast_xs/FastXsService.java", "ext/hpricot_scan/hpricot_scan.c", "ext/hpricot_scan/hpricot_gram.c", "ext/fast_xs/fast_xs.c", "ext/hpricot_scan/test.rb", "ext/hpricot_scan/extconf.rb", "ext/fast_xs/extconf.rb", "ext/hpricot_scan/hpricot_scan.rl", "ext/hpricot_scan/hpricot_scan.java.rl", "ext/hpricot_scan/hpricot_common.rl", "lib/universal-java1.6/hpricot_scan.jar", "lib/universal-java1.6/fast_xs.jar"]s.homepage = %q{http://code.whytheluckystiff.net/hpricot/}s.rdoc_options = ["--quiet", "--title", "The Hpricot Reference", "--main", "README", "--inline-source"]s.require_paths = ["bin", "lib/universal-java1.6", "lib"]s.rubygems_version = %q{1.3.3}s.summary = %q{a swift, liberal HTML parser with a fantastic library}if s.respond_to? :specification_version thencurrent_version = Gem::Specification::CURRENT_SPECIFICATION_VERSIONs.specification_version = 2if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') thenelseendelseendend=> nilOn Wed, Jun 24, 2009 at 2:21 AM, Nick Sieger <nicksieger@...> wrote:
Ok, that helps. My best guess is that the Rails gem dependency code or Rubygems is not resolving the platform properly. Can you try this -- try the following code in the Rails console and see what it gives you:On Jun 24, 2009, at 00:27 , Matthew Kanwisher wrote:jruby -S rake gems:unpackNo output, I noticed jruby-openssl is fine, so I assume its just a naming issue with hpricot. In my gems folder is called "hpricot-0.6.164-java". Does that mean I should change my config?config.gem "hpricot", :version => '0.6.164' * nothing happens, so I would assume this should work
config.gem "hpricot-java", :version => '0.6.164' *ERROR: could not find gem hpricot-java locally or in a repositoryconfig.gem "hpricot", :version => '0.6.164-java' * Illformed requirement ["0.6.164-java"]>> puts Rails::GemDependency.new('hpricot', :version => '0.6.164').send(:specification).to_ruby/Nick~MattOn Wed, Jun 24, 2009 at 1:18 AM, Nick Sieger <nicksieger@...> wrote:
On Wed, Jun 24, 2009 at 12:13 AM, Matthew Kanwisher <Matt@...> wrote:
I was trying to unpack gems into my rails project and I noticed gems that contain jars like "hpriocot" and "jrubyopenssl" weren't unpacking into "vendor/gems". Is there some limitation on this or am I just doing something stupid ? Is it just a weird issue with hpricot, since the jdbc gems seem to unpack just fine.I noticed in my original gem directory hpricot is called "hpricot-0.6.164-java", could that be effecting it also?This is in my environment.rbconfig.gem "hpricot", :version => '0.6.164'config.gem "memcache-client", :version => '1.7.2'config.gem "soap4r", :version => '1.5.8'config.gem "jruby-openssl", :version => '0.5'config.gem "rails", :version => '2.2.2'config.gem "activerecord-jdbcmysql-adapter", :version => '0.9.1'config.gem "activerecord-jdbc-adapter", :version => '0.9.1'config.gem "jdbc-mysql", :version => '5.0.4'
Are there any messages printed out when you try to freeze the gems?
/Nick
« Return to Thread: Freezing gems that contain jars
| Free embeddable forum powered by Nabble | Forum Help |