testdata 1.1.2 → 1.1.3

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: cd47f92a723812029375961784d31339f60c7456
4
- data.tar.gz: 415a98238abc2cbd56f4dfdf6534ec038c357667
3
+ metadata.gz: 4d3c6fd4a2e6594a65a85e601675c3d4f3749a48
4
+ data.tar.gz: 152a3fe440519b08c247dc4c748c768947c8c70f
5
5
  SHA512:
6
- metadata.gz: 6414ef50a98d4ee527b63d3dcdbf76e0f0630fff7431bf4f89474d81781282bb49a6222f385b3545e6384e50c7a9a9c7eb566588f97274945ce32dd8c3bc1813
7
- data.tar.gz: e93a70d89fca738ea01e2ef22e0615f8029426b2f479b77e243c336f4c5af231d8ec120ad59a1d4e57deca56b0d35356305a3234749dbcb80869b1c67f3863fb
6
+ metadata.gz: 0e50a4201efc9da1c1318d1693bdd6aa34b4104ce5575907c195b089460244b79d0473b896f4043169b2e23ea8417f8ae77470ff253a14a782dd7c5fe597894f
7
+ data.tar.gz: 1aacc347da99e9b337015b4bef347f517540ebe8b1cba0fc4734e46a890dc0a0cac0b5847697cf421c14dd47bfffc334e538261f0da35ea121a973f15b9557f1
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -52,9 +52,18 @@ module Testdata
52
52
  @log = o[:log] == true ? Rexle.new(tests) : nil
53
53
  end
54
54
 
55
- def run(x=nil, debug2=nil)
55
+ def run(raw_x=nil, debug2=nil)
56
+
56
57
  @debug2 = debug2 ? true : false
57
58
  @success = []
59
+
60
+ x = if raw_x and raw_x[/\d+\.\.\d+/] then
61
+ x, y = raw_x.split('..').map(&:to_i)
62
+ id = Range.new(x,y)
63
+ else
64
+ raw_x
65
+ end
66
+
58
67
  procs = {NilClass: :test_all, Range: :test_range, String: :test_id, Fixnum: :test_id}
59
68
 
60
69
  method(procs[x.class.to_s.to_sym]).call(x)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.2
4
+ version: 1.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  OER61xm4PXti/ej9K/nvEIwOfuMNhq+yrO8pETyuCV/Gtma9e5tIgCRz7ZUbydZv
32
32
  r8AWz+GWk3lj5g==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-07-30 00:00:00.000000000 Z
34
+ date: 2015-07-31 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: app-routes
metadata.gz.sig CHANGED
Binary file