squarespace_api 0.0.7 → 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 +10 -8
- data/README.md +14 -1
- data/lib/squarespace_api/version.rb +1 -1
- data/rakefile +6 -0
- data/spec/squarespace_api_spec.rb +1 -1
- data/squarespace_api.gemspec +10 -7
- metadata +44 -27
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,10 +1,10 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
squarespace_api (
|
5
|
-
faraday
|
6
|
-
faraday_middleware
|
7
|
-
json
|
4
|
+
squarespace_api (1.0.1)
|
5
|
+
faraday (~> 1.7)
|
6
|
+
faraday_middleware (~> 1.1)
|
7
|
+
json (~> 2.5)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
@@ -44,10 +44,11 @@ GEM
|
|
44
44
|
json (2.6.1)
|
45
45
|
method_source (1.0.0)
|
46
46
|
multipart-post (2.1.1)
|
47
|
-
pry (0.
|
47
|
+
pry (0.13.1)
|
48
48
|
coderay (~> 1.1)
|
49
49
|
method_source (~> 1.0)
|
50
50
|
public_suffix (4.0.6)
|
51
|
+
rake (11.3.0)
|
51
52
|
rexml (3.2.5)
|
52
53
|
rspec (3.10.0)
|
53
54
|
rspec-core (~> 3.10.0)
|
@@ -72,10 +73,11 @@ PLATFORMS
|
|
72
73
|
ruby
|
73
74
|
|
74
75
|
DEPENDENCIES
|
75
|
-
pry
|
76
|
-
|
76
|
+
pry (~> 0.13.1)
|
77
|
+
rake (~> 11.2)
|
78
|
+
rspec (~> 3.0)
|
77
79
|
squarespace_api!
|
78
|
-
webmock
|
80
|
+
webmock (~> 3.14)
|
79
81
|
|
80
82
|
BUNDLED WITH
|
81
83
|
1.17.3
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Squarespace Api
|
2
2
|
|
3
|
-
[](https://rubygems.org/gems/squarespace_api)
|
3
|
+
[](https://rubygems.org/gems/squarespace_api) 
|
4
4
|
|
5
5
|
|
6
6
|
Ruby interface to the [Squarespace API](https://developers.squarespace.com/commerce-apis/overview).
|
@@ -229,3 +229,16 @@ client.tokens.create(
|
|
229
229
|
grant_type: "refresh_token"
|
230
230
|
)
|
231
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
|
+
|
data/rakefile
ADDED
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,11 +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.
|
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'
|
21
24
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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
|
@@ -14,86 +14,100 @@ dependencies:
|
|
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
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '11.2'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '11.2'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: faraday
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
58
72
|
requirements:
|
59
|
-
- - "
|
73
|
+
- - "~>"
|
60
74
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
75
|
+
version: '1.7'
|
62
76
|
type: :runtime
|
63
77
|
prerelease: false
|
64
78
|
version_requirements: !ruby/object:Gem::Requirement
|
65
79
|
requirements:
|
66
|
-
- - "
|
80
|
+
- - "~>"
|
67
81
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
82
|
+
version: '1.7'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: faraday_middleware
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
72
86
|
requirements:
|
73
|
-
- - "
|
87
|
+
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
89
|
+
version: '1.1'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
|
-
- - "
|
94
|
+
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
96
|
+
version: '1.1'
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: json
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
86
100
|
requirements:
|
87
|
-
- - "
|
101
|
+
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
103
|
+
version: '2.5'
|
90
104
|
type: :runtime
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
|
-
- - "
|
108
|
+
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
110
|
+
version: '2.5'
|
97
111
|
description: Ruby gem interacting with the Squarespace API.
|
98
112
|
email: cdragon1116@gmail.com
|
99
113
|
executables: []
|
@@ -101,6 +115,8 @@ extensions: []
|
|
101
115
|
extra_rdoc_files: []
|
102
116
|
files:
|
103
117
|
- ".rspec"
|
118
|
+
- ".travis.yml"
|
119
|
+
- CODE_OF_CONDUCT.md
|
104
120
|
- Gemfile
|
105
121
|
- Gemfile.lock
|
106
122
|
- README.md
|
@@ -129,6 +145,7 @@ files:
|
|
129
145
|
- lib/squarespace_api/resource_groups/webhook_subscriptions.rb
|
130
146
|
- lib/squarespace_api/resources/website.rb
|
131
147
|
- lib/squarespace_api/version.rb
|
148
|
+
- rakefile
|
132
149
|
- spec/fixtures/order_response.json
|
133
150
|
- spec/fixtures/orders_response.json
|
134
151
|
- spec/spec_helper.rb
|
@@ -155,14 +172,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
155
172
|
requirements:
|
156
173
|
- - ">="
|
157
174
|
- !ruby/object:Gem::Version
|
158
|
-
version:
|
175
|
+
version: 1.8.6
|
159
176
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
160
177
|
requirements:
|
161
178
|
- - ">="
|
162
179
|
- !ruby/object:Gem::Version
|
163
180
|
version: '0'
|
164
181
|
requirements: []
|
165
|
-
rubygems_version: 3.
|
182
|
+
rubygems_version: 3.3.10
|
166
183
|
signing_key:
|
167
184
|
specification_version: 4
|
168
185
|
summary: Ruby gem interacting with the Squarespace API.
|