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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a1a94b93c70bcc5cc6d2527d32c73487a40614d2
4
- data.tar.gz: 614044422ed75b82b707b695e889fd244ca675b6
3
+ metadata.gz: 7cbd43078e0f6a01f011391dd6648963c936f016
4
+ data.tar.gz: daaaeedbe36c23d8f3b8da79ec6b2336f6c5440a
5
5
  SHA512:
6
- metadata.gz: 7b0afb98a7cf337b2e1d58e3069c9da30e9ca3b79fd2fb76f54a88b10abd7064a122b79b3b17c067e0424166fd0d199b94623f7a6ae973fc5167e5455f63b10c
7
- data.tar.gz: b003b87d6afdd589d4e1e026f2262d9ffd0be0fcff4c29d5b894833d9385cf070db9e875dc5d94135f10ec8be4f8f88236a3df8a75f1e26dbe07987b4301ac0b
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
- exit
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; break
53
- when /--weight/ then @get = 'r.weight'; ARGV.shift; break
54
- when /--scale-by/ then ARGV.shift; @get = "r.scale_by #{ARGV.shift}"; break
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 usage("Unknown option: #{ARGV[0].inspect}")
57
+ when /^-/ then help 1
57
58
  else break
58
59
  end; }
59
60
 
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'bread_calculator'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.date = '2014-03-07'
5
5
  s.summary = "calculate baker's percentages"
6
6
  s.description = "a gem and command-line wrapper to generate baker's
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
  require "#{File.dirname(__FILE__)}/../lib/bread_calculator"
2
3
 
3
4
  describe BreadCalculator do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bread_calculator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Noah Birnel