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 +4 -4
- data/CHANGELOG.md +2 -0
- data/Gemfile.lock +2 -2
- data/lib/shopify_api/auth/session.rb +11 -0
- data/lib/shopify_api/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 58a7734df66af05601ae989f099fa50ad862bc60ded39ee711ec17a72e4ab1c5
|
|
4
|
+
data.tar.gz: ad5c4b5724ce8defa5058df1b59f743cebf834e425f75620070e304d9d274655
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
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)
|
data/lib/shopify_api/version.rb
CHANGED
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.
|
|
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-
|
|
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.
|
|
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
|