bread_calculator 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 +10 -0
- data/bin/bread-calc +7 -6
- data/bread_calculator.gemspec +1 -1
- data/spec/bread_calculator_spec.rb +1 -0
- 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: 7cbd43078e0f6a01f011391dd6648963c936f016
|
4
|
+
data.tar.gz: daaaeedbe36c23d8f3b8da79ec6b2336f6c5440a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6759ec269ed7e0c74acac7002d43509b112945efe4cc8fc3747c0f6319fa95620bea54ba1d88d7b382a8778eca7038d04d31df933af6ec643e64e985d0d4bf6
|
7
|
+
data.tar.gz: 02c65e0cc83274355b70edcea3eb47cc501b7e0b0c3a99acc37f213e88e8873a03f477c102f855b77d11a9a0e7bc0fc76eea753450fe0b6063f04ed4bcdab84b
|
data/README.md
CHANGED
@@ -6,8 +6,18 @@ Installation
|
|
6
6
|
---------
|
7
7
|
gem install bakers_percentage
|
8
8
|
|
9
|
+
Runtime Requirements
|
10
|
+
---------
|
11
|
+
ruby >= 1.9.2
|
12
|
+
|
13
|
+
Build Requirements
|
14
|
+
---------
|
15
|
+
rake
|
16
|
+
bundle
|
17
|
+
|
9
18
|
Inspiration and History
|
10
19
|
---------
|
20
|
+
Baker's percentages make baking easier, but I don't like to do the math.
|
11
21
|
|
12
22
|
License
|
13
23
|
---------
|
data/bin/bread-calc
CHANGED
@@ -5,7 +5,7 @@ require 'bread_calculator'
|
|
5
5
|
@get = 'r'
|
6
6
|
@help = nil
|
7
7
|
|
8
|
-
def help
|
8
|
+
def help status=true
|
9
9
|
puts <<EOF
|
10
10
|
NAME
|
11
11
|
bread-calc
|
@@ -44,16 +44,17 @@ BUGS
|
|
44
44
|
anything good.
|
45
45
|
EOF
|
46
46
|
|
47
|
-
|
47
|
+
exit status
|
48
|
+
|
48
49
|
end
|
49
50
|
|
50
51
|
loop { case ARGV[0]
|
51
52
|
when /--help/ then @help = 'help' ; ARGV.shift; break
|
52
|
-
when /--summary/ then @get = 'r.summary'; ARGV.shift
|
53
|
-
when /--weight/ then @get = 'r.weight'; ARGV.shift
|
54
|
-
when /--scale-by/ then ARGV.shift; @get = "r.scale_by #{ARGV.shift}"
|
53
|
+
when /--summary/ then @get = 'r.summary'; ARGV.shift
|
54
|
+
when /--weight/ then @get = 'r.weight'; ARGV.shift
|
55
|
+
when /--scale-by/ then ARGV.shift; @get = "r.scale_by #{ARGV.shift}"
|
55
56
|
when /--/ then ARGV.shift; break
|
56
|
-
when /^-/ then
|
57
|
+
when /^-/ then help 1
|
57
58
|
else break
|
58
59
|
end; }
|
59
60
|
|
data/bread_calculator.gemspec
CHANGED