stove 2.0.0.beta.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +2 -3
- data/README.md +11 -4
- data/lib/stove.rb +13 -21
- data/lib/stove/actions/base.rb +1 -1
- data/lib/stove/cli.rb +1 -1
- data/lib/stove/community.rb +1 -1
- data/lib/stove/config.rb +1 -1
- data/lib/stove/cookbook.rb +1 -1
- data/lib/stove/filter.rb +1 -1
- data/lib/stove/jira.rb +1 -1
- data/lib/stove/middlewares/exceptions.rb +1 -1
- data/lib/stove/plugins/base.rb +1 -1
- data/lib/stove/rake_task.rb +1 -1
- data/lib/stove/runner.rb +1 -1
- data/lib/stove/validator.rb +1 -1
- data/lib/stove/version.rb +1 -1
- data/stove.gemspec +2 -4
- metadata +39 -46
- data/lib/stove/mixins/loggable.rb +0 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41d8bc6c0ecbe6769abf2fbaeb7c79101eb7dc1b
|
4
|
+
data.tar.gz: 5ca0ecb5f7ba581eeb4e9fbff9677e3fc19b449a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9fd20c6488ceebac425c6f6e326209edc1e834af8d05a750a42ac42bb4788f77855c00936a745e4f1857aa8f747058078e8ea79a78a4313e7d2a722af0f0dc9
|
7
|
+
data.tar.gz: 074a33d4bebce2fb0528a0f498e4b0da2bf785fabac835ab739b0b0d440210146be57a29c93ca9117a70cc5fcb0d0e24cb481faf863763ad67fb310a9ed0f1e0
|
data/CHANGELOG.md
CHANGED
@@ -2,7 +2,7 @@ Stove CHANGELOG
|
|
2
2
|
===============
|
3
3
|
This is the Changelog for the Stove gem.
|
4
4
|
|
5
|
-
v2.0.0 (
|
5
|
+
v2.0.0 (2014-04-04)
|
6
6
|
-------------------
|
7
7
|
- Completely refactor the runner for speed optimizations
|
8
8
|
- Introduce a new configuration file format
|
@@ -12,13 +12,12 @@ v2.0.0 (unreleased)
|
|
12
12
|
- Improve help output by grouping options
|
13
13
|
- Trap Signal interrupts cleanly
|
14
14
|
- Remove formatters
|
15
|
-
- Switch to
|
15
|
+
- Switch to logify
|
16
16
|
- Introduce significantly more logging and log levels
|
17
17
|
- Remove HTTParty & Jiralicious in favor or Faraday
|
18
18
|
- Improve rake task to automatically perfom a minor bump when no version if given
|
19
19
|
- Persist data across the cookbook object
|
20
20
|
- Use singleton classes to save memory and loadtime
|
21
|
-
- Force a non-broken version of log4r
|
22
21
|
|
23
22
|
v1.1.0
|
24
23
|
------
|
data/README.md
CHANGED
@@ -1,9 +1,16 @@
|
|
1
1
|
Stove
|
2
2
|
=====
|
3
|
-
[![Gem Version](
|
4
|
-
[![Build Status](
|
5
|
-
[![Dependency Status](
|
6
|
-
[![Code Climate](
|
3
|
+
[![Gem Version](http://img.shields.io/gem/v/stove.svg)][gem]
|
4
|
+
[![Build Status](http://img.shields.io/travis/sethvargo/stove.svg)][travis]
|
5
|
+
[![Dependency Status](http://img.shields.io/gemnasium/sethvargo/stove.svg)][gemnasium]
|
6
|
+
[![Code Climate](http://img.shields.io/codeclimate/github/sethvargo/stove.svg)][codeclimate]
|
7
|
+
[![Gittip](http://img.shields.io/gittip/sethvargo.svg)][gittip]
|
8
|
+
|
9
|
+
[gem]: https://rubygems.org/gems/stove
|
10
|
+
[travis]: http://travis-ci.org/sethvargo/stove
|
11
|
+
[gemnasium]: https://gemnasium.com/sethvargo/stove
|
12
|
+
[codeclimate]: https://codeclimate.com/github/sethvargo/stove
|
13
|
+
[gittip]: https://www.gittip.com/sethvargo
|
7
14
|
|
8
15
|
A utility for releasing and managing Chef Cookbooks. It will:
|
9
16
|
|
data/lib/stove.rb
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
+
require 'logify'
|
1
2
|
require 'pathname'
|
2
3
|
|
3
|
-
require 'log4r'
|
4
|
-
Log4r.define_levels(*Log4r::Log4rConfig::LogLevels)
|
5
|
-
|
6
4
|
module Stove
|
7
5
|
autoload :Config, 'stove/config'
|
8
6
|
autoload :Community, 'stove/community'
|
@@ -37,7 +35,6 @@ module Stove
|
|
37
35
|
autoload :Filterable, 'stove/mixins/filterable'
|
38
36
|
autoload :Insideable, 'stove/mixins/insideable'
|
39
37
|
autoload :Instanceable, 'stove/mixins/instanceable'
|
40
|
-
autoload :Loggable, 'stove/mixins/loggable'
|
41
38
|
autoload :Optionable, 'stove/mixins/optionable'
|
42
39
|
autoload :Validatable, 'stove/mixins/validatable'
|
43
40
|
end
|
@@ -78,30 +75,25 @@ module Stove
|
|
78
75
|
end
|
79
76
|
|
80
77
|
#
|
81
|
-
#
|
78
|
+
# Set the log level.
|
82
79
|
#
|
83
|
-
# @
|
80
|
+
# @example Set the log level to :info
|
81
|
+
# ChefAPI.log_level = :info
|
84
82
|
#
|
85
|
-
|
86
|
-
|
83
|
+
# @param [Symbol] level
|
84
|
+
# the log level to set
|
85
|
+
#
|
86
|
+
def log_level=(level)
|
87
|
+
Logify.level = level
|
87
88
|
end
|
88
89
|
|
89
90
|
#
|
90
|
-
#
|
91
|
+
# Get the current log level.
|
91
92
|
#
|
92
|
-
# @
|
93
|
-
# Stove.log_level = :warn
|
93
|
+
# @return [Symbol]
|
94
94
|
#
|
95
|
-
|
96
|
-
|
97
|
-
#
|
98
|
-
def log_level=(id)
|
99
|
-
level = Log4r.const_get(id.to_s.upcase)
|
100
|
-
raise NameError unless level.is_a?(Integer)
|
101
|
-
|
102
|
-
Log4r::Logger.global.level = level
|
103
|
-
rescue NameError
|
104
|
-
$stderr.puts "ERROR `#{id}' is not a valid Log Level!"
|
95
|
+
def log_level
|
96
|
+
Logify.level
|
105
97
|
end
|
106
98
|
end
|
107
99
|
end
|
data/lib/stove/actions/base.rb
CHANGED
data/lib/stove/cli.rb
CHANGED
data/lib/stove/community.rb
CHANGED
data/lib/stove/config.rb
CHANGED
data/lib/stove/cookbook.rb
CHANGED
data/lib/stove/filter.rb
CHANGED
data/lib/stove/jira.rb
CHANGED
data/lib/stove/plugins/base.rb
CHANGED
data/lib/stove/rake_task.rb
CHANGED
data/lib/stove/runner.rb
CHANGED
data/lib/stove/validator.rb
CHANGED
data/lib/stove/version.rb
CHANGED
data/stove.gemspec
CHANGED
@@ -23,12 +23,10 @@ Gem::Specification.new do |spec|
|
|
23
23
|
spec.add_dependency 'faraday_middleware', '~> 0.9.0'
|
24
24
|
spec.add_dependency 'i18n', '~> 0.6'
|
25
25
|
|
26
|
-
|
27
|
-
# in patch releases.
|
28
|
-
spec.add_dependency 'log4r', '~> 1.1', '< 1.1.11'
|
26
|
+
spec.add_dependency 'logify', '~> 0.2'
|
29
27
|
spec.add_dependency 'minitar', '~> 0.5'
|
30
28
|
spec.add_dependency 'mixlib-authentication', '~> 1.3'
|
31
|
-
spec.add_dependency 'octokit', '~>
|
29
|
+
spec.add_dependency 'octokit', '~> 3.0'
|
32
30
|
spec.add_dependency 'solve', '~> 0.8'
|
33
31
|
|
34
32
|
spec.add_development_dependency 'aruba', '~> 0.5'
|
metadata
CHANGED
@@ -1,201 +1,195 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.0
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Seth Vargo
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 0.8.9
|
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
26
|
version: 0.8.9
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: faraday_middleware
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 0.9.0
|
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
40
|
version: 0.9.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: i18n
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0.6'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.6'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: logify
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
- - <
|
63
|
-
- !ruby/object:Gem::Version
|
64
|
-
version: 1.1.11
|
61
|
+
version: '0.2'
|
65
62
|
type: :runtime
|
66
63
|
prerelease: false
|
67
64
|
version_requirements: !ruby/object:Gem::Requirement
|
68
65
|
requirements:
|
69
|
-
- - ~>
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '1.1'
|
72
|
-
- - <
|
66
|
+
- - "~>"
|
73
67
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
68
|
+
version: '0.2'
|
75
69
|
- !ruby/object:Gem::Dependency
|
76
70
|
name: minitar
|
77
71
|
requirement: !ruby/object:Gem::Requirement
|
78
72
|
requirements:
|
79
|
-
- - ~>
|
73
|
+
- - "~>"
|
80
74
|
- !ruby/object:Gem::Version
|
81
75
|
version: '0.5'
|
82
76
|
type: :runtime
|
83
77
|
prerelease: false
|
84
78
|
version_requirements: !ruby/object:Gem::Requirement
|
85
79
|
requirements:
|
86
|
-
- - ~>
|
80
|
+
- - "~>"
|
87
81
|
- !ruby/object:Gem::Version
|
88
82
|
version: '0.5'
|
89
83
|
- !ruby/object:Gem::Dependency
|
90
84
|
name: mixlib-authentication
|
91
85
|
requirement: !ruby/object:Gem::Requirement
|
92
86
|
requirements:
|
93
|
-
- - ~>
|
87
|
+
- - "~>"
|
94
88
|
- !ruby/object:Gem::Version
|
95
89
|
version: '1.3'
|
96
90
|
type: :runtime
|
97
91
|
prerelease: false
|
98
92
|
version_requirements: !ruby/object:Gem::Requirement
|
99
93
|
requirements:
|
100
|
-
- - ~>
|
94
|
+
- - "~>"
|
101
95
|
- !ruby/object:Gem::Version
|
102
96
|
version: '1.3'
|
103
97
|
- !ruby/object:Gem::Dependency
|
104
98
|
name: octokit
|
105
99
|
requirement: !ruby/object:Gem::Requirement
|
106
100
|
requirements:
|
107
|
-
- - ~>
|
101
|
+
- - "~>"
|
108
102
|
- !ruby/object:Gem::Version
|
109
|
-
version: '
|
103
|
+
version: '3.0'
|
110
104
|
type: :runtime
|
111
105
|
prerelease: false
|
112
106
|
version_requirements: !ruby/object:Gem::Requirement
|
113
107
|
requirements:
|
114
|
-
- - ~>
|
108
|
+
- - "~>"
|
115
109
|
- !ruby/object:Gem::Version
|
116
|
-
version: '
|
110
|
+
version: '3.0'
|
117
111
|
- !ruby/object:Gem::Dependency
|
118
112
|
name: solve
|
119
113
|
requirement: !ruby/object:Gem::Requirement
|
120
114
|
requirements:
|
121
|
-
- - ~>
|
115
|
+
- - "~>"
|
122
116
|
- !ruby/object:Gem::Version
|
123
117
|
version: '0.8'
|
124
118
|
type: :runtime
|
125
119
|
prerelease: false
|
126
120
|
version_requirements: !ruby/object:Gem::Requirement
|
127
121
|
requirements:
|
128
|
-
- - ~>
|
122
|
+
- - "~>"
|
129
123
|
- !ruby/object:Gem::Version
|
130
124
|
version: '0.8'
|
131
125
|
- !ruby/object:Gem::Dependency
|
132
126
|
name: aruba
|
133
127
|
requirement: !ruby/object:Gem::Requirement
|
134
128
|
requirements:
|
135
|
-
- - ~>
|
129
|
+
- - "~>"
|
136
130
|
- !ruby/object:Gem::Version
|
137
131
|
version: '0.5'
|
138
132
|
type: :development
|
139
133
|
prerelease: false
|
140
134
|
version_requirements: !ruby/object:Gem::Requirement
|
141
135
|
requirements:
|
142
|
-
- - ~>
|
136
|
+
- - "~>"
|
143
137
|
- !ruby/object:Gem::Version
|
144
138
|
version: '0.5'
|
145
139
|
- !ruby/object:Gem::Dependency
|
146
140
|
name: bundler
|
147
141
|
requirement: !ruby/object:Gem::Requirement
|
148
142
|
requirements:
|
149
|
-
- - ~>
|
143
|
+
- - "~>"
|
150
144
|
- !ruby/object:Gem::Version
|
151
145
|
version: '1.3'
|
152
146
|
type: :development
|
153
147
|
prerelease: false
|
154
148
|
version_requirements: !ruby/object:Gem::Requirement
|
155
149
|
requirements:
|
156
|
-
- - ~>
|
150
|
+
- - "~>"
|
157
151
|
- !ruby/object:Gem::Version
|
158
152
|
version: '1.3'
|
159
153
|
- !ruby/object:Gem::Dependency
|
160
154
|
name: community-zero
|
161
155
|
requirement: !ruby/object:Gem::Requirement
|
162
156
|
requirements:
|
163
|
-
- - ~>
|
157
|
+
- - "~>"
|
164
158
|
- !ruby/object:Gem::Version
|
165
159
|
version: '2.0'
|
166
160
|
type: :development
|
167
161
|
prerelease: false
|
168
162
|
version_requirements: !ruby/object:Gem::Requirement
|
169
163
|
requirements:
|
170
|
-
- - ~>
|
164
|
+
- - "~>"
|
171
165
|
- !ruby/object:Gem::Version
|
172
166
|
version: '2.0'
|
173
167
|
- !ruby/object:Gem::Dependency
|
174
168
|
name: rake
|
175
169
|
requirement: !ruby/object:Gem::Requirement
|
176
170
|
requirements:
|
177
|
-
- -
|
171
|
+
- - ">="
|
178
172
|
- !ruby/object:Gem::Version
|
179
173
|
version: '0'
|
180
174
|
type: :development
|
181
175
|
prerelease: false
|
182
176
|
version_requirements: !ruby/object:Gem::Requirement
|
183
177
|
requirements:
|
184
|
-
- -
|
178
|
+
- - ">="
|
185
179
|
- !ruby/object:Gem::Version
|
186
180
|
version: '0'
|
187
181
|
- !ruby/object:Gem::Dependency
|
188
182
|
name: rspec
|
189
183
|
requirement: !ruby/object:Gem::Requirement
|
190
184
|
requirements:
|
191
|
-
- - ~>
|
185
|
+
- - "~>"
|
192
186
|
- !ruby/object:Gem::Version
|
193
187
|
version: '2.14'
|
194
188
|
type: :development
|
195
189
|
prerelease: false
|
196
190
|
version_requirements: !ruby/object:Gem::Requirement
|
197
191
|
requirements:
|
198
|
-
- - ~>
|
192
|
+
- - "~>"
|
199
193
|
- !ruby/object:Gem::Version
|
200
194
|
version: '2.14'
|
201
195
|
description: A simple gem for packaging, releasing, and sanity-checking a community
|
@@ -207,8 +201,8 @@ executables:
|
|
207
201
|
extensions: []
|
208
202
|
extra_rdoc_files: []
|
209
203
|
files:
|
210
|
-
- .gitignore
|
211
|
-
- .travis.yml
|
204
|
+
- ".gitignore"
|
205
|
+
- ".travis.yml"
|
212
206
|
- CHANGELOG.md
|
213
207
|
- Gemfile
|
214
208
|
- LICENSE
|
@@ -253,7 +247,6 @@ files:
|
|
253
247
|
- lib/stove/mixins/filterable.rb
|
254
248
|
- lib/stove/mixins/insideable.rb
|
255
249
|
- lib/stove/mixins/instanceable.rb
|
256
|
-
- lib/stove/mixins/loggable.rb
|
257
250
|
- lib/stove/mixins/optionable.rb
|
258
251
|
- lib/stove/mixins/validatable.rb
|
259
252
|
- lib/stove/packager.rb
|
@@ -279,17 +272,17 @@ require_paths:
|
|
279
272
|
- lib
|
280
273
|
required_ruby_version: !ruby/object:Gem::Requirement
|
281
274
|
requirements:
|
282
|
-
- -
|
275
|
+
- - ">="
|
283
276
|
- !ruby/object:Gem::Version
|
284
277
|
version: '0'
|
285
278
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
286
279
|
requirements:
|
287
|
-
- -
|
280
|
+
- - ">="
|
288
281
|
- !ruby/object:Gem::Version
|
289
|
-
version:
|
282
|
+
version: '0'
|
290
283
|
requirements: []
|
291
284
|
rubyforge_project:
|
292
|
-
rubygems_version: 2.2.
|
285
|
+
rubygems_version: 2.2.2
|
293
286
|
signing_key:
|
294
287
|
specification_version: 4
|
295
288
|
summary: A simple gem for packaging, releasing, and sanity-checking an Opscode community
|
@@ -1,32 +0,0 @@
|
|
1
|
-
require 'log4r'
|
2
|
-
|
3
|
-
module Stove
|
4
|
-
module Mixin::Loggable
|
5
|
-
def self.extended(base)
|
6
|
-
base.send(:include, InstanceMethods)
|
7
|
-
base.send(:extend, ClassMethods)
|
8
|
-
end
|
9
|
-
|
10
|
-
def self.included(base)
|
11
|
-
base.send(:include, InstanceMethods)
|
12
|
-
base.send(:extend, ClassMethods)
|
13
|
-
end
|
14
|
-
|
15
|
-
module ClassMethods
|
16
|
-
def log
|
17
|
-
return @log if @log
|
18
|
-
|
19
|
-
@log = Log4r::Logger.new(self.name)
|
20
|
-
@log.outputters = Log4r::Outputter.stdout
|
21
|
-
@log.level = 1
|
22
|
-
@log
|
23
|
-
end
|
24
|
-
end
|
25
|
-
|
26
|
-
module InstanceMethods
|
27
|
-
def log
|
28
|
-
self.class.log
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|