shopify_app 21.5.0 → 21.6.0

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: '029b36852c1c017c7e96570b5e90aca34f2471bd9b56699c1bc1d4ef6f6996a8'
4
- data.tar.gz: '01239772e056908581b57f0cc93dc3b867fa14447887865c19b09e7b6fae08bf'
3
+ metadata.gz: a92631c8bf253b232ab525ca71c8eb4e9dd9803d040942994d6c82aa440a3a83
4
+ data.tar.gz: 27bc111e45acffb302e8c794e8ecbffe9c558ab0deb3234b9512050565d8e866
5
5
  SHA512:
6
- metadata.gz: 10cdbfa6bef394875c1d5bd518f62862c289bce52f835af22dae3c3c3f64d91629008e012cf10e7e1dd83fff70664fd01cc070dd90672e99f88bde9e529aba03
7
- data.tar.gz: e38068aca0100e029f26695c5558c698ebff02fb7a4189b217a7b8e38902d4a8d38564f4a8eabba4d959bf55677e54822444937d43da2251e88f9334c3dc2a85
6
+ metadata.gz: 5b1ff59a290a9ef78dde26b03ce51b01ab31569e1d3ea29daca6df81dfec1903e9f785b06db4aa5fbe7dd66a078c4647ff981f5e3a02508b7457c07e84a5cc51
7
+ data.tar.gz: 25d4baeebf8988d25bf3ac545deba5746ed6ff56e33d8ea0de8413fff50ae711e4804e2a10da2b893e2a741561be20b05b58d26ba9ab458fb29f582009dbd2f3
data/CHANGELOG.md CHANGED
@@ -1,6 +1,11 @@
1
1
  Unreleased
2
2
  ----------
3
3
 
4
+ 21.6.0 (July 11, 2023)
5
+ ----------
6
+ * Adds support for toggling test charges within `EnsureBilling` by adding `test` field to `BillingConfiguration` and pulling in environment variable [#1688](https://github.com/Shopify/shopify_app/pull/1688)
7
+ * Adds support for 2023-07 API version [#1706](https://github.com/Shopify/shopify_app/pull/1706)
8
+
4
9
  21.5.0 (May 18, 2023)
5
10
  ----------
6
11
  * Support Unified Admin [#1658](https://github.com/Shopify/shopify_app/pull/1658)
data/Gemfile.lock CHANGED
@@ -1,14 +1,14 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_app (21.5.0)
4
+ shopify_app (21.6.0)
5
5
  activeresource
6
6
  addressable (~> 2.7)
7
7
  browser_sniffer (~> 2.0)
8
8
  jwt (>= 2.2.3)
9
9
  rails (> 5.2.1)
10
10
  redirect_safely (~> 1.0)
11
- shopify_api (~> 13.0)
11
+ shopify_api (~> 13.1)
12
12
  sprockets-rails (>= 2.0.0)
13
13
 
14
14
  GEM
@@ -217,7 +217,7 @@ GEM
217
217
  ruby-progressbar (1.13.0)
218
218
  ruby2_keywords (0.0.5)
219
219
  securerandom (0.2.2)
220
- shopify_api (13.0.0)
220
+ shopify_api (13.1.0)
221
221
  activesupport
222
222
  concurrent-ruby
223
223
  hash_diff
@@ -227,7 +227,7 @@ GEM
227
227
  openssl
228
228
  securerandom
229
229
  sorbet-runtime
230
- zeitwerk (~> 2.5, < 2.6.5)
230
+ zeitwerk (~> 2.5)
231
231
  sorbet-runtime (0.5.10835)
232
232
  sprockets (4.2.0)
233
233
  concurrent-ruby (~> 1.0)
@@ -30,6 +30,7 @@ ShopifyApp.configure do |config|
30
30
  # amount: 5,
31
31
  # interval: ShopifyApp::BillingConfiguration::INTERVAL_EVERY_30_DAYS,
32
32
  # currency_code: "USD", # Only supports USD for now
33
+ # test: ENV.fetch('SHOPIFY_TEST_CHARGES', !Rails.env.production?)
33
34
  # )
34
35
 
35
36
  if defined? Rails::Server
@@ -129,12 +129,14 @@ module ShopifyApp
129
129
  attr_reader :amount
130
130
  attr_reader :currency_code
131
131
  attr_reader :interval
132
+ attr_reader :test
132
133
 
133
- def initialize(charge_name:, amount:, interval:, currency_code: "USD")
134
+ def initialize(charge_name:, amount:, interval:, currency_code: "USD", test: !Rails.env.production?)
134
135
  @charge_name = charge_name
135
136
  @amount = amount
136
137
  @currency_code = currency_code
137
138
  @interval = interval
139
+ @test = test
138
140
  end
139
141
  end
140
142
 
@@ -136,7 +136,7 @@ module ShopifyApp
136
136
  },
137
137
  },
138
138
  returnUrl: return_url,
139
- test: !Rails.env.production?,
139
+ test: ShopifyApp.configuration.billing.test,
140
140
  },
141
141
  )
142
142
 
@@ -154,7 +154,7 @@ module ShopifyApp
154
154
  currencyCode: ShopifyApp.configuration.billing.currency_code,
155
155
  },
156
156
  returnUrl: return_url,
157
- test: !Rails.env.production?,
157
+ test: ShopifyApp.configuration.billing.test,
158
158
  },
159
159
  )
160
160
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ShopifyApp
4
- VERSION = "21.5.0"
4
+ VERSION = "21.6.0"
5
5
  end
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shopify_app",
3
- "version": "21.4.1",
3
+ "version": "21.6.0",
4
4
  "repository": "git@github.com:Shopify/shopify_app.git",
5
5
  "author": "Shopify",
6
6
  "license": "MIT",
data/shopify_app.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  s.add_runtime_dependency("jwt", ">= 2.2.3")
21
21
  s.add_runtime_dependency("rails", "> 5.2.1")
22
22
  s.add_runtime_dependency("redirect_safely", "~> 1.0")
23
- s.add_runtime_dependency("shopify_api", "~> 13.0")
23
+ s.add_runtime_dependency("shopify_api", "~> 13.1")
24
24
  s.add_runtime_dependency("sprockets-rails", ">= 2.0.0")
25
25
 
26
26
  s.add_development_dependency("byebug")
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: 21.5.0
4
+ version: 21.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-19 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '13.0'
103
+ version: '13.1'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '13.0'
110
+ version: '13.1'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: sprockets-rails
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -490,7 +490,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
490
490
  - !ruby/object:Gem::Version
491
491
  version: '0'
492
492
  requirements: []
493
- rubygems_version: 3.4.13
493
+ rubygems_version: 3.4.14
494
494
  signing_key:
495
495
  specification_version: 4
496
496
  summary: This gem is used to get quickly started with the Shopify API