rubygems-bundler 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/rubygems-bundler/version.rb +1 -1
- data/lib/rubygems_plugin.rb +16 -8
- metadata +5 -7
data/lib/rubygems_plugin.rb
CHANGED
@@ -1,14 +1,22 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
module RubygemsBundler
|
2
|
+
def self.spec_version
|
3
|
+
rubygems_bundler_spec =
|
4
|
+
if Gem::Specification.respond_to?(:find_by_name)
|
5
|
+
Gem::Specification.find_by_name("rubygems-bundler")
|
6
|
+
else
|
7
|
+
Gem.source_index.find_name("rubygems-bundler").last
|
8
|
+
end
|
9
|
+
rubygems_bundler_spec ? rubygems_bundler_spec.version.to_s : nil
|
10
|
+
rescue Gem::LoadError
|
11
|
+
nil
|
6
12
|
end
|
13
|
+
end
|
7
14
|
|
8
|
-
called_version = __FILE__.
|
15
|
+
called_path, called_version = __FILE__.match(/^(.*\/rubygems-bundler-([^\/]+)\/lib).*$/)[1..2]
|
9
16
|
|
10
|
-
# continue only if loaded and called versions
|
11
|
-
if
|
17
|
+
# continue only if loaded ($: or gem) and called versions is the same and not shared gems disabled in bundler
|
18
|
+
if
|
19
|
+
( $:.include?(called_path) || RubygemsBundler.spec_version == called_version ) and
|
12
20
|
( !defined?(Bundler) || ( defined?(Bundler) && Bundler::SharedHelpers.in_bundle? && !Bundler.settings[:disable_shared_gems]) )
|
13
21
|
|
14
22
|
require 'rubygems/version'
|
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 1.2.
|
9
|
+
- 1
|
10
|
+
version: 1.2.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Josh Hull
|
@@ -16,8 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-
|
20
|
-
default_executable:
|
19
|
+
date: 2013-07-05 00:00:00 Z
|
21
20
|
dependencies:
|
22
21
|
- !ruby/object:Gem::Dependency
|
23
22
|
name: bundler-unload
|
@@ -82,7 +81,6 @@ files:
|
|
82
81
|
- test/dtf/bundler_comment_test.sh
|
83
82
|
- test/dtf/rails_and_gemfile_comment_test.sh
|
84
83
|
- test/dtf/rubygems_comment_test.sh
|
85
|
-
has_rdoc: true
|
86
84
|
homepage: http://mpapis.github.com/rubygems-bundler
|
87
85
|
licenses: []
|
88
86
|
|
@@ -112,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
112
110
|
requirements: []
|
113
111
|
|
114
112
|
rubyforge_project:
|
115
|
-
rubygems_version: 1.
|
113
|
+
rubygems_version: 1.8.24
|
116
114
|
signing_key:
|
117
115
|
specification_version: 3
|
118
116
|
summary: Stop using bundle exec
|