bread_calculator 0.5.1 → 0.5.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ea8f46e5d28819dd06ab775cef398794e3ade52
4
- data.tar.gz: 9af15281aa6e2ef7803af9a41e1b2f0a39c49577
3
+ metadata.gz: b606ac14a7ac0fd4443997be773a0c59272796f2
4
+ data.tar.gz: 3165b0412c1dc75c266d3dc9de204318d3bc6ebb
5
5
  SHA512:
6
- metadata.gz: aac3211d6bb8cf361ed20ce40f0c31cb3a17f781171e58d8999e0a86841caca97a8f2b81972c802060da2a38eabe29f8e004d16eebaf52c4f7126a95adb7a3c3
7
- data.tar.gz: c6210625b1e22f1f46e0da5bdcf15eab34f8a9225866c586e4a8371c78605561401f94405cf3f3f6849289a884cc10f3a4349376ad52d49a111d9046eea0db5b
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
+ [![Build Status](https://travis-ci.org/nbirnel/bread-calculator.png?branch=master)](https://travis-ci.org/nbirnel/bread-calculator)
40
+ [![Code Climate](https://codeclimate.com/github/nbirnel/bread-calculator.png)](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 | bread-calc --html
136
- &gt;sample.html</b> halve a recipe and render as html</p>
138
+ --scale-by .5 --html sample.recipe &gt; 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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "#{File.dirname(__FILE__)}/../lib/bread_calculator"
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>'
@@ -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 = '0.5.1'
4
- s.date = '2014-03-13'
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"
@@ -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.1
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-13 00:00:00.000000000 Z
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