cheffish 3.0.0 → 3.0.1

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: 2152f8be2d4b845b98f1d69f4ca8ceb17ac8b4d8
4
- data.tar.gz: 7f45b1cebef250683f53f45b9fa9419cfa79117e
3
+ metadata.gz: 23aab5da23af33b7dde2a9492c9ad1aa385fdbe6
4
+ data.tar.gz: f3fc0553f1eecd73c40cef4c6deceb9685192936
5
5
  SHA512:
6
- metadata.gz: 14050a662521eafe35e8ddf0dc229b28005a4a53a4518cf4a26076206d56b1a5ed90ae3070560cd363450053fce5a0007ff50e51bb72b6179e5a4d21ccb6d98d
7
- data.tar.gz: 412c5d1682b9fadb7742a102ac886a89198d181c012752e3fd350e6d5145a9016aded49f48f0d5863985a4f8d19e4bd857482a9895ae688f7a775869d040ac3c
6
+ metadata.gz: d0a690e7e2b33ea065b392c5c5fd276c61e19acbd49a368e4ab8becadce326396b2d3bf3e0d1755499837de2d645cf50519583a4ff8be38e8b9ae528fa6aca50
7
+ data.tar.gz: 78ba6fc34f0391b88b33004913de857d86e6839d9718e214dc9d0c43669dfa5040556f58b826b5d62e3e61d97403ab8da3d8f5cecdb7a64ac52448491d7ab3e8
data/Rakefile CHANGED
@@ -28,9 +28,9 @@ begin
28
28
  GitHubChangelogGenerator::RakeTask.new :changelog do |config|
29
29
  require "cheffish/version"
30
30
  config.future_release = Cheffish::VERSION
31
- config.enhancement_labels = "enhancement,Enhancement,New Feature".split(',')
32
- config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(',')
33
- config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog".split(',')
31
+ config.enhancement_labels = "enhancement,Enhancement,New Feature,Feature".split(",")
32
+ config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(",")
33
+ config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog,Exclude From Changelog,Question,Discussion".split(",")
34
34
  end
35
35
  rescue LoadError
36
36
  end
@@ -14,7 +14,7 @@ module Cheffish
14
14
  raise "Can only create one directory per test" if @repository_dir
15
15
  @repository_dir = Dir.mktmpdir('chef_repo')
16
16
  Chef::Config.chef_repo_path = @repository_dir
17
- %w(client cookbook data_bag data_bag_item environment node role user).each do |object_name|
17
+ %w(client cookbook data_bag environment node role user).each do |object_name|
18
18
  Chef::Config.delete("#{object_name}_path".to_sym)
19
19
  end
20
20
  end
@@ -22,7 +22,7 @@ module Cheffish
22
22
  after :each do
23
23
  if @repository_dir
24
24
  begin
25
- %w(client cookbook data_bag data_bag_item environment node role user).each do |object_name|
25
+ %w(client cookbook data_bag environment node role user).each do |object_name|
26
26
  Chef::Config.delete("#{object_name}_path".to_sym)
27
27
  end
28
28
  Chef::Config.delete(:chef_repo_path)
@@ -48,10 +48,8 @@ module Cheffish
48
48
  FileUtils.mkdir_p(dir) unless dir == '.'
49
49
  File.open(filename, 'w') do |file|
50
50
  raw = case contents
51
- when Hash
51
+ when Hash, Array
52
52
  JSON.pretty_generate(contents)
53
- when Array
54
- contents.join("\n")
55
53
  else
56
54
  contents
57
55
  end
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cheffish
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Keiser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
130
  version: '0'
131
131
  requirements: []
132
132
  rubyforge_project:
133
- rubygems_version: 2.4.8
133
+ rubygems_version: 2.6.6
134
134
  signing_key:
135
135
  specification_version: 4
136
136
  summary: A library to manipulate Chef in Chef.