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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d576bd5d791bfa1f3a6119bc0a2da2ba5576d8a
4
- data.tar.gz: 951ed197d25bb581336f69da68d8509baf1f678a
3
+ metadata.gz: 41d8bc6c0ecbe6769abf2fbaeb7c79101eb7dc1b
4
+ data.tar.gz: 5ca0ecb5f7ba581eeb4e9fbff9677e3fc19b449a
5
5
  SHA512:
6
- metadata.gz: 8504c7fc94657dcff042bdc86458099fb30a30e9d9b279c145df1f443aa7286a37474b4f7a00211b56199759a336dcc016f14e22a96c241d940ea891d4359693
7
- data.tar.gz: 6f3a76458636021f386cb1d47b939f1864bf8e43d76a6a23b160803ade0f52ef956430bd0ef0f1afd3eec2f6624af69e0ba478dd681f051f996715c38beeca9a
6
+ metadata.gz: f9fd20c6488ceebac425c6f6e326209edc1e834af8d05a750a42ac42bb4788f77855c00936a745e4f1857aa8f747058078e8ea79a78a4313e7d2a722af0f0dc9
7
+ data.tar.gz: 074a33d4bebce2fb0528a0f498e4b0da2bf785fabac835ab739b0b0d440210146be57a29c93ca9117a70cc5fcb0d0e24cb481faf863763ad67fb310a9ed0f1e0
@@ -2,7 +2,7 @@ Stove CHANGELOG
2
2
  ===============
3
3
  This is the Changelog for the Stove gem.
4
4
 
5
- v2.0.0 (unreleased)
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 log4r
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](https://badge.fury.io/rb/stove.png)](http://badge.fury.io/rb/stove)
4
- [![Build Status](https://travis-ci.org/sethvargo/stove.png?branch=master)](https://travis-ci.org/sethvargo/stove)
5
- [![Dependency Status](https://gemnasium.com/sethvargo/stove.png)](https://gemnasium.com/sethvargo/stove)
6
- [![Code Climate](https://codeclimate.com/github/sethvargo/stove.png)](https://codeclimate.com/github/sethvargo/stove)
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
 
@@ -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
- # The current log level for the entire application.
78
+ # Set the log level.
82
79
  #
83
- # @return [Integer]
80
+ # @example Set the log level to :info
81
+ # ChefAPI.log_level = :info
84
82
  #
85
- def log_level
86
- Log4r::Logger.global.level
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
- # Set the global log level.
91
+ # Get the current log level.
91
92
  #
92
- # @example Set the log level to warn
93
- # Stove.log_level = :warn
93
+ # @return [Symbol]
94
94
  #
95
- # @param [String, Symbol] id
96
- # the log level to set
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
@@ -1,6 +1,6 @@
1
1
  module Stove
2
2
  class Action::Base
3
- extend Mixin::Loggable
3
+ include Logify
4
4
  extend Mixin::Optionable
5
5
  extend Mixin::Validatable
6
6
 
@@ -3,7 +3,7 @@ require 'stove'
3
3
 
4
4
  module Stove
5
5
  class Cli
6
- include Mixin::Loggable
6
+ include Logify
7
7
 
8
8
  def initialize(argv, stdin=STDIN, stdout=STDOUT, stderr=STDERR, kernel=Kernel)
9
9
  @argv, @stdin, @stdout, @stderr, @kernel = argv, stdin, stdout, stderr, kernel
@@ -4,8 +4,8 @@ require 'faraday_middleware'
4
4
  module Stove
5
5
  class Community
6
6
  include Mixin::Instanceable
7
- include Mixin::Loggable
8
7
  include Mixin::Optionable
8
+ include Logify
9
9
 
10
10
  option :base_url,
11
11
  ENV['COMMUNITY_URL'] || 'https://cookbooks.opscode.com/api/v1'
@@ -3,7 +3,7 @@ require 'json'
3
3
  module Stove
4
4
  class Config
5
5
  include Mixin::Instanceable
6
- include Mixin::Loggable
6
+ include Logify
7
7
 
8
8
  #
9
9
  # Create a new configuration object. If a configuration file does not
@@ -4,7 +4,7 @@ require 'time'
4
4
 
5
5
  module Stove
6
6
  class Cookbook
7
- include Mixin::Loggable
7
+ include Logify
8
8
 
9
9
  require_relative 'cookbook/metadata'
10
10
 
@@ -1,7 +1,7 @@
1
1
  module Stove
2
2
  class Filter
3
3
  include Mixin::Insideable
4
- include Mixin::Loggable
4
+ include Logify
5
5
 
6
6
  #
7
7
  # The class that created this filter.
@@ -4,7 +4,7 @@ require 'faraday_middleware'
4
4
  module Stove
5
5
  class JIRA
6
6
  include Mixin::Instanceable
7
- include Mixin::Loggable
7
+ include Logify
8
8
  include Mixin::Optionable
9
9
 
10
10
  option :base_url,
@@ -1,6 +1,6 @@
1
1
  module Stove
2
2
  class Middleware::Exceptions < Faraday::Middleware
3
- include Mixin::Loggable
3
+ include Logify
4
4
 
5
5
  def call(env)
6
6
  begin
@@ -1,7 +1,7 @@
1
1
  module Stove
2
2
  class Plugin::Base
3
3
  extend Mixin::Filterable
4
- extend Mixin::Loggable
4
+ include Logify
5
5
  extend Mixin::Optionable
6
6
  extend Mixin::Validatable
7
7
 
@@ -7,7 +7,7 @@ require 'stove'
7
7
  #
8
8
  module Stove
9
9
  class RakeTask < Rake::TaskLib
10
- include Mixin::Loggable
10
+ include Logify
11
11
 
12
12
  class << self
13
13
  #
@@ -1,7 +1,7 @@
1
1
  module Stove
2
2
  class Runner
3
3
  include Mixin::Instanceable
4
- include Mixin::Loggable
4
+ include Logify
5
5
  include Mixin::Optionable
6
6
 
7
7
  class << self
@@ -1,7 +1,7 @@
1
1
  module Stove
2
2
  class Validator
3
3
  include Mixin::Insideable
4
- include Mixin::Loggable
4
+ include Logify
5
5
 
6
6
  #
7
7
  # The class that created this validator.
@@ -1,3 +1,3 @@
1
1
  module Stove
2
- VERSION = '2.0.0.beta.2'
2
+ VERSION = '2.0.0'
3
3
  end
@@ -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
- # Because log4r doesn't know the meaning of fucking NON-BREAKING bug fixes
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', '~> 2.7'
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.beta.2
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-01-28 00:00:00.000000000 Z
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: log4r
56
+ name: logify
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ~>
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '1.1'
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: 1.1.11
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: '2.7'
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: '2.7'
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: 1.3.1
282
+ version: '0'
290
283
  requirements: []
291
284
  rubyforge_project:
292
- rubygems_version: 2.2.1
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