nose-cli 0.1.2 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nose_cli.rb +11 -2
  3. metadata +17 -23
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c276c1ede843d628c2ac4688b919dedb5ea0c070
4
- data.tar.gz: 1e0e03d31258af76f3995a2c89368022d6ccde27
3
+ metadata.gz: a1a10cd964d8b568289838a15ba95d87e31f643a
4
+ data.tar.gz: 27c0cf18ed9ab6294c78754734f53639fd86a953
5
5
  SHA512:
6
- metadata.gz: 1f97cc1319d34b6c5f23ec735979c9794a544e91a7407487e25481b95ea0bb26deafb08de0fe7dca96cb5a39eed72144c52e51436fd412b049913f55b229cdae
7
- data.tar.gz: d6cae125e4f8ea679504ec1cde1d367ddf602515546fa0251500c956522e1083f512942989cc5c05d1aa3204d77356f3245ad9b8db345be68ad3672cb66dc8fd
6
+ metadata.gz: c5b5e7a8a563045d2dc7023dc782635c17da3bad3def2857fa9eb788dc1e86a2763c1e8335f7d42108d221d8755dfd1acb57d7177a431db9a605a010b2d50a5b
7
+ data.tar.gz: adfcc4dac193a3361eab68e8e17e5bc9d85b2162752ed2eea3a80e95cfc05dd8be2d32e6da2e408bd165016518dfbe72ffd9b997669b19fdcf70959054abdc33
@@ -126,8 +126,17 @@ module NoSE
126
126
  def load_results(plan_file, mix = 'default')
127
127
  representer = Serialize::SearchResultRepresenter.represent \
128
128
  Search::Results.new
129
- json = File.read(plan_file)
130
- result = representer.from_json(json)
129
+ file = File.read(plan_file)
130
+
131
+ case File.extname(plan_file)
132
+ when '.json'
133
+ result = representer.from_json(file)
134
+ when '.rb'
135
+ result = Search::Results.new
136
+ workload = binding.eval file, plan_file
137
+ result.instance_variable_set :@workload, workload
138
+ end
139
+
131
140
  result.workload.mix = mix.to_sym unless \
132
141
  mix.nil? || (mix == 'default' && result.workload.mix != :default)
133
142
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nose-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Mior
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-11 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi-to-html
@@ -154,14 +154,14 @@ dependencies:
154
154
  requirements:
155
155
  - - "~>"
156
156
  - !ruby/object:Gem::Version
157
- version: 0.10.1
157
+ version: 0.11.0
158
158
  type: :development
159
159
  prerelease: false
160
160
  version_requirements: !ruby/object:Gem::Requirement
161
161
  requirements:
162
162
  - - "~>"
163
163
  - !ruby/object:Gem::Version
164
- version: 0.10.1
164
+ version: 0.11.0
165
165
  - !ruby/object:Gem::Dependency
166
166
  name: pry-nav
167
167
  requirement: !ruby/object:Gem::Requirement
@@ -180,29 +180,23 @@ dependencies:
180
180
  name: pry-rescue
181
181
  requirement: !ruby/object:Gem::Requirement
182
182
  requirements:
183
- - - "~>"
184
- - !ruby/object:Gem::Version
185
- version: 1.4.4
186
183
  - - ">="
187
184
  - !ruby/object:Gem::Version
188
- version: 1.4.0
185
+ version: '0'
189
186
  type: :development
190
187
  prerelease: false
191
188
  version_requirements: !ruby/object:Gem::Requirement
192
189
  requirements:
193
- - - "~>"
194
- - !ruby/object:Gem::Version
195
- version: 1.4.4
196
190
  - - ">="
197
191
  - !ruby/object:Gem::Version
198
- version: 1.4.0
192
+ version: '0'
199
193
  - !ruby/object:Gem::Dependency
200
194
  name: rspec
201
195
  requirement: !ruby/object:Gem::Requirement
202
196
  requirements:
203
197
  - - "~>"
204
198
  - !ruby/object:Gem::Version
205
- version: 3.5.0
199
+ version: 3.6.0
206
200
  - - ">="
207
201
  - !ruby/object:Gem::Version
208
202
  version: 3.5.0
@@ -212,7 +206,7 @@ dependencies:
212
206
  requirements:
213
207
  - - "~>"
214
208
  - !ruby/object:Gem::Version
215
- version: 3.5.0
209
+ version: 3.6.0
216
210
  - - ">="
217
211
  - !ruby/object:Gem::Version
218
212
  version: 3.5.0
@@ -222,27 +216,27 @@ dependencies:
222
216
  requirements:
223
217
  - - "~>"
224
218
  - !ruby/object:Gem::Version
225
- version: 3.5.4
219
+ version: 3.6.0
226
220
  - - ">="
227
221
  - !ruby/object:Gem::Version
228
- version: 3.5.0
222
+ version: 3.6.0
229
223
  type: :development
230
224
  prerelease: false
231
225
  version_requirements: !ruby/object:Gem::Requirement
232
226
  requirements:
233
227
  - - "~>"
234
228
  - !ruby/object:Gem::Version
235
- version: 3.5.4
229
+ version: 3.6.0
236
230
  - - ">="
237
231
  - !ruby/object:Gem::Version
238
- version: 3.5.0
232
+ version: 3.6.0
239
233
  - !ruby/object:Gem::Dependency
240
234
  name: rspec-collection_matchers
241
235
  requirement: !ruby/object:Gem::Requirement
242
236
  requirements:
243
237
  - - "~>"
244
238
  - !ruby/object:Gem::Version
245
- version: 1.1.2
239
+ version: 1.1.3
246
240
  - - ">="
247
241
  - !ruby/object:Gem::Version
248
242
  version: 1.1.0
@@ -252,7 +246,7 @@ dependencies:
252
246
  requirements:
253
247
  - - "~>"
254
248
  - !ruby/object:Gem::Version
255
- version: 1.1.2
249
+ version: 1.1.3
256
250
  - - ">="
257
251
  - !ruby/object:Gem::Version
258
252
  version: 1.1.0
@@ -282,14 +276,14 @@ dependencies:
282
276
  requirements:
283
277
  - - "~>"
284
278
  - !ruby/object:Gem::Version
285
- version: 0.12.0
279
+ version: 0.14.1
286
280
  type: :development
287
281
  prerelease: false
288
282
  version_requirements: !ruby/object:Gem::Requirement
289
283
  requirements:
290
284
  - - "~>"
291
285
  - !ruby/object:Gem::Version
292
- version: 0.12.0
286
+ version: 0.14.1
293
287
  description:
294
288
  email: mmior@uwaterloo.ca
295
289
  executables:
@@ -353,7 +347,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
353
347
  version: '0'
354
348
  requirements: []
355
349
  rubyforge_project:
356
- rubygems_version: 2.4.8
350
+ rubygems_version: 2.5.1
357
351
  signing_key:
358
352
  specification_version: 4
359
353
  summary: Schema design for NoSQL applications