shopify_app 7.0.4 → 7.0.5

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: 24adcdf60d551e803f895d21e59cc2a8d1e3568c
4
- data.tar.gz: b06241bf4f3ab38210efec82139536297009eb94
3
+ metadata.gz: 7341f6b8d55973bdcde911132e69bc438882963b
4
+ data.tar.gz: ab2dcf9e5c781813dd0137070ea702ee49de9b08
5
5
  SHA512:
6
- metadata.gz: 01fb498f9ec1a9d5c379dfb9c13b6739c31acf4ea5358e9dfcfbfc4632731f321d967838b59763c6202ca32aa82fe570a7e49e9edb4e8d4373c36f01306af317
7
- data.tar.gz: b911f97a9d859fc2fa1b4bf58a97b870e66d74780a5b622795f930acb4e7c004a3c87468e4691ad386ca0534923bae9f74e7e5cd1b033dce0f86649f5aa48064
6
+ metadata.gz: 33438b77e84a38adcde32a04c1901b73461fe74420a64042af100c7bc760f9e4e4266a3b6a5e17e8f48ccaf23cdb0c5dd568f88ba5af7cb36d0f15b2b82a1f07
7
+ data.tar.gz: b56a730ecc90e1aa9697bdcc52dae7a683e415ac8a00f7f5a7bb0936d5b80009259439272c106d8775d149e90dc4c16d675b7a8af3aade914234d6e170acf6de
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 7.0.5
2
+ -----
3
+
4
+ * Remove obtrusive “Continue” text in redirects
5
+
1
6
  7.0.4
2
7
  -----
3
8
 
data/README.md CHANGED
@@ -157,7 +157,7 @@ class CustomWebhooksController < ApplicationController
157
157
  include ShopifyApp::WebhookVerification
158
158
 
159
159
  def carts_update
160
- SomeJob.perform_later(shopify_domain: shop_domain)
160
+ SomeJob.perform_later(shopify_domain: shop_domain, webhook: params)
161
161
  head :ok
162
162
  end
163
163
  end
@@ -23,6 +23,14 @@ 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
+
26
34
  private
27
35
 
28
36
  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
@@ -0,0 +1,7 @@
1
+
2
+ protected
3
+
4
+ def shop
5
+ @shop ||= Shop.find_by(id: session[:shopify])
6
+ end
7
+ helper_method :shop
@@ -71,7 +71,6 @@ module ShopifyApp
71
71
  </script>
72
72
  </head>
73
73
  <body>
74
- <a href=#{url_json}>Continue</a>
75
74
  </body>
76
75
  </html>
77
76
  ), status: 302, location: url
@@ -95,7 +94,6 @@ module ShopifyApp
95
94
  </script>
96
95
  </head>
97
96
  <body>
98
- <a href=#{url_json} target="_top">Continue</a>
99
97
  </body>
100
98
  </html>
101
99
  )
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = '7.0.4'
2
+ VERSION = '7.0.5'
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.4
4
+ version: 7.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-04 00:00:00.000000000 Z
11
+ date: 2016-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -170,6 +170,7 @@ 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
173
174
  - lib/generators/shopify_app/shop_model/templates/shopify_session_repository.rb
174
175
  - lib/generators/shopify_app/shop_model/templates/shops.yml
175
176
  - lib/generators/shopify_app/shopify_app_generator.rb