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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e00f05f91468e4240889bb7c976377cd0189a1892e4a5c7f0abfa9bc6abba7e1
4
- data.tar.gz: 077f992190dc1ec5c72d70f0825df780c3e069a2116ab74856b4c3dcd7c8cf25
3
+ metadata.gz: 033f2032789102c66626b25bb5f67222b067025ee299f6f98c55cf1a12073f4c
4
+ data.tar.gz: 31f2ca4d45936102ce65f0ee077477490d5028680888511a9c96c18c673cceb3
5
5
  SHA512:
6
- metadata.gz: 650e9a7d8d17e5304d4c6189e649c78e5d2fac4612a6db1d721fb600a23b56e6d9ba2cc487f4871163270cdfb858d5d9c477f827cfd77bffd273674d17dbf4bc
7
- data.tar.gz: 12d4110cb1102045ec4d81a8a0cae71d24ff80debb1c7688252804026dba72ffc74e9844d32c48b5d3d4e890a12e337bad3cb21dcdc9a7c1fb316afa724dd1ca
6
+ metadata.gz: e2393e003a09d0d6a87e3ba5136556df1368c6ef5d3f90ee22743ae2c251ead83a43bbf26ed7d800aab58d0fd50ee274ba0e3f43c75acd9c7d4f96bb1aab13a3
7
+ data.tar.gz: ce0378ef1aff1c84fec8f0c4eae63f17d9dd86233a2893e25820a9545831bc2c17b4676f7c6244aa41c1c3c8458c6bedda41f5412f2b75e663fd8dda696fbc24
@@ -24,9 +24,14 @@ module Paramesan
24
24
  end
25
25
 
26
26
  def param_test_name params, idx, count
27
- nonword = Regexp.new '[^\w]+'
28
- elements = params.collect { |param| param.to_s.gsub nonword, '_' }
29
- "test_" + idx.to_s + "_of_" + count.to_s + "__" + elements.join('_')
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
 
@@ -4,5 +4,5 @@
4
4
  require 'pathname'
5
5
 
6
6
  module Paramesan
7
- VERSION = "1.0.0"
7
+ VERSION = "1.0.1"
8
8
  end
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.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-09 00:00:00.000000000 Z
11
+ date: 2020-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler