rubygems-sandbox 1.3.0 → 1.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 295eef37a5f4d648402b43f07ed3c957901ead6a
4
- data.tar.gz: 0d1d0818ce732cf0aab21735d54e185f3e6d6b05
2
+ SHA256:
3
+ metadata.gz: 59bfcecc6cc910f4c175c8e2374ab1e4681d40225a4636e4d296ebb705d1264e
4
+ data.tar.gz: 3112eb7f7c7ae3ca94f3ad6d1278be759c107353771c166d64a251b0bd60304b
5
5
  SHA512:
6
- metadata.gz: 6a6f22591580fb05622e7d75f68d8a1469f9a68aa868f2e772e9c69184e5ed29fdeb485dd7c5e3de8396f3a4ffb9c0b4cc0335c6b1711b73d780d5ff431e99cf
7
- data.tar.gz: 5f202e98b1e703aa126b281d9cfbd2f544767f8ce0b43bb4c2880f31bddc0817d0576296686d071e7bed5a15d6d276a6c8d59ea6ee8cb82551f13fd822113444
6
+ metadata.gz: 51554ef059bc1a69b1e6ebeb010724e9675c5cf426a4286ec80db3da5f6f9fda803640bab7dcf17a25330320bbb5fa77df0aa761f8f36464cc1a0f0e2152a8fe
7
+ data.tar.gz: 69dcbcdc7b52f14bf07a2ab67dec244cfadbf76eb4a64caa5b6c1dd20069f04c61d1a7c4e5d77ad485956f05d21d1ef1e9dac4841b6348a18949ef36363c3ee6
checksums.yaml.gz.sig CHANGED
Binary file
data/History.txt CHANGED
@@ -1,3 +1,18 @@
1
+ === 1.3.2 / 2024-08-27
2
+
3
+ * 1 bug fix:
4
+
5
+ * Warn if it might not be a sandbox.
6
+
7
+ === 1.3.1 / 2019-12-12
8
+
9
+ * 4 bug fixes:
10
+
11
+ * Bump supported rubygems version.
12
+ * Fixed bug with newer rubygems not exposing UpdateCommand#installer=.
13
+ * Fixed gem pathing via Gem.paths= and only set GEM_HOME.
14
+ * Fixed rubygems stubbornly installing rdoc despite setting up options correctly.
15
+
1
16
  === 1.3.0 / 2014-08-06
2
17
 
3
18
  * 2 bug fixes:
@@ -37,4 +52,3 @@
37
52
  * 1 major enhancement
38
53
 
39
54
  * Birthday!
40
-
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ Hoe.spec "rubygems-sandbox" do
11
11
 
12
12
  license "MIT"
13
13
 
14
- require_rubygems_version [">= 1.4", "< 3"]
14
+ require_rubygems_version [">= 1.4", "< 4"]
15
15
  end
16
16
 
17
17
  # vim: syntax=ruby
@@ -3,25 +3,26 @@ require 'rubygems/command'
3
3
  require 'rubygems/dependency_installer'
4
4
  require 'rubygems/commands/update_command' # for the hack below
5
5
 
6
- ##
7
- # Gem command to "sandbox" command-line tools into their own private
8
- # gem repos but with a globally command-line wrapper.
6
+ Gem.done_installing_hooks.clear
9
7
 
10
- class Gem::DependencyInstaller
11
- attr_accessor :bin_dir
8
+ class Gem::DependencyInstaller # :nodoc:
9
+ attr_accessor :bin_dir # HACK
12
10
  end
13
11
 
14
- class Gem::Commands::UpdateCommand < Gem::Command # HACK
15
- attr_accessor :updated
12
+ class Gem::Commands::UpdateCommand < Gem::Command # :nodoc:
13
+ attr_accessor :updated # HACK
14
+ attr_writer :installer # HACK
16
15
  end
17
16
 
17
+ ##
18
+ # Gem command to "sandbox" command-line tools into their own private
19
+ # gem repos but with a globally command-line wrapper.
20
+
18
21
  class Gem::Commands::SandboxCommand < Gem::Command
19
- VERSION = "1.3.0"
22
+ VERSION = "1.3.2"
20
23
 
21
24
  def initialize
22
25
  defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge(
23
- :generate_rdoc => false,
24
- :generate_ri => false,
25
26
  :document => [],
26
27
  :format_executable => false,
27
28
  :version => Gem::Requirement.default
@@ -256,7 +257,9 @@ and you're good to go.
256
257
  end
257
258
 
258
259
  def sandbox_dir gem_name
259
- File.join sandbox_home, gem_name
260
+ dir = File.join sandbox_home, gem_name
261
+ warn "WARNING: #{gem_name} might not be a sandbox" unless File.exist? dir
262
+ dir
260
263
  end
261
264
 
262
265
  def install_gem gem_name, dir = sandbox_dir(gem_name)
@@ -285,6 +288,10 @@ and you're good to go.
285
288
  spec.executables.each do |filename|
286
289
  path = File.join dir, "bin", filename
287
290
  env = "ENV['GEM_HOME'] = ENV['GEM_PATH'] = #{dir.inspect}"
291
+ env = <<-"EOM".gsub(/^ +/, '')
292
+ ENV['GEM_HOME'] = #{dir.inspect}
293
+ Gem.paths = ENV
294
+ EOM
288
295
 
289
296
  script = File.read path
290
297
  script.sub!(/require 'rubygems'/, "#{env}\n\\&")
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,18 +1,18 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubygems-sandbox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIDPjCCAiagAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMRMwEQYDVQQDDApyeWFu
13
+ MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
14
14
  ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
15
- GRYDY29tMB4XDTEzMDkxNjIzMDQxMloXDTE0MDkxNjIzMDQxMlowRTETMBEGA1UE
15
+ GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
16
16
  AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
17
17
  JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
18
18
  b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
@@ -21,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hvc6pTTeW
30
+ deKfBjgVAq7EYHu1AczzlUly
31
31
  -----END CERTIFICATE-----
32
- date: 2014-08-06 00:00:00.000000000 Z
32
+ date: 2024-08-27 00:00:00.000000000 Z
33
33
  dependencies:
34
- - !ruby/object:Gem::Dependency
35
- name: minitest
36
- requirement: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ~>
39
- - !ruby/object:Gem::Version
40
- version: '5.4'
41
- type: :development
42
- prerelease: false
43
- version_requirements: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '5.4'
48
34
  - !ruby/object:Gem::Dependency
49
35
  name: rdoc
50
36
  requirement: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ~>
38
+ - - ">="
53
39
  - !ruby/object:Gem::Version
54
40
  version: '4.0'
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '7'
55
44
  type: :development
56
45
  prerelease: false
57
46
  version_requirements: !ruby/object:Gem::Requirement
58
47
  requirements:
59
- - - ~>
48
+ - - ">="
60
49
  - !ruby/object:Gem::Version
61
50
  version: '4.0'
51
+ - - "<"
52
+ - !ruby/object:Gem::Version
53
+ version: '7'
62
54
  - !ruby/object:Gem::Dependency
63
55
  name: hoe
64
56
  requirement: !ruby/object:Gem::Requirement
65
57
  requirements:
66
- - - ~>
58
+ - - "~>"
67
59
  - !ruby/object:Gem::Version
68
- version: '3.12'
60
+ version: '4.2'
69
61
  type: :development
70
62
  prerelease: false
71
63
  version_requirements: !ruby/object:Gem::Requirement
72
64
  requirements:
73
- - - ~>
65
+ - - "~>"
74
66
  - !ruby/object:Gem::Version
75
- version: '3.12'
67
+ version: '4.2'
76
68
  description: |-
77
69
  The sandbox plugin for rubygems helps you manage your command-line
78
70
  tools and their dependencies. Sandboxed gems are installed in their
@@ -105,7 +97,7 @@ extra_rdoc_files:
105
97
  - Manifest.txt
106
98
  - README.txt
107
99
  files:
108
- - .autotest
100
+ - ".autotest"
109
101
  - History.txt
110
102
  - Manifest.txt
111
103
  - README.txt
@@ -115,30 +107,31 @@ files:
115
107
  homepage: http://www.zenspider.com/projects/rubygems-sandbox.html
116
108
  licenses:
117
109
  - MIT
118
- metadata: {}
119
- post_install_message:
110
+ metadata:
111
+ homepage_uri: http://www.zenspider.com/projects/rubygems-sandbox.html
112
+ source_code_uri: https://github.com/seattlerb/rubygems-sandbox
113
+ post_install_message:
120
114
  rdoc_options:
121
- - --main
115
+ - "--main"
122
116
  - README.txt
123
117
  require_paths:
124
118
  - lib
125
119
  required_ruby_version: !ruby/object:Gem::Requirement
126
120
  requirements:
127
- - - '>='
121
+ - - ">="
128
122
  - !ruby/object:Gem::Version
129
123
  version: '0'
130
124
  required_rubygems_version: !ruby/object:Gem::Requirement
131
125
  requirements:
132
- - - '>='
126
+ - - ">="
133
127
  - !ruby/object:Gem::Version
134
128
  version: '1.4'
135
- - - <
129
+ - - "<"
136
130
  - !ruby/object:Gem::Version
137
- version: '3'
131
+ version: '4'
138
132
  requirements: []
139
- rubyforge_project:
140
- rubygems_version: 2.2.1
141
- signing_key:
133
+ rubygems_version: 3.5.15
134
+ signing_key:
142
135
  specification_version: 4
143
136
  summary: The sandbox plugin for rubygems helps you manage your command-line tools
144
137
  and their dependencies
metadata.gz.sig CHANGED
Binary file