zanzibar 0.0.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.rspec +2 -0
- data/.travis.yml +16 -0
- data/Gemfile +9 -3
- data/README.md +15 -1
- data/Rakefile +5 -7
- data/bin/zamioculcas +70 -0
- data/lib/zanzibar/version.rb +3 -3
- data/lib/zanzibar.rb +29 -28
- data/{test → spec}/responses/attachment_response.xml +12 -12
- data/{test → spec}/responses/authenticate_response.xml +0 -0
- data/{test → spec}/responses/download_private_key_response.xml +12 -12
- data/{test → spec}/responses/download_public_key_response.xml +0 -0
- data/{test → spec}/responses/get_secret_response.xml +0 -0
- data/{test → spec}/responses/get_secret_with_attachment_response.xml +57 -57
- data/{test → spec}/responses/get_secret_with_keys_response.xml +47 -47
- data/{test → spec}/scrt.wsdl +629 -629
- data/{test → spec}/spec/spec_helper.rb +7 -0
- data/{test → spec}/zanzibar_spec.rb +9 -9
- data/zanzibar.gemspec +1 -0
- metadata +44 -36
- data/test/.rspec +0 -2
@@ -15,6 +15,9 @@
|
|
15
15
|
#
|
16
16
|
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
17
|
require 'webmock/rspec'
|
18
|
+
require "codeclimate-test-reporter"
|
19
|
+
CodeClimate::TestReporter.start
|
20
|
+
|
18
21
|
RSpec.configure do |config|
|
19
22
|
# rspec-expectations config goes here. You can use an alternate
|
20
23
|
# assertion/expectation library such as wrong or the stdlib/minitest
|
@@ -39,6 +42,10 @@ RSpec.configure do |config|
|
|
39
42
|
mocks.verify_partial_doubles = true
|
40
43
|
end
|
41
44
|
|
45
|
+
config.after(:suite) do
|
46
|
+
WebMock.disable_net_connect!(:allow => 'codeclimate.com')
|
47
|
+
end
|
48
|
+
|
42
49
|
# The settings below are suggested to provide a good initial experience
|
43
50
|
# with RSpec, but feel free to customize to your heart's content.
|
44
51
|
=begin
|
@@ -1,4 +1,4 @@
|
|
1
|
-
require '
|
1
|
+
require 'zanzibar'
|
2
2
|
require 'savon'
|
3
3
|
require 'webmock'
|
4
4
|
require 'rspec'
|
@@ -8,14 +8,14 @@ include WebMock::API
|
|
8
8
|
|
9
9
|
describe "Zanzibar Test" do
|
10
10
|
|
11
|
-
client = Zanzibar::Zanzibar.new(:domain => "zanzitest.net", :pwd=>'password', :wsdl => "scrt.wsdl")
|
12
|
-
auth_xml = File.read('responses/authenticate_response.xml')
|
13
|
-
secret_xml = File.read('responses/get_secret_response.xml')
|
14
|
-
secret_with_key_xml = File.read('responses/get_secret_with_keys_response.xml')
|
15
|
-
secret_with_attachment_xml = File.read('responses/get_secret_with_attachment_response.xml')
|
16
|
-
private_key_xml = File.read('responses/download_private_key_response.xml')
|
17
|
-
public_key_xml = File.read('responses/download_public_key_response.xml')
|
18
|
-
attachment_xml = File.read('responses/attachment_response.xml')
|
11
|
+
client = Zanzibar::Zanzibar.new(:domain => "zanzitest.net", :pwd=>'password', :wsdl => "spec/scrt.wsdl")
|
12
|
+
auth_xml = File.read('spec/responses/authenticate_response.xml')
|
13
|
+
secret_xml = File.read('spec/responses/get_secret_response.xml')
|
14
|
+
secret_with_key_xml = File.read('spec/responses/get_secret_with_keys_response.xml')
|
15
|
+
secret_with_attachment_xml = File.read('spec/responses/get_secret_with_attachment_response.xml')
|
16
|
+
private_key_xml = File.read('spec/responses/download_private_key_response.xml')
|
17
|
+
public_key_xml = File.read('spec/responses/download_public_key_response.xml')
|
18
|
+
attachment_xml = File.read('spec/responses/attachment_response.xml')
|
19
19
|
|
20
20
|
|
21
21
|
it 'should return an auth token' do
|
data/zanzibar.gemspec
CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
+
spec.add_dependency "rubyntlm", "~> 0.4.0"
|
21
22
|
spec.add_development_dependency "bundler", "~> 1.7"
|
22
23
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
24
|
spec.add_runtime_dependency "savon", "~> 2.8.0"
|
metadata
CHANGED
@@ -1,20 +1,32 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zanzibar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.9
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Jason Davis-Cooke
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-01-
|
11
|
+
date: 2015-01-15 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubyntlm
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.4.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.4.0
|
14
27
|
- !ruby/object:Gem::Dependency
|
15
28
|
name: bundler
|
16
29
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
30
|
requirements:
|
19
31
|
- - ~>
|
20
32
|
- !ruby/object:Gem::Version
|
@@ -22,7 +34,6 @@ dependencies:
|
|
22
34
|
type: :development
|
23
35
|
prerelease: false
|
24
36
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
37
|
requirements:
|
27
38
|
- - ~>
|
28
39
|
- !ruby/object:Gem::Version
|
@@ -30,7 +41,6 @@ dependencies:
|
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: rake
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
45
|
- - ~>
|
36
46
|
- !ruby/object:Gem::Version
|
@@ -38,7 +48,6 @@ dependencies:
|
|
38
48
|
type: :development
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
52
|
- - ~>
|
44
53
|
- !ruby/object:Gem::Version
|
@@ -46,7 +55,6 @@ dependencies:
|
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: savon
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
59
|
- - ~>
|
52
60
|
- !ruby/object:Gem::Version
|
@@ -54,7 +62,6 @@ dependencies:
|
|
54
62
|
type: :runtime
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
66
|
- - ~>
|
60
67
|
- !ruby/object:Gem::Version
|
@@ -62,63 +69,64 @@ dependencies:
|
|
62
69
|
description: Programatically get secrets from Secret Server via the Web Service API
|
63
70
|
email:
|
64
71
|
- jdaviscooke@cimpress.com
|
65
|
-
executables:
|
72
|
+
executables:
|
73
|
+
- zamioculcas
|
66
74
|
extensions: []
|
67
75
|
extra_rdoc_files: []
|
68
76
|
files:
|
69
77
|
- .gitignore
|
78
|
+
- .rspec
|
79
|
+
- .travis.yml
|
70
80
|
- Gemfile
|
71
81
|
- LICENSE.txt
|
72
82
|
- README.md
|
73
83
|
- Rakefile
|
84
|
+
- bin/zamioculcas
|
74
85
|
- lib/zanzibar.rb
|
75
86
|
- lib/zanzibar/version.rb
|
76
|
-
-
|
77
|
-
-
|
78
|
-
-
|
79
|
-
-
|
80
|
-
-
|
81
|
-
-
|
82
|
-
-
|
83
|
-
-
|
84
|
-
-
|
85
|
-
-
|
86
|
-
- test/zanzibar_spec.rb
|
87
|
+
- spec/responses/attachment_response.xml
|
88
|
+
- spec/responses/authenticate_response.xml
|
89
|
+
- spec/responses/download_private_key_response.xml
|
90
|
+
- spec/responses/download_public_key_response.xml
|
91
|
+
- spec/responses/get_secret_response.xml
|
92
|
+
- spec/responses/get_secret_with_attachment_response.xml
|
93
|
+
- spec/responses/get_secret_with_keys_response.xml
|
94
|
+
- spec/scrt.wsdl
|
95
|
+
- spec/spec/spec_helper.rb
|
96
|
+
- spec/zanzibar_spec.rb
|
87
97
|
- zanzibar.gemspec
|
88
98
|
homepage: https://github.com/Cimpress-MCP/zanzibar
|
89
99
|
licenses:
|
90
100
|
- Apache 2.0
|
101
|
+
metadata: {}
|
91
102
|
post_install_message:
|
92
103
|
rdoc_options: []
|
93
104
|
require_paths:
|
94
105
|
- lib
|
95
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
96
|
-
none: false
|
97
107
|
requirements:
|
98
108
|
- - ! '>='
|
99
109
|
- !ruby/object:Gem::Version
|
100
110
|
version: '0'
|
101
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
112
|
requirements:
|
104
113
|
- - ! '>='
|
105
114
|
- !ruby/object:Gem::Version
|
106
115
|
version: '0'
|
107
116
|
requirements: []
|
108
117
|
rubyforge_project:
|
109
|
-
rubygems_version:
|
118
|
+
rubygems_version: 2.4.5
|
110
119
|
signing_key:
|
111
|
-
specification_version:
|
120
|
+
specification_version: 4
|
112
121
|
summary: Retrieve secrets from Secret Server
|
113
122
|
test_files:
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
- test/zanzibar_spec.rb
|
123
|
+
- spec/responses/attachment_response.xml
|
124
|
+
- spec/responses/authenticate_response.xml
|
125
|
+
- spec/responses/download_private_key_response.xml
|
126
|
+
- spec/responses/download_public_key_response.xml
|
127
|
+
- spec/responses/get_secret_response.xml
|
128
|
+
- spec/responses/get_secret_with_attachment_response.xml
|
129
|
+
- spec/responses/get_secret_with_keys_response.xml
|
130
|
+
- spec/scrt.wsdl
|
131
|
+
- spec/spec/spec_helper.rb
|
132
|
+
- spec/zanzibar_spec.rb
|
data/test/.rspec
DELETED