panier 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/docs/examples.md +30 -30
- 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: 615826533ef3cf761751310b654d12f5b0f2a54a
|
4
|
+
data.tar.gz: 8d4d5133c7f2260765b13279d700b7b2c1d97330
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85113c0da2ac0c13019c1b1d40ca76893668f4bbb242afbfeecbe74861df9eb9b9111393d31b7db6f3797e5fd0cff0c8f3e71b7569efc1525a538f243971e712
|
7
|
+
data.tar.gz: 86c9cc736fa07b798e6b406e183a8b2548d64a23a515f6806dfd932099904e0c068e4c5c7af8f80b7ce4928338bdea017519b429e54d99fea056696d710a184f
|
data/README.md
CHANGED
@@ -31,13 +31,15 @@ You will then be prompted for input.
|
|
31
31
|
Press Ctrl+C to exit.
|
32
32
|
Enter some sample input, then leave a blank line to proceed.
|
33
33
|
|
34
|
-
Copy an [example](docs/examples.md) and paste it into the console.
|
34
|
+
Copy an [example](docs/examples.md) and paste it into the console.
|
35
35
|
|
36
36
|
Quantity, Product, Price
|
37
37
|
1, book, 12.49
|
38
38
|
1, music CD, 14.99
|
39
39
|
1, chocolate bar, 0.85
|
40
|
-
|
40
|
+
|
41
|
+
Leave a blank line to generate a receipt.
|
42
|
+
|
41
43
|
1, book, 12.49
|
42
44
|
1, music CD, 16.49
|
43
45
|
1, chocolate bar, 0.85
|
data/docs/examples.md
CHANGED
@@ -1,45 +1,45 @@
|
|
1
1
|
# Input
|
2
2
|
|
3
3
|
## Input 1
|
4
|
-
Quantity, Product, Price
|
5
|
-
1, book, 12.49
|
6
|
-
1, music CD, 14.99
|
7
|
-
1, chocolate bar, 0.85
|
4
|
+
Quantity, Product, Price
|
5
|
+
1, book, 12.49
|
6
|
+
1, music CD, 14.99
|
7
|
+
1, chocolate bar, 0.85
|
8
8
|
|
9
9
|
## Input 2
|
10
|
-
Quantity, Product, Price
|
11
|
-
1, imported box of chocolates, 10.00
|
12
|
-
1, imported bottle of perfume, 47.50
|
10
|
+
Quantity, Product, Price
|
11
|
+
1, imported box of chocolates, 10.00
|
12
|
+
1, imported bottle of perfume, 47.50
|
13
13
|
|
14
14
|
## Input 3
|
15
|
-
Quantity, Product, Price
|
16
|
-
1, imported bottle of perfume, 27.99
|
17
|
-
1, bottle of perfume, 18.99
|
18
|
-
1, packet of headache pills, 9.75
|
19
|
-
1, box of imported chocolates, 11.25
|
15
|
+
Quantity, Product, Price
|
16
|
+
1, imported bottle of perfume, 27.99
|
17
|
+
1, bottle of perfume, 18.99
|
18
|
+
1, packet of headache pills, 9.75
|
19
|
+
1, box of imported chocolates, 11.25
|
20
20
|
|
21
21
|
# Output
|
22
22
|
|
23
23
|
## Output 1
|
24
|
-
1, book, 12.49
|
25
|
-
1, music CD, 16.49
|
26
|
-
1, chocolate bar, 0.85
|
27
|
-
|
28
|
-
Sales Taxes: 1.50
|
29
|
-
Total: 29.83
|
24
|
+
1, book, 12.49
|
25
|
+
1, music CD, 16.49
|
26
|
+
1, chocolate bar, 0.85
|
27
|
+
|
28
|
+
Sales Taxes: 1.50
|
29
|
+
Total: 29.83
|
30
30
|
|
31
31
|
## Output 2
|
32
|
-
1, imported box of chocolates, 10.50
|
33
|
-
1, imported bottle of perfume, 54.65
|
34
|
-
|
35
|
-
Sales Taxes: 7.65
|
36
|
-
Total: 65.15
|
32
|
+
1, imported box of chocolates, 10.50
|
33
|
+
1, imported bottle of perfume, 54.65
|
34
|
+
|
35
|
+
Sales Taxes: 7.65
|
36
|
+
Total: 65.15
|
37
37
|
|
38
38
|
## Output 3
|
39
|
-
1, imported bottle of perfume, 32.19
|
40
|
-
1, bottle of perfume, 20.89
|
41
|
-
1, packet of headache pills, 9.75
|
42
|
-
1, box of imported chocolates, 11.85
|
43
|
-
|
44
|
-
Sales Taxes: 6.70
|
45
|
-
Total: 74.68
|
39
|
+
1, imported bottle of perfume, 32.19
|
40
|
+
1, bottle of perfume, 20.89
|
41
|
+
1, packet of headache pills, 9.75
|
42
|
+
1, box of imported chocolates, 11.85
|
43
|
+
|
44
|
+
Sales Taxes: 6.70
|
45
|
+
Total: 74.68
|
data/lib/panier/version.rb
CHANGED