rubygems_ssl-client-certs 0.0.1.pre.alpha.pre.33 → 0.0.1.pre.alpha.pre.34
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/rubygems_plugin.rb +3 -3
- data/spec/integration/gem_spec.rb +27 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YjEzMTdhZjAzNjU1ZWExNDJhM2VlZGFjOGQ1YjhmNThmYTU3ODg1MQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MGI1MTA3MmEwNzZjNTIxYmM5ZjQyZDIxYzlkMGFjMmEwNWUzZDlhNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NGI3MWU2ZjBmNDNmNDFhYmYyOTQ3YTUwNGUzYThjZmI3OWVmNGZjMThlNWRh
|
10
|
+
NWUwMGI0OTBhODc4OWFkOGQ0MGIxMzFjNTRkMzgxNjJlNTY2MjkzMGE0Mzkw
|
11
|
+
NGYyMzViNDM1NWRiYTAzYjk4NDdiM2M1ZTI0YTg1OGJkYzY5MzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
N2Q4NjllNGQyZDc5MzQ0N2E3ZjhlNzY5M2NiYjc0Yzk4YjlmYWNiOTYzYmMw
|
14
|
+
ODNkMzZlYjAyOGMxYWMwNDk4NmRhZmY3MTNjN2IxYWU3ZDQ4ODgzOWNkZjNi
|
15
|
+
Y2RhMDY2NjNlMTQ4Zjg3ZGQxMjVlMzEyMjU5ZTBiNDQ3YzY0NGI=
|
data/lib/rubygems_plugin.rb
CHANGED
@@ -9,12 +9,12 @@ class Gem::ConfigFile
|
|
9
9
|
attr_reader :ssl_ca_cert
|
10
10
|
|
11
11
|
class << self
|
12
|
-
|
12
|
+
unless self.method_defined? :__new__
|
13
|
+
alias_method :__new__, :new
|
14
|
+
end
|
13
15
|
def new(*args)
|
14
|
-
puts "instaniating new Gem::ConfigFile"
|
15
16
|
config = __new__(*args)
|
16
17
|
config.set_ssl_vars
|
17
|
-
puts "Gem::ConfigFile instantiated"
|
18
18
|
return config
|
19
19
|
end
|
20
20
|
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require "spec_helper"
|
2
|
+
|
3
|
+
describe Gem do
|
4
|
+
|
5
|
+
def create_gem()
|
6
|
+
gem = subject
|
7
|
+
return gem
|
8
|
+
end
|
9
|
+
|
10
|
+
def plugin_location
|
11
|
+
File.dirname(__FILE__) + '/../../lib/rubygems_plugin.rb'
|
12
|
+
end
|
13
|
+
|
14
|
+
def gemrc_location
|
15
|
+
File.dirname(__FILE__) + '/../fixtures/gemrc'
|
16
|
+
end
|
17
|
+
|
18
|
+
describe "load_env_plugins" do
|
19
|
+
it "successfully loads the ssl client cert plugin" do
|
20
|
+
gem = create_gem()
|
21
|
+
plugins = [ plugin_location ]
|
22
|
+
gem.load_plugin_files(plugins)
|
23
|
+
Gem::ConfigFile.new( [ "--config-file", gemrc_location ] )
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubygems_ssl-client-certs
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.1.pre.alpha.pre.
|
4
|
+
version: 0.0.1.pre.alpha.pre.34
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Moses
|
@@ -86,6 +86,7 @@ files:
|
|
86
86
|
- spec/fixtures/gemrc
|
87
87
|
- spec/gem_config_file_spec.rb
|
88
88
|
- spec/gem_remote_fetcher_spec.rb
|
89
|
+
- spec/integration/gem_spec.rb
|
89
90
|
- spec/spec_helper.rb
|
90
91
|
homepage: https://github.com/zebardy/rubygems_ssl-client-certs
|
91
92
|
licenses:
|