sniff 0.8.5 → 0.8.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/sniff.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  require 'data_miner'
2
- require 'create_table'
2
+ require 'force_schema'
3
3
  require 'sniff/leap_ext'
4
4
  require 'logger'
5
5
 
@@ -100,7 +100,7 @@ module Sniff
100
100
  end
101
101
 
102
102
  def create_emitter_table
103
- emitter_class.create_table! if emitter_class
103
+ emitter_class.force_schema! if emitter_class
104
104
  end
105
105
 
106
106
  def read_fixtures
data/lib/sniff/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Sniff
2
- VERSION = "0.8.5"
2
+ VERSION = "0.8.6"
3
3
  end
@@ -2,7 +2,7 @@ module BrighterPlanet
2
2
  module Dirigible
3
3
  module Data
4
4
  def self.included(base)
5
- base.create_table do
5
+ base.force_schema do
6
6
  float 'fuel_efficiency'
7
7
  float 'annual_distance_estimate'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sniff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.8.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-07-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
16
- requirement: &2153483640 !ruby/object:Gem::Requirement
16
+ requirement: &2154830640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2153483640
24
+ version_requirements: *2154830640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: aaronh-chronic
27
- requirement: &2153483180 !ruby/object:Gem::Requirement
27
+ requirement: &2154856280 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.3.9
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2153483180
35
+ version_requirements: *2154856280
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: bueller
38
- requirement: &2153482720 !ruby/object:Gem::Requirement
38
+ requirement: &2154855820 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.0.5
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *2153482720
46
+ version_requirements: *2154855820
47
47
  - !ruby/object:Gem::Dependency
48
- name: create_table
49
- requirement: &2153482340 !ruby/object:Gem::Requirement
48
+ name: force_schema
49
+ requirement: &2154855440 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *2153482340
57
+ version_requirements: *2154855440
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: cucumber
60
- requirement: &2153481880 !ruby/object:Gem::Requirement
60
+ requirement: &2154854980 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '0'
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *2153481880
68
+ version_requirements: *2154854980
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: earth
71
- requirement: &2153481380 !ruby/object:Gem::Requirement
71
+ requirement: &2154854480 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 0.4.5
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *2153481380
79
+ version_requirements: *2154854480
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: rake
82
- requirement: &2153480880 !ruby/object:Gem::Requirement
82
+ requirement: &2154853980 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.9.0
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *2153480880
90
+ version_requirements: *2154853980
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: rcov
93
- requirement: &2153480480 !ruby/object:Gem::Requirement
93
+ requirement: &2154853600 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: '0'
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *2153480480
101
+ version_requirements: *2154853600
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: rdoc
104
- requirement: &2153480020 !ruby/object:Gem::Requirement
104
+ requirement: &2154853140 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ! '>='
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: '0'
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *2153480020
112
+ version_requirements: *2154853140
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: dkastner-rocco
115
- requirement: &2153479600 !ruby/object:Gem::Requirement
115
+ requirement: &2154852720 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ! '>='
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: '0'
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *2153479600
123
+ version_requirements: *2154852720
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: rspec
126
- requirement: &2153479100 !ruby/object:Gem::Requirement
126
+ requirement: &2154852220 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ~>
@@ -131,10 +131,10 @@ dependencies:
131
131
  version: '2'
132
132
  type: :runtime
133
133
  prerelease: false
134
- version_requirements: *2153479100
134
+ version_requirements: *2154852220
135
135
  - !ruby/object:Gem::Dependency
136
136
  name: simplecov
137
- requirement: &2153478680 !ruby/object:Gem::Requirement
137
+ requirement: &2154851800 !ruby/object:Gem::Requirement
138
138
  none: false
139
139
  requirements:
140
140
  - - ! '>='
@@ -142,10 +142,10 @@ dependencies:
142
142
  version: '0'
143
143
  type: :runtime
144
144
  prerelease: false
145
- version_requirements: *2153478680
145
+ version_requirements: *2154851800
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: sqlite3-ruby
148
- requirement: &2153478140 !ruby/object:Gem::Requirement
148
+ requirement: &2154851260 !ruby/object:Gem::Requirement
149
149
  none: false
150
150
  requirements:
151
151
  - - ! '>='
@@ -153,10 +153,10 @@ dependencies:
153
153
  version: 1.3.0
154
154
  type: :runtime
155
155
  prerelease: false
156
- version_requirements: *2153478140
156
+ version_requirements: *2154851260
157
157
  - !ruby/object:Gem::Dependency
158
158
  name: timecop
159
- requirement: &2153477720 !ruby/object:Gem::Requirement
159
+ requirement: &2154850840 !ruby/object:Gem::Requirement
160
160
  none: false
161
161
  requirements:
162
162
  - - ! '>='
@@ -164,10 +164,10 @@ dependencies:
164
164
  version: '0'
165
165
  type: :runtime
166
166
  prerelease: false
167
- version_requirements: *2153477720
167
+ version_requirements: *2154850840
168
168
  - !ruby/object:Gem::Dependency
169
169
  name: timeframe
170
- requirement: &2153477180 !ruby/object:Gem::Requirement
170
+ requirement: &2154850300 !ruby/object:Gem::Requirement
171
171
  none: false
172
172
  requirements:
173
173
  - - ! '>='
@@ -175,10 +175,10 @@ dependencies:
175
175
  version: 0.0.8
176
176
  type: :runtime
177
177
  prerelease: false
178
- version_requirements: *2153477180
178
+ version_requirements: *2154850300
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: watchr
181
- requirement: &2153476760 !ruby/object:Gem::Requirement
181
+ requirement: &2154849880 !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
184
184
  - - ! '>='
@@ -186,10 +186,10 @@ dependencies:
186
186
  version: '0'
187
187
  type: :runtime
188
188
  prerelease: false
189
- version_requirements: *2153476760
189
+ version_requirements: *2154849880
190
190
  - !ruby/object:Gem::Dependency
191
191
  name: sandbox
192
- requirement: &2153476280 !ruby/object:Gem::Requirement
192
+ requirement: &2154849420 !ruby/object:Gem::Requirement
193
193
  none: false
194
194
  requirements:
195
195
  - - ! '>='
@@ -197,10 +197,10 @@ dependencies:
197
197
  version: '0'
198
198
  type: :development
199
199
  prerelease: false
200
- version_requirements: *2153476280
200
+ version_requirements: *2154849420
201
201
  - !ruby/object:Gem::Dependency
202
202
  name: emitter
203
- requirement: &2153475780 !ruby/object:Gem::Requirement
203
+ requirement: &2154848920 !ruby/object:Gem::Requirement
204
204
  none: false
205
205
  requirements:
206
206
  - - ! '>='
@@ -208,7 +208,7 @@ dependencies:
208
208
  version: 0.5.0
209
209
  type: :development
210
210
  prerelease: false
211
- version_requirements: *2153475780
211
+ version_requirements: *2154848920
212
212
  description: Provides development and test environment for emitter gems
213
213
  email: derek.kastner@brighterplanet.com
214
214
  executables: []
@@ -240,8 +240,6 @@ files:
240
240
  - lib/test_support/db/fixtures/urbanities.csv
241
241
  - lib/test_support/db/fixtures/zip_codes.csv
242
242
  - README.markdown
243
- - spec/db/emitter_data.sqlite3
244
- - spec/db/schema_output
245
243
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_fuel_types.csv
246
244
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_make_fleet_years.csv
247
245
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_make_years.csv
@@ -276,9 +274,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
276
274
  - - ! '>='
277
275
  - !ruby/object:Gem::Version
278
276
  version: '0'
279
- segments:
280
- - 0
281
- hash: 2730720841396380049
282
277
  required_rubygems_version: !ruby/object:Gem::Requirement
283
278
  none: false
284
279
  requirements:
@@ -292,8 +287,6 @@ signing_key:
292
287
  specification_version: 3
293
288
  summary: Test support for Brighter Planet carbon gems
294
289
  test_files:
295
- - spec/db/emitter_data.sqlite3
296
- - spec/db/schema_output
297
290
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_fuel_types.csv
298
291
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_make_fleet_years.csv
299
292
  - spec/fixtures/dirigible/features/support/db/fixtures/automobile_make_years.csv
File without changes
File without changes