zanzibar 0.1.13 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/.gitignore +3 -0
- data/.rspec +1 -1
- data/.rubocop.yml +5 -0
- data/Gemfile +0 -13
- data/README.md +68 -6
- data/Rakefile +11 -11
- data/bin/zamioculcas +3 -1
- data/bin/zanzibar +2 -68
- data/lib/zanzibar/actions/base.rb +27 -0
- data/lib/zanzibar/actions/bundle.rb +119 -0
- data/lib/zanzibar/actions/get.rb +61 -0
- data/lib/zanzibar/actions/init.rb +40 -0
- data/lib/zanzibar/actions.rb +3 -0
- data/lib/zanzibar/cli.rb +126 -0
- data/lib/zanzibar/defaults.rb +14 -0
- data/lib/zanzibar/error.rb +6 -0
- data/lib/zanzibar/ui.rb +42 -0
- data/lib/zanzibar/version.rb +4 -3
- data/lib/zanzibar.rb +190 -190
- data/spec/files/.gitignore +1 -0
- data/spec/files/Zanzifile +11 -0
- data/spec/files/scrt.wsdl +629 -0
- data/spec/lib/zanzibar/actions/bundle_spec.rb +95 -0
- data/spec/lib/zanzibar/actions/get_spec.rb +64 -0
- data/spec/lib/zanzibar/actions/init_spec.rb +53 -0
- data/spec/lib/zanzibar/version_spec.rb +12 -0
- data/spec/{zanzibar_spec.rb → lib/zanzibar_spec.rb} +116 -123
- data/spec/spec_helper.rb +37 -0
- data/templates/Zanzifile.erb +11 -0
- data/zanzibar.gemspec +12 -4
- metadata +142 -19
- data/spec/spec/spec_helper.rb +0 -95
metadata
CHANGED
@@ -1,71 +1,141 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zanzibar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jason Davis-Cooke
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-01
|
11
|
+
date: 2015-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ~>
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
type: :
|
19
|
+
version: '1.7'
|
20
|
+
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '1.7'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - ~>
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rubocop
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ~>
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 0.28.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 0.28.0
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: savon_spec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ~>
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 0.
|
61
|
+
version: 0.1.6
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - ~>
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 0.
|
68
|
+
version: 0.1.6
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 3.1.0
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ~>
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 3.1.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ~>
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 1.20.4
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ~>
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 1.20.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: codeclimate-test-reporter
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ! '>='
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: fakefs
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ~>
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: 0.6.4
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ~>
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: 0.6.4
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: simplecov
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: 0.9.1
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 0.9.1
|
69
139
|
- !ruby/object:Gem::Dependency
|
70
140
|
name: savon
|
71
141
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,6 +150,34 @@ dependencies:
|
|
80
150
|
- - ~>
|
81
151
|
- !ruby/object:Gem::Version
|
82
152
|
version: 2.8.0
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubyntlm
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - ~>
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: 0.4.0
|
160
|
+
type: :runtime
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ~>
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 0.4.0
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: thor
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - ~>
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: 0.19.0
|
174
|
+
type: :runtime
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - ~>
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: 0.19.0
|
83
181
|
description: Programatically get secrets from Secret Server via the Web Service API
|
84
182
|
email:
|
85
183
|
- jdaviscooke@cimpress.com
|
@@ -91,6 +189,7 @@ extra_rdoc_files: []
|
|
91
189
|
files:
|
92
190
|
- .gitignore
|
93
191
|
- .rspec
|
192
|
+
- .rubocop.yml
|
94
193
|
- .travis.yml
|
95
194
|
- Gemfile
|
96
195
|
- LICENSE.txt
|
@@ -99,7 +198,24 @@ files:
|
|
99
198
|
- bin/zamioculcas
|
100
199
|
- bin/zanzibar
|
101
200
|
- lib/zanzibar.rb
|
201
|
+
- lib/zanzibar/actions.rb
|
202
|
+
- lib/zanzibar/actions/base.rb
|
203
|
+
- lib/zanzibar/actions/bundle.rb
|
204
|
+
- lib/zanzibar/actions/get.rb
|
205
|
+
- lib/zanzibar/actions/init.rb
|
206
|
+
- lib/zanzibar/cli.rb
|
207
|
+
- lib/zanzibar/defaults.rb
|
208
|
+
- lib/zanzibar/error.rb
|
209
|
+
- lib/zanzibar/ui.rb
|
102
210
|
- lib/zanzibar/version.rb
|
211
|
+
- spec/files/.gitignore
|
212
|
+
- spec/files/Zanzifile
|
213
|
+
- spec/files/scrt.wsdl
|
214
|
+
- spec/lib/zanzibar/actions/bundle_spec.rb
|
215
|
+
- spec/lib/zanzibar/actions/get_spec.rb
|
216
|
+
- spec/lib/zanzibar/actions/init_spec.rb
|
217
|
+
- spec/lib/zanzibar/version_spec.rb
|
218
|
+
- spec/lib/zanzibar_spec.rb
|
103
219
|
- spec/responses/attachment_response.xml
|
104
220
|
- spec/responses/authenticate_response.xml
|
105
221
|
- spec/responses/download_private_key_response.xml
|
@@ -108,8 +224,8 @@ files:
|
|
108
224
|
- spec/responses/get_secret_with_attachment_response.xml
|
109
225
|
- spec/responses/get_secret_with_keys_response.xml
|
110
226
|
- spec/scrt.wsdl
|
111
|
-
- spec/
|
112
|
-
-
|
227
|
+
- spec/spec_helper.rb
|
228
|
+
- templates/Zanzifile.erb
|
113
229
|
- zanzibar.gemspec
|
114
230
|
homepage: https://github.com/Cimpress-MCP/zanzibar
|
115
231
|
licenses:
|
@@ -136,6 +252,14 @@ signing_key:
|
|
136
252
|
specification_version: 4
|
137
253
|
summary: Retrieve secrets from Secret Server
|
138
254
|
test_files:
|
255
|
+
- spec/files/.gitignore
|
256
|
+
- spec/files/Zanzifile
|
257
|
+
- spec/files/scrt.wsdl
|
258
|
+
- spec/lib/zanzibar/actions/bundle_spec.rb
|
259
|
+
- spec/lib/zanzibar/actions/get_spec.rb
|
260
|
+
- spec/lib/zanzibar/actions/init_spec.rb
|
261
|
+
- spec/lib/zanzibar/version_spec.rb
|
262
|
+
- spec/lib/zanzibar_spec.rb
|
139
263
|
- spec/responses/attachment_response.xml
|
140
264
|
- spec/responses/authenticate_response.xml
|
141
265
|
- spec/responses/download_private_key_response.xml
|
@@ -144,5 +268,4 @@ test_files:
|
|
144
268
|
- spec/responses/get_secret_with_attachment_response.xml
|
145
269
|
- spec/responses/get_secret_with_keys_response.xml
|
146
270
|
- spec/scrt.wsdl
|
147
|
-
- spec/
|
148
|
-
- spec/zanzibar_spec.rb
|
271
|
+
- spec/spec_helper.rb
|
data/spec/spec/spec_helper.rb
DELETED
@@ -1,95 +0,0 @@
|
|
1
|
-
# This file was generated by the `rspec --init` command. Conventionally, all
|
2
|
-
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`.
|
3
|
-
# The generated `.rspec` file contains `--require spec_helper` which will cause this
|
4
|
-
# file to always be loaded, without a need to explicitly require it in any files.
|
5
|
-
#
|
6
|
-
# Given that it is always loaded, you are encouraged to keep this file as
|
7
|
-
# light-weight as possible. Requiring heavyweight dependencies from this file
|
8
|
-
# will add to the boot time of your test suite on EVERY test run, even for an
|
9
|
-
# individual file that may not need all of that loaded. Instead, consider making
|
10
|
-
# a separate helper file that requires the additional dependencies and performs
|
11
|
-
# the additional setup, and require it from the spec files that actually need it.
|
12
|
-
#
|
13
|
-
# The `.rspec` file also contains a few flags that are not defaults but that
|
14
|
-
# users commonly want.
|
15
|
-
#
|
16
|
-
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration
|
17
|
-
require 'webmock/rspec'
|
18
|
-
require 'codeclimate-test-reporter'
|
19
|
-
CodeClimate::TestReporter.start
|
20
|
-
|
21
|
-
RSpec.configure do |config|
|
22
|
-
# rspec-expectations config goes here. You can use an alternate
|
23
|
-
# assertion/expectation library such as wrong or the stdlib/minitest
|
24
|
-
# assertions if you prefer.
|
25
|
-
config.expect_with :rspec do |expectations|
|
26
|
-
# This option will default to `true` in RSpec 4. It makes the `description`
|
27
|
-
# and `failure_message` of custom matchers include text for helper methods
|
28
|
-
# defined using `chain`, e.g.:
|
29
|
-
# be_bigger_than(2).and_smaller_than(4).description
|
30
|
-
# # => "be bigger than 2 and smaller than 4"
|
31
|
-
# ...rather than:
|
32
|
-
# # => "be bigger than 2"
|
33
|
-
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
34
|
-
end
|
35
|
-
|
36
|
-
# rspec-mocks config goes here. You can use an alternate test double
|
37
|
-
# library (such as bogus or mocha) by changing the `mock_with` option here.
|
38
|
-
config.mock_with :rspec do |mocks|
|
39
|
-
# Prevents you from mocking or stubbing a method that does not exist on
|
40
|
-
# a real object. This is generally recommended, and will default to
|
41
|
-
# `true` in RSpec 4.
|
42
|
-
mocks.verify_partial_doubles = true
|
43
|
-
end
|
44
|
-
|
45
|
-
config.after(:suite) do
|
46
|
-
WebMock.disable_net_connect!(allow: 'codeclimate.com')
|
47
|
-
end
|
48
|
-
|
49
|
-
# The settings below are suggested to provide a good initial experience
|
50
|
-
# with RSpec, but feel free to customize to your heart's content.
|
51
|
-
# # These two settings work together to allow you to limit a spec run
|
52
|
-
# # to individual examples or groups you care about by tagging them with
|
53
|
-
# # `:focus` metadata. When nothing is tagged with `:focus`, all examples
|
54
|
-
# # get run.
|
55
|
-
# config.filter_run :focus
|
56
|
-
# config.run_all_when_everything_filtered = true
|
57
|
-
#
|
58
|
-
# # Limits the available syntax to the non-monkey patched syntax that is recommended.
|
59
|
-
# # For more details, see:
|
60
|
-
# # - http://myronmars.to/n/dev-blog/2012/06/rspecs-new-expectation-syntax
|
61
|
-
# # - http://teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/
|
62
|
-
# # - http://myronmars.to/n/dev-blog/2014/05/notable-changes-in-rspec-3#new__config_option_to_disable_rspeccore_monkey_patching
|
63
|
-
# config.disable_monkey_patching!
|
64
|
-
#
|
65
|
-
# # This setting enables warnings. It's recommended, but in some cases may
|
66
|
-
# # be too noisy due to issues in dependencies.
|
67
|
-
# config.warnings = true
|
68
|
-
#
|
69
|
-
# # Many RSpec users commonly either run the entire suite or an individual
|
70
|
-
# # file, and it's useful to allow more verbose output when running an
|
71
|
-
# # individual spec file.
|
72
|
-
# if config.files_to_run.one?
|
73
|
-
# # Use the documentation formatter for detailed output,
|
74
|
-
# # unless a formatter has already been configured
|
75
|
-
# # (e.g. via a command-line flag).
|
76
|
-
# config.default_formatter = 'doc'
|
77
|
-
# end
|
78
|
-
#
|
79
|
-
# # Print the 10 slowest examples and example groups at the
|
80
|
-
# # end of the spec run, to help surface which specs are running
|
81
|
-
# # particularly slow.
|
82
|
-
# config.profile_examples = 10
|
83
|
-
#
|
84
|
-
# # Run specs in random order to surface order dependencies. If you find an
|
85
|
-
# # order dependency and want to debug it, you can fix the order by providing
|
86
|
-
# # the seed, which is printed after each run.
|
87
|
-
# # --seed 1234
|
88
|
-
# config.order = :random
|
89
|
-
#
|
90
|
-
# # Seed global randomization in this process using the `--seed` CLI option.
|
91
|
-
# # Setting this allows you to use `--seed` to deterministically reproduce
|
92
|
-
# # test failures related to randomization by passing the same `--seed` value
|
93
|
-
# # as the one that triggered the failure.
|
94
|
-
# Kernel.srand config.seed
|
95
|
-
end
|