bread_calculator 0.5.1 → 0.5.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 +5 -2
- data/bin/bread-calc +2 -2
- data/bread_calculator.gemspec +4 -2
- data/lib/bread_calculator.rb +14 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b606ac14a7ac0fd4443997be773a0c59272796f2
|
|
4
|
+
data.tar.gz: 3165b0412c1dc75c266d3dc9de204318d3bc6ebb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 60cd6f789fc081a7bab93fabbbcd9230478cf1040040674c1ced5d47fa4079dca90d81bd90f24743a4c47a7291bd7c6287670675e67a82fd8ca14c697e380fbd
|
|
7
|
+
data.tar.gz: 7f37b9980fe2c94a2369b0ddd0cde00e6cb9c365e0fd5761f00b2befee8504f63849172128a944d96a9e7f141b4416edceef830c471d39762f58934586d737b7
|
data/README.md
CHANGED
|
@@ -36,6 +36,9 @@ License
|
|
|
36
36
|
© 2014 Noah Birnel
|
|
37
37
|
MIT license
|
|
38
38
|
|
|
39
|
+
[](https://travis-ci.org/nbirnel/bread-calculator)
|
|
40
|
+
[](https://codeclimate.com/github/nbirnel/bread-calculator)
|
|
41
|
+
|
|
39
42
|
Man page
|
|
40
43
|
---------
|
|
41
44
|
<html>
|
|
@@ -132,8 +135,8 @@ FACTOR.</b> Regenerate the recipe, scaling up or down by
|
|
|
132
135
|
--summary sample.recipe</b> summarize a recipe</p>
|
|
133
136
|
|
|
134
137
|
<p style="margin-left:11%; margin-top: 1em"><b>bread-calc
|
|
135
|
-
--scale-by .5 sample.recipe
|
|
136
|
-
|
|
138
|
+
--scale-by .5 --html sample.recipe > sample.html</b>
|
|
139
|
+
halve a recipe and render as html</p>
|
|
137
140
|
|
|
138
141
|
<h2>FORMATS
|
|
139
142
|
<a name="FORMATS"></a>
|
data/bin/bread-calc
CHANGED
data/bread_calculator.gemspec
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
require './lib/bread_calculator'
|
|
2
|
+
|
|
1
3
|
Gem::Specification.new do |s|
|
|
2
4
|
s.name = 'bread_calculator'
|
|
3
|
-
s.version =
|
|
4
|
-
s.date = '2014-03-
|
|
5
|
+
s.version = BreadCalculator::VERSION
|
|
6
|
+
s.date = '2014-03-14'
|
|
5
7
|
s.summary = "calculate baker's percentages"
|
|
6
8
|
s.description = "a gem and command-line wrapper to generate baker's
|
|
7
9
|
percentages from a bread recipe"
|
data/lib/bread_calculator.rb
CHANGED
|
@@ -20,6 +20,20 @@ module BreadCalculator
|
|
|
20
20
|
|
|
21
21
|
require 'cgi'
|
|
22
22
|
|
|
23
|
+
class Version
|
|
24
|
+
MAJOR = 0
|
|
25
|
+
MINOR = 5
|
|
26
|
+
PATCH = 2
|
|
27
|
+
|
|
28
|
+
class << self
|
|
29
|
+
def to_s
|
|
30
|
+
[MAJOR, MINOR, PATCH].join('.')
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
VERSION = Version.to_s
|
|
36
|
+
|
|
23
37
|
##
|
|
24
38
|
# Make a reasonably precise representation of +number+
|
|
25
39
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bread_calculator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Noah Birnel
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-03-
|
|
11
|
+
date: 2014-03-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: |-
|
|
14
14
|
a gem and command-line wrapper to generate baker's
|