csv_to_products 0.1.2 → 0.1.3

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/csv_to_products.rb +1 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 768a83ed10a3a99abbe78a1bb85b5b8cdc218c6b
4
- data.tar.gz: 1823c0c5bf2272bbbf720a63b42c1706462b7f71
3
+ metadata.gz: 9a643af2251e6475f312bd8d066f0c128ddd9487
4
+ data.tar.gz: 0d3574e4b30da99d75046decb982cad30838ad63
5
5
  SHA512:
6
- metadata.gz: 18bc1aafef88c5455961d501cfa2ab4af55e1236152bdca0a2d412660328e17510a28a00bde725bf3f3a5d5d296dca02160b5c1c443e61c045c1ee38174d0f36
7
- data.tar.gz: eed9c3483e8f71258a80918620611a5f5245fc35ad28a21e6f885bcbd08f5b0a5a9f80c53eff38ca7a1d6723bb8fc9b9dd5711ca5d1c4b3763b1e8b59b44244a
6
+ metadata.gz: 17b63eb00bcea8de57951c9abf72762d5bc6b98e82559bb4d1468cec327e66efe79eb7522e3f8934a22e2e72bc2224a0ae8f6392025f8e231117dedaa732167d
7
+ data.tar.gz: 925fdff5dfe5cb678132e48855d6031a7c09982ddf6c7d7d79e5349bc6bda7ad08d3a3d9b2a05555bf2a51f6df06bcd458a1c22ea9c3ef43c8604f108a931ad7
@@ -49,7 +49,7 @@ module CSVToProducts
49
49
  end
50
50
 
51
51
  def sanitize(s)
52
- s.to_s.gsub(/[ \/\\]/, '-').gsub(/[^\w\-]/, '').downcase
52
+ s.to_s.gsub(/[ \/\\]/, '-').gsub(/[^\w\-]/, '').gsub(/\-+/, '-').downcase
53
53
  end
54
54
 
55
55
  def is_number?(s)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv_to_products
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max White