cheffish 2.0.0 → 2.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: 06975d4c508e765ad2bd0a254a91344cd1e61f00
4
- data.tar.gz: f101d6fe5aa74c19468480c786d27d4f3ac6e3ee
3
+ metadata.gz: 491dd7fe80ce36e6d903c07335aeb6c857c98121
4
+ data.tar.gz: 3cea4e7dbe0a5f2e3b7ac1f56e03f87a41363b57
5
5
  SHA512:
6
- metadata.gz: cfc31b3af5cc86a27a1c8a99db39826a86fff517c0ecb5be97ba872e95a65d533d3b0760b652e725a2fa2e47640d45cc0dab1c0fc0450f20d9f73b366700fcef
7
- data.tar.gz: dbf36a51dbef80937d885d7c48b9765aea6c77bd7142137eaa03e991b23032ff660902b5dea0c2d1cb3a055eeea552880984b7526aa106ba987858808cb4fd9d
6
+ metadata.gz: 11fc063d1458e04d01bf387a5e55e32b416ad096d592755ef55dd1b177ffe1242c0de590dc9545455dad3f81c104cde67927fc0cf1cb66a4c05099188eee13a8
7
+ data.tar.gz: 63edfe9a1aabef68a83141245fa4073e9cbcb133337fe4eaaeb9818c2c91e462930373d563dc873bd2bc3921c9268b79f11a4177ddcf545f53e5751c2993f83e
data/Rakefile CHANGED
@@ -21,3 +21,12 @@ RDoc::Task.new do |rdoc|
21
21
  rdoc.rdoc_files.include('README*')
22
22
  rdoc.rdoc_files.include('lib/**/*.rb')
23
23
  end
24
+
25
+ require 'github_changelog_generator/task'
26
+
27
+ GitHubChangelogGenerator::RakeTask.new :changelog do |config|
28
+ # config.future_release = ChefZero::VERSION
29
+ config.enhancement_labels = "enhancement,Enhancement,New Feature".split(',')
30
+ config.bug_labels = "bug,Bug,Improvement,Upstream Bug".split(',')
31
+ config.exclude_labels = "duplicate,question,invalid,wontfix,no_changelog".split(',')
32
+ end
data/cheffish.gemspec CHANGED
@@ -18,6 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.add_development_dependency 'chef', '~> 12.2'
19
19
  s.add_development_dependency 'rake'
20
20
  s.add_development_dependency 'rspec', '~> 3.0'
21
+ s.add_development_dependency 'github_changelog_generator'
21
22
  s.bindir = "bin"
22
23
  s.executables = %w( )
23
24
 
@@ -0,0 +1,21 @@
1
+ require 'chef_compat/mixin/properties'
2
+ require 'cheffish/array_property'
3
+ require 'cheffish'
4
+
5
+ module Cheffish
6
+ module BaseProperties
7
+ include ChefCompat::Mixin::Properties
8
+
9
+ def initialize(*args)
10
+ super
11
+ chef_server run_context.cheffish.current_chef_server
12
+ end
13
+
14
+ Boolean = property_type(is: [ true, false ])
15
+ ArrayType = ArrayProperty.new
16
+
17
+ property :chef_server, Hash
18
+ property :raw_json, Hash
19
+ property :complete, Boolean
20
+ end
21
+ end
@@ -1,19 +1,9 @@
1
1
  require 'chef_compat/resource'
2
- require 'cheffish/array_property'
2
+ require 'cheffish/base_properties'
3
3
 
4
4
  module Cheffish
5
5
  class BaseResource < ChefCompat::Resource
6
- def initialize(*args)
7
- super
8
- chef_server run_context.cheffish.current_chef_server
9
- end
10
-
11
- Boolean = property_type(is: [ true, false ])
12
- ArrayType = ArrayProperty.new
13
-
14
- property :chef_server, Hash
15
- property :raw_json, Hash
16
- property :complete, Boolean
6
+ include Cheffish::BaseProperties
17
7
 
18
8
  declare_action_class.class_eval do
19
9
  def rest
@@ -1,8 +1,8 @@
1
- require 'chef_compat/mixin/properties'
1
+ require 'cheffish/base_properties'
2
2
 
3
3
  module Cheffish
4
4
  module NodeProperties
5
- include ChefCompat::Mixin::Properties
5
+ include Cheffish::BaseProperties
6
6
 
7
7
  # Grab environment from with_environment
8
8
  def initialize(*args)
@@ -1,3 +1,3 @@
1
1
  module Cheffish
2
- VERSION = '2.0.0'
2
+ VERSION = '2.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: 2.0.0
4
+ version: 2.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-01-28 00:00:00.000000000 Z
11
+ date: 2016-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-zero
@@ -80,6 +80,20 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '3.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: github_changelog_generator
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  description: A library to manipulate Chef in Chef.
84
98
  email: jkeiser@chef.io
85
99
  executables: []
@@ -110,6 +124,7 @@ files:
110
124
  - lib/chef/resource/public_key.rb
111
125
  - lib/cheffish.rb
112
126
  - lib/cheffish/array_property.rb
127
+ - lib/cheffish/base_properties.rb
113
128
  - lib/cheffish/base_resource.rb
114
129
  - lib/cheffish/basic_chef_client.rb
115
130
  - lib/cheffish/chef_actor_base.rb
@@ -170,9 +185,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
185
  version: '0'
171
186
  requirements: []
172
187
  rubyforge_project:
173
- rubygems_version: 2.4.8
188
+ rubygems_version: 2.2.5
174
189
  signing_key:
175
190
  specification_version: 4
176
191
  summary: A library to manipulate Chef in Chef.
177
192
  test_files: []
178
- has_rdoc: