upc_gen 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -16
- data/exe/upc_gen +1 -3
- data/lib/upc_gen/shell.rb +1 -1
- data/lib/upc_gen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7b17879a6472555c7f49860082ec16180efc0ddeefa372f37b041464f75d0a6e
|
4
|
+
data.tar.gz: 8b208d0fad9c7d34b2ffbadd9c196cbc0638293cc94345b3d549f87332ad7e5b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e3700d5a596218846ecec4f2f418d4de349d2f6349e9c478cc3db287bb85c8402ae9ff456dab42924f15b3e77aad7184a0356ef097f0a11cb3774833479bf65
|
7
|
+
data.tar.gz: 4a1a7317ef4c0e5ab93cc4fe8389c25f5c5f11e5fd5c0f3449b5cecd83789bf30c795824496c740d1c696da9cbda548768e7599843318e126ab1430467d9eabd
|
data/README.md
CHANGED
@@ -1,28 +1,26 @@
|
|
1
1
|
# UpcGen
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Command line utility that prints a random UPC code
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
```ruby
|
12
|
-
gem 'upc_gen'
|
13
|
-
```
|
14
|
-
|
15
|
-
And then execute:
|
7
|
+
The gem will provide the `upc_gen` command when you `gem install upc_gen` on your system.
|
16
8
|
|
17
|
-
|
18
|
-
|
19
|
-
Or install it yourself as:
|
9
|
+
## Usage
|
20
10
|
|
21
|
-
|
11
|
+
Run on command line like `upc_gen <optional-number-string><optional-char>`
|
22
12
|
|
23
|
-
|
13
|
+
- If a number string is passed, the code before the check digit will end with those digits
|
14
|
+
- If the string of numbers is followed by a '.', the random code will start with those digits
|
15
|
+
- If the string of numbers is followed by a '-', a code will be found that ends with those digits, including check digit
|
24
16
|
|
25
|
-
|
17
|
+
Examples:
|
18
|
+
>: upc_gen 001234
|
19
|
+
2938210012347
|
20
|
+
>: upc_gen 001234.
|
21
|
+
0012348367936
|
22
|
+
>: upc_gen 001234-
|
23
|
+
4493664001234
|
26
24
|
|
27
25
|
## Development
|
28
26
|
|
data/exe/upc_gen
CHANGED
data/lib/upc_gen/shell.rb
CHANGED
data/lib/upc_gen/version.rb
CHANGED