chef-vault-testfixtures 0.5.2 → 3.0.0

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: 3783e0e9855e83940e28dde3c1c306d4a778deac
4
- data.tar.gz: faf5bae370142aa9f3e215bbcdcecbee27e850ed
3
+ metadata.gz: 406d52b7d304af1e894b61f550890d93a1170180
4
+ data.tar.gz: 63c62b375e91bba72f41e539fef27a84430755ff
5
5
  SHA512:
6
- metadata.gz: b3d6df174763af6799db37da183bb17da71fe9e4936504f1e6559d9eff7f2fae437659c28fae657e78469b4710a65dd2bf5440dee33edec875e794fbdbaac039
7
- data.tar.gz: f54b88800adf59f88f7967013a259f9c738d63eff162e3f0af87d8d974c15fbb1e99657d576edd82c03b10c4d24f42b148aa2f0d5a650952808028544f754617
6
+ metadata.gz: b146d3474b7fdf38d82342fb5e564510ae44c610768d3f6486bed16bebe3711313b4b9ea9ed83c7a57ca204936561c743cc68e4a73825d29b114115c6075d32c
7
+ data.tar.gz: f673a07aa486d33af55b2517a105b80795fc9687060a8c93a3616a86c7b34786cd0200bb5cdd7f08f271572f4c619fb54452252608304d47af86b7cc11d9ab35
data/.gitignore ADDED
@@ -0,0 +1,5 @@
1
+ doc/*
2
+ coverage/*
3
+ pkg/*
4
+ .yardoc/*
5
+ Gemfile.lock
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.3.3
4
+ - 2.4.1
5
+ install: bundle install --binstubs
6
+ env: TRAVIS_BUILD=true
data/Berksfile ADDED
@@ -0,0 +1,3 @@
1
+ source "https://supermarket.chef.io"
2
+
3
+ cookbook "test1", path: "test/fixtures/cookbooks/test1"
data/Berksfile.lock ADDED
@@ -0,0 +1,6 @@
1
+ DEPENDENCIES
2
+ test1
3
+ path: test/fixtures/cookbooks/test1
4
+
5
+ GRAPH
6
+ test1 (0.0.0)
data/Guardfile CHANGED
@@ -1,17 +1,17 @@
1
1
  # prevent dropping into pry when nothing is happening
2
2
  interactor :off
3
3
 
4
- guard :rubocop, all_on_start: true, cli: ['-D'] do
4
+ guard :rubocop, all_on_start: true, cli: ["-D"] do
5
5
  watch(%r{bin/.+$})
6
6
  watch(%r{.+\.rb$})
7
7
  watch(%r{(?:.+/)?\.rubocop\.yml$}) { |m| File.dirname(m[0]) }
8
- watch('Gemfile')
9
- watch('Rakefile')
8
+ watch("Gemfile")
9
+ watch("Rakefile")
10
10
  end
11
11
 
12
- guard :rspec, all_on_start: true, cmd: 'bundle exec rspec' do
12
+ guard :rspec, all_on_start: true, cmd: "bundle exec rspec" do
13
13
  watch(%r{^spec/recipes/.+_spec\.rb$})
14
14
  watch(%r{^spec/(.+)_spec\.rb$})
15
15
  watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
16
- watch(%r{^spec/spec_helper.*\.rb$}) { 'spec' }
16
+ watch(%r{^spec/spec_helper.*\.rb$}) { "spec" }
17
17
  end
data/README.md CHANGED
@@ -1,10 +1,10 @@
1
1
  # chef-vault-testfixtures
2
2
 
3
- * home :: https://github.com/Nordstrom/chef-vault-testfixtures
3
+ * home :: https://github.com/chef/chef-vault-testfixtures
4
4
  * license :: [Apache2](http://www.apache.org/licenses/LICENSE-2.0)
5
5
  * gem version :: [![Gem Version](https://badge.fury.io/rb/chef-vault-testfixtures.png)](http://badge.fury.io/rb/chef-vault-testfixtures)
6
- * build status :: [![Build Status](https://travis-ci.org/Nordstrom/chef-vault-testfixtures.png?branch=master)](https://travis-ci.org/Nordstrom/chef-vault-testfixtures)
7
- * code climate :: [![Code Climate](https://codeclimate.com/github/Nordstrom/chef-vault-testfixtures/badges/gpa.svg)](https://codeclimate.com/github/Nordstrom/chef-vault-testfixtures)
6
+ * build status :: [![Build Status](https://travis-ci.org/chef/chef-vault-testfixtures.png?branch=master)](https://travis-ci.org/chef/chef-vault-testfixtures)
7
+ * code climate :: [![Code Climate](https://codeclimate.com/github/chef/chef-vault-testfixtures/badges/gpa.svg)](https://codeclimate.com/github/chef/chef-vault-testfixtures)
8
8
 
9
9
  ## DESCRIPTION
10
10
 
@@ -15,7 +15,7 @@ fallback mechanism as the `chef_vault_item` helper from the
15
15
 
16
16
  ## USAGE
17
17
 
18
- [chef-vault](https://github.com/Nordstrom/chef-vault) is a gem to manage
18
+ [chef-vault](https://github.com/chef/chef-vault) is a gem to manage
19
19
  distribution and control of keys to decrypt Chef encrypted data bags.
20
20
 
21
21
  When testing a cookbook that uses chef-vault, encryption is generally
@@ -53,7 +53,8 @@ In a cookbook example:
53
53
  RSpec.describe 'my_cookbook::default' do
54
54
  include ChefVault::TestFixtures.rspec_shared_context
55
55
 
56
- let(:chef_run) { ChefSpec::SoloRunner.new.converge(described_recipe) }
56
+ let(:chef_run) { ChefSpec::SoloRunner.new(platform: 'ubuntu', version: '16.04')
57
+ .converge(described_recipe) }
57
58
 
58
59
  it 'should converge' do
59
60
  expect(chef_run).to include_recipe(described_recipe)
@@ -149,7 +150,7 @@ describe 'my_cookbook::default' do
149
150
  include ChefVault::TestFixtures.rspec_shared_context
150
151
 
151
152
  let(:chef_run) do
152
- ChefSpec::ServerRunner.new() do |node, server|
153
+ ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') do |node, server|
153
154
  server.create_data_bag('foo', {
154
155
  'bar' => parse_data_bag('foo/bar.json')
155
156
  })
@@ -187,6 +188,7 @@ James FitzGibbon - james.i.fitzgibbon@nordstrom.com - @jf647
187
188
  ## LICENSE
188
189
 
189
190
  Copyright 2015 Nordstrom, Inc.
191
+ Copyright 2016 Chef Software, Inc.
190
192
 
191
193
  Licensed under the Apache License, Version 2.0 (the "License");
192
194
  you may not use this file except in compliance with the License.
data/Rakefile CHANGED
@@ -1,39 +1,6 @@
1
+ require "bundler/gem_tasks"
1
2
  require "chef-vault/test_fixtures"
2
3
 
3
- begin
4
- require "hoe"
5
- require "hoe/markdown"
6
- Hoe.plugin :gemspec
7
- Hoe.plugin :markdown
8
- Hoe.plugins.delete :test
9
- Hoe.spec "chef-vault-testfixtures" do |s|
10
- s.version = ChefVault::TestFixtures::VERSION
11
- developer "James FitzGibbon", "james.i.fitzgibbon@nordstrom.com"
12
- license "apache2"
13
- extra_deps << ["rspec", "~> 3.1"]
14
- extra_deps << ["chef-vault", "~> 2.5"]
15
- extra_deps << ["hashie", ">= 2.0", "< 4.0"]
16
- extra_dev_deps << ["chef", "~> 12.0"]
17
- extra_dev_deps << ["hoe", "~> 3.13"]
18
- extra_dev_deps << ["hoe-gemspec", "~> 1.0"]
19
- extra_dev_deps << ["rake", "~> 10.3"]
20
- extra_dev_deps << ["rspec", "~> 3.1"]
21
- extra_dev_deps << ["guard", "~> 2.12"]
22
- extra_dev_deps << ["guard-rspec", "~> 4.2"]
23
- extra_dev_deps << ["guard-rake", "~> 0.0"]
24
- extra_dev_deps << ["guard-rubocop", "~> 1.2"]
25
- extra_dev_deps << ["chefspec", "~> 4.2"]
26
- extra_dev_deps << ["berkshelf", "~> 4.0"]
27
- extra_dev_deps << ["simplecov", "~> 0.9"]
28
- extra_dev_deps << ["simplecov-console", "~> 0.2"]
29
- extra_dev_deps << ["yard", "~> 0.8"]
30
- end
31
- # re-generate our gemspec before packaging
32
- task package: "gem:spec"
33
- rescue LoadError
34
- puts "hoe not available; disabling tasks"
35
- end
36
-
37
4
  # Style Tests
38
5
  begin
39
6
  require "chefstyle"
data/TODO.md ADDED
@@ -0,0 +1,6 @@
1
+ # TODO for chef-vault-testfixtures
2
+
3
+ * make directory to load vaults from configurable
4
+ * provide mechanism for limiting which vaults are loaded
5
+ * provide mechanism to clear singleton
6
+ * eventually, integrate into the chef-vault gem
@@ -1,81 +1,35 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: chef-vault-testfixtures 0.5.2.20160208102442 ruby lib
2
+ # stub: chef-vault-testfixtures 0.5.2.20160205150644 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
- s.name = "chef-vault-testfixtures"
6
- s.version = "0.5.2.20160208102442"
5
+ s.name = "chef-vault-testfixtures"
6
+ s.version = "3.0.0"
7
7
 
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib"]
10
- s.authors = ["James FitzGibbon"]
11
- s.date = "2016-02-08"
12
- s.description = "chef-vault-testfixtures provides an RSpec shared context that\nstubs access to chef-vault encrypted data bags using the same\nfallback mechanism as the `chef_vault_item` helper from the\n[chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)"
13
- s.email = ["james.i.fitzgibbon@nordstrom.com"]
14
- s.extra_rdoc_files = ["History.md", "Manifest.txt", "README.md"]
15
- s.files = [".rspec", ".rubocop.yml", ".yardopts", "Gemfile", "Guardfile", "History.md", "Manifest.txt", "README.md", "Rakefile", "chef-vault-testfixtures.gemspec", "lib/chef-vault/test_fixtures.rb", "lib/hoe/markdown.rb", "spec/lib/chef-vault/test_fixtures_spec.rb", "spec/spec_helper.rb"]
16
- s.homepage = "https://github.com/Nordstrom/chef-vault-testfixtures"
17
- s.licenses = ["apache2"]
18
- s.rdoc_options = ["--main", "README.md"]
19
- s.rubygems_version = "2.4.5.1"
20
- s.summary = "chef-vault-testfixtures provides an RSpec shared context that stubs access to chef-vault encrypted data bags using the same fallback mechanism as the `chef_vault_item` helper from the [chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)"
8
+ s.require_paths = ["lib"]
9
+ s.authors = ["Thom May"]
10
+ s.email = ["thom@chef.io"]
11
+ s.extra_rdoc_files = ["History.md", "README.md"]
12
+ s.homepage = "https://github.com/chef/chef-vault-testfixtures"
13
+ s.files = `git ls-files`.split("\n")
14
+ s.licenses = ["apache2"]
15
+ s.rdoc_options = ["--main", "README.md"]
16
+ s.summary = "chef-vault-testfixtures provides an RSpec shared context that stubs access to chef-vault encrypted data bags using the same fallback mechanism as the `chef_vault_item` helper from the [chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)"
17
+ s.description = s.summary
18
+ s.required_ruby_version = ">= 2.2.0"
21
19
 
22
- if s.respond_to? :specification_version then
23
- s.specification_version = 4
24
-
25
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
26
- s.add_runtime_dependency(%q<rspec>, ["~> 3.1"])
27
- s.add_runtime_dependency(%q<chef-vault>, ["~> 2.5"])
28
- s.add_runtime_dependency(%q<hashie>, ["< 4.0", ">= 2.0"])
29
- s.add_development_dependency(%q<rdoc>, ["~> 4.0"])
30
- s.add_development_dependency(%q<chef>, ["~> 12.0"])
31
- s.add_development_dependency(%q<hoe>, ["~> 3.13"])
32
- s.add_development_dependency(%q<hoe-gemspec>, ["~> 1.0"])
33
- s.add_development_dependency(%q<rake>, ["~> 10.3"])
34
- s.add_development_dependency(%q<guard>, ["~> 2.12"])
35
- s.add_development_dependency(%q<guard-rspec>, ["~> 4.2"])
36
- s.add_development_dependency(%q<guard-rake>, ["~> 0.0"])
37
- s.add_development_dependency(%q<guard-rubocop>, ["~> 1.2"])
38
- s.add_development_dependency(%q<chefspec>, ["~> 4.2"])
39
- s.add_development_dependency(%q<berkshelf>, ["~> 4.0"])
40
- s.add_development_dependency(%q<simplecov>, ["~> 0.9"])
41
- s.add_development_dependency(%q<simplecov-console>, ["~> 0.2"])
42
- s.add_development_dependency(%q<yard>, ["~> 0.8"])
43
- else
44
- s.add_dependency(%q<rspec>, ["~> 3.1"])
45
- s.add_dependency(%q<chef-vault>, ["~> 2.5"])
46
- s.add_dependency(%q<hashie>, ["< 4.0", ">= 2.0"])
47
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
48
- s.add_dependency(%q<chef>, ["~> 12.0"])
49
- s.add_dependency(%q<hoe>, ["~> 3.13"])
50
- s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
51
- s.add_dependency(%q<rake>, ["~> 10.3"])
52
- s.add_dependency(%q<guard>, ["~> 2.12"])
53
- s.add_dependency(%q<guard-rspec>, ["~> 4.2"])
54
- s.add_dependency(%q<guard-rake>, ["~> 0.0"])
55
- s.add_dependency(%q<guard-rubocop>, ["~> 1.2"])
56
- s.add_dependency(%q<chefspec>, ["~> 4.2"])
57
- s.add_dependency(%q<berkshelf>, ["~> 4.0"])
58
- s.add_dependency(%q<simplecov>, ["~> 0.9"])
59
- s.add_dependency(%q<simplecov-console>, ["~> 0.2"])
60
- s.add_dependency(%q<yard>, ["~> 0.8"])
61
- end
62
- else
63
- s.add_dependency(%q<rspec>, ["~> 3.1"])
64
- s.add_dependency(%q<chef-vault>, ["~> 2.5"])
65
- s.add_dependency(%q<hashie>, ["< 4.0", ">= 2.0"])
66
- s.add_dependency(%q<rdoc>, ["~> 4.0"])
67
- s.add_dependency(%q<chef>, ["~> 12.0"])
68
- s.add_dependency(%q<hoe>, ["~> 3.13"])
69
- s.add_dependency(%q<hoe-gemspec>, ["~> 1.0"])
70
- s.add_dependency(%q<rake>, ["~> 10.3"])
71
- s.add_dependency(%q<guard>, ["~> 2.12"])
72
- s.add_dependency(%q<guard-rspec>, ["~> 4.2"])
73
- s.add_dependency(%q<guard-rake>, ["~> 0.0"])
74
- s.add_dependency(%q<guard-rubocop>, ["~> 1.2"])
75
- s.add_dependency(%q<chefspec>, ["~> 4.2"])
76
- s.add_dependency(%q<berkshelf>, ["~> 4.0"])
77
- s.add_dependency(%q<simplecov>, ["~> 0.9"])
78
- s.add_dependency(%q<simplecov-console>, ["~> 0.2"])
79
- s.add_dependency(%q<yard>, ["~> 0.8"])
80
- end
20
+ s.add_runtime_dependency "rspec", "~> 3.4"
21
+ s.add_runtime_dependency "chef-vault", "~> 3"
22
+ s.add_runtime_dependency "hashie", "< 4.0", ">= 2.0"
23
+ s.add_development_dependency "rdoc"
24
+ s.add_development_dependency "chef", ">= 12.9"
25
+ s.add_development_dependency "rake", "~> 11.0"
26
+ s.add_development_dependency "guard"
27
+ s.add_development_dependency "guard-rspec"
28
+ s.add_development_dependency "guard-rake"
29
+ s.add_development_dependency "guard-rubocop"
30
+ s.add_development_dependency "chefspec"
31
+ s.add_development_dependency "berkshelf"
32
+ s.add_development_dependency "simplecov"
33
+ s.add_development_dependency "simplecov-console"
34
+ s.add_development_dependency "yard"
81
35
  end
@@ -11,7 +11,7 @@ class ChefVault
11
11
  # dynamic RSpec contexts for cookbooks that use chef-vault
12
12
  class TestFixtures
13
13
  # the version of the gem
14
- VERSION = "0.5.2"
14
+ VERSION = "0.6.0"
15
15
 
16
16
  # dynamically creates a memoized RSpec shared context
17
17
  # that when included into an example group will stub
@@ -92,6 +92,10 @@ class ChefVault
92
92
  allow(vi).to receive(:[]).with(k).and_return(v)
93
93
  end
94
94
 
95
+ # stub hash conversion as a stopgap to other hash methods
96
+ allow(vi).to receive(:to_h).with(no_args).and_return(content)
97
+ allow(vi).to receive(:to_hash).with(no_args).and_return(content)
98
+
95
99
  # stub ChefVault and Chef::DataBag to return the doubles
96
100
  # via both symbol and string forms of the data bag name
97
101
  [vault, vault.to_sym].each do |dbname|
@@ -0,0 +1,35 @@
1
+ require "chefspec"
2
+ require "chefspec/berkshelf"
3
+ require "chef-vault/test_fixtures"
4
+
5
+ def parse_data_bag(path)
6
+ data_bags_path = File.expand_path(
7
+ File.join(File.dirname(__FILE__), "../../test/integration/data_bags")
8
+ )
9
+ JSON.parse(File.read("#{data_bags_path}/#{path}"))
10
+ end
11
+
12
+ RSpec.describe "test1::default" do
13
+ ChefVault::TestFixtures.clear_context
14
+ include ChefVault::TestFixtures.rspec_shared_context(false)
15
+
16
+ let(:chef_run) do
17
+ ChefSpec::ServerRunner.new(platform: 'ubuntu', version: '16.04') do |_, server|
18
+ server.create_data_bag(
19
+ "baz", "wibble" => parse_data_bag("baz/wibble.json")
20
+ )
21
+ end.converge(described_recipe)
22
+ end
23
+
24
+ it "should converge" do
25
+ expect(chef_run).to include_recipe(described_recipe)
26
+ end
27
+
28
+ it "should have the right value for the unencrypted data bag item" do
29
+ expect(chef_run.node.run_state["dbi_wibble"]["wibble"]).to eq(3)
30
+ end
31
+
32
+ it "should have the right value for the encrypted data bag item" do
33
+ expect(chef_run.node.run_state["foo"]["baz"]).to eq(4)
34
+ end
35
+ end
@@ -0,0 +1,2 @@
1
+ name "test1"
2
+ version "0.0.0"
@@ -0,0 +1,9 @@
1
+ node.run_state["dbi_wibble"] = data_bag_item("baz", "wibble")
2
+
3
+ vault_item = ChefVault::Item.load("foo", "bar")
4
+ unless vault_item.to_h.empty?
5
+ node.run_state["foo"] = {}
6
+ vault_item.to_h.each do |key, val|
7
+ node.run_state["foo"][key] = val * 2
8
+ end
9
+ end
@@ -0,0 +1,3 @@
1
+ {
2
+ "baz": 1
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "baz": 1
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "wibble": 3
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "baz": 2
3
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-vault-testfixtures
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - James FitzGibbon
7
+ - Thom May
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2017-04-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -16,273 +16,252 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.1'
19
+ version: '3.4'
20
20
  type: :runtime
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: '3.1'
26
+ version: '3.4'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: chef-vault
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.5'
33
+ version: '3'
34
34
  type: :runtime
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: '2.5'
40
+ version: '3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: hashie
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '2.0'
48
45
  - - "<"
49
46
  - !ruby/object:Gem::Version
50
47
  version: '4.0'
51
- type: :runtime
52
- prerelease: false
53
- version_requirements: !ruby/object:Gem::Requirement
54
- requirements:
55
48
  - - ">="
56
49
  - !ruby/object:Gem::Version
57
50
  version: '2.0'
58
- - - "<"
59
- - !ruby/object:Gem::Version
60
- version: '4.0'
61
- - !ruby/object:Gem::Dependency
62
- name: rdoc
63
- requirement: !ruby/object:Gem::Requirement
64
- requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '4.0'
68
- type: :development
51
+ type: :runtime
69
52
  prerelease: false
70
53
  version_requirements: !ruby/object:Gem::Requirement
71
54
  requirements:
72
- - - "~>"
55
+ - - "<"
73
56
  - !ruby/object:Gem::Version
74
57
  version: '4.0'
75
- - !ruby/object:Gem::Dependency
76
- name: chef
77
- requirement: !ruby/object:Gem::Requirement
78
- requirements:
79
- - - "~>"
80
- - !ruby/object:Gem::Version
81
- version: '12.0'
82
- type: :development
83
- prerelease: false
84
- version_requirements: !ruby/object:Gem::Requirement
85
- requirements:
86
- - - "~>"
58
+ - - ">="
87
59
  - !ruby/object:Gem::Version
88
- version: '12.0'
60
+ version: '2.0'
89
61
  - !ruby/object:Gem::Dependency
90
- name: hoe
62
+ name: rdoc
91
63
  requirement: !ruby/object:Gem::Requirement
92
64
  requirements:
93
- - - "~>"
65
+ - - ">="
94
66
  - !ruby/object:Gem::Version
95
- version: '3.13'
67
+ version: '0'
96
68
  type: :development
97
69
  prerelease: false
98
70
  version_requirements: !ruby/object:Gem::Requirement
99
71
  requirements:
100
- - - "~>"
72
+ - - ">="
101
73
  - !ruby/object:Gem::Version
102
- version: '3.13'
74
+ version: '0'
103
75
  - !ruby/object:Gem::Dependency
104
- name: hoe-gemspec
76
+ name: chef
105
77
  requirement: !ruby/object:Gem::Requirement
106
78
  requirements:
107
- - - "~>"
79
+ - - ">="
108
80
  - !ruby/object:Gem::Version
109
- version: '1.0'
81
+ version: '12.9'
110
82
  type: :development
111
83
  prerelease: false
112
84
  version_requirements: !ruby/object:Gem::Requirement
113
85
  requirements:
114
- - - "~>"
86
+ - - ">="
115
87
  - !ruby/object:Gem::Version
116
- version: '1.0'
88
+ version: '12.9'
117
89
  - !ruby/object:Gem::Dependency
118
90
  name: rake
119
91
  requirement: !ruby/object:Gem::Requirement
120
92
  requirements:
121
93
  - - "~>"
122
94
  - !ruby/object:Gem::Version
123
- version: '10.3'
95
+ version: '11.0'
124
96
  type: :development
125
97
  prerelease: false
126
98
  version_requirements: !ruby/object:Gem::Requirement
127
99
  requirements:
128
100
  - - "~>"
129
101
  - !ruby/object:Gem::Version
130
- version: '10.3'
102
+ version: '11.0'
131
103
  - !ruby/object:Gem::Dependency
132
104
  name: guard
133
105
  requirement: !ruby/object:Gem::Requirement
134
106
  requirements:
135
- - - "~>"
107
+ - - ">="
136
108
  - !ruby/object:Gem::Version
137
- version: '2.12'
109
+ version: '0'
138
110
  type: :development
139
111
  prerelease: false
140
112
  version_requirements: !ruby/object:Gem::Requirement
141
113
  requirements:
142
- - - "~>"
114
+ - - ">="
143
115
  - !ruby/object:Gem::Version
144
- version: '2.12'
116
+ version: '0'
145
117
  - !ruby/object:Gem::Dependency
146
118
  name: guard-rspec
147
119
  requirement: !ruby/object:Gem::Requirement
148
120
  requirements:
149
- - - "~>"
121
+ - - ">="
150
122
  - !ruby/object:Gem::Version
151
- version: '4.2'
123
+ version: '0'
152
124
  type: :development
153
125
  prerelease: false
154
126
  version_requirements: !ruby/object:Gem::Requirement
155
127
  requirements:
156
- - - "~>"
128
+ - - ">="
157
129
  - !ruby/object:Gem::Version
158
- version: '4.2'
130
+ version: '0'
159
131
  - !ruby/object:Gem::Dependency
160
132
  name: guard-rake
161
133
  requirement: !ruby/object:Gem::Requirement
162
134
  requirements:
163
- - - "~>"
135
+ - - ">="
164
136
  - !ruby/object:Gem::Version
165
- version: '0.0'
137
+ version: '0'
166
138
  type: :development
167
139
  prerelease: false
168
140
  version_requirements: !ruby/object:Gem::Requirement
169
141
  requirements:
170
- - - "~>"
142
+ - - ">="
171
143
  - !ruby/object:Gem::Version
172
- version: '0.0'
144
+ version: '0'
173
145
  - !ruby/object:Gem::Dependency
174
146
  name: guard-rubocop
175
147
  requirement: !ruby/object:Gem::Requirement
176
148
  requirements:
177
- - - "~>"
149
+ - - ">="
178
150
  - !ruby/object:Gem::Version
179
- version: '1.2'
151
+ version: '0'
180
152
  type: :development
181
153
  prerelease: false
182
154
  version_requirements: !ruby/object:Gem::Requirement
183
155
  requirements:
184
- - - "~>"
156
+ - - ">="
185
157
  - !ruby/object:Gem::Version
186
- version: '1.2'
158
+ version: '0'
187
159
  - !ruby/object:Gem::Dependency
188
160
  name: chefspec
189
161
  requirement: !ruby/object:Gem::Requirement
190
162
  requirements:
191
- - - "~>"
163
+ - - ">="
192
164
  - !ruby/object:Gem::Version
193
- version: '4.2'
165
+ version: '0'
194
166
  type: :development
195
167
  prerelease: false
196
168
  version_requirements: !ruby/object:Gem::Requirement
197
169
  requirements:
198
- - - "~>"
170
+ - - ">="
199
171
  - !ruby/object:Gem::Version
200
- version: '4.2'
172
+ version: '0'
201
173
  - !ruby/object:Gem::Dependency
202
174
  name: berkshelf
203
175
  requirement: !ruby/object:Gem::Requirement
204
176
  requirements:
205
- - - "~>"
177
+ - - ">="
206
178
  - !ruby/object:Gem::Version
207
- version: '4.0'
179
+ version: '0'
208
180
  type: :development
209
181
  prerelease: false
210
182
  version_requirements: !ruby/object:Gem::Requirement
211
183
  requirements:
212
- - - "~>"
184
+ - - ">="
213
185
  - !ruby/object:Gem::Version
214
- version: '4.0'
186
+ version: '0'
215
187
  - !ruby/object:Gem::Dependency
216
188
  name: simplecov
217
189
  requirement: !ruby/object:Gem::Requirement
218
190
  requirements:
219
- - - "~>"
191
+ - - ">="
220
192
  - !ruby/object:Gem::Version
221
- version: '0.9'
193
+ version: '0'
222
194
  type: :development
223
195
  prerelease: false
224
196
  version_requirements: !ruby/object:Gem::Requirement
225
197
  requirements:
226
- - - "~>"
198
+ - - ">="
227
199
  - !ruby/object:Gem::Version
228
- version: '0.9'
200
+ version: '0'
229
201
  - !ruby/object:Gem::Dependency
230
202
  name: simplecov-console
231
203
  requirement: !ruby/object:Gem::Requirement
232
204
  requirements:
233
- - - "~>"
205
+ - - ">="
234
206
  - !ruby/object:Gem::Version
235
- version: '0.2'
207
+ version: '0'
236
208
  type: :development
237
209
  prerelease: false
238
210
  version_requirements: !ruby/object:Gem::Requirement
239
211
  requirements:
240
- - - "~>"
212
+ - - ">="
241
213
  - !ruby/object:Gem::Version
242
- version: '0.2'
214
+ version: '0'
243
215
  - !ruby/object:Gem::Dependency
244
216
  name: yard
245
217
  requirement: !ruby/object:Gem::Requirement
246
218
  requirements:
247
- - - "~>"
219
+ - - ">="
248
220
  - !ruby/object:Gem::Version
249
- version: '0.8'
221
+ version: '0'
250
222
  type: :development
251
223
  prerelease: false
252
224
  version_requirements: !ruby/object:Gem::Requirement
253
225
  requirements:
254
- - - "~>"
226
+ - - ">="
255
227
  - !ruby/object:Gem::Version
256
- version: '0.8'
257
- description: |-
258
- chef-vault-testfixtures provides an RSpec shared context that
259
- stubs access to chef-vault encrypted data bags using the same
260
- fallback mechanism as the `chef_vault_item` helper from the
261
- [chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)
228
+ version: '0'
229
+ description: chef-vault-testfixtures provides an RSpec shared context that stubs access
230
+ to chef-vault encrypted data bags using the same fallback mechanism as the `chef_vault_item`
231
+ helper from the [chef-vault cookbook](https://supermarket.chef.io/cookbooks/chef-vault)
262
232
  email:
263
- - james.i.fitzgibbon@nordstrom.com
233
+ - thom@chef.io
264
234
  executables: []
265
235
  extensions: []
266
236
  extra_rdoc_files:
267
237
  - History.md
268
- - Manifest.txt
269
238
  - README.md
270
239
  files:
240
+ - ".gitignore"
271
241
  - ".rspec"
272
242
  - ".rubocop.yml"
243
+ - ".travis.yml"
273
244
  - ".yardopts"
245
+ - Berksfile
246
+ - Berksfile.lock
274
247
  - Gemfile
275
248
  - Guardfile
276
249
  - History.md
277
- - Manifest.txt
278
250
  - README.md
279
251
  - Rakefile
252
+ - TODO.md
280
253
  - chef-vault-testfixtures.gemspec
281
254
  - lib/chef-vault/test_fixtures.rb
282
- - lib/hoe/markdown.rb
283
255
  - spec/lib/chef-vault/test_fixtures_spec.rb
256
+ - spec/recipes/test1_default_spec.rb
284
257
  - spec/spec_helper.rb
285
- homepage: https://github.com/Nordstrom/chef-vault-testfixtures
258
+ - test/fixtures/cookbooks/test1/metadata.rb
259
+ - test/fixtures/cookbooks/test1/recipes/default.rb
260
+ - test/integration/data_bags/bar/foo.json
261
+ - test/integration/data_bags/bar/gzonk.json
262
+ - test/integration/data_bags/baz/wibble.json
263
+ - test/integration/data_bags/foo/bar.json
264
+ homepage: https://github.com/chef/chef-vault-testfixtures
286
265
  licenses:
287
266
  - apache2
288
267
  metadata: {}
@@ -296,7 +275,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
296
275
  requirements:
297
276
  - - ">="
298
277
  - !ruby/object:Gem::Version
299
- version: '0'
278
+ version: 2.2.0
300
279
  required_rubygems_version: !ruby/object:Gem::Requirement
301
280
  requirements:
302
281
  - - ">="
@@ -304,7 +283,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
283
  version: '0'
305
284
  requirements: []
306
285
  rubyforge_project:
307
- rubygems_version: 2.4.5.1
286
+ rubygems_version: 2.6.11
308
287
  signing_key:
309
288
  specification_version: 4
310
289
  summary: chef-vault-testfixtures provides an RSpec shared context that stubs access
data/Manifest.txt DELETED
@@ -1,14 +0,0 @@
1
- .rspec
2
- .rubocop.yml
3
- .yardopts
4
- Gemfile
5
- Guardfile
6
- History.md
7
- Manifest.txt
8
- README.md
9
- Rakefile
10
- chef-vault-testfixtures.gemspec
11
- lib/chef-vault/test_fixtures.rb
12
- lib/hoe/markdown.rb
13
- spec/lib/chef-vault/test_fixtures_spec.rb
14
- spec/spec_helper.rb
data/lib/hoe/markdown.rb DELETED
@@ -1,12 +0,0 @@
1
- class Hoe
2
- module Markdown
3
- def initialize_markdown
4
- self.readme_file = readme_file.sub(/\.txt$/, ".md")
5
- self.history_file = history_file.sub(/\.txt$/, ".md")
6
- end
7
-
8
- def define_markdown_tasks
9
- # do nothing
10
- end
11
- end
12
- end