csv_to_products 0.1.0 → 0.1.1

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: 95dad4230323887da49e39e4fa9591471889cd30
4
- data.tar.gz: 6a469d60252efdf1c62d65b5d249c6b41fdfee10
3
+ metadata.gz: 44adfd2ab614840adf26ae2a4b077e7b97fcc49a
4
+ data.tar.gz: c3c41c0c39004fad4482796199565f78a2d48c45
5
5
  SHA512:
6
- metadata.gz: 901672ef4b305747ff01611ad444b92ce7b7dd801697a6545b88a29eeb0153cdcfe7ca3ff1bec254b9a744021c1a95bdd4162ee4848ff064fdd9637bfbdb8416
7
- data.tar.gz: 55bda5f0a5d0e96fc74352dcd93b4ed0d9291655b2ddd5dda29be50b20256909ab4895fc5cd9e89974b31098e5a9cdc9ff4dfe13cd34b6f0f2a7f6c5f9d27338
6
+ metadata.gz: 4db7720d3c89e0c7b9d1e99bf23363add78cafdecbe9df57edd5697202833384ad27ba285a3f12d53a2c4569d35dfd859d9118afa840b85297bf687ba1adfdc2
7
+ data.tar.gz: 19b4f7e5c0535866cfb6b3699b498066d85ebe5333730b432217e08fc64ab8fdfc4613519d97c86a9d4c50bd56cf56e8e078549c863a7b725cf8c511c312aceb
@@ -49,7 +49,7 @@ module CSVToProducts
49
49
  end
50
50
 
51
51
  def sanitize(s)
52
- s.to_s.gsub(/[ \/\\]/, '-').downcase
52
+ s.to_s.gsub(/[ \/\\]/, '-').gsub(/[^0-9A-Za-z\-]/, '').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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max White