<commit_before>h2. Shopify application generator

h3. Description:

This plugin adds access to Shopify's powerful API to your rails application. 
    
The generator creates a basic login controller for authenticating with your
Shop and a controller called "home" which displays basic information 
about your products, orders and articles.
    
bq. _Note:_ It's recommended to use this on a new Rails project, so that the 
generator won't overwrite/delete some of your files.

h3. Installation:

bq. @gem install shopify_api@

bq. @script/plugin install git://github.com/Shopify/shopify_app@

h3. Usage:

Pass your API key and then your Secret, which the login controller 
will need to authenticate with your shop.

If you don't have an API key yet, register your application at: "YourShopURL/admin/api":#

(e.g. "http://yourshopname.myshopify.com/admin/api":#)

    
h3. Example:

@script/generate shopify_app edffbb1bb793e2750686e6f4647a384a fed5bb18hde3e2750686e6f4647a781a@
        
This will create a login controller and a home controller with their own views.

h3. After running the generator:

# Run your application with @script/server@
# And visit "http://localhost:3000":http://localhost:3000 and you are ready to log in with your Shopify account. 
<commit_msg>Updated README for Rails 3<commit_after>h2. Shopify application generator for Rails 3

h3. Description:

This plugin makes it easy to get a Rails 3 app up and running with the
Shopify API.

The generator creates a basic login controller for authenticating with your
shop and a controller called "home" which displays basic information about
your products, orders and articles.

bq. _Note:_ It's recommended to use this on a new Rails project, so that the
generator won't overwrite/delete some of your files.

h3. Installation:

<pre>
<code>
  $ gem install shopify_api
  $ rails plugin install git://github.com/Shopify/shopify_app.git
</code>
</pre>

h3. Usage:

<pre>
<code>
  $ rails generate shopify_app your_app_api_key your_app_secret
</code>
</pre>

If you don't have an API key yet, create a Shopify Partner account at
http://shopify.com/partners and create an app. You can also create test shops
once you're logged in as a partner.

You can also create a private application that only works for your shop by
visiting "https://YOUR-SHOP.myshopify.com/admin/api":https://YOUR-SHOP.myshopify.com/admin/api

h4. Example:

<pre>
<code>
  $ rails generate shopify_app edffbb1bb793e2750686e6f4647a384a fed5bb18hde3e2750686e6f4647a781a
</code>
</pre>
        
This will create a LoginController and a HomeController with their own views.

h3. After running the generator:

# Start your application with @rails server@
# Visit "http://localhost:3000":http://localhost:3000 and you are ready to
log in with your Shopify account.

{'fraction_non_alphanumeric': 0.07147962830593281, 'fraction_numerical': 0.03824160114367405, 'mean_word_length': 4.331428571428572, 'pattern_counts': {'":': 5, '<': 15, '<?xml version=': 0, '>': 15, 'https://': 2, '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': '2170038', 'n_tokens_mistral': 921, 'n_tokens_neox': 840, 'n_words': 356}