zesty 0.2.0 → 0.3.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 +5 -5
- data/lib/zesty/version.rb +1 -1
- metadata +22 -126
- data/.env.sample +0 -4
- data/.github/workflows/ci.yml +0 -50
- data/.gitignore +0 -13
- data/.rspec +0 -3
- data/CHANGELOG.md +0 -10
- data/CODE_OF_CONDUCT.md +0 -74
- data/Gemfile +0 -4
- data/Gemfile.lock +0 -73
- data/Rakefile +0 -6
- data/bin/console +0 -25
- data/bin/setup +0 -13
- data/zesty.gemspec +0 -43
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa2d0915d1b14e3282050f8d722910d684014ea42b40762fc280fd128ebb6da0
|
|
4
|
+
data.tar.gz: 12a0ad7e997ac6c4f288931de6e8080df7ac7a6d67586b56dff2be22c2622590
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a44b872181f01ebe96899f145d9cafb35f73355dcf1c1fcbb84d4fbe30735c940d047ca079c78840f05be192ae798e86e8c4273e234c0da8c3ab3e314f0f0f31
|
|
7
|
+
data.tar.gz: 14552e739845a74edc94664774db3741eec61aebba1a0eb54cc737c350bce243059fe158104afc143d587d9ca9e97f700da530d77418c0fcdca78c41c0888627
|
data/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
# The Zesty.io Ruby Gem
|
|
2
2
|
|
|
3
3
|
[][gem]
|
|
4
|
-

|
|
5
5
|
|
|
6
|
-
A Ruby interface to [the Zesty REST API](https://zesty.org/apis/instant-content-api). Requires Ruby 2.
|
|
6
|
+
A Ruby interface to [the Zesty REST API](https://zesty.org/apis/instant-content-api). Requires Ruby 2.5 and up. Not all API actions are supported yet. Since the Zesty API uses mostly camelCase, this gem will handle converting to and from snake_case for you.
|
|
7
7
|
|
|
8
8
|
## Installation
|
|
9
9
|
|
|
@@ -83,7 +83,7 @@ pp head_tag
|
|
|
83
83
|
|
|
84
84
|
## Development
|
|
85
85
|
|
|
86
|
-
1. `git clone https://github.com/
|
|
86
|
+
1. `git clone https://github.com/jackpocket/zesty-rb.git`
|
|
87
87
|
2. Run `./bin/setup` to install dependencies and fill out API info
|
|
88
88
|
3. Run `./bin/console` for an interactive prompt with an authenticated client for you to experiment:
|
|
89
89
|
|
|
@@ -105,7 +105,7 @@ To release a new version, update the version number in `version.rb`, and then ru
|
|
|
105
105
|
|
|
106
106
|
## Contributing
|
|
107
107
|
|
|
108
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
|
108
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jackpocket/zesty-rb. 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.
|
|
109
109
|
|
|
110
110
|
## License
|
|
111
111
|
|
|
@@ -113,6 +113,6 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
|
113
113
|
|
|
114
114
|
## Code of Conduct
|
|
115
115
|
|
|
116
|
-
Everyone interacting in the Zesty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
|
116
|
+
Everyone interacting in the Zesty project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/jackpocket/zesty-rb/blob/master/CODE_OF_CONDUCT.md).
|
|
117
117
|
|
|
118
118
|
[gem]: https://rubygems.org/gems/zesty
|
data/lib/zesty/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,147 +1,44 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zesty
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Javier Julio
|
|
8
|
-
autorequire:
|
|
9
|
-
bindir:
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: http
|
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
|
16
|
-
requirements:
|
|
17
|
-
- - "~>"
|
|
18
|
-
- !ruby/object:Gem::Version
|
|
19
|
-
version: '4.0'
|
|
20
|
-
type: :runtime
|
|
21
|
-
prerelease: false
|
|
22
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
-
requirements:
|
|
24
|
-
- - "~>"
|
|
25
|
-
- !ruby/object:Gem::Version
|
|
26
|
-
version: '4.0'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: bundler
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '2.0'
|
|
34
|
-
type: :development
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '2.0'
|
|
41
|
-
- !ruby/object:Gem::Dependency
|
|
42
|
-
name: rake
|
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
|
44
|
-
requirements:
|
|
45
|
-
- - "~>"
|
|
46
|
-
- !ruby/object:Gem::Version
|
|
47
|
-
version: '13.0'
|
|
48
|
-
type: :development
|
|
49
|
-
prerelease: false
|
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
-
requirements:
|
|
52
|
-
- - "~>"
|
|
53
|
-
- !ruby/object:Gem::Version
|
|
54
|
-
version: '13.0'
|
|
55
|
-
- !ruby/object:Gem::Dependency
|
|
56
|
-
name: rspec
|
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
|
58
|
-
requirements:
|
|
59
|
-
- - "~>"
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '3.0'
|
|
62
|
-
type: :development
|
|
63
|
-
prerelease: false
|
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
-
requirements:
|
|
66
|
-
- - "~>"
|
|
67
|
-
- !ruby/object:Gem::Version
|
|
68
|
-
version: '3.0'
|
|
69
|
-
- !ruby/object:Gem::Dependency
|
|
70
|
-
name: rspec-json_expectations
|
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
|
72
|
-
requirements:
|
|
73
|
-
- - ">="
|
|
74
|
-
- !ruby/object:Gem::Version
|
|
75
|
-
version: '0'
|
|
76
|
-
type: :development
|
|
77
|
-
prerelease: false
|
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
-
requirements:
|
|
80
|
-
- - ">="
|
|
81
|
-
- !ruby/object:Gem::Version
|
|
82
|
-
version: '0'
|
|
83
|
-
- !ruby/object:Gem::Dependency
|
|
84
|
-
name: dotenv
|
|
85
15
|
requirement: !ruby/object:Gem::Requirement
|
|
86
16
|
requirements:
|
|
87
17
|
- - ">="
|
|
88
18
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '
|
|
90
|
-
|
|
91
|
-
prerelease: false
|
|
92
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
-
requirements:
|
|
94
|
-
- - ">="
|
|
19
|
+
version: '4'
|
|
20
|
+
- - "<"
|
|
95
21
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '
|
|
97
|
-
|
|
98
|
-
name: vcr
|
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
|
100
|
-
requirements:
|
|
101
|
-
- - ">="
|
|
102
|
-
- !ruby/object:Gem::Version
|
|
103
|
-
version: '0'
|
|
104
|
-
type: :development
|
|
22
|
+
version: '6'
|
|
23
|
+
type: :runtime
|
|
105
24
|
prerelease: false
|
|
106
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
107
26
|
requirements:
|
|
108
27
|
- - ">="
|
|
109
28
|
- !ruby/object:Gem::Version
|
|
110
|
-
version: '
|
|
111
|
-
-
|
|
112
|
-
name: webmock
|
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
|
114
|
-
requirements:
|
|
115
|
-
- - ">="
|
|
116
|
-
- !ruby/object:Gem::Version
|
|
117
|
-
version: '0'
|
|
118
|
-
type: :development
|
|
119
|
-
prerelease: false
|
|
120
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
-
requirements:
|
|
122
|
-
- - ">="
|
|
29
|
+
version: '4'
|
|
30
|
+
- - "<"
|
|
123
31
|
- !ruby/object:Gem::Version
|
|
124
|
-
version: '
|
|
125
|
-
description: A Ruby interface to the Zesty.io API
|
|
32
|
+
version: '6'
|
|
33
|
+
description: A Ruby interface to the Zesty.io API. Not all API actions are supported.
|
|
126
34
|
email:
|
|
127
|
-
-
|
|
35
|
+
- javier@jackpocket.com
|
|
128
36
|
executables: []
|
|
129
37
|
extensions: []
|
|
130
38
|
extra_rdoc_files: []
|
|
131
39
|
files:
|
|
132
|
-
- ".env.sample"
|
|
133
|
-
- ".github/workflows/ci.yml"
|
|
134
|
-
- ".gitignore"
|
|
135
|
-
- ".rspec"
|
|
136
|
-
- CHANGELOG.md
|
|
137
|
-
- CODE_OF_CONDUCT.md
|
|
138
|
-
- Gemfile
|
|
139
|
-
- Gemfile.lock
|
|
140
40
|
- LICENSE.txt
|
|
141
41
|
- README.md
|
|
142
|
-
- Rakefile
|
|
143
|
-
- bin/console
|
|
144
|
-
- bin/setup
|
|
145
42
|
- lib/zesty.rb
|
|
146
43
|
- lib/zesty/auth.rb
|
|
147
44
|
- lib/zesty/client.rb
|
|
@@ -150,16 +47,15 @@ files:
|
|
|
150
47
|
- lib/zesty/refinements/snake_case.rb
|
|
151
48
|
- lib/zesty/request.rb
|
|
152
49
|
- lib/zesty/version.rb
|
|
153
|
-
|
|
154
|
-
homepage: https://github.com/javierjulio/zesty-rb
|
|
50
|
+
homepage: https://github.com/jackpocket/zesty-rb
|
|
155
51
|
licenses:
|
|
156
52
|
- MIT
|
|
157
53
|
metadata:
|
|
158
|
-
homepage_uri: https://github.com/
|
|
159
|
-
source_code_uri: https://github.com/
|
|
160
|
-
changelog_uri: https://github.com/
|
|
161
|
-
bug_tracker_uri: https://github.com/
|
|
162
|
-
post_install_message:
|
|
54
|
+
homepage_uri: https://github.com/jackpocket/zesty-rb
|
|
55
|
+
source_code_uri: https://github.com/jackpocket/zesty-rb
|
|
56
|
+
changelog_uri: https://github.com/jackpocket/zesty-rb/blob/master/CHANGELOG.md
|
|
57
|
+
bug_tracker_uri: https://github.com/jackpocket/zesty-rb/issues
|
|
58
|
+
post_install_message:
|
|
163
59
|
rdoc_options: []
|
|
164
60
|
require_paths:
|
|
165
61
|
- lib
|
|
@@ -167,15 +63,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
167
63
|
requirements:
|
|
168
64
|
- - ">="
|
|
169
65
|
- !ruby/object:Gem::Version
|
|
170
|
-
version: 2.
|
|
66
|
+
version: 2.5.0
|
|
171
67
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
172
68
|
requirements:
|
|
173
69
|
- - ">="
|
|
174
70
|
- !ruby/object:Gem::Version
|
|
175
71
|
version: '0'
|
|
176
72
|
requirements: []
|
|
177
|
-
rubygems_version: 3.
|
|
178
|
-
signing_key:
|
|
73
|
+
rubygems_version: 3.5.11
|
|
74
|
+
signing_key:
|
|
179
75
|
specification_version: 4
|
|
180
76
|
summary: A Ruby interface to the Zesty.io API
|
|
181
77
|
test_files: []
|
data/.env.sample
DELETED
data/.github/workflows/ci.yml
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
name: CI Build
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches: [ master ]
|
|
6
|
-
pull_request:
|
|
7
|
-
branches: [ master ]
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
build:
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
strategy:
|
|
13
|
-
matrix:
|
|
14
|
-
ruby: [ '2.4', '2.5', '2.6', '2.7' ]
|
|
15
|
-
name: Ruby ${{ matrix.ruby }}
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v2
|
|
18
|
-
|
|
19
|
-
- uses: actions/setup-ruby@v1
|
|
20
|
-
with:
|
|
21
|
-
ruby-version: ${{ matrix.ruby }}
|
|
22
|
-
|
|
23
|
-
- uses: actions/cache@v1
|
|
24
|
-
with:
|
|
25
|
-
path: vendor/bundle
|
|
26
|
-
key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }}
|
|
27
|
-
restore-keys: |
|
|
28
|
-
${{ runner.os }}-gems-
|
|
29
|
-
|
|
30
|
-
- name: Install rubygems
|
|
31
|
-
run: |
|
|
32
|
-
gem update --system --no-document
|
|
33
|
-
|
|
34
|
-
- name: Install bundler
|
|
35
|
-
run: |
|
|
36
|
-
gem install bundler --no-document
|
|
37
|
-
|
|
38
|
-
- name: Install dependencies
|
|
39
|
-
run: |
|
|
40
|
-
bundle config path vendor/bundle
|
|
41
|
-
bundle install --jobs 4 --retry 3
|
|
42
|
-
|
|
43
|
-
- name: Run Tests
|
|
44
|
-
env:
|
|
45
|
-
EMAIL: email
|
|
46
|
-
PASSWORD: password
|
|
47
|
-
INSTANCE_ZUID: ${{ secrets.INSTANCE_ZUID }}
|
|
48
|
-
MODEL_ZUID: ${{ secrets.MODEL_ZUID }}
|
|
49
|
-
run: |
|
|
50
|
-
bundle exec rake
|
data/.gitignore
DELETED
data/.rspec
DELETED
data/CHANGELOG.md
DELETED
data/CODE_OF_CONDUCT.md
DELETED
|
@@ -1,74 +0,0 @@
|
|
|
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 jjfutbol@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
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
zesty (0.1.0)
|
|
5
|
-
http (~> 4.0)
|
|
6
|
-
|
|
7
|
-
GEM
|
|
8
|
-
remote: https://rubygems.org/
|
|
9
|
-
specs:
|
|
10
|
-
addressable (2.7.0)
|
|
11
|
-
public_suffix (>= 2.0.2, < 5.0)
|
|
12
|
-
crack (0.4.3)
|
|
13
|
-
safe_yaml (~> 1.0.0)
|
|
14
|
-
diff-lcs (1.4.3)
|
|
15
|
-
domain_name (0.5.20190701)
|
|
16
|
-
unf (>= 0.0.5, < 1.0.0)
|
|
17
|
-
dotenv (2.7.5)
|
|
18
|
-
ffi (1.13.1)
|
|
19
|
-
ffi-compiler (1.0.1)
|
|
20
|
-
ffi (>= 1.0.0)
|
|
21
|
-
rake
|
|
22
|
-
hashdiff (1.0.1)
|
|
23
|
-
http (4.4.1)
|
|
24
|
-
addressable (~> 2.3)
|
|
25
|
-
http-cookie (~> 1.0)
|
|
26
|
-
http-form_data (~> 2.2)
|
|
27
|
-
http-parser (~> 1.2.0)
|
|
28
|
-
http-cookie (1.0.3)
|
|
29
|
-
domain_name (~> 0.5)
|
|
30
|
-
http-form_data (2.3.0)
|
|
31
|
-
http-parser (1.2.1)
|
|
32
|
-
ffi-compiler (>= 1.0, < 2.0)
|
|
33
|
-
public_suffix (4.0.5)
|
|
34
|
-
rake (13.0.1)
|
|
35
|
-
rspec (3.9.0)
|
|
36
|
-
rspec-core (~> 3.9.0)
|
|
37
|
-
rspec-expectations (~> 3.9.0)
|
|
38
|
-
rspec-mocks (~> 3.9.0)
|
|
39
|
-
rspec-core (3.9.2)
|
|
40
|
-
rspec-support (~> 3.9.3)
|
|
41
|
-
rspec-expectations (3.9.2)
|
|
42
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
43
|
-
rspec-support (~> 3.9.0)
|
|
44
|
-
rspec-json_expectations (2.2.0)
|
|
45
|
-
rspec-mocks (3.9.1)
|
|
46
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
47
|
-
rspec-support (~> 3.9.0)
|
|
48
|
-
rspec-support (3.9.3)
|
|
49
|
-
safe_yaml (1.0.5)
|
|
50
|
-
unf (0.1.4)
|
|
51
|
-
unf_ext
|
|
52
|
-
unf_ext (0.0.7.7)
|
|
53
|
-
vcr (6.0.0)
|
|
54
|
-
webmock (3.8.3)
|
|
55
|
-
addressable (>= 2.3.6)
|
|
56
|
-
crack (>= 0.3.2)
|
|
57
|
-
hashdiff (>= 0.4.0, < 2.0.0)
|
|
58
|
-
|
|
59
|
-
PLATFORMS
|
|
60
|
-
ruby
|
|
61
|
-
|
|
62
|
-
DEPENDENCIES
|
|
63
|
-
bundler (~> 2.0)
|
|
64
|
-
dotenv
|
|
65
|
-
rake (~> 13.0)
|
|
66
|
-
rspec (~> 3.0)
|
|
67
|
-
rspec-json_expectations
|
|
68
|
-
vcr
|
|
69
|
-
webmock
|
|
70
|
-
zesty!
|
|
71
|
-
|
|
72
|
-
BUNDLED WITH
|
|
73
|
-
2.0.2
|
data/Rakefile
DELETED
data/bin/console
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
require "bundler/setup"
|
|
4
|
-
require "dotenv/load"
|
|
5
|
-
require "zesty"
|
|
6
|
-
|
|
7
|
-
# You can add fixtures and/or initialization code here to make experimenting
|
|
8
|
-
# with your gem easier. You can also use a different console, if you like.
|
|
9
|
-
|
|
10
|
-
def client
|
|
11
|
-
@client ||= begin
|
|
12
|
-
puts "Signing in..."
|
|
13
|
-
token = Zesty::Auth.get_token(ENV["EMAIL"], ENV["PASSWORD"])
|
|
14
|
-
puts "Token: #{token}"
|
|
15
|
-
puts "Client authenticated."
|
|
16
|
-
Zesty::Client.new(token, ENV["INSTANCE_ZUID"])
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
# (If you use this, don't forget to add pry to your Gemfile!)
|
|
21
|
-
# require "pry"
|
|
22
|
-
# Pry.start
|
|
23
|
-
|
|
24
|
-
require "irb"
|
|
25
|
-
IRB.start(__FILE__)
|
data/bin/setup
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
#!/bin/bash
|
|
2
|
-
set -euo pipefail
|
|
3
|
-
IFS=$'\n\t'
|
|
4
|
-
|
|
5
|
-
bundle install
|
|
6
|
-
|
|
7
|
-
echo "Enter your Zesty account credentials below."
|
|
8
|
-
read -p 'Email: ' email
|
|
9
|
-
read -p 'Password: ' password
|
|
10
|
-
|
|
11
|
-
cp .env.sample .env
|
|
12
|
-
sed -i '' -e "s/YOUR_EMAIL/$email/g" .env
|
|
13
|
-
sed -i '' -e "s/YOUR_PASSWORD/$password/g" .env
|
data/zesty.gemspec
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
lib = File.expand_path("lib", __dir__)
|
|
2
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
-
require "zesty/version"
|
|
4
|
-
|
|
5
|
-
Gem::Specification.new do |spec|
|
|
6
|
-
spec.name = "zesty"
|
|
7
|
-
spec.version = Zesty::VERSION
|
|
8
|
-
spec.authors = ["Javier Julio"]
|
|
9
|
-
spec.email = ["jjfutbol@gmail.com"]
|
|
10
|
-
|
|
11
|
-
spec.summary = %q{A Ruby interface to the Zesty.io API}
|
|
12
|
-
spec.description = %q{A Ruby interface to the Zesty.io API}
|
|
13
|
-
spec.homepage = "https://github.com/javierjulio/zesty-rb"
|
|
14
|
-
spec.license = "MIT"
|
|
15
|
-
|
|
16
|
-
# spec.metadata["allowed_push_host"] = "TODO: Set to 'http://mygemserver.com'"
|
|
17
|
-
|
|
18
|
-
spec.metadata["homepage_uri"] = spec.homepage
|
|
19
|
-
spec.metadata["source_code_uri"] = spec.homepage
|
|
20
|
-
spec.metadata["changelog_uri"] = "https://github.com/javierjulio/zesty-rb/blob/master/CHANGELOG.md"
|
|
21
|
-
spec.metadata["bug_tracker_uri"] = "https://github.com/javierjulio/zesty-rb/issues"
|
|
22
|
-
|
|
23
|
-
# Specify which files should be added to the gem when it is released.
|
|
24
|
-
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
|
25
|
-
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
|
26
|
-
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
27
|
-
end
|
|
28
|
-
spec.bindir = "exe"
|
|
29
|
-
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
30
|
-
spec.require_paths = ["lib"]
|
|
31
|
-
|
|
32
|
-
spec.required_ruby_version = ">= 2.4.0"
|
|
33
|
-
|
|
34
|
-
spec.add_dependency "http", "~> 4.0"
|
|
35
|
-
|
|
36
|
-
spec.add_development_dependency "bundler", "~> 2.0"
|
|
37
|
-
spec.add_development_dependency "rake", "~> 13.0"
|
|
38
|
-
spec.add_development_dependency "rspec", "~> 3.0"
|
|
39
|
-
spec.add_development_dependency "rspec-json_expectations"
|
|
40
|
-
spec.add_development_dependency "dotenv"
|
|
41
|
-
spec.add_development_dependency "vcr"
|
|
42
|
-
spec.add_development_dependency "webmock"
|
|
43
|
-
end
|