shopify_app 7.2.9 → 7.2.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d2ec69edc2076207b931a70ca4a179ca6eaa44b
4
- data.tar.gz: bbe2f402bbe4477342d3fd7e94b66159ef57c06f
3
+ metadata.gz: 87894c3d992a5da5774dc106688122849da0da14
4
+ data.tar.gz: 0fb63157027bf5fe1fb3a17fb5032fe62535dbdf
5
5
  SHA512:
6
- metadata.gz: b00c710d21d28a13ad737e0ad8448a0312ac1f66e9d707bf75ab4c9d48ebee5a3d54d6c97e37f1f0f540182920c083c9cd5ddcabb8d04457dd3d0993362ed99c
7
- data.tar.gz: 1d218d5683519c3f76483156ad019fcbd991791423782edfdd4d89ec8a2525285b964b62b84605c39d1a064693413307dc4fcfd96c045ff0760c71ccbf68f7b1
6
+ metadata.gz: f6bc0cf651683d9631e486047a8a89b5d543a67c61ff80faaf72987784e6d80a9d776d2f9e741861df4c5b3adf60ca5e159e08ed2c5c67c96a164f3fdaa52a78
7
+ data.tar.gz: 1e8a9be5663e3ea4aebd3fbd832c14bb61df1b5c11704a376d96382cd7c8b1a4d1e754485bd5c636ae9734dc9e1d4d9fd655b261b1419cccdf3719a8dd704e02
@@ -1,3 +1,8 @@
1
+ 7.2.10
2
+ -----
3
+ * Fix an issue with the create_shops generator template
4
+ [[#423]](https://github.com/Shopify/shopify_app/pull/423)
5
+
1
6
  7.2.9
2
7
  -----
3
8
  * Remove support for Rails 4
@@ -12,7 +12,7 @@ module ShopifyApp
12
12
  end
13
13
 
14
14
  def create_shop_migration
15
- copy_migration 'create_shops.rb'
15
+ migration_template "db/migrate/create_shops.erb", "db/migrate/create_shops.rb"
16
16
  end
17
17
 
18
18
  def create_session_storage_initializer
@@ -25,12 +25,8 @@ module ShopifyApp
25
25
 
26
26
  private
27
27
 
28
- def copy_migration(migration_name, config = {})
29
- migration_template(
30
- "db/migrate/#{migration_name}",
31
- "db/migrate/#{migration_name}",
32
- config
33
- )
28
+ def rails_migration_version
29
+ Rails.version.match(/\d\.\d/)[0]
34
30
  end
35
31
 
36
32
  # for generating a timestamp when using `create_migration`
@@ -1,4 +1,4 @@
1
- class CreateShops < ActiveRecord::Migration
1
+ class CreateShops < ActiveRecord::Migration[<%= rails_migration_version %>]
2
2
  def self.up
3
3
  create_table :shops do |t|
4
4
  t.string :shopify_domain, null: false
@@ -1,3 +1,3 @@
1
1
  module ShopifyApp
2
- VERSION = '7.2.9'
2
+ VERSION = '7.2.10'
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.2.9
4
+ version: 7.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-29 00:00:00.000000000 Z
11
+ date: 2017-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -171,7 +171,7 @@ files:
171
171
  - lib/generators/shopify_app/routes/routes_generator.rb
172
172
  - lib/generators/shopify_app/routes/templates/routes.rb
173
173
  - lib/generators/shopify_app/shop_model/shop_model_generator.rb
174
- - lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.rb
174
+ - lib/generators/shopify_app/shop_model/templates/db/migrate/create_shops.erb
175
175
  - lib/generators/shopify_app/shop_model/templates/shop.rb
176
176
  - lib/generators/shopify_app/shop_model/templates/shopify_session_repository.rb
177
177
  - lib/generators/shopify_app/shop_model/templates/shops.yml