nutrition_label_plugin 0.0.5 → 0.0.6

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.
data/README.rdoc CHANGED
@@ -1,23 +1,23 @@
1
1
  = NutritionLabelPlugin
2
-
3
2
  Nutrition label generation for Rails 3.1 using the asset pipeline.
4
- ---
3
+
5
4
  == Installation
6
5
 
7
6
  1. If using bundler, add to your Gemfile and run bundle install:
8
- gem nutrition_label_plugin
9
- 2. Otherwise run gem install nutrition_label_plugin
7
+ gem nutrition_label_plugin
8
+ 2. Otherwise run 'gem install nutrition_label_plugin'
10
9
  3. To add the CSS file to your load path, add to your app's application.css file:
11
- *= require nutrition_label_plugin
12
- ---
10
+ *= require nutrition_label_plugin
11
+
13
12
  == Feature list
14
13
 
15
14
  Currently, there is a single method available that accepts a hash of all optional
16
15
  parameters.
17
- create_base_label(args)
16
+ create_base_label(args)
18
17
 
19
18
  The method returns html output, which you can use in your views to show these
20
19
  awesome nutrition fact labels.
20
+
21
21
  ---
22
22
  === create_base_label arguments
23
23
 
@@ -38,7 +38,14 @@ create_base_label takes a number of optional arguments in the form of a hash:
38
38
  * :vitamin_A => float, in IU (international units)
39
39
  * :Iron => float, in milligrams
40
40
  * :calcium => float, in milligrams
41
- ---
41
+
42
+ == Planned features
43
+
44
+ * Automatic rounding according to USDA conventions
45
+ * Additional optional nutrients
46
+ * Additional output formats
47
+ * If you have ideas for features, let me know and I'll see what I can do!
48
+
42
49
  == Contributing
43
50
 
44
51
  If you have any feedback or want to add methods other than the basic nutrition label,
@@ -1,3 +1,3 @@
1
1
  module NutritionLabelPlugin
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -196,7 +196,6 @@ module NutritionLabelPlugin
196
196
  </tr>
197
197
  </tbody>
198
198
  </table>
199
- <div id='hairlineseparatornopadding'></div>
200
199
  </div>
201
200
  </div>
202
201
  </div>"
@@ -38,11 +38,6 @@ th {
38
38
  border-bottom: 1px solid black;
39
39
  }
40
40
 
41
- #hairlineseparatornopadding {
42
- padding-top: 0px;
43
- border-bottom: 1px solid black;
44
- }
45
-
46
41
  #separator {
47
42
  padding-top: 1px;
48
43
  border-bottom: 3px solid black;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nutrition_label_plugin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-11-14 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &74923370 !ruby/object:Gem::Requirement
16
+ requirement: &72559570 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.1
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *74923370
24
+ version_requirements: *72559570
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: sqlite3
27
- requirement: &74922950 !ruby/object:Gem::Requirement
27
+ requirement: &72553710 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *74922950
35
+ version_requirements: *72553710
36
36
  description: Gem includes CSS and template for basic nutrition fact label, as well
37
37
  as a method that takes in a hash of optional macronutrients
38
38
  email: lev.berlin@gmail.com
@@ -94,7 +94,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  segments:
96
96
  - 0
97
- hash: -467221811
97
+ hash: 8441619
98
98
  required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  none: false
100
100
  requirements:
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  segments:
105
105
  - 0
106
- hash: -467221811
106
+ hash: 8441619
107
107
  requirements: []
108
108
  rubyforge_project:
109
109
  rubygems_version: 1.8.10