stove 3.2.7 → 3.2.8

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: e408d2205fca9b0b14a446ae29746f36b39b9411
4
- data.tar.gz: 4c3f9baa7f8de64aa63b484264db3aed57cdf7b4
3
+ metadata.gz: d1321201c0ae5405d1c8a7a2ff1fce2e5d9a8777
4
+ data.tar.gz: 91c2389af99096b58e475e04336fd9e167db1daa
5
5
  SHA512:
6
- metadata.gz: 108c86f18357afa93cdcb735f8dbc2a8fa688a4d2fe44aff21132469862e667b424eb4a7586b89d22d47602853d52b9ebbf616743e4e116df0e75ce8a58a3a3b
7
- data.tar.gz: db000dddde6faf57a6073c23d3322c6c800565bbab6a60ac4166c13b56453fb95a708096f50992a34734b66e3a11be3a355ce4da2878a8ecd51413c54d0981c9
6
+ metadata.gz: e49d40340be589603949541d819dd0c69eaf3112b38c33f96da174a18fdc3fc0c4e02b7ede71364b923c25d530b2d9b6f7062e074984da2a3ad8a180d6034f17
7
+ data.tar.gz: 2d3558666277963543bfc65ceabe70765fabcd52edcf2c8fedc0db1ceea570f0005cde5c1751a65b870ec274ada11a4669871cf04969dc5f5a78a630a5bbec5f
data/.travis.yml CHANGED
@@ -1,3 +1,7 @@
1
+ language: ruby
2
+ cache: bundler
3
+ sudo: false
4
+
1
5
  rvm:
2
6
  - 1.9.3
3
7
  - 2.0.0
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@ Stove CHANGELOG
2
2
  ===============
3
3
  This is the Changelog for the Stove gem.
4
4
 
5
+ v3.2.8 (2015-11-19)
6
+ -------------------
7
+ - Add endpoint config to the .stove config file for users of private Supermarkets
8
+ - Add option --no-ssl-verify to skip SSL verification
9
+ - Add chef_version and ohai_version metadata when extended-metadata is enabled
10
+ - Add CONTRIBUTING.md, MAINTAINERS.md and .foodcritic to the file whitelist
11
+
5
12
  v3.2.7 (2015-04-16)
6
13
  -------------------
7
14
  - Use chef.io instead of getchef.com
data/lib/stove/cli.rb CHANGED
@@ -27,6 +27,7 @@ module Stove
27
27
 
28
28
  Config.username = options[:username]
29
29
  Config.key = options[:key]
30
+ Config.endpoint = options[:endpoint] unless options[:endpoint].nil?
30
31
  Config.save
31
32
 
32
33
  @stdout.puts "Successfully saved config to `#{Config.__path__}'!"
@@ -35,9 +36,10 @@ module Stove
35
36
  end
36
37
 
37
38
  # Override configs
38
- Config.endpoint = options[:endpoint] if options[:endpoint]
39
- Config.username = options[:username] if options[:username]
40
- Config.key = options[:key] if options[:key]
39
+ Config.endpoint = options[:endpoint] if options[:endpoint]
40
+ Config.username = options[:username] if options[:username]
41
+ Config.key = options[:key] if options[:key]
42
+ Config.ssl_verify = options[:ssl_verify]
41
43
 
42
44
  # Set the log level
43
45
  Stove.log_level = options[:log_level]
@@ -120,6 +122,10 @@ module Stove
120
122
  options[:extended_metadata] = true
121
123
  end
122
124
 
125
+ opts.on('--no-ssl-verify', 'Turn off ssl verify') do
126
+ options[:ssl_verify] = false
127
+ end
128
+
123
129
  opts.separator ''
124
130
  opts.separator 'Git Options:'
125
131
 
@@ -169,6 +175,7 @@ module Stove
169
175
  :username => Config.username,
170
176
  :key => Config.key,
171
177
  :extended_metadata => false,
178
+ :ssl_verify => true,
172
179
 
173
180
  # Git options
174
181
  :remote => 'origin',
@@ -86,9 +86,10 @@ module Stove
86
86
  #
87
87
  def connection
88
88
  @connection ||= ChefAPI::Connection.new do |conn|
89
- conn.endpoint = ENV['STOVE_ENDPOINT'] || Config.endpoint || DEFAULT_ENDPOINT
90
- conn.client = ENV['STOVE_USERNAME'] || Config.username
91
- conn.key = ENV['STOVE_KEY'] || Config.key
89
+ conn.endpoint = ENV['STOVE_ENDPOINT'] || Config.endpoint || DEFAULT_ENDPOINT
90
+ conn.client = ENV['STOVE_USERNAME'] || Config.username
91
+ conn.key = ENV['STOVE_KEY'] || Config.key
92
+ conn.ssl_verify = ENV['STOVE_NO_SSL_VERIFY'] || Config.ssl_verify
92
93
  end
93
94
  end
94
95
  end
@@ -77,6 +77,8 @@ module Stove
77
77
  # these attributes are here.
78
78
  def_attribute :source_url
79
79
  def_attribute :issues_url
80
+ def_attribute :chef_version
81
+ def_attribute :ohai_version
80
82
 
81
83
  def_meta_cookbook :supports, :platforms
82
84
  def_meta_cookbook :depends, :dependencies
@@ -109,6 +111,8 @@ module Stove
109
111
  @long_description = ''
110
112
  @source_url = Stove::Mash.new
111
113
  @issues_url = Stove::Mash.new
114
+ @chef_version = Stove::Mash.new
115
+ @ohai_version = Stove::Mash.new
112
116
  @platforms = Stove::Mash.new
113
117
  @dependencies = Stove::Mash.new
114
118
  @recommendations = Stove::Mash.new
@@ -183,8 +187,10 @@ module Stove
183
187
  }
184
188
 
185
189
  if extended_metadata
186
- hash['source_url'] = self.source_url
187
- hash['issues_url'] = self.issues_url
190
+ hash['source_url'] = self.source_url
191
+ hash['issues_url'] = self.issues_url
192
+ hash['chef_version'] = self.chef_version
193
+ hash['ohai_version'] = self.ohai_version
188
194
  end
189
195
 
190
196
  return hash
@@ -8,16 +8,19 @@ module Stove
8
8
  include Logify
9
9
 
10
10
  ACCEPTABLE_FILES = [
11
+ '.foodcritic',
11
12
  'README.*',
12
13
  'CHANGELOG.*',
14
+ 'CONTRIBUTING.md',
15
+ 'MAINTAINERS.md',
13
16
  'metadata.json',
14
17
  'attributes/*.rb',
15
18
  'definitions/*.rb',
16
19
  'files/**/*',
17
- 'libraries/*.rb',
18
- 'providers/*.rb',
20
+ 'libraries/**/*.rb',
21
+ 'providers/**/*.rb',
19
22
  'recipes/*.rb',
20
- 'resources/*.rb',
23
+ 'resources/**/*.rb',
21
24
  'templates/**/*',
22
25
  ].freeze
23
26
 
data/lib/stove/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Stove
2
- VERSION = '3.2.7'
2
+ VERSION = '3.2.8'
3
3
  end
@@ -16,6 +16,7 @@ module Stove
16
16
  end
17
17
 
18
18
  expect(structure).to eq(%w(
19
+ basic/.foodcritic
19
20
  basic/CHANGELOG.md
20
21
  basic/README.md
21
22
  basic/attributes/default.rb
@@ -20,6 +20,11 @@ module Stove
20
20
  FileUtils.mkdir_p(root.join('templates', 'default'))
21
21
 
22
22
  # Files
23
+ File.open(root.join('.foodcritic'), 'wb') do |f|
24
+ f.write <<-EOH.gsub(/^ {11}/, '')
25
+ ~FC031 ~FC045
26
+ EOH
27
+ end
23
28
  File.open(root.join('metadata.rb'), 'wb') do |f|
24
29
  f.write <<-EOH.gsub(/^ {11}/, '')
25
30
  name '#{cookbook_name}'
data/stove.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
24
24
  spec.add_dependency 'chef-api', '~> 0.5'
25
25
  spec.add_dependency 'logify', '~> 0.2'
26
26
 
27
- spec.add_development_dependency 'aruba', '~> 0.6'
27
+ spec.add_development_dependency 'aruba', '~> 0.6.0'
28
28
  spec.add_development_dependency 'bundler', '~> 1.6'
29
29
  spec.add_development_dependency 'community-zero', '~> 2.0'
30
30
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stove
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.7
4
+ version: 3.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Seth Vargo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-16 00:00:00.000000000 Z
11
+ date: 2015-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chef-api
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.6'
47
+ version: 0.6.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: '0.6'
54
+ version: 0.6.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  requirements: []
196
196
  rubyforge_project:
197
- rubygems_version: 2.2.3
197
+ rubygems_version: 2.4.5.1
198
198
  signing_key:
199
199
  specification_version: 4
200
200
  summary: A command-line utility for releasing Chef community cookbooks
@@ -214,3 +214,4 @@ test_files:
214
214
  - spec/support/generators.rb
215
215
  - spec/unit/cookbook/metadata_spec.rb
216
216
  - spec/unit/error_spec.rb
217
+ has_rdoc: