upc_gen 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: 592ae5a99b0110eac6fec211170bc5f0c77e16523832368853e4e5cb71c7bf1e
4
- data.tar.gz: e1f5806b26bc879c00ecc35036607c4391b7b4103494a527d05965d5a83fd5e7
3
+ metadata.gz: 6bb1236789e150657bf5291374b7b57eab083f5aafecbd7a8acf875610162ccd
4
+ data.tar.gz: d4f32d50274f376e845be3340ab72b08ed61ba585b74c8fc40f484519e44b6eb
5
5
  SHA512:
6
- metadata.gz: 2e8802781913349d4d3ee41229ce33cbc465b505d9de88584cadd8c1cb64c95d5bf743cc2da8a3afdf16a1951aa9a4d98dacabcbbaf7eaa46a9e3bc8d431b174
7
- data.tar.gz: 68920cbbce0c8b7161226a97a42ec9c6e28893ae5519fc8b5dec854e694a73ac156dac892ab48b3677cf8e430bd12103d230dc93e4d31e24cd8c2d55f88d1f8f
6
+ metadata.gz: fe6182634d554c97182184d2b65515c24eb312ae38f4ef8e6d90f47612cac68a13e344817ee828867a1416d6b478ca1a6eace5e6863780b82b1195b8a94c2b8b
7
+ data.tar.gz: c60a42b763b4cfd06e58e0e660d93d1653e90fd71a7541a359d15b633f0c96e4c6f8ec504505f2a254b33a3d94f994f775c228afcd447d463e4bc6163e9f8d71
@@ -55,7 +55,7 @@ module UpcGen
55
55
  end
56
56
 
57
57
  def generate
58
- if @seed
58
+ if @seed && ![".", "-"].include?(@seed)
59
59
  complete generate_for_seed
60
60
  else
61
61
  complete n_random_digits(12)
@@ -1,3 +1,3 @@
1
1
  module UpcGen
2
- VERSION = "1.0.0".freeze
2
+ VERSION = "1.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: upc_gen
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
  - Tom ten Thij