Details

    • Type: Bug Bug
    • Status: Resolved Resolved
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Extensions
    • Labels:
      None
    • Environment:
      Mac OS X 10.6.5, RVM 1.1.1, jruby-head installed
    • Number of attachments :
      0

      Description

      I'm trying out the Maven Gemify plugin (very excited about this, btw) on 1.6-head and I am having some troubles getting things to work just right. One issue is version numbers.

      klauer@klauer-imac ~/Programming/Ruby/jruby
      $ gem install com.google.guava.guava -v r07
      ERROR:  While executing gem ... (ArgumentError)
          Illformed requirement ["r07"]
      

      I'm not sure if this is expected or not, but I would wager that eventually this should work.

      I'm using RVM to install jruby-head.

        Issue Links

          Activity

          Hide
          Hiro Asari added a comment -

          RubyGems 1.4.1 breaks this.

          [system]:jruby[git:master] $ jruby -v -S gem install com.google.guava.guava 
          jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
          Successfully installed com.google.guava.guava-0.0.0.r.07-java
          1 gem installed
          [system]:jruby[git:master] $ jruby -v -S gem --version
          jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
          1.3.7
          
          [system]:jruby[git:master] $ jruby -v -S gem update --system
          jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
          Updating RubyGems
          Updating rubygems-update
          Successfully installed rubygems-update-1.4.1
          Updating RubyGems to 1.4.1
          Installing RubyGems 1.4.1
          RubyGems 1.4.1 installed
          
          === 1.4.1 / 2010-12-31
          
          Since apparently nobody reads my emails, blog posts or the README:
          
          DO NOT UPDATE RUBYGEMS ON RUBY 1.9! See UPGRADING.rdoc for details.
          
          Bug fix:
          
          * Specification#load was untainting a frozen string (via `gem build *.spec`)
          
          
          ------------------------------------------------------------------------------
          
          RubyGems installed the following executables:
          	/Users/asari/Development/src/jruby/bin/jgem
          
          [system]:jruby[git:master] $ jruby -v -S gem install com.google.guava.guava 
          jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java]
          ERROR:  Could not find a valid gem 'com.google.guava.guava' (>= 0) in any repository
          
          Show
          Hiro Asari added a comment - RubyGems 1.4.1 breaks this. [system]:jruby[git:master] $ jruby -v -S gem install com.google.guava.guava jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] Successfully installed com.google.guava.guava-0.0.0.r.07-java 1 gem installed [system]:jruby[git:master] $ jruby -v -S gem --version jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] 1.3.7 [system]:jruby[git:master] $ jruby -v -S gem update --system jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] Updating RubyGems Updating rubygems-update Successfully installed rubygems-update-1.4.1 Updating RubyGems to 1.4.1 Installing RubyGems 1.4.1 RubyGems 1.4.1 installed === 1.4.1 / 2010-12-31 Since apparently nobody reads my emails, blog posts or the README: DO NOT UPDATE RUBYGEMS ON RUBY 1.9! See UPGRADING.rdoc for details. Bug fix: * Specification#load was untainting a frozen string (via `gem build *.spec`) ------------------------------------------------------------------------------ RubyGems installed the following executables: /Users/asari/Development/src/jruby/bin/jgem [system]:jruby[git:master] $ jruby -v -S gem install com.google.guava.guava jruby 1.6.0.dev (ruby 1.8.7 patchlevel 249) (2010-12-31 f573207) (Java HotSpot(TM) 64-Bit Server VM 1.6.0_22) [darwin-x86_64-java] ERROR: Could not find a valid gem 'com.google.guava.guava' (>= 0) in any repository
          Hide
          Hiro Asari added a comment -

          Strange, but it appears that rubygems-update that's causing problems. maven gems seem to work fine on the master now.

          Show
          Hiro Asari added a comment - Strange, but it appears that rubygems-update that's causing problems. maven gems seem to work fine on the master now.
          Hide
          Charles Oliver Nutter added a comment -

          Hiro: rubygems-update just overwrites all the standard rubygems files, which means the maven logic gets wiped out. When I updated, I went line-by-line to make sure the maven pieces weren't killed. Anyone else doing a manual update would see maven support break, so we'll probably need to consider an alternative change for RubyGems that won't be susceptible to system updating.

          Show
          Charles Oliver Nutter added a comment - Hiro: rubygems-update just overwrites all the standard rubygems files, which means the maven logic gets wiped out. When I updated, I went line-by-line to make sure the maven pieces weren't killed. Anyone else doing a manual update would see maven support break, so we'll probably need to consider an alternative change for RubyGems that won't be susceptible to system updating.
          Hide
          kristian meier added a comment -

          just my two cents: debian does not allow gem update --system and forces the user to use debian way of updating packages. maybe something like this is suitable for jruby as well though I do not know if there is a jruby way of updating things.

          Show
          kristian meier added a comment - just my two cents: debian does not allow gem update --system and forces the user to use debian way of updating packages. maybe something like this is suitable for jruby as well though I do not know if there is a jruby way of updating things.
          Hide
          Charles Oliver Nutter added a comment -

          RubyGems maven support has been removed in 1.7.

          Show
          Charles Oliver Nutter added a comment - RubyGems maven support has been removed in 1.7.

            People

            • Assignee:
              Charles Oliver Nutter
              Reporter:
              Nick Klauer
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: