Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Modifications to bring our RubyGems more in line with original.

* Removed Maven support.
* Have 'gem' just load 'jgem' in the same dir, since that's the
one that RubyGems updates.
  • Loading branch information...
commit ec3e8e56095e0e139f195b7608c98f03a8fa22cf 1 parent 823990a
Charles Oliver Nutter headius authored Prathamesh Sonpatki committed
25 bin/gem
... ... @@ -1,25 +1,4 @@
1 1 #!/usr/bin/env jruby
2   -#--
3   -# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
4   -# All rights reserved.
5   -# See LICENSE.txt for permissions.
6   -#++
7   -
8   -require 'rubygems'
9   -require 'rubygems/gem_runner'
10   -require 'rubygems/exceptions'
11   -
12   -required_version = Gem::Requirement.new ">= 1.8.7"
13   -
14   -unless required_version.satisfied_by? Gem.ruby_version then
15   - abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
16   -end
17   -
18   -args = ARGV.clone
19   -
20   -begin
21   - Gem::GemRunner.new.run args
22   -rescue Gem::SystemExitException => e
23   - exit e.exit_code
24   -end
25 2
  3 +# We just load jgem, since that's what RubyGems updates
  4 +load File.join(File.dirname(__FILE__), "jgem")
11 bin/jgem
... ... @@ -1,10 +1,19 @@
1   -#!/usr/bin/env jruby
  1 +#!/Users/headius/projects/jruby/bin/jruby
2 2 #--
3 3 # Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
4 4 # All rights reserved.
5 5 # See LICENSE.txt for permissions.
6 6 #++
7 7
  8 +# The prelude in 1.9.1 injects rubygems.rb into $LOADED_FEATURES
  9 +# which prevents the `require 'rubygems'` from actually loading
  10 +# the site's version of rubygems. So we have to use it's API
  11 +# to get it's prelude out of the way.
  12 +#
  13 +if RUBY_VERSION =~ /^1\.9\.1/ && defined?(Gem::QuickLoader)
  14 + Gem::QuickLoader.load_full_rubygems_library
  15 +end
  16 +
8 17 require 'rubygems'
9 18 require 'rubygems/gem_runner'
10 19 require 'rubygems/exceptions'
12 lib/ruby/shared/rubygems/local_remote_options.rb
@@ -15,15 +15,15 @@ module Gem::LocalRemoteOptions
15 15 ##
16 16 # Allows OptionParser to handle HTTP URIs.
17 17
18   - def accept_uri http = nil
19   - OptionParser.accept(http ? URI::HTTP : URI::Generic) do |value|
  18 + def accept_uri_http
  19 + OptionParser.accept URI::HTTP do |value|
20 20 begin
21 21 uri = URI.parse value
22 22 rescue URI::InvalidURIError
23 23 raise OptionParser::InvalidArgument, value
24 24 end
25 25
26   - if http && !['http', 'https', 'file'].include?(uri.scheme)
  26 + unless ['http', 'https', 'file'].include?(uri.scheme)
27 27 raise OptionParser::InvalidArgument, value
28 28 end
29 29
@@ -85,7 +85,7 @@ def add_clear_sources_option
85 85 # Add the --http-proxy option
86 86
87 87 def add_proxy_option
88   - accept_uri :http
  88 + accept_uri_http
89 89
90 90 add_option(:"Local/Remote", '-p', '--[no-]http-proxy [URL]', URI::HTTP,
91 91 'Use HTTP proxy for remote operations') do |value, options|
@@ -98,9 +98,9 @@ def add_proxy_option
98 98 # Add the --source option
99 99
100 100 def add_source_option
101   - accept_uri
  101 + accept_uri_http
102 102
103   - add_option(:"Local/Remote", '--source URL', URI::Generic,
  103 + add_option(:"Local/Remote", '--source URL', URI::HTTP,
104 104 'Add URL as a remote source for gems') do |source, options|
105 105
106 106 source << '/' if source !~ /\/\z/
376 lib/ruby/shared/rubygems/maven_gemify.rb
... ... @@ -1,376 +0,0 @@
1   -require 'uri'
2   -require 'rubygems/remote_fetcher'
3   -
4   -module Gem
5   - module MavenUtils
6   - def maven_name?(name)
7   - name = name.source.sub(/\^/, '') if Regexp === name
8   - name =~ /^mvn:/
9   - end
10   -
11   - def maven_source_uri?(source_uri)
12   - source_uri.scheme == "mvn" || source_uri.host == "maven"
13   - end
14   -
15   - def maven_sources
16   - Gem.sources.select {|x| x =~ /^mvn:/}
17   - end
18   -
19   - def maven_spec?(gemname, source_uri)
20   - maven_name?(gemname) && maven_source_uri?(source_uri)
21   - end
22   - end
23   -
24   - class Maven3NotFound < StandardError; end
25   -
26   - class RemoteFetcher
27   - include MavenUtils
28   -
29   - def download_maven(spec, local_gem_path)
30   - FileUtils.cp Gem::Maven::Gemify.new(maven_sources).generate_gem(spec.name, spec.version), local_gem_path
31   - local_gem_path
32   - end
33   - private :download_maven
34   - end
35   -
36   - class SpecFetcher
37   - include MavenUtils
38   -
39   - alias orig_find_matching_with_errors find_matching_with_errors
40   - def find_matching_with_errors(dependency, all = false, matching_platform = true, prerelease = false)
41   - if maven_name? dependency.name
42   - begin
43   - result = maven_find_matching_with_errors(dependency)
44   - rescue Gem::Maven3NotFound => e
45   - raise e
46   - rescue => e
47   - warn "maven find dependency failed for #{dependency}: #{e.to_s}" if Gem::Maven::Gemify.verbose?
48   - end
49   - end
50   - if result && !result.flatten.empty?
51   - result
52   - else
53   - orig_find_matching_with_errors(dependency, all, matching_platform, prerelease)
54   - end
55   - end
56   -
57   - alias orig_list list
58   - def list(*args)
59   - sources = Gem.sources
60   - begin
61   - Gem.sources -= maven_sources
62   - return orig_list(*args)
63   - ensure
64   - Gem.sources = sources
65   - end
66   - end
67   -
68   - alias orig_load_specs load_specs
69   - def load_specs(source_uri, file)
70   - return if source_uri.scheme == "mvn"
71   - orig_load_specs(source_uri, file)
72   - end
73   -
74   - private
75   - def maven_generate_spec(spec)
76   - specfile = Gem::Maven::Gemify.new(maven_sources).generate_spec(spec[0], spec[1])
77   - return nil unless specfile
78   - Marshal.dump(Gem::Specification.from_yaml(File.read(specfile)))
79   - end
80   -
81   - # use maven to locate (generate) the specification for the dependency in question
82   - def maven_find_matching_with_errors(dependency)
83   - specs_and_sources = []
84   - if dependency.name.is_a? Regexp
85   - dep_name = dependency.name.source.sub(/\^/, '')
86   - else
87   - dep_name = dependency.name
88   - end
89   -
90   - Gem::Maven::Gemify.new(maven_sources).get_versions(dep_name).each do |version|
91   - # maven-versions which start with an letter get "0.0.0." prepended to
92   - # satisfy gem-version requirements
93   - if dependency.requirement.satisfied_by? Gem::Version.new "#{version.sub(/^0.0.0./, '1.')}"
94   - specs_and_sources.push [[dep_name, version, "java"], "http://maven/"]
95   - end
96   - end
97   -
98   - [specs_and_sources, []]
99   - end
100   - end
101   -
102   - module Maven
103   - class Gemify
104   - DEFAULT_PLUGIN_VERSION = "0.26.0"
105   -
106   - attr_reader :repositories
107   -
108   - def initialize(*repositories)
109   - maven # ensure maven initialized
110   - @repositories = repositories.length > 0 ? [repositories].flatten : []
111   - @repositories.map! do |r|
112   - u = URI === r ? r : URI.parse(r)
113   - if u.scheme == "mvn"
114   - if u.opaque == "central"
115   - u = nil
116   - else
117   - u.scheme = "http"
118   - end
119   - end
120   - u
121   - end
122   - end
123   -
124   - @@verbose = false
125   - def self.verbose?
126   - @@verbose || $DEBUG
127   - end
128   - def verbose?
129   - self.class.verbose?
130   - end
131   - def self.verbose=(v)
132   - @@verbose = v
133   - end
134   -
135   - private
136   - def self.maven_config
137   - @maven_config ||= Gem.configuration["maven"] || {}
138   - end
139   - def maven_config; self.class.maven_config; end
140   -
141   - def self.base_goal
142   - @base_goal ||= "de.saumya.mojo:gemify-maven-plugin:#{maven_config['plugin_version'] || DEFAULT_PLUGIN_VERSION}"
143   - end
144   - def base_goal; self.class.base_goal; end
145   -
146   - def self.java_imports
147   - %w(
148   - org.codehaus.plexus.classworlds.ClassWorld
149   - org.codehaus.plexus.DefaultContainerConfiguration
150   - org.codehaus.plexus.DefaultPlexusContainer
151   - org.apache.maven.Maven
152   - org.apache.maven.repository.RepositorySystem
153   - org.apache.maven.execution.DefaultMavenExecutionRequest
154   - org.apache.maven.artifact.repository.MavenArtifactRepository
155   - org.apache.maven.artifact.repository.layout.DefaultRepositoryLayout
156   - org.apache.maven.artifact.repository.ArtifactRepositoryPolicy
157   - ).each {|i| java_import i }
158   - end
159   -
160   - def self.create_maven
161   - require 'java' # done lazily, so we're not loading it all the time
162   - bin = nil
163   - if ENV['M2_HOME'] # use M2_HOME if set
164   - bin = File.join(ENV['M2_HOME'], "bin")
165   - else
166   - ENV['PATH'].split(File::PATH_SEPARATOR).detect do |path|
167   - mvn = File.join(path, "mvn")
168   - if File.exists?(mvn)
169   - if File.symlink?(mvn)
170   - link = File.readlink(mvn)
171   - if link =~ /^\// # is absolute path
172   - bin = File.dirname(File.expand_path(link))
173   - else # is relative path so join with dir of the maven command
174   - bin = File.dirname(File.expand_path(File.join(File.dirname(mvn), link)))
175   - end
176   - else # is no link so just expand it
177   - bin = File.expand_path(path)
178   - end
179   - else
180   - nil
181   - end
182   - end
183   - end
184   - bin = "/usr/share/maven2/bin" if bin.nil? # OK let's try debian default
185   - if File.exists?(bin)
186   - @mvn = File.join(bin, "mvn")
187   - if Dir.glob(File.join(bin, "..", "lib", "maven-core-3.*jar")).size == 0
188   - begin
189   - gem 'ruby-maven', ">=0"
190   - bin = File.dirname(Gem.bin_path('ruby-maven', "rmvn"))
191   - @mvn = File.join(bin, "rmvn")
192   - rescue LoadError
193   - bin = nil
194   - end
195   - end
196   - else
197   - bin = nil
198   - end
199   - raise Gem::Maven3NotFound.new("can not find maven3 installation. install ruby-maven with\n\n\tjruby -S gem install ruby-maven\n\n") if bin.nil?
200   -
201   - warn "Using Maven install at #{bin}" if verbose?
202   -
203   - boot = File.join(bin, "..", "boot")
204   - lib = File.join(bin, "..", "lib")
205   - ext = File.join(bin, "..", "ext")
206   - (Dir.glob(lib + "/*jar") + Dir.glob(boot + "/*jar")).each {|path| require path }
207   -
208   - java.lang.System.setProperty("classworlds.conf", File.join(bin, "m2.conf"))
209   - java.lang.System.setProperty("maven.home", File.join(bin, ".."))
210   - java_imports
211   -
212   - class_world = ClassWorld.new("plexus.core", java.lang.Thread.currentThread().getContextClassLoader());
213   - config = DefaultContainerConfiguration.new
214   - config.set_class_world class_world
215   - config.set_name "ruby-tools"
216   - container = DefaultPlexusContainer.new(config);
217   - @@execution_request_populator = container.lookup(org.apache.maven.execution.MavenExecutionRequestPopulator.java_class)
218   -
219   - @@settings_builder = container.lookup(org.apache.maven.settings.building.SettingsBuilder.java_class )
220   - container.lookup(Maven.java_class)
221   - end
222   -
223   - def self.maven
224   - @maven ||= create_maven
225   - end
226   - def maven; self.class.maven; end
227   -
228   - def self.temp_dir
229   - @temp_dir ||=
230   - begin
231   - f = java.io.File.createTempFile("gemify", "")
232   - f.delete
233   - f.mkdir
234   - f.deleteOnExit
235   - f.absolute_path
236   - end
237   - end
238   - def temp_dir; self.class.temp_dir; end
239   -
240   - def execute(goal, gemname, version, props = {})
241   - request = DefaultMavenExecutionRequest.new
242   - request.set_show_errors Gem.configuration.backtrace
243   - skip_dependencies = (!maven_config["dependencies"]).to_s
244   - request.user_properties.put("gemify.skipDependencies", skip_dependencies)
245   - request.user_properties.put("gemify.tempDir", temp_dir)
246   - request.user_properties.put("gemify.gemname", gemname)
247   - request.user_properties.put("gemify.version", version.to_s) if version
248   -
249   - if maven_config["repositories"]
250   - maven_config["repositories"].each { |r| @repositories << r }
251   - end
252   - if @repositories.size > 0
253   - request.user_properties.put("gemify.repositories", @repositories.join(","))
254   - end
255   -
256   - props.each do |k,v|
257   - request.user_properties.put(k.to_s, v.to_s)
258   - end
259   - request.set_goals [goal]
260   - request.set_logging_level 0
261   -
262   - settings = setup_settings(maven_config["settings"], request.user_properties)
263   - @@execution_request_populator.populateFromSettings(request, settings)
264   - @@execution_request_populator.populateDefaults(request)
265   -
266   - if profiles = maven_config["profiles"]
267   - profiles.each { |profile| request.addActiveProfile(profile) }
268   - end
269   - if verbose?
270   - active_profiles = request.getActiveProfiles.collect{ |p| p.to_s }
271   - puts "active profiles:\n\t[#{active_profiles.join(', ')}]"
272   - puts "maven goals:"
273   - request.goals.each { |g| puts "\t#{g}" }
274   - puts "system properties:"
275   - request.getUserProperties.map.each { |k,v| puts "\t#{k} => #{v}" }
276   - puts
277   - end
278   - out = java.lang.System.out
279   - string_io = java.io.ByteArrayOutputStream.new
280   - java.lang.System.setOut(java.io.PrintStream.new(string_io))
281   - result = maven.execute request
282   - java.lang.System.out = out
283   -
284   - result.exceptions.each do |e|
285   - e.print_stack_trace if request.is_show_errors
286   - string_io.write(e.get_message.to_java_string.get_bytes)
287   - end
288   - string_io.to_s
289   - end
290   -
291   - def setup_settings(user_settings_file, user_props)
292   - @settings ||=
293   - begin
294   - user_settings_file =
295   - if user_settings_file
296   - resolve_file(usr_settings_file)
297   - else
298   - user_maven_home = java.io.File.new(java.lang.System.getProperty("user.home"), ".m2")
299   - java.io.File.new(user_maven_home, "settings.xml")
300   - end
301   -
302   - global_settings_file =java.io.File.new(@conf, "settings.xml")
303   -
304   - settings_request = org.apache.maven.settings.building.DefaultSettingsBuildingRequest.new
305   - settings_request.setGlobalSettingsFile(global_settings_file)
306   - settings_request.setUserSettingsFile(user_settings_file)
307   - settings_request.setSystemProperties(java.lang.System.getProperties)
308   - settings_request.setUserProperties(user_props)
309   -
310   - settings_result = @@settings_builder.build(settings_request)
311   - settings_result.effective_settings
312   - end
313   - end
314   -
315   - def resolve_file(file)
316   - return nil if file.nil?
317   - return file if file.isAbsolute
318   - if file.getPath.startsWith(java.io.File.separator)
319   - # drive-relative Windows path
320   - return file.getAbsoluteFile
321   - else
322   - return java.io.File.new( java.lang.System.getProperty("user.dir"), file.getPath ).getAbsoluteFile
323   - end
324   - end
325   -
326   - public
327   - def get_versions(gemname)
328   - name = maven_name(gemname)
329   - result = execute("#{base_goal}:versions", name, nil)
330   -
331   - if result =~ /#{name} \[/
332   - result = result.gsub(/\r?\n/, '').sub(/.*\[/, "").sub(/\]/, '').gsub(/ /, '').split(',')
333   - puts "versions: #{result.inspect}" if verbose?
334   - result
335   - else
336   - []
337   - end
338   - end
339   -
340   - def generate_spec(gemname, version)
341   - result = execute("#{base_goal}:gemify", maven_name(gemname), version, "gemify.onlySpecs" => true)
342   - path = result.gsub(/\r?\n/, '')
343   - if path =~ /gemspec: /
344   - path = path.sub(/.*gemspec: /, '')
345   - if path.size > 0
346   - result = File.expand_path(path)
347   - java.io.File.new(result).deleteOnExit
348   - result
349   - end
350   - end
351   - end
352   -
353   - def generate_gem(gemname, version)
354   - result = execute("#{base_goal}:gemify", maven_name(gemname), version)
355   - path = result.gsub(/\r?\n/, '')
356   - if path =~ /gem: /
357   -
358   - path = path.sub(/.*gem: /, '')
359   - if path.size > 0
360   - result = File.expand_path(path)
361   - java.io.File.new(result).deleteOnExit
362   - result
363   - end
364   - else
365   - warn result.sub(/Failed.*pom:/, '').gsub(/\tmvn/, "\t#{@mvn}")
366   - raise "error gemify #{gemname}:#{version}"
367   - end
368   - end
369   -
370   - def maven_name(gemname)
371   - gemname = gemname.source if Regexp === gemname
372   - gemname
373   - end
374   - end
375   - end
376   -end
5 lib/ruby/shared/rubygems/remote_fetcher.rb
@@ -118,11 +118,6 @@ def download(spec, source_uri, install_dir = Gem.dir)
118 118 URI.escape(source_uri.to_s))
119 119 end
120 120
121   - # if it's a maven artifact, use maven to fetch it
122   - if maven_spec? spec.name, source_uri
123   - return download_maven(spec, local_gem_path)
124   - end
125   -
126 121 scheme = source_uri.scheme
127 122
128 123 # URI.parse gets confused by MS Windows paths with forward slashes.
16 lib/ruby/shared/rubygems/spec_fetcher.rb
@@ -116,16 +116,10 @@ def fetch_spec(spec, source_uri)
116 116 if File.exist? local_spec then
117 117 spec = Gem.read_binary local_spec
118 118 else
119   - spec = if maven_spec?(spec[0], source_uri)
120   - # from rubygems/maven_gemify.rb
121   - maven_generate_spec(spec)
122   - end
123   - unless spec
124   - uri.path << '.rz'
  119 + uri.path << '.rz'
125 120
126   - spec = @fetcher.fetch_path uri
127   - spec = Gem.inflate spec
128   - end
  121 + spec = @fetcher.fetch_path uri
  122 + spec = Gem.inflate spec
129 123
130 124 if @update_cache then
131 125 FileUtils.mkdir_p cache_dir
@@ -301,7 +295,3 @@ def load_specs(source_uri, file)
301 295
302 296 end
303 297
304   -# Load rubygems/maven_gemify.rb here because;
305   -# * want to require only spec_fetcher is required to avoid circular require.
306   -# * need to require after spec_fetcher and remote_fetcher to override those definitions.
307   -require 'rubygems/maven_gemify'
100 spec/java_integration/rubygems/maven_gemify_spec.rb
... ... @@ -1,100 +0,0 @@
1   -require File.dirname(__FILE__) + "/../spec_helper"
2   -
3   -require 'rubygems'
4   -require 'rubygems/format'
5   -require 'rubygems/maven_gemify'
6   -require 'yaml'
7   -
8   -begin
9   - Gem::Maven::Gemify.verbose = true if $DEBUG || ENV['DEBUG']
10   - Gem::Maven::Gemify.maven
11   -
12   - describe Gem::MavenUtils, "maven_name?" do
13   - include Gem::MavenUtils
14   - it "matches colon-separated artifacts and needs tp start with 'mvn:'" do
15   - maven_name?('mvn:commons-lang:commons-lang').should be_true
16   - end
17   -
18   - it "does not match things that look like a windows filename" do
19   - maven_name?('c:ommons-lang:commons-lang').should be_false
20   - maven_name?('c:/temp/somefile').should be_false
21   - end
22   -
23   - it "does not match URLs" do
24   - maven_name?('http://example.com/some.gem').should be_false
25   - end
26   - it "does not match without 'mvn:' prefix" do
27   - maven_name?('commons-lang:commons-lang').should be_false
28   - end
29   - end
30   -
31   - describe Gem::SpecFetcher do
32   - it "downloads specs for maven artifacts" do
33   - matching = Gem::SpecFetcher.fetcher.find_matching Gem::Dependency.new("mvn:commons-lang:commons-lang")
34   - matching.should_not be_empty
35   - end
36   - end
37   -
38   - describe Gem::Maven::Gemify do
39   - it "creates an instance of the Maven class" do
40   - Gem::Maven::Gemify.maven.should be_kind_of(org.apache.maven.Maven)
41   - end
42   -
43   - it "gets a list of versions for a maven artifact" do
44   - Gem::Maven::Gemify.new.get_versions("mvn:commons-lang:commons-lang").should include("2.5.0")
45   - end
46   -
47   - it "gets a list of versions for a maven artifact from external repository" do
48   - Gem::Maven::Gemify.new('https://repository.jboss.org/nexus/content/groups/public-jboss').get_versions("mvn:org.jboss.logging:jboss-logging").should include("3.0.0.b.5")
49   - end
50   -
51   - it "allows use of colons as artifact delimiters" do
52   - Gem::Maven::Gemify.new.get_versions("mvn:commons-lang:commons-lang").should include("2.5.0")
53   - end
54   -
55   - it "generates a gemspec file for the maven artifact" do
56   - specfile = Gem::Maven::Gemify.new.generate_spec("mvn:commons-lang:commons-lang", "2.5.0")
57   - specfile.should_not be_nil
58   - gemspec = Gem::Specification.from_yaml(File.read(specfile))
59   - gemspec.name.should == "mvn:commons-lang:commons-lang"
60   - gemspec.version.should == Gem::Version.new("2.5.0")
61   - end
62   -
63   - it "generates a .gem for the maven artifact" do
64   - gemfile = Gem::Maven::Gemify.new.generate_gem("mvn:commons-lang:commons-lang", "2.5.0")
65   - format = Gem::Format.from_file_by_path gemfile
66   - format.file_entries.detect{|fe| fe[0]["path"] =~ /commons-lang\.jar/}.should be_true
67   - end
68   -
69   - it "generates a spec with a Gem::Dependency list for artifacts with dependencies" do
70   - specfile = Gem::Maven::Gemify.new.generate_spec("mvn:commons-logging:commons-logging", "1.1.1")
71   - specfile.should_not be_nil
72   - gemspec = Gem::Specification.from_yaml(File.read(specfile))
73   - gemspec.dependencies.length.should == 1
74   - gemspec.dependencies[0].name.should == 'mvn:junit:junit'
75   - gemspec.dependencies[0].type.should == :development
76   - end
77   -
78   - it "allows a non-standard maven repository" do
79   - gemify = Gem::Maven::Gemify.new "http://maven.glassfish.org/content/groups/public/"
80   - specfile = gemify.generate_spec("mvn:com.sun.akuma:akuma", "1.3")
81   - specfile.should_not be_nil
82   - gemspec = Gem::Specification.from_yaml(File.read(specfile))
83   - gemspec.dependencies.length.should == 1
84   - gemspec.dependencies[0].name.should == 'mvn:net.java.dev.jna:jna'
85   - end
86   -
87   - it "accepts a variety of string or URI parameters to #initialize" do
88   - expected = ["http://repository.codehaus.org/"]
89   - Gem::Maven::Gemify.new("http://repository.codehaus.org/").repositories.map(&:to_s).should == expected
90   - Gem::Maven::Gemify.new(URI.parse("http://repository.codehaus.org/")).repositories.map(&:to_s).should == expected
91   - Gem::Maven::Gemify.new(["http://repository.codehaus.org/"]).repositories.map(&:to_s).should == expected
92   - Gem::Maven::Gemify.new("mvn://repository.codehaus.org/").repositories.map(&:to_s).should == expected
93   - Gem::Maven::Gemify.new(URI.parse("mvn://repository.codehaus.org/")).repositories.map(&:to_s).should == expected
94   - Gem::Maven::Gemify.new(URI.parse("mvn:central")).repositories.should == [nil]
95   - end
96   - end
97   -rescue => e
98   - puts(e, *e.backtrace) if $DEBUG || ENV['DEBUG']
99   - # Skipping maven specs w/o M3 or ruby-maven gem installed
100   -end

0 comments on commit ec3e8e5

Please sign in to comment.
Something went wrong with that request. Please try again.