paramesan 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/paramesan.rb +8 -3
- data/lib/paramesan/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 033f2032789102c66626b25bb5f67222b067025ee299f6f98c55cf1a12073f4c
|
4
|
+
data.tar.gz: 31f2ca4d45936102ce65f0ee077477490d5028680888511a9c96c18c673cceb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2393e003a09d0d6a87e3ba5136556df1368c6ef5d3f90ee22743ae2c251ead83a43bbf26ed7d800aab58d0fd50ee274ba0e3f43c75acd9c7d4f96bb1aab13a3
|
7
|
+
data.tar.gz: ce0378ef1aff1c84fec8f0c4eae63f17d9dd86233a2893e25820a9545831bc2c17b4676f7c6244aa41c1c3c8458c6bedda41f5412f2b75e663fd8dda696fbc24
|
data/lib/paramesan.rb
CHANGED
@@ -24,9 +24,14 @@ module Paramesan
|
|
24
24
|
end
|
25
25
|
|
26
26
|
def param_test_name params, idx, count
|
27
|
-
|
28
|
-
|
29
|
-
|
27
|
+
name = "test_" + idx.to_s + "_of_" + count.to_s + "__"
|
28
|
+
if params.kind_of?(Enumerable)
|
29
|
+
nonword = Regexp.new '[^\w]+'
|
30
|
+
elements = params.collect { |param| param.to_s.gsub nonword, '_' }
|
31
|
+
name << elements.join('_')
|
32
|
+
else
|
33
|
+
name << params.to_s
|
34
|
+
end
|
30
35
|
end
|
31
36
|
end
|
32
37
|
|
data/lib/paramesan/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: paramesan
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeff Pace
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-10-
|
11
|
+
date: 2020-10-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|