shopify_app 7.0.5 → 7.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7341f6b8d55973bdcde911132e69bc438882963b
4
- data.tar.gz: ab2dcf9e5c781813dd0137070ea702ee49de9b08
3
+ metadata.gz: 473d388c8167b2732271bdb9ab34429f91f7c94c
4
+ data.tar.gz: b73c5f910f930bd48c82f5198306e34f5c8d2df7
5
5
  SHA512:
6
- metadata.gz: 33438b77e84a38adcde32a04c1901b73461fe74420a64042af100c7bc760f9e4e4266a3b6a5e17e8f48ccaf23cdb0c5dd568f88ba5af7cb36d0f15b2b82a1f07
7
- data.tar.gz: b56a730ecc90e1aa9697bdcc52dae7a683e415ac8a00f7f5a7bb0936d5b80009259439272c106d8775d149e90dc4c16d675b7a8af3aade914234d6e170acf6de
6
+ metadata.gz: 5d69104315672a708a5e061584893ab91e023b5eaf5be58f2edf2cb8047803028cdce6ef8005fdecfeebf7345978f501c0f2bf94947a840522072e683985fe3e
7
+ data.tar.gz: 8c6a593a86c52089ec29beab5baebf7738b7f05100c83ae0f6909a88fb6e05e5c758ec1e582803bdefbc38f5cdadce1c4a28acbd6230dc64199e33286078c48a
data/README.md CHANGED
@@ -6,7 +6,7 @@ Shopify Application Rails engine and generator
6
6
 
7
7
  Description
8
8
  -----------
9
- This gem includes a Rails Engine and generators for writing Rails applications using the Shopify API. The Engine provides a SessionsController and all the required code for authenticating with a shop.
9
+ This gem includes a Rails Engine and generators for writing Rails applications using the Shopify API. The Engine provides a SessionsController and all the required code for authenticating with a shop via Oauth (other authentication methods are not supported).
10
10
 
11
11
  The [example](https://github.com/Shopify/shopify_app/tree/master/example) directory contains an app that was generated with this gem. It also contains sample code demonstrating the usage of the embedded app sdk.
12
12
 
@@ -23,14 +23,6 @@ module ShopifyApp
23
23
  copy_file 'shops.yml', 'test/fixtures/shops.yml'
24
24
  end
25
25
 
26
- def inject_into_authenticated_controller
27
- inject_into_file(
28
- 'app/controllers/shopify_app/authenticated_controller.rb',
29
- File.read(File.expand_path(find_in_source_paths('shop_helper.rb'))),
30
- before: "\nend"
31
- )
32
- end
33
-
34
26
  private
35
27
 
36
28
  def copy_migration(migration_name, config = {})
@@ -1,6 +1,6 @@
1
1
  class CreateShops < ActiveRecord::Migration
2
2
  def self.up
3
- create_table :shops do |t|
3
+ create_table :shops do |t|
4
4
  t.string :shopify_domain, null: false
5
5
  t.string :shopify_token, null: false
6
6
  t.timestamps
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = '7.0.5'
2
+ VERSION = '7.0.6'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.5
4
+ version: 7.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-02 00:00:00.000000000 Z
11
+ date: 2016-06-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -170,7 +170,6 @@ files:
170
170
  - lib/generators/shopify_app/shop_model/shop_model_generator.rb
171
171
  - lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.rb
172
172
  - lib/generators/shopify_app/shop_model/templates/shop.rb
173
- - lib/generators/shopify_app/shop_model/templates/shop_helper.rb
174
173
  - lib/generators/shopify_app/shop_model/templates/shopify_session_repository.rb
175
174
  - lib/generators/shopify_app/shop_model/templates/shops.yml
176
175
  - lib/generators/shopify_app/shopify_app_generator.rb
@@ -1,7 +0,0 @@
1
-
2
- protected
3
-
4
- def shop
5
- @shop ||= Shop.find_by(id: session[:shopify])
6
- end
7
- helper_method :shop