buff-config 1.0.1 → 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: 604c330c124ac44b9709fdc1d1b26b32fdbe72ab
4
- data.tar.gz: 3291fa52af9fd86c75fc7cc3b8c742eac9a10667
3
+ metadata.gz: 8e930711328501c4372d6a3e98ad67674ca0f025
4
+ data.tar.gz: 5c1cd1068bfc9a2561a3afed70626c372393dc60
5
5
  SHA512:
6
- metadata.gz: e51c5e2aca365be77eb2ae6f3ffa1cf7a0831c0b5dd307fd9c9de6c22735d39c5bbb0eae596668ba08aab705406a0d4047b6580330796e7c8af164501e9f061e
7
- data.tar.gz: dc650b64be4ed24e832bd0cae533262d074af35d8a210ca85eaf0ae30127f1a3e25eecff203d245d9c7ef75bea5e37a4067dcdee1e7c890e25931ab027bb814a
6
+ metadata.gz: 3b1635e97bea215a772b194a410153b398ac50f05ed8cebef1d18a0fe3fcd093da205c32c566d656bbecd848ca19b95a9ab47e5473c801097cfe1cd9f23f6a67
7
+ data.tar.gz: 8508fdb99b90db7841148c59e48d0c9b30e11bef28c4ccfb9c6754206e2633b75fbbdb8e47e920971ebcd3f163b8717207c83153194c8ff01dd14175a019d407
data/.rspec ADDED
@@ -0,0 +1,2 @@
1
+ --color
2
+ -fd
@@ -1 +1 @@
1
- 2.0.0-p247
1
+ 2.3.1
@@ -1,7 +1,16 @@
1
- script: "bundle exec thor spec"
2
1
  language: ruby
3
- rvm:
4
- - 1.9.3
5
- - 2.0.0
6
- - 2.1
7
- - jruby-19mode
2
+ cache:
3
+ - bundler
4
+ dist: trusty
5
+ branches:
6
+ only:
7
+ - master
8
+ before_install:
9
+ - gem update --system
10
+ - gem install bundler
11
+ script: "bundle exec thor spec"
12
+ matrix:
13
+ include:
14
+ - rvm: 2.2.5
15
+ - rvm: 2.3.1
16
+ - rvm: ruby-head
data/Thorfile CHANGED
@@ -17,17 +17,17 @@ class Default < Thor
17
17
 
18
18
  desc "build", "Build buff-config-#{Buff::Config::VERSION}.gem into the pkg directory"
19
19
  def build
20
- Rake::Task["build"].execute
20
+ Rake::Task["build"].invoke
21
21
  end
22
22
 
23
23
  desc "install", "Build and install buff-config-#{Buff::Config::VERSION}.gem into system gems"
24
24
  def install
25
- Rake::Task["install"].execute
25
+ Rake::Task["install"].invoke
26
26
  end
27
27
 
28
28
  desc "release", "Create tag v#{Buff::Config::VERSION} and build and push buff-config-#{Buff::Config::VERSION}.gem to Rubygems"
29
29
  def release
30
- Rake::Task["release"].execute
30
+ Rake::Task["release"].invoke
31
31
  end
32
32
  end
33
33
 
@@ -17,14 +17,14 @@ Gem::Specification.new do |spec|
17
17
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
18
  spec.test_files = spec.files.grep(%r{^spec/})
19
19
  spec.require_paths = ["lib"]
20
- spec.required_ruby_version = ">= 1.9.2"
20
+ spec.required_ruby_version = ">= 2.2.0"
21
21
 
22
- spec.add_dependency "varia_model", "~> 0.4"
23
- spec.add_dependency "buff-extensions", "~> 1.0"
22
+ spec.add_dependency "varia_model", "~> 0.6"
23
+ spec.add_dependency "buff-extensions", "~> 2.0"
24
24
 
25
- spec.add_development_dependency "buff-ruby_engine", "~> 0.1"
26
- spec.add_development_dependency "thor", "~> 0.18.0"
27
- spec.add_development_dependency "bundler", "~> 1.3"
25
+ spec.add_development_dependency "buff-ruby_engine"
26
+ spec.add_development_dependency "thor"
27
+ spec.add_development_dependency "bundler"
28
28
  spec.add_development_dependency "rake"
29
29
  spec.add_development_dependency "rspec"
30
30
  spec.add_development_dependency "fuubar"
@@ -1,5 +1,5 @@
1
1
  module Buff
2
2
  module Config
3
- VERSION = "1.0.1"
3
+ VERSION = "2.0.0"
4
4
  end
5
5
  end
@@ -51,7 +51,7 @@ describe Buff::Config::Ruby do
51
51
  describe '::from_file' do
52
52
  let(:filepath) { tmp_path.join('test_config.rb').to_s }
53
53
 
54
- before { File.stub(:read).with(filepath).and_return(ruby) }
54
+ before { allow(File).to receive(:read).with(filepath).and_return(ruby) }
55
55
 
56
56
  it 'returns an instance of the inheriting class' do
57
57
  expect(subject.from_file(filepath)).to be_a(subject)
@@ -62,7 +62,7 @@ describe Buff::Config::Ruby do
62
62
  end
63
63
 
64
64
  context 'given a filepath that does not exist' do
65
- before { File.stub(:read).and_raise(Errno::ENOENT) }
65
+ before { allow(File).to receive(:read).and_raise(Errno::ENOENT) }
66
66
 
67
67
  it 'raises a Buff::Errors::ConfigNotFound error' do
68
68
  expect {
@@ -118,7 +118,7 @@ describe Buff::Config::Ruby do
118
118
  describe '#reload' do
119
119
  before do
120
120
  subject.path = 'foo/bar.rb'
121
- File.stub(:read).and_return(ruby)
121
+ allow(File).to receive(:read).and_return(ruby)
122
122
  end
123
123
 
124
124
  it 'returns self' do
@@ -28,7 +28,7 @@ describe Buff::Config::Base do
28
28
  end
29
29
 
30
30
  it "contains just the sliced elements" do
31
- expect(@sliced).to have(1).item
31
+ expect(@sliced.size).to eq(1)
32
32
  end
33
33
  end
34
34
  end
@@ -13,7 +13,6 @@ def setup_rspec
13
13
  end
14
14
 
15
15
  config.mock_with :rspec
16
- config.treat_symbols_as_metadata_keys_with_true_values = true
17
16
  config.filter_run focus: true
18
17
  config.run_all_when_everything_filtered = true
19
18
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buff-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -9,188 +9,188 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-07-28 00:00:00.000000000 Z
12
+ date: 2016-08-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: varia_model
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ~>
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.4'
20
+ version: '0.6'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ~>
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.4'
27
+ version: '0.6'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: buff-extensions
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ~>
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.0'
34
+ version: '2.0'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ~>
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.0'
41
+ version: '2.0'
42
42
  - !ruby/object:Gem::Dependency
43
43
  name: buff-ruby_engine
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ~>
46
+ - - ">="
47
47
  - !ruby/object:Gem::Version
48
- version: '0.1'
48
+ version: '0'
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ~>
53
+ - - ">="
54
54
  - !ruby/object:Gem::Version
55
- version: '0.1'
55
+ version: '0'
56
56
  - !ruby/object:Gem::Dependency
57
57
  name: thor
58
58
  requirement: !ruby/object:Gem::Requirement
59
59
  requirements:
60
- - - ~>
60
+ - - ">="
61
61
  - !ruby/object:Gem::Version
62
- version: 0.18.0
62
+ version: '0'
63
63
  type: :development
64
64
  prerelease: false
65
65
  version_requirements: !ruby/object:Gem::Requirement
66
66
  requirements:
67
- - - ~>
67
+ - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 0.18.0
69
+ version: '0'
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: bundler
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - ~>
74
+ - - ">="
75
75
  - !ruby/object:Gem::Version
76
- version: '1.3'
76
+ version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ~>
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
- version: '1.3'
83
+ version: '0'
84
84
  - !ruby/object:Gem::Dependency
85
85
  name: rake
86
86
  requirement: !ruby/object:Gem::Requirement
87
87
  requirements:
88
- - - '>='
88
+ - - ">="
89
89
  - !ruby/object:Gem::Version
90
90
  version: '0'
91
91
  type: :development
92
92
  prerelease: false
93
93
  version_requirements: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - '>='
95
+ - - ">="
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0'
98
98
  - !ruby/object:Gem::Dependency
99
99
  name: rspec
100
100
  requirement: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - '>='
102
+ - - ">="
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  type: :development
106
106
  prerelease: false
107
107
  version_requirements: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - '>='
109
+ - - ">="
110
110
  - !ruby/object:Gem::Version
111
111
  version: '0'
112
112
  - !ruby/object:Gem::Dependency
113
113
  name: fuubar
114
114
  requirement: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - '>='
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  type: :development
120
120
  prerelease: false
121
121
  version_requirements: !ruby/object:Gem::Requirement
122
122
  requirements:
123
- - - '>='
123
+ - - ">="
124
124
  - !ruby/object:Gem::Version
125
125
  version: '0'
126
126
  - !ruby/object:Gem::Dependency
127
127
  name: guard
128
128
  requirement: !ruby/object:Gem::Requirement
129
129
  requirements:
130
- - - '>='
130
+ - - ">="
131
131
  - !ruby/object:Gem::Version
132
132
  version: '0'
133
133
  type: :development
134
134
  prerelease: false
135
135
  version_requirements: !ruby/object:Gem::Requirement
136
136
  requirements:
137
- - - '>='
137
+ - - ">="
138
138
  - !ruby/object:Gem::Version
139
139
  version: '0'
140
140
  - !ruby/object:Gem::Dependency
141
141
  name: guard-rspec
142
142
  requirement: !ruby/object:Gem::Requirement
143
143
  requirements:
144
- - - '>='
144
+ - - ">="
145
145
  - !ruby/object:Gem::Version
146
146
  version: '0'
147
147
  type: :development
148
148
  prerelease: false
149
149
  version_requirements: !ruby/object:Gem::Requirement
150
150
  requirements:
151
- - - '>='
151
+ - - ">="
152
152
  - !ruby/object:Gem::Version
153
153
  version: '0'
154
154
  - !ruby/object:Gem::Dependency
155
155
  name: guard-spork
156
156
  requirement: !ruby/object:Gem::Requirement
157
157
  requirements:
158
- - - '>='
158
+ - - ">="
159
159
  - !ruby/object:Gem::Version
160
160
  version: '0'
161
161
  type: :development
162
162
  prerelease: false
163
163
  version_requirements: !ruby/object:Gem::Requirement
164
164
  requirements:
165
- - - '>='
165
+ - - ">="
166
166
  - !ruby/object:Gem::Version
167
167
  version: '0'
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: spork
170
170
  requirement: !ruby/object:Gem::Requirement
171
171
  requirements:
172
- - - '>='
172
+ - - ">="
173
173
  - !ruby/object:Gem::Version
174
174
  version: '0'
175
175
  type: :development
176
176
  prerelease: false
177
177
  version_requirements: !ruby/object:Gem::Requirement
178
178
  requirements:
179
- - - '>='
179
+ - - ">="
180
180
  - !ruby/object:Gem::Version
181
181
  version: '0'
182
182
  - !ruby/object:Gem::Dependency
183
183
  name: json_spec
184
184
  requirement: !ruby/object:Gem::Requirement
185
185
  requirements:
186
- - - '>='
186
+ - - ">="
187
187
  - !ruby/object:Gem::Version
188
188
  version: '0'
189
189
  type: :development
190
190
  prerelease: false
191
191
  version_requirements: !ruby/object:Gem::Requirement
192
192
  requirements:
193
- - - '>='
193
+ - - ">="
194
194
  - !ruby/object:Gem::Version
195
195
  version: '0'
196
196
  description: A simple configuration class
@@ -201,9 +201,10 @@ executables: []
201
201
  extensions: []
202
202
  extra_rdoc_files: []
203
203
  files:
204
- - .gitignore
205
- - .ruby-version
206
- - .travis.yml
204
+ - ".gitignore"
205
+ - ".rspec"
206
+ - ".ruby-version"
207
+ - ".travis.yml"
207
208
  - CONTRIBUTING.md
208
209
  - Gemfile
209
210
  - Guardfile
@@ -231,17 +232,17 @@ require_paths:
231
232
  - lib
232
233
  required_ruby_version: !ruby/object:Gem::Requirement
233
234
  requirements:
234
- - - '>='
235
+ - - ">="
235
236
  - !ruby/object:Gem::Version
236
- version: 1.9.2
237
+ version: 2.2.0
237
238
  required_rubygems_version: !ruby/object:Gem::Requirement
238
239
  requirements:
239
- - - '>='
240
+ - - ">="
240
241
  - !ruby/object:Gem::Version
241
242
  version: '0'
242
243
  requirements: []
243
244
  rubyforge_project:
244
- rubygems_version: 2.0.7
245
+ rubygems_version: 2.5.1
245
246
  signing_key:
246
247
  specification_version: 4
247
248
  summary: A simple configuration class