chef-vault 2.9.1 → 2.9.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
2
  SHA1:
3
- metadata.gz: be0cfcb1eb3ba0dc6d331fd21ce7a19fd29dcbba
4
- data.tar.gz: 8e032de44b2b9c8f8b6a8464861b720098336a8d
3
+ metadata.gz: 2133ede4b8b87b59a53152785de5bce1d905c474
4
+ data.tar.gz: be047ff9909a7519bb8aa8899e163d87ac474308
5
5
  SHA512:
6
- metadata.gz: e94231295e5c0b4ec9178d7b2d03b61540b7e9c4cca511bf228298f41032cae3e67df595d5e701ec1874064383e3a38558bc15cc94f6589197c51e4f67bfb65d
7
- data.tar.gz: 9d5094b85e4404047d95be24eac14aa704641ff64fb8316eb87c480bbc6248310412a76fcfd330299ef16109901bf84db27cff85968701d3ccba6aa0ccdaf569
6
+ metadata.gz: d6ba9da19b1d08e0340f46c5814ac37c7ba32240a1b305b5b0c51d67f28c445e84e3dac4264ddd70339d139efe657579358e9464dcb1ec031ae26076f32477a2
7
+ data.tar.gz: 0febfdcd3314441213cc9680634bcb3a19c41c4566917aac2cfbe476bea876c97a51b43c61e4a11f517d7f33fc49bc974c9e3533de8ebfa49d862e0bb277bf8b
@@ -1,5 +1,10 @@
1
1
  # Change Log
2
2
 
3
+ ## [2.9.2](https://github.com/chef/chef-vault/tree/2.9.2) (2017-06-21)
4
+ [Full Changelog](https://github.com/chef/chef-vault/compare/v2.9.0...2.9.2)
5
+
6
+ - Lock chefstyle to let ChefDK build
7
+
3
8
  ## [2.9.0](https://github.com/chef/chef-vault/tree/2.9.0) (2016-04-06)
4
9
  [Full Changelog](https://github.com/chef/chef-vault/compare/v2.8.0...2.9.0)
5
10
 
@@ -283,4 +288,4 @@
283
288
 
284
289
 
285
290
 
286
- \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
291
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  source "https://rubygems.org/"
2
2
 
3
3
  group :development do
4
- gem "chefstyle", git: "https://github.com/chef/chefstyle.git"
4
+ gem "chefstyle", "= 0.5.0"
5
5
  end
6
6
  if RUBY_VERSION.to_f >= 2.0
7
7
  group :changelog do
8
- gem "github_changelog_generator", git: "https://github.com/tduffield/github-changelog-generator", branch: "adjust-tag-section-mapping"
8
+ gem "github_changelog_generator", git: "https://github.com/chef/github-changelog-generator"
9
9
  end
10
10
  end
11
11
 
@@ -7,9 +7,9 @@ class ChefVault
7
7
  # 1. Otherwise, just use the first location in the array
8
8
  def find_solo_path(item_id)
9
9
  if Chef::Config[:data_bag_path].kind_of?(Array)
10
- path = Chef::Config[:data_bag_path].find { |dir|
10
+ path = Chef::Config[:data_bag_path].find do |dir|
11
11
  File.exist?(File.join(dir, data_bag, "#{item_id}.json"))
12
- }
12
+ end
13
13
 
14
14
  path ||= Chef::Config[:data_bag_path].first
15
15
  data_bag_path = File.join(path, data_bag)
@@ -15,6 +15,6 @@
15
15
  # limitations under the License.
16
16
 
17
17
  class ChefVault
18
- VERSION = "2.9.1"
18
+ VERSION = "2.9.2"
19
19
  MAJOR, MINOR, TINY = VERSION.split(".")
20
20
  end
@@ -14,7 +14,7 @@ RSpec.describe ChefVault::Certificate do
14
14
  $stdout = @orig_stdout
15
15
  end
16
16
 
17
- describe '#new' do
17
+ describe "#new" do
18
18
  it "loads item" do
19
19
  expect(ChefVault::Item).to receive(:load).with("foo", "bar")
20
20
 
@@ -22,7 +22,7 @@ RSpec.describe ChefVault::Certificate do
22
22
  end
23
23
  end
24
24
 
25
- describe '#[]' do
25
+ describe "#[]" do
26
26
  it "given an 'id' parameter, returns its value" do
27
27
  expect(cert["id"]).to eq "bar"
28
28
  end
@@ -1,5 +1,5 @@
1
1
  RSpec.describe ChefVault::ItemKeys do
2
- describe '#new' do
2
+ describe "#new" do
3
3
  let(:keys) { ChefVault::ItemKeys.new("foo", "bar") }
4
4
 
5
5
  it "'foo' is assigned to @data_bag" do
@@ -210,7 +210,7 @@ RSpec.describe ChefVault::Item do
210
210
  end
211
211
  end
212
212
 
213
- describe '#save' do
213
+ describe "#save" do
214
214
  context 'when item["id"] is bar.bar' do
215
215
  let(:item) { ChefVault::Item.new("foo", "bar.bar") }
216
216
  it "raises an error on save with an invalid item['id']" do
@@ -227,7 +227,7 @@ RSpec.describe ChefVault::Item do
227
227
  end
228
228
  end
229
229
 
230
- describe '#refresh' do
230
+ describe "#refresh" do
231
231
 
232
232
  it "saves only the keys" do
233
233
  keys = double("keys",
@@ -256,7 +256,7 @@ RSpec.describe ChefVault::Item do
256
256
  end
257
257
  end
258
258
 
259
- describe '#clients' do
259
+ describe "#clients" do
260
260
  include BorkedNodeWithoutPublicKey
261
261
 
262
262
  it "should not blow up when search returns a node without a public key" do
@@ -284,7 +284,7 @@ RSpec.describe ChefVault::Item do
284
284
  end
285
285
  end
286
286
 
287
- describe '#admins' do
287
+ describe "#admins" do
288
288
  include BorkedNodeWithoutPublicKey
289
289
 
290
290
  it "should blow up if you try to use a node without a public key as an admin" do
@@ -293,7 +293,7 @@ RSpec.describe ChefVault::Item do
293
293
  end
294
294
  end
295
295
 
296
- describe '#raw_keys' do
296
+ describe "#raw_keys" do
297
297
  it "should return the keys of the underlying data bag item" do
298
298
  item = ChefVault::Item.new("foo", "bar")
299
299
  item["foo"] = "bar"
@@ -14,7 +14,7 @@ RSpec.describe ChefVault::User do
14
14
  $stdout = @orig_stdout
15
15
  end
16
16
 
17
- describe '#new' do
17
+ describe "#new" do
18
18
  it "loads item" do
19
19
  expect(ChefVault::Item).to receive(:load).with("foo", "bar")
20
20
 
@@ -22,7 +22,7 @@ RSpec.describe ChefVault::User do
22
22
  end
23
23
  end
24
24
 
25
- describe '#[]' do
25
+ describe "#[]" do
26
26
  it "returns the value of the 'id' parameter" do
27
27
  expect(user["id"]).to eq "bar"
28
28
  end
@@ -1,7 +1,7 @@
1
1
  RSpec.describe ChefVault do
2
2
  let(:vault) { ChefVault.new("foo") }
3
3
 
4
- describe '#new' do
4
+ describe "#new" do
5
5
  context "with only a vault parameter specified" do
6
6
 
7
7
  it "assigns 'foo' to the vault accessor" do
@@ -27,7 +27,7 @@ RSpec.describe ChefVault do
27
27
  end
28
28
  end
29
29
 
30
- describe '#version' do
30
+ describe "#version" do
31
31
  it "the version method equals VERSION" do
32
32
  expect(vault.version).to eq(ChefVault::VERSION)
33
33
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.1
4
+ version: 2.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Moser
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-01-19 00:00:00.000000000 Z
12
+ date: 2017-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -213,7 +213,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
213
213
  version: '0'
214
214
  requirements: []
215
215
  rubyforge_project:
216
- rubygems_version: 2.5.1
216
+ rubygems_version: 2.6.11
217
217
  signing_key:
218
218
  specification_version: 4
219
219
  summary: Data encryption support for Chef using data bags