panier 0.0.2 → 0.0.3
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 +38 -8
- data/lib/panier/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3db7989a54b57f144f49c529a7e3d3b71bb5e213
|
4
|
+
data.tar.gz: 1ee4c51e1c539750d2bfca5789c6931772467ac7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 522c2bc17074e22f69b21bdb3f371eb578fad2115b5c4de64ef563c60fb4fb4bd7753ece91fd2e1ada3d4b2ddb3063c2d666b2f327cffd340060839fc75b5eb1
|
7
|
+
data.tar.gz: 004fc54a484e34564f84a0bbca69e83e40e12858f771e40838d2d4a1a5f5c8063a33930027886ec0d2adce5fdda0eed8b888e88e9ff216c425722e2dbe153a08
|
data/README.md
CHANGED
@@ -15,19 +15,49 @@ This gem demonstrates the calculation of sales taxes for various kinds of line i
|
|
15
15
|
|
16
16
|
## Installation
|
17
17
|
|
18
|
-
|
18
|
+
Install the gem using:
|
19
19
|
|
20
|
-
gem
|
20
|
+
$ gem install panier
|
21
21
|
|
22
|
-
|
22
|
+
## Usage
|
23
23
|
|
24
|
-
|
24
|
+
After installation, run the CLI by executing:
|
25
25
|
|
26
|
-
|
26
|
+
$ panier
|
27
|
+
|
28
|
+
You will then be prompted for input.
|
27
29
|
|
28
|
-
|
30
|
+
Welcome to Panier.
|
31
|
+
Press Ctrl+C to exit.
|
32
|
+
Enter some sample input, then leave a blank line to proceed.
|
29
33
|
|
30
|
-
|
34
|
+
Copy an [example](docs/examples.md) and paste it into the console. Leave a blank line to generate a receipt.
|
35
|
+
|
36
|
+
Quantity, Product, Price
|
37
|
+
1, book, 12.49
|
38
|
+
1, music CD, 14.99
|
39
|
+
1, chocolate bar, 0.85
|
40
|
+
|
41
|
+
1, book, 12.49
|
42
|
+
1, music CD, 16.49
|
43
|
+
1, chocolate bar, 0.85
|
44
|
+
|
45
|
+
Sales Taxes: 1.50
|
46
|
+
Total: 29.83
|
47
|
+
|
48
|
+
## Testing
|
49
|
+
|
50
|
+
Check out the source code:
|
51
|
+
|
52
|
+
$ git clone git@github.com:bc-luke/panier.git
|
53
|
+
$ cd panier
|
54
|
+
|
55
|
+
And then execute:
|
56
|
+
|
57
|
+
$ bundle install
|
58
|
+
|
59
|
+
Finally, to run the test suite:
|
60
|
+
|
61
|
+
$ rake
|
31
62
|
|
32
|
-
TODO: Write usage instructions here
|
33
63
|
|
data/lib/panier/version.rb
CHANGED