shopify_api-graphql-tiny 0.1.1 → 0.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/README.md +22 -0
- data/lib/shopify_api/graphql/tiny/version.rb +1 -1
- data/lib/shopify_api/graphql/tiny.rb +4 -0
- metadata +3 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be69f222bb991d00b37c44d8aea2ad9caee713527ce23c60121a401d8d2a8b39
|
|
4
|
+
data.tar.gz: 5a35aaada946e0f0ef1dc50ea7962da2252a7f70a111a911f660b1c8eab3a79a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: be94db6e155cc11d0136a229e6ee728ac808c655896f5489a657fc4ba82b7d5ab8403989bc356cfaaa617766077220e8234c60ff6d9aa9a651d484490cb161c3
|
|
7
|
+
data.tar.gz: 166c19ddde4a76d8d216bffac16d3844c9add39f9884eb70adac3477ce5b222e19cba820c1bae1204f58424239be38a1ec063d8e75a977f337f0d5df5afc6452
|
data/README.md
CHANGED
|
@@ -4,6 +4,26 @@ Lightweight, no-nonsense, Shopify GraphQL Admin API client with built-in paginat
|
|
|
4
4
|
|
|
5
5
|
[](https://github.com/ScreenStaring/shopify_api-graphql-tiny/actions)
|
|
6
6
|
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
Add this line to your application's `Gemfile`:
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
gem "shopify_api-graphql-tiny"
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
And then execute:
|
|
16
|
+
|
|
17
|
+
```sh
|
|
18
|
+
bundle
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Or install it yourself as:
|
|
22
|
+
|
|
23
|
+
```sh
|
|
24
|
+
gem install shopify_api-graphql-tiny
|
|
25
|
+
```
|
|
26
|
+
|
|
7
27
|
## Usage
|
|
8
28
|
|
|
9
29
|
```rb
|
|
@@ -64,6 +84,8 @@ in your queries and wrap them in a function that accepts a page/cursor argument.
|
|
|
64
84
|
The pager's `#execute` is like the non-paginated `#execute` method and accepts additional, non-pagination query arguments:
|
|
65
85
|
|
|
66
86
|
```rb
|
|
87
|
+
gql = ShopifyAPI::GraphQL::Tiny.new("my-shop", token)
|
|
88
|
+
pager = gql.paginate
|
|
67
89
|
pager.execute(query, :foo => 123)
|
|
68
90
|
```
|
|
69
91
|
|
|
@@ -86,6 +86,10 @@ module ShopifyAPI
|
|
|
86
86
|
@headers[QUERY_COST_HEADER] = "true" if retry?
|
|
87
87
|
|
|
88
88
|
@endpoint = URI(sprintf(ENDPOINT, @domain, !@options[:version].to_s.strip.empty? ? "/#{@options[:version]}" : ""))
|
|
89
|
+
|
|
90
|
+
if @options[:retry].is_a?(Hash)
|
|
91
|
+
warn "DEPRECATION WARNING from #{self.class}: specifying retry options as a Hash via the :retry option is deprecated and will be removed in v1.0"
|
|
92
|
+
end
|
|
89
93
|
end
|
|
90
94
|
|
|
91
95
|
#
|
metadata
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shopify_api-graphql-tiny
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.2.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Skye Shaw
|
|
8
|
-
autorequire:
|
|
9
8
|
bindir: exe
|
|
10
9
|
cert_chain: []
|
|
11
|
-
date:
|
|
10
|
+
date: 2026-01-20 00:00:00.000000000 Z
|
|
12
11
|
dependencies:
|
|
13
12
|
- !ruby/object:Gem::Dependency
|
|
14
13
|
name: shopify_api_retry
|
|
@@ -80,7 +79,6 @@ dependencies:
|
|
|
80
79
|
- - "~>"
|
|
81
80
|
- !ruby/object:Gem::Version
|
|
82
81
|
version: '3.0'
|
|
83
|
-
description:
|
|
84
82
|
email:
|
|
85
83
|
- skye.shaw@gmail.com
|
|
86
84
|
executables: []
|
|
@@ -109,7 +107,6 @@ metadata:
|
|
|
109
107
|
changelog_uri: https://github.com/ScreenStaring/shopify_api-graphql-tiny/blob/master/Changes
|
|
110
108
|
documentation_uri: https://rubydoc.info/gems/shopify_api-graphql-tiny
|
|
111
109
|
source_code_uri: https://github.com/ScreenStaring/shopify_api-graphql-tiny
|
|
112
|
-
post_install_message:
|
|
113
110
|
rdoc_options: []
|
|
114
111
|
require_paths:
|
|
115
112
|
- lib
|
|
@@ -124,8 +121,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
124
121
|
- !ruby/object:Gem::Version
|
|
125
122
|
version: '0'
|
|
126
123
|
requirements: []
|
|
127
|
-
rubygems_version: 3.
|
|
128
|
-
signing_key:
|
|
124
|
+
rubygems_version: 3.6.2
|
|
129
125
|
specification_version: 4
|
|
130
126
|
summary: Lightweight, no-nonsense, Shopify GraphQL Admin API client with built-in
|
|
131
127
|
pagination and retry
|