squarespace_api 0.0.5 → 1.0.1
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/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile.lock +20 -16
- data/README.md +242 -1
- data/lib/squarespace_api/paginated_fetch.rb +4 -4
- data/lib/squarespace_api/resource_group.rb +4 -0
- data/lib/squarespace_api/resource_group_actions.rb +5 -4
- data/lib/squarespace_api/version.rb +1 -1
- data/rakefile +6 -0
- data/spec/squarespace_api/resource_group_actions_spec.rb +27 -0
- data/spec/squarespace_api_spec.rb +1 -1
- data/squarespace_api.gemspec +10 -8
- metadata +40 -37
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e6f7788076ff9fc2ffa41413601382ca709667d5cb2465aefbd05210128b6ec6
|
4
|
+
data.tar.gz: 81368918852aa42b9ab819842c6ad71b58d45f2be0d7406a5e211a65a0ed984d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c030599588c0537738d76341364d9f40ae1d3b88c35dd9f06c16e0eb77dad5330f897b0811bc1a176509bb66a6ff62472c4f923e55ca70d9fd035c889e5a98a
|
7
|
+
data.tar.gz: dca3f5ff58069a53c7484f5824e19e083ac88417c085913f033ae5e1de8171ea37bf5a3b390c2f4faac378958bcb17fc006dc7f2544a283a73f8929f60b4e697
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at jenny610138@gmail.com. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile.lock
CHANGED
@@ -1,11 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
squarespace_api (
|
5
|
-
faraday
|
6
|
-
faraday_middleware
|
7
|
-
json
|
8
|
-
yaml
|
4
|
+
squarespace_api (1.0.1)
|
5
|
+
faraday (~> 1.7)
|
6
|
+
faraday_middleware (~> 1.1)
|
7
|
+
json (~> 2.5)
|
9
8
|
|
10
9
|
GEM
|
11
10
|
remote: https://rubygems.org/
|
@@ -16,35 +15,40 @@ GEM
|
|
16
15
|
crack (0.4.5)
|
17
16
|
rexml
|
18
17
|
diff-lcs (1.4.4)
|
19
|
-
faraday (1.
|
18
|
+
faraday (1.10.0)
|
20
19
|
faraday-em_http (~> 1.0)
|
21
20
|
faraday-em_synchrony (~> 1.0)
|
22
21
|
faraday-excon (~> 1.1)
|
23
|
-
faraday-httpclient (~> 1.0
|
22
|
+
faraday-httpclient (~> 1.0)
|
23
|
+
faraday-multipart (~> 1.0)
|
24
24
|
faraday-net_http (~> 1.0)
|
25
|
-
faraday-net_http_persistent (~> 1.
|
25
|
+
faraday-net_http_persistent (~> 1.0)
|
26
26
|
faraday-patron (~> 1.0)
|
27
27
|
faraday-rack (~> 1.0)
|
28
|
-
|
28
|
+
faraday-retry (~> 1.0)
|
29
29
|
ruby2_keywords (>= 0.0.4)
|
30
30
|
faraday-em_http (1.0.0)
|
31
31
|
faraday-em_synchrony (1.0.0)
|
32
32
|
faraday-excon (1.1.0)
|
33
33
|
faraday-httpclient (1.0.1)
|
34
|
+
faraday-multipart (1.0.3)
|
35
|
+
multipart-post (>= 1.2, < 3)
|
34
36
|
faraday-net_http (1.0.1)
|
35
37
|
faraday-net_http_persistent (1.2.0)
|
36
38
|
faraday-patron (1.0.0)
|
37
39
|
faraday-rack (1.0.0)
|
38
|
-
|
40
|
+
faraday-retry (1.0.3)
|
41
|
+
faraday_middleware (1.2.0)
|
39
42
|
faraday (~> 1.0)
|
40
43
|
hashdiff (1.0.1)
|
41
|
-
json (2.
|
44
|
+
json (2.6.1)
|
42
45
|
method_source (1.0.0)
|
43
46
|
multipart-post (2.1.1)
|
44
|
-
pry (0.
|
47
|
+
pry (0.13.1)
|
45
48
|
coderay (~> 1.1)
|
46
49
|
method_source (~> 1.0)
|
47
50
|
public_suffix (4.0.6)
|
51
|
+
rake (11.3.0)
|
48
52
|
rexml (3.2.5)
|
49
53
|
rspec (3.10.0)
|
50
54
|
rspec-core (~> 3.10.0)
|
@@ -64,16 +68,16 @@ GEM
|
|
64
68
|
addressable (>= 2.8.0)
|
65
69
|
crack (>= 0.3.2)
|
66
70
|
hashdiff (>= 0.4.0, < 2.0.0)
|
67
|
-
yaml (0.1.1)
|
68
71
|
|
69
72
|
PLATFORMS
|
70
73
|
ruby
|
71
74
|
|
72
75
|
DEPENDENCIES
|
73
|
-
pry
|
74
|
-
|
76
|
+
pry (~> 0.13.1)
|
77
|
+
rake (~> 11.2)
|
78
|
+
rspec (~> 3.0)
|
75
79
|
squarespace_api!
|
76
|
-
webmock
|
80
|
+
webmock (~> 3.14)
|
77
81
|
|
78
82
|
BUNDLED WITH
|
79
83
|
1.17.3
|
data/README.md
CHANGED
@@ -1,3 +1,244 @@
|
|
1
1
|
# Squarespace Api
|
2
2
|
|
3
|
-
|
3
|
+
[](https://rubygems.org/gems/squarespace_api) 
|
4
|
+
|
5
|
+
|
6
|
+
Ruby interface to the [Squarespace API](https://developers.squarespace.com/commerce-apis/overview).
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Available in RubyGems.
|
11
|
+
|
12
|
+
```bash
|
13
|
+
$ gem install 'squarespace_api'
|
14
|
+
```
|
15
|
+
|
16
|
+
Add to your Gem file
|
17
|
+
```ruby
|
18
|
+
gem 'squarespace_api'
|
19
|
+
```
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
## Quick Example
|
24
|
+
|
25
|
+
- Thread Safety Usage
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
require 'squarespace_api'
|
29
|
+
|
30
|
+
client = SquarespaceApi::Client.new(
|
31
|
+
SquarespaceApi::Config.new(
|
32
|
+
access_token: 'your access token'
|
33
|
+
)
|
34
|
+
)
|
35
|
+
|
36
|
+
# get one page of order
|
37
|
+
client.orders.all
|
38
|
+
=> [<SquarespaceOrderHash>, ...]
|
39
|
+
|
40
|
+
|
41
|
+
# get every page of orders with filter
|
42
|
+
orders = []
|
43
|
+
orders = client.orders.all(fulfillmentStatus: 'PENDING') do |orders_per_page|
|
44
|
+
orders += orders_per_page
|
45
|
+
# or do something
|
46
|
+
end
|
47
|
+
|
48
|
+
# get website
|
49
|
+
client.website
|
50
|
+
```
|
51
|
+
|
52
|
+
|
53
|
+
## ResourceGroups
|
54
|
+
|
55
|
+
- [Orders](https://developers.squarespace.com/commerce-apis/orders-overview)
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
# get one page
|
59
|
+
client.orders.all(fulfillmentStatus: 'PENDING')
|
60
|
+
|
61
|
+
# get all pages
|
62
|
+
orders = []
|
63
|
+
orders = client.orders.all(fulfillmentStatus: 'PENDING') do |orders_per_page|
|
64
|
+
orders += orders_per_page
|
65
|
+
# or do something
|
66
|
+
end
|
67
|
+
|
68
|
+
# find an order
|
69
|
+
client.orders.find(id)
|
70
|
+
|
71
|
+
# create an order
|
72
|
+
client.orders.create(params)
|
73
|
+
|
74
|
+
# fulfill an order
|
75
|
+
client.orders.fulfil(id, params)
|
76
|
+
```
|
77
|
+
|
78
|
+
- [Products](https://developers.squarespace.com/commerce-apis/products-overview)
|
79
|
+
|
80
|
+
```ruby
|
81
|
+
client.products.all
|
82
|
+
client.products.create(params)
|
83
|
+
client.products.where(id: id)
|
84
|
+
client.products.find(id)
|
85
|
+
client.products.find_by_ids([id_1, id_2])
|
86
|
+
client.products.update(id, params)
|
87
|
+
client.products.delete(id)
|
88
|
+
```
|
89
|
+
|
90
|
+
- ProductImages
|
91
|
+
|
92
|
+
```ruby
|
93
|
+
# Noted that Path parameters should be passed in params.
|
94
|
+
client.product_images.upload(file_path, { product_id: product_id })
|
95
|
+
client.product_images.status(id, { product_id: product_id })
|
96
|
+
client.product_images.order(id, { product_id: product_id, afterImageId: 'otherImageId' })
|
97
|
+
client.product_images.update(id, { product_id: product_id, altText: 'my_picture' })
|
98
|
+
```
|
99
|
+
|
100
|
+
- ProductVariants
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
# Noted that Path parameters should be passed in params.
|
104
|
+
client.product_variants.create({ product_id: product_id })
|
105
|
+
client.product_variants.update(id, { sku: 'P1234', product_id: product_id })
|
106
|
+
```
|
107
|
+
|
108
|
+
|
109
|
+
- ProductVarantImages
|
110
|
+
|
111
|
+
```ruby
|
112
|
+
# Noted that Path parameters should be passed in body params.
|
113
|
+
client.product_variant_images.create({ imageId: image_id, product_id: product_id, variant_id: variant_id })
|
114
|
+
```
|
115
|
+
|
116
|
+
- Inventory
|
117
|
+
|
118
|
+
```ruby
|
119
|
+
client.inventory.all
|
120
|
+
client.inventory.find(id)
|
121
|
+
client.inventory_adjustments.create(params)
|
122
|
+
```
|
123
|
+
|
124
|
+
- Profiles
|
125
|
+
|
126
|
+
```ruby
|
127
|
+
client.profiles.all
|
128
|
+
client.profiles.find(id)
|
129
|
+
client.profiles.create(params)
|
130
|
+
```
|
131
|
+
|
132
|
+
- StorePages
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
client.store_pages.all
|
136
|
+
```
|
137
|
+
|
138
|
+
- Transactions
|
139
|
+
|
140
|
+
```ruby
|
141
|
+
client.transactions.all
|
142
|
+
client.transactions.find(id)
|
143
|
+
client.transactions.find_by_ids([id_1, id_2])
|
144
|
+
```
|
145
|
+
|
146
|
+
- WebhookSubscriptions
|
147
|
+
|
148
|
+
```ruby
|
149
|
+
client.webhook_subscriptions.all
|
150
|
+
client.webhook_subscriptions.find(id)
|
151
|
+
client.webhook_subscriptions.create(id)
|
152
|
+
client.webhook_subscriptions.update(id, params)
|
153
|
+
client.webhook_subscriptions.delete(id)
|
154
|
+
client.webhook_subscriptions.send_test_notification(id, params)
|
155
|
+
client.webhook_subscriptions.rotate_secret(id)
|
156
|
+
```
|
157
|
+
|
158
|
+
|
159
|
+
## Single Resource
|
160
|
+
|
161
|
+
- Website
|
162
|
+
|
163
|
+
```ruby
|
164
|
+
client.website
|
165
|
+
```
|
166
|
+
|
167
|
+
## Oauth App
|
168
|
+
|
169
|
+
### Configuration
|
170
|
+
|
171
|
+
configure your oauth cerdentials in ENV:
|
172
|
+
|
173
|
+
```ruby
|
174
|
+
# Auto load ENV
|
175
|
+
SQUARESPACE_CLIENT_ID = 'your client id'
|
176
|
+
SQUARESPACE_CLIENT_SECRET = 'your client secret'
|
177
|
+
```
|
178
|
+
|
179
|
+
Or configure in your initializer:
|
180
|
+
|
181
|
+
```ruby
|
182
|
+
SquarespaceApi.configure do |c|
|
183
|
+
c.client_id = 'your client id'
|
184
|
+
c.client_secret = 'your client secret'
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
If you have multiple apps, consider thread safe usage:
|
189
|
+
|
190
|
+
```ruby
|
191
|
+
client = SquarespaceApi::Client.new(
|
192
|
+
SquarespaceApi::Config.new(
|
193
|
+
client_id: 'your client id',
|
194
|
+
client_secret: 'your client secret'
|
195
|
+
)
|
196
|
+
)
|
197
|
+
```
|
198
|
+
|
199
|
+
### Oauth Actions
|
200
|
+
|
201
|
+
- Construct Oauth Url
|
202
|
+
|
203
|
+
```ruby
|
204
|
+
SquarespaceApi::Client.new.build_oauth_authorize_url(
|
205
|
+
redirect_url: 'https://api.test.com/squarespace',
|
206
|
+
scope: 'website.orders,website.orders.read',
|
207
|
+
state: '1234',
|
208
|
+
access_type: "offline"
|
209
|
+
)
|
210
|
+
|
211
|
+
=> 'https://login.squarespace.com/api/1/login/oauth/provider/authorize?client_id=&redirect_url=https://api.test.com/squarespace&scope=website.orders,website.orders.read&state=1234&access_type=offline'
|
212
|
+
```
|
213
|
+
|
214
|
+
- Request Access Token
|
215
|
+
|
216
|
+
```ruby
|
217
|
+
# request access token
|
218
|
+
client.tokens.create(
|
219
|
+
code: 'code sent from Squaerspace',
|
220
|
+
redirect_uri: "your redirect uri"
|
221
|
+
)
|
222
|
+
```
|
223
|
+
|
224
|
+
- Request Refresh Token
|
225
|
+
|
226
|
+
```ruby
|
227
|
+
client.tokens.create(
|
228
|
+
refresh_token: 'some_refresh_token',
|
229
|
+
grant_type: "refresh_token"
|
230
|
+
)
|
231
|
+
```
|
232
|
+
|
233
|
+
## Contributing
|
234
|
+
|
235
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/cdragon1116/squarespace_api. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
236
|
+
|
237
|
+
## License
|
238
|
+
|
239
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
240
|
+
|
241
|
+
## Code of Conduct
|
242
|
+
|
243
|
+
Everyone interacting in the Squarespace API project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/cdragon1116/squarespace_api/blob/master/CODE_OF_CONDUCT.md).
|
244
|
+
|
@@ -2,11 +2,11 @@ module SquarespaceApi
|
|
2
2
|
module PaginatedFetch
|
3
3
|
def self.build(params = {}, &_block)
|
4
4
|
loop do
|
5
|
-
|
5
|
+
pagination = yield(params)
|
6
6
|
|
7
|
-
has_next_page =
|
8
|
-
break
|
9
|
-
params = { cursor:
|
7
|
+
has_next_page = !!pagination&.dig('hasNextPage')
|
8
|
+
break if not has_next_page
|
9
|
+
params = { cursor: pagination['nextPageCursor'] }
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
@@ -6,13 +6,14 @@ module SquarespaceApi
|
|
6
6
|
module All
|
7
7
|
def all(params = {}, &_block)
|
8
8
|
PaginatedFetch.build(params) do |paginated_params|
|
9
|
-
|
10
|
-
connection
|
9
|
+
query_result = connection
|
11
10
|
.get(UriComponentBuidler.construct(resources_path, paginated_params), params: paginated_params)
|
12
|
-
)
|
11
|
+
response = parse_collection(query_result)
|
12
|
+
pagination = parse_pagination(query_result)
|
13
|
+
|
13
14
|
return response unless block_given?
|
14
15
|
yield(response)
|
15
|
-
|
16
|
+
pagination
|
16
17
|
end
|
17
18
|
end
|
18
19
|
|
data/rakefile
ADDED
@@ -22,6 +22,33 @@ describe SquarespaceApi::ResourceGroupActions do
|
|
22
22
|
|
23
23
|
it { expect(resource.all(status: 'pending')).to eq([]) }
|
24
24
|
it { expect(resource.where(status: 'pending')).to eq([]) }
|
25
|
+
|
26
|
+
context "when pagination exists" do
|
27
|
+
before do
|
28
|
+
stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy?status=pending")
|
29
|
+
.to_return(status: 200, body: {
|
30
|
+
'dummy' => [{ 'id' => 1 }],
|
31
|
+
'pagination' => { "hasNextPage" => true, 'nextPageCursor' => "cursor"
|
32
|
+
}
|
33
|
+
}.to_json)
|
34
|
+
|
35
|
+
stub_request(:get, "https://api.squarespace.com/1.0/commerce/dummy?cursor=cursor")
|
36
|
+
.to_return(status: 200, body: {
|
37
|
+
'dummy' => [{ 'id' => 2 }],
|
38
|
+
'pagination' => { "hasNextPage" => false }
|
39
|
+
}.to_json)
|
40
|
+
end
|
41
|
+
|
42
|
+
it "should return all orders" do
|
43
|
+
orders = []
|
44
|
+
|
45
|
+
resource.all(status: 'pending') do |new_orders|
|
46
|
+
orders += new_orders
|
47
|
+
end
|
48
|
+
|
49
|
+
expect(orders).to eq([{ 'id' => 1 }, { 'id' => 2 }])
|
50
|
+
end
|
51
|
+
end
|
25
52
|
end
|
26
53
|
|
27
54
|
describe '#find' do
|
data/squarespace_api.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "squarespace_api"
|
3
|
-
spec.version = "
|
3
|
+
spec.version = "1.0.1"
|
4
4
|
spec.summary = "Ruby gem interacting with the Squarespace API."
|
5
5
|
spec.description = "Ruby gem interacting with the Squarespace API."
|
6
6
|
spec.authors = ["cdragon"]
|
@@ -11,12 +11,14 @@ Gem::Specification.new do |spec|
|
|
11
11
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
12
12
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
13
13
|
|
14
|
-
spec.
|
15
|
-
spec.add_development_dependency "pry"
|
16
|
-
spec.add_development_dependency "webmock"
|
14
|
+
spec.required_ruby_version = '>= 1.8.6'
|
17
15
|
|
18
|
-
spec.
|
19
|
-
spec.
|
20
|
-
spec.
|
21
|
-
spec.
|
16
|
+
spec.add_development_dependency "rspec", "~> 3.0"
|
17
|
+
spec.add_development_dependency "pry", '~> 0.13.1'
|
18
|
+
spec.add_development_dependency "webmock", '~> 3.14'
|
19
|
+
spec.add_development_dependency 'rake', '~> 11.2'
|
20
|
+
|
21
|
+
spec.add_dependency "faraday", '~> 1.7'
|
22
|
+
spec.add_dependency "faraday_middleware", '~> 1.1'
|
23
|
+
spec.add_dependency "json", '~> 2.5'
|
22
24
|
end
|
metadata
CHANGED
@@ -1,113 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: squarespace_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- cdragon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '3.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0'
|
26
|
+
version: '3.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pry
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 0.13.1
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - "
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 0.13.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: webmock
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '3.14'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '3.14'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
62
|
-
type: :
|
61
|
+
version: '11.2'
|
62
|
+
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '11.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: faraday
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '1.7'
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '1.7'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: faraday_middleware
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
89
|
+
version: '1.1'
|
90
90
|
type: :runtime
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
96
|
+
version: '1.1'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: json
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
|
-
- - "
|
101
|
+
- - "~>"
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
103
|
+
version: '2.5'
|
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: '
|
110
|
+
version: '2.5'
|
111
111
|
description: Ruby gem interacting with the Squarespace API.
|
112
112
|
email: cdragon1116@gmail.com
|
113
113
|
executables: []
|
@@ -115,6 +115,8 @@ extensions: []
|
|
115
115
|
extra_rdoc_files: []
|
116
116
|
files:
|
117
117
|
- ".rspec"
|
118
|
+
- ".travis.yml"
|
119
|
+
- CODE_OF_CONDUCT.md
|
118
120
|
- Gemfile
|
119
121
|
- Gemfile.lock
|
120
122
|
- README.md
|
@@ -143,6 +145,7 @@ files:
|
|
143
145
|
- lib/squarespace_api/resource_groups/webhook_subscriptions.rb
|
144
146
|
- lib/squarespace_api/resources/website.rb
|
145
147
|
- lib/squarespace_api/version.rb
|
148
|
+
- rakefile
|
146
149
|
- spec/fixtures/order_response.json
|
147
150
|
- spec/fixtures/orders_response.json
|
148
151
|
- spec/spec_helper.rb
|
@@ -169,14 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
172
|
requirements:
|
170
173
|
- - ">="
|
171
174
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
175
|
+
version: 1.8.6
|
173
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
177
|
requirements:
|
175
178
|
- - ">="
|
176
179
|
- !ruby/object:Gem::Version
|
177
180
|
version: '0'
|
178
181
|
requirements: []
|
179
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.3.10
|
180
183
|
signing_key:
|
181
184
|
specification_version: 4
|
182
185
|
summary: Ruby gem interacting with the Squarespace API.
|