rubygems-bundler 1.4.2 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,17 +1,16 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 1.8.7
4
- - 1.9.2
5
4
  - 1.9.3
6
5
  - 2.0.0
7
6
  - ruby-head
8
- - rbx-18mode
9
- - rbx-19mode
7
+ - rbx
10
8
  before_install:
11
9
  - 'rm -rvf $rvm_path/gems/*/{bin,gems}/{rubygems-bundler-,executable-hooks-}* $rvm_path/gems/*/bin/ruby_*_wrapper'
12
10
  - hash -r
13
11
  - 'curl -L https://get.smf.sh | sh'
14
12
  - 'export PATH=~/.sm/bin:$PATH'
13
+ - 'gem install executable-hooks'
15
14
  - 'sm ext install gem mpapis/sm_gem'
16
15
  install: gem install tf -v '>=0.4.1'
17
16
  before_script:
@@ -27,25 +26,13 @@ notifications:
27
26
  on_failure: change
28
27
  matrix:
29
28
  include:
30
- - rvm: jruby-18mode
31
- env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
32
- jdk: openjdk7
33
- - rvm: jruby-19mode
34
- env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
35
- jdk: openjdk7
36
29
  - rvm: jruby-head
37
30
  env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
38
31
  jdk: openjdk7
39
32
  allow_failures:
40
- - rvm: jruby-18mode
41
- env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
42
- jdk: openjdk7
43
- - rvm: jruby-19mode
44
- env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
45
- jdk: openjdk7
46
33
  - rvm: jruby-head
47
34
  env: 'JRUBY_OPTS="-X-C --server -J-XX:+TieredCompilation"'
48
35
  jdk: openjdk7
49
- - rvm: rbx-18mode
50
- - rvm: rbx-19mode
51
36
  - rvm: ruby-head
37
+ - rvm: rbx
38
+ fast_finish: true
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.4.3
4
+ date: 2014-04-04
5
+
6
+ - deferred log2 for performance, update #59
7
+ - fix filtering gem executables on old rubygems, fix #59
8
+
3
9
  ## 1.4.2
4
10
  date: 2013-10-28
5
11
 
data/README.md CHANGED
@@ -101,15 +101,23 @@ rubygems-bundler was merged with [noexec gem](https://github.com/joshbuddy/noexe
101
101
 
102
102
  ## Uninstallation
103
103
 
104
- rubygems-bundler-uninstaller
105
104
  gem uninstall rubygems-bundler
106
105
 
106
+ ### Uninstallation of executable-hooks
107
+
108
+ `rubygems-bundler` does not change the shebangs itself anymore, this was extracted to `executable-hooks`:
109
+
110
+ executable-hooks-uninstaller
111
+ gem uninstall executable-hooks
112
+
107
113
  this will set all gems to `/usr/bin/env ruby`, which is one of the safest choices (especially when using rvm).
108
114
 
115
+ ### Removing from RVM
116
+
109
117
  When using rvm, these additional steps will ensure this gem is removed and not installed again:
110
118
 
111
- rvm get stable --without-gems=rubygems-bundler
112
- rvm all-gemsets do gem uninstall --all --executables rubygems-bundler
119
+ rvm get stable --without-gems="rubygems-bundler executable-hooks"
120
+ rvm all-gemsets do gem uninstall --all --executables rubygems-bundler executable-hooks
113
121
 
114
122
 
115
123
  ## Authors
@@ -17,8 +17,11 @@ class Noexec
17
17
  puts msg if Noexec::DEBUG
18
18
  end
19
19
 
20
- def log2(msg)
21
- puts msg if Noexec::DEBUG == "2"
20
+ def log2(msg=nil)
21
+ if Noexec::DEBUG == "2"
22
+ msg=yield if msg.nil? && block_given?
23
+ puts msg
24
+ end
22
25
  end
23
26
 
24
27
  def candidate?
@@ -41,7 +44,7 @@ class Noexec
41
44
  log "Config based matching didn't find it, resorting to Gemfile lookup"
42
45
  end
43
46
  runtime = Bundler.load
44
- log2 "runtime specs: #{runtime.specs.map{|g| "#{g.name}-#{g.version}"}*" "}"
47
+ log2(){ "runtime specs: #{runtime.specs.map{|g| "#{g.name}-#{g.version}"}*" "}" }
45
48
  if rubygems_spec # that single gem
46
49
  missing_spec = runtime.
47
50
  instance_variable_get(:@definition).
@@ -63,8 +66,15 @@ class Noexec
63
66
  false
64
67
  end
65
68
 
69
+ def old_specs
70
+ if Hash === rubygems_specs
71
+ then @rubygems_specs.values
72
+ else @rubygems_specs
73
+ end
74
+ end
75
+
66
76
  def rubygems_spec
67
- @rubygems_spec ||= rubygems_specs.detect{|spec| spec.executables.include?(bin) }
77
+ @rubygems_spec ||= old_specs.detect{|spec| spec.executables.include?(bin) }
68
78
  end
69
79
 
70
80
  def setup
@@ -72,7 +82,7 @@ class Noexec
72
82
  require "bundler-unload"
73
83
 
74
84
  @rubygems_specs = Bundler.rubygems.plain_specs # save it for unloading and checking binary
75
- log2 "rubygems_specs: #{rubygems_specs.map{|g| "#{g.name}-#{g.version}"}*" "}"
85
+ log2(){ "rubygems_specs: #{rubygems_specs.map{|g| "#{g.name}-#{g.version}"}*" "}" }
76
86
 
77
87
  @gemfile = ENV['BUNDLE_GEMFILE'] || File.join(Noexec::CURRENT, "Gemfile")
78
88
  initial_env_gemfile = ENV['BUNDLE_GEMFILE']
@@ -1,3 +1,3 @@
1
1
  module RubygemsBundler
2
- VERSION = "1.4.2"
2
+ VERSION = "1.4.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-bundler
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2
4
+ hash: 1
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 4
9
+ - 3
10
+ version: 1.4.3
5
11
  platform: ruby
6
12
  authors:
7
13
  - Josh Hull
@@ -10,15 +16,22 @@ autorequire:
10
16
  bindir: bin
11
17
  cert_chain: []
12
18
 
13
- date: 2013-10-28 00:00:00 Z
19
+ date: 2014-04-04 00:00:00 +02:00
20
+ default_executable:
14
21
  dependencies:
15
22
  - !ruby/object:Gem::Dependency
16
23
  name: bundler-unload
17
24
  prerelease: false
18
25
  requirement: &id001 !ruby/object:Gem::Requirement
26
+ none: false
19
27
  requirements:
20
28
  - - ">="
21
29
  - !ruby/object:Gem::Version
30
+ hash: 19
31
+ segments:
32
+ - 1
33
+ - 0
34
+ - 2
22
35
  version: 1.0.2
23
36
  type: :runtime
24
37
  version_requirements: *id001
@@ -26,9 +39,15 @@ dependencies:
26
39
  name: executable-hooks
27
40
  prerelease: false
28
41
  requirement: &id002 !ruby/object:Gem::Requirement
42
+ none: false
29
43
  requirements:
30
44
  - - ">="
31
45
  - !ruby/object:Gem::Version
46
+ hash: 21
47
+ segments:
48
+ - 1
49
+ - 2
50
+ - 5
32
51
  version: 1.2.5
33
52
  type: :runtime
34
53
  version_requirements: *id002
@@ -36,10 +55,13 @@ dependencies:
36
55
  name: tf
37
56
  prerelease: false
38
57
  requirement: &id003 !ruby/object:Gem::Requirement
58
+ none: false
39
59
  requirements:
40
- - &id004
41
- - ">="
60
+ - - ">="
42
61
  - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
43
65
  version: "0"
44
66
  type: :development
45
67
  version_requirements: *id003
@@ -70,28 +92,39 @@ files:
70
92
  - test/dtf/bundler_comment_test.sh
71
93
  - test/dtf/rails_and_gemfile_comment_test.sh
72
94
  - test/dtf/rubygems_comment_test.sh
95
+ has_rdoc: true
73
96
  homepage: http://mpapis.github.com/rubygems-bundler
74
97
  licenses:
75
98
  - Apache 2.0
76
- metadata: {}
77
-
78
99
  post_install_message:
79
100
  rdoc_options: []
80
101
 
81
102
  require_paths:
82
103
  - lib
83
104
  required_ruby_version: !ruby/object:Gem::Requirement
105
+ none: false
84
106
  requirements:
85
- - *id004
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 3
110
+ segments:
111
+ - 0
112
+ version: "0"
86
113
  required_rubygems_version: !ruby/object:Gem::Requirement
114
+ none: false
87
115
  requirements:
88
- - *id004
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ hash: 3
119
+ segments:
120
+ - 0
121
+ version: "0"
89
122
  requirements: []
90
123
 
91
124
  rubyforge_project:
92
- rubygems_version: 2.0.12
125
+ rubygems_version: 1.3.7
93
126
  signing_key:
94
- specification_version: 4
127
+ specification_version: 3
95
128
  summary: Stop using bundle exec
96
129
  test_files:
97
130
  - test/dtf/binary_comment_test.sh
checksums.yaml DELETED
@@ -1,7 +0,0 @@
1
- ---
2
- SHA1:
3
- metadata.gz: 4dcac37a7d79d4fcfb24178acdfebdc0b48e60c0
4
- data.tar.gz: fa45200c534dbdb5ebc117e253f76096161d8a47
5
- SHA512:
6
- metadata.gz: 8bf988fb799d252c84b97c3323f9dc44f611f79a900939220309688d76226dc1088d93b7de43ce0a6aa1c0f34147c696501d04187f792bbd7bb528096458a48f
7
- data.tar.gz: bf3521a90859314c2417c450181f373f7d0f540bb8c4580d43ad73e0f2cfe77b290717df6ac3c79fb99abd41b462aeb12f951b91d0783c1834214ce6fa974343