rubygems-bundler 1.2.1 → 1.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module RubygemsBundler
2
- VERSION = "1.2.1"
2
+ VERSION = "1.2.2"
3
3
  end
@@ -1,12 +1,12 @@
1
1
  module RubygemsBundler
2
2
  def self.spec_version
3
- rubygems_bundler_spec =
3
+ @rubygems_bundler_spec ||=
4
4
  if Gem::Specification.respond_to?(:find_by_name)
5
5
  Gem::Specification.find_by_name("rubygems-bundler")
6
6
  else
7
7
  Gem.source_index.find_name("rubygems-bundler").last
8
8
  end
9
- rubygems_bundler_spec ? rubygems_bundler_spec.version.to_s : nil
9
+ @rubygems_bundler_spec ? @rubygems_bundler_spec.version.to_s : nil
10
10
  rescue Gem::LoadError
11
11
  nil
12
12
  end
@@ -36,7 +36,7 @@ if
36
36
  require 'rubygems-bundler/regenerate_binstubs_command'
37
37
  Gem::CommandManager.instance.register_command :regenerate_binstubs
38
38
  elsif ENV.key?('NOEXEC_DEBUG')
39
- msg = "Older rubygems-bundler found, loaded: #{rubygems_bundler_spec.version}, called: #{called_version}, you can uninstall it with:\n\n "
39
+ msg = "Older rubygems-bundler found, loaded: #{RubygemsBundler.spec_version}, called: #{called_version}, you can uninstall it with:\n\n "
40
40
 
41
41
  error_source = __FILE__
42
42
  gem_source = File.expand_path("../../../..", error_source)
@@ -4,7 +4,7 @@ export GEM_HOME="${test_dir}/fake_gem_home"
4
4
  export PATH="${test_dir}/fake_gem_home/bin:$PATH"
5
5
 
6
6
  mkdir -p "${GEM_HOME}"
7
- printf "source :rubygems\n\ngem 'rails'\n" > "${test_dir}/Gemfile"
7
+ printf "source :rubygems\n\ngem 'rails', '<4.0.0'\n" > "${test_dir}/Gemfile"
8
8
 
9
9
  yes | sm gem install # match=/installed/
10
10
  gem install bundler # status=0
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-bundler
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 1
10
- version: 1.2.1
9
+ - 2
10
+ version: 1.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Josh Hull
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-07-05 00:00:00 Z
19
+ date: 2013-07-10 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: bundler-unload