bread_calculator 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -3
- data/bin/bread-calc +5 -5
- data/bread_calculator.gemspec +1 -1
- data/lib/bread_calculator.rb +6 -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: a2b8cf625f1843c3566ad413b36f9e97ed5c95de
|
4
|
+
data.tar.gz: d213268cae4aa2704330e9792246f52bcc10436b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a329806a53827eb21a2fe6ce3b5ef0d57040691170b3029c91e7cce4456cb987e170fc45d2eabaa5394cf0169054fdd28b83d54adf2875b4f6f6e59f01a47bfa
|
7
|
+
data.tar.gz: 07a565116b09c5bc73034be62dba699f42a3e224b898ae589d0b41f105d1a016cb787bd11e4b82d2453ad8aa2264e6189ac86a90619d66bf8a8ed47242486a4b
|
data/README.md
CHANGED
@@ -107,14 +107,14 @@ Over-rides <b>--scale-by</b></p>
|
|
107
107
|
|
108
108
|
<p style="margin-left:11%; margin-top: 1em"><b>--html</b>
|
109
109
|
Print recipe as html. Over-rides <b>--weight</b> or
|
110
|
-
<b>--to.</b></p>
|
110
|
+
<b>--scale-to.</b></p>
|
111
111
|
|
112
112
|
|
113
113
|
<p style="margin-left:11%; margin-top: 1em"><b>--weight</b>
|
114
114
|
Print the weight of the recipe. Over-rides <b>--html</b> or
|
115
|
-
<b>--to.</b></p>
|
115
|
+
<b>--scale-to.</b></p>
|
116
116
|
|
117
|
-
<p style="margin-left:11%; margin-top: 1em"><b>--to
|
117
|
+
<p style="margin-left:11%; margin-top: 1em"><b>--scale-to
|
118
118
|
WEIGHT</b> Regenerate the recipe or summary to <b>WEIGHT</b>
|
119
119
|
total weight. Over-rides <b>--html</b> or
|
120
120
|
<b>--weight.</b></p>
|
data/bin/bread-calc
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
|
4
|
-
require 'bread_calculator'
|
3
|
+
require "#{File.dirname(__FILE__)}/../lib/bread_calculator"
|
4
|
+
#require 'bread_calculator'
|
5
5
|
|
6
6
|
def htm_header
|
7
7
|
puts '<head>'
|
@@ -17,7 +17,7 @@ where OPTIONS are any of:
|
|
17
17
|
--summary
|
18
18
|
--html
|
19
19
|
--weight
|
20
|
-
--
|
20
|
+
--scale-to WEIGHT
|
21
21
|
--scale-by FACTOR
|
22
22
|
|
23
23
|
Install the man page, or go to
|
@@ -41,8 +41,8 @@ loop { case ARGV[0]
|
|
41
41
|
when /--summary/ then @opt[1] = 'summary'; ARGV.shift
|
42
42
|
when /--html/ then @opt[2] = 'to_html'; ARGV.shift
|
43
43
|
when /--weight/ then @opt[2] = 'weight'; ARGV.shift
|
44
|
-
when /--
|
45
|
-
when
|
44
|
+
when /--scale_to/ then ARGV.shift; @opt[2] = "recipe(#{ARGV.shift.to_f})"
|
45
|
+
when /^--$/ then ARGV.shift; break
|
46
46
|
when /^-/ then help 1
|
47
47
|
else break
|
48
48
|
end; }
|
data/bread_calculator.gemspec
CHANGED
data/lib/bread_calculator.rb
CHANGED