<commit_before>= NutritionLabelPlugin
Nutrition label generation for Rails 3.1 using the asset pipeline. 

== Installation

1. If using bundler, add to your Gemfile and run bundle install:
    gem nutrition_label_plugin
2. Otherwise run 'gem install nutrition_label_plugin'
3. To add the CSS file to your load path, add to your app's application.css file: 
  *= require nutrition_label_plugin

== Feature list

Currently, there is a single method available that accepts a hash of all optional 
parameters. 
  create_base_label(args)

The method returns html output, which you can use in your views to show these
awesome nutrition fact labels. 

---
=== create_base_label arguments

create_base_label takes a number of optional arguments in the form of a hash:
* :name => "string"
* :yield => float, in grams
* :servings => float, # of servings
* :calories => float, # of calories
* :fat => float, in grams
* :saturated_fat => float, in grams
* :trans_fat => float, in grams
* :cholesterol => float, in milligrams
* :sodium => float, in milligrams
* :carbohydrate => float, in grams
* :fiber => float, in grams
* :sugar => float, in grams
* :vitamin_C => float, in milligrams
* :vitamin_A => float, in IU (international units)
* :Iron => float, in milligrams
* :calcium => float, in milligrams<commit_msg>Finalized README<commit_after>= NutritionLabelPlugin
Nutrition label generation for Rails 3.1 using the asset pipeline. 

== Installation

1. If using bundler, add to your Gemfile and run bundle install:
    gem nutrition_label_plugin
2. Otherwise run 'gem install nutrition_label_plugin'
3. To add the CSS file to your load path, add to your app's application.css file: 
    *= require nutrition_label_plugin

== Feature list

Currently, there is a single method available that accepts a hash of all optional 
parameters. 
    create_base_label(args)

The method returns html output, which you can use in your views to show these
awesome nutrition fact labels. 

---
=== create_base_label arguments

create_base_label takes a number of optional arguments in the form of a hash:
* :name => "string"
* :yield => float, in grams
* :servings => float, # of servings
* :calories => float, # of calories
* :fat => float, in grams
* :saturated_fat => float, in grams
* :trans_fat => float, in grams
* :cholesterol => float, in milligrams
* :sodium => float, in milligrams
* :carbohydrate => float, in grams
* :fiber => float, in grams
* :sugar => float, in grams
* :vitamin_C => float, in milligrams
* :vitamin_A => float, in IU (international units)
* :Iron => float, in milligrams
* :calcium => float, in milligrams
{'fraction_non_alphanumeric': 0.09254302103250478, 'fraction_numerical': 0.0038240917782026767, 'mean_word_length': 4.472803347280335, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 35, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2788345', 'n_tokens_mistral': 834, 'n_tokens_neox': 747, 'n_words': 334}