Procházet zdrojové kódy

Merge pull request #283 from Shopify/readme-rails-5

Add Rails 5 usage note to README
Scott Walkinshaw před 8 roky
rodič
revize
dbbf04a29f
1 změnil soubory, kde provedl 16 přidání a 1 odebrání
  1. 16 1
      README.md

+ 16 - 1
README.md

@@ -22,12 +22,27 @@ This gem requires Ruby 2.3.1 as of version 4.3. If you need to use an older Ruby
 
 
 ### Installation
 ### Installation
 
 
-To easily install or upgrade to the latest release, use [gem](http://rubygems.org/)
+Add `shopify_api` to your `Gemfile`:
+
+```ruby
+gem 'shopify_api'
+```
+
+Or install via [gem](http://rubygems.org/)
 
 
 ```bash
 ```bash
 gem install shopify_api
 gem install shopify_api
 ```
 ```
 
 
+#### Rails 5
+
+shopify_api is compatible with Rails 5 but since the latest ActiveResource release (4.1) is locked on Rails 4.x, you'll need to use the unreleased master version:
+
+```ruby
+gem 'shopify_api'
+gem 'activeresource', github: 'rails/activeresource'
+```
+
 ### Getting Started
 ### Getting Started
 
 
 ShopifyAPI uses ActiveResource to communicate with the REST web service. ActiveResource has to be configured with a fully authorized URL of a particular store first. To obtain that URL you can follow these steps:
 ShopifyAPI uses ActiveResource to communicate with the REST web service. ActiveResource has to be configured with a fully authorized URL of a particular store first. To obtain that URL you can follow these steps: