shopify_api 14.1.0 → 14.2.0

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
  SHA256:
3
- metadata.gz: 2a0006cbbd93fb9880c4677510cd1223b6119c18176f7fc821c56f46d9220eb2
4
- data.tar.gz: 6b1bddbea59b7255f64659ec45cf2d9cd2e4fccf5aaf4a8804d526e37ff0a79c
3
+ metadata.gz: 58a7734df66af05601ae989f099fa50ad862bc60ded39ee711ec17a72e4ab1c5
4
+ data.tar.gz: ad5c4b5724ce8defa5058df1b59f743cebf834e425f75620070e304d9d274655
5
5
  SHA512:
6
- metadata.gz: 888a1c8560873f27a0d4c73460ab15145410392c6d35818b728e81a5e10813da1032e6638aed8445611dfc46fb2fa08e9afddaf2f54ca762c1a534725d571dc4
7
- data.tar.gz: 79bbf5792589e217f4bae76db4d31a9d5b6c9b5e516c200037fd7d624f71a2f462015f264faf378244b73c661de76cbc2f751c278a0c4a60eb61c4b381c7c034
6
+ metadata.gz: 29330b758a67691c6724cd78adfabf9b23466eccf6030510b0035d7e2ca0ea39fbc2eead5b6e2d53f8047aa137373ce8f2c402b71e06bd622208ccc24a34fb7d
7
+ data.tar.gz: 761253df5dbecfda0b33f4b4eb891d33536cc9489398bb0cb64f637912cdd346e2ab48fb8490e5e32d5e7c837c69dded7fb17af1eef412ed3253dba4446ea1b7
data/CHANGELOG.md CHANGED
@@ -4,6 +4,8 @@ Note: For changes to the API, see https://shopify.dev/changelog?filter=api
4
4
 
5
5
  ## Unreleased
6
6
 
7
+ ## 14.2.0
8
+ - [#1309](https://github.com/Shopify/shopify-api-ruby/pull/1309) Add `Session#copy_attributes_from` method
7
9
 
8
10
  ## 14.1.0
9
11
  - [#1071](https://github.com/Shopify/shopify-api-ruby/issues/1071) Fix FulfillmentEvent class types
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shopify_api (14.1.0)
4
+ shopify_api (14.2.0)
5
5
  activesupport
6
6
  concurrent-ruby
7
7
  hash_diff
@@ -116,7 +116,7 @@ GEM
116
116
  thor (>= 0.19.2)
117
117
  syntax_tree (6.2.0)
118
118
  prettier_print (>= 1.2.0)
119
- tapioca (0.13.1)
119
+ tapioca (0.13.3)
120
120
  bundler (>= 2.2.25)
121
121
  netrc (>= 0.11.0)
122
122
  parallel (>= 1.21.0)
@@ -121,6 +121,17 @@ module ShopifyAPI
121
121
  end
122
122
  end
123
123
 
124
+ sig { params(other: Session).returns(Session) }
125
+ def copy_attributes_from(other)
126
+ JSON.parse(other.serialize).keys.each do |key|
127
+ next if key.include?("^")
128
+
129
+ variable_name = "@#{key}"
130
+ instance_variable_set(variable_name, other.instance_variable_get(variable_name))
131
+ end
132
+ self
133
+ end
134
+
124
135
  sig { returns(String) }
125
136
  def serialize
126
137
  Oj.dump(self)
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module ShopifyAPI
5
- VERSION = "14.1.0"
5
+ VERSION = "14.2.0"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 14.1.0
4
+ version: 14.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shopify
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-04-08 00:00:00.000000000 Z
11
+ date: 2024-04-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -1009,7 +1009,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1009
1009
  - !ruby/object:Gem::Version
1010
1010
  version: '0'
1011
1011
  requirements: []
1012
- rubygems_version: 3.5.7
1012
+ rubygems_version: 3.5.9
1013
1013
  signing_key:
1014
1014
  specification_version: 4
1015
1015
  summary: The gem for accessing the Shopify API