shopify-gold 3.2.0 → 3.2.1

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
  SHA256:
3
- metadata.gz: 141b054c45d49dff9fa6b42225fbff18e164b7eab11b9065df28f47545d87668
4
- data.tar.gz: c1671372a49f5b7badadfe6b6ae176fb42efeeb7f023fa289b9d0d883a8e42a5
3
+ metadata.gz: 91ad020814df8b7d3609b3b3dabe958c659697ab2ca7681bb9f1d29a1f117bb3
4
+ data.tar.gz: 5b9073205471bce47a78f463ffb5441cb492442d04c6e431fbc17d81b630ee01
5
5
  SHA512:
6
- metadata.gz: a62956f9a4afdabc1399e6ae736daf5d2473f4103db1ec48670e841d61b8ed8bbd5c5797dba79427a95e0e4c97386d043530cc804b92cd74b9af22aed642df14
7
- data.tar.gz: cca7881006d1e7783e327ead4534e455a41a90e3abc639793f92314a927642a229295f64778ea042fc737100934a84e37f68d90e83b2c71d714b2021e044b3de
6
+ metadata.gz: a1acb791f4b5fff8ec139f0bc07d331b6b41468939e0cb3839837073000ae6cd6f70a294a3323032aa7fcb04a02b5b7af38ef78743a65b8b4ff25a8a4c21417d
7
+ data.tar.gz: bd588d1e949d6cedaac75c585c271e9299ffab794a53824941b21e334b99721ba837b00dddfb5decda9ce41d16d7d834dad66dbe81b362ea31d16af5ca6de6ba
@@ -123,7 +123,7 @@ module Gold
123
123
  end
124
124
  end
125
125
  end
126
-
126
+
127
127
  protected
128
128
 
129
129
  # Returns the Shopify-specific properties for the current shop.
@@ -14,6 +14,8 @@ module Gold
14
14
  @billing.transition_to(:reinstalled)
15
15
 
16
16
  case @billing.current_state
17
+ when :new, :reinstalled
18
+ Gold.configuration.on_install&.call(@billing)
17
19
  when :frozen
18
20
  return CheckChargeOp.new(@billing).call
19
21
  when :cleanup
@@ -22,8 +24,6 @@ module Gold
22
24
  return InstallFailed.new(:cleanup_in_progress)
23
25
  end
24
26
 
25
- Gold.configuration.on_install&.call(@billing)
26
-
27
27
  Success.new
28
28
  end
29
29
  end
@@ -1,3 +1,3 @@
1
1
  module Gold
2
- VERSION = "3.2.0".freeze
2
+ VERSION = "3.2.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify-gold
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Smith
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-10-01 00:00:00.000000000 Z
12
+ date: 2019-11-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails