zesty 0.2.1 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e4c443e4a6ee931ee7f6ec5c1765fad869a54df01bc7ee770d1ca1509e64aa48
4
- data.tar.gz: 3b24ec57148ee9d0048c5b00daa517faf69ee5522a493f660ed046fd5dcc2dc3
3
+ metadata.gz: fa2d0915d1b14e3282050f8d722910d684014ea42b40762fc280fd128ebb6da0
4
+ data.tar.gz: 12a0ad7e997ac6c4f288931de6e8080df7ac7a6d67586b56dff2be22c2622590
5
5
  SHA512:
6
- metadata.gz: f42c84af4a6b34ad56816218ae851caaa95d46eb688c72c7a9fbc8c5bd19b88a557edf679a4cd3d18d62d1488e9045bbaa417f46e4f029ebb7b557d6c897caa5
7
- data.tar.gz: 4178239e8125d0e125acfa23dde785b709d3b6497193629565ca352aa2189e7ab82ded5a3b12b2d50d5c0b488949d318741b843315750a97d073283b3a97b124
6
+ metadata.gz: a44b872181f01ebe96899f145d9cafb35f73355dcf1c1fcbb84d4fbe30735c940d047ca079c78840f05be192ae798e86e8c4273e234c0da8c3ab3e314f0f0f31
7
+ data.tar.gz: 14552e739845a74edc94664774db3741eec61aebba1a0eb54cc737c350bce243059fe158104afc143d587d9ca9e97f700da530d77418c0fcdca78c41c0888627
data/lib/zesty/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Zesty
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
metadata CHANGED
@@ -1,148 +1,44 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zesty
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
- autorequire:
9
- bindir: exe
8
+ autorequire:
9
+ bindir: bin
10
10
  cert_chain: []
11
- date: 2021-06-02 00:00:00.000000000 Z
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: '0'
90
- type: :development
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: '0'
97
- - !ruby/object:Gem::Dependency
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: '0'
111
- - !ruby/object:Gem::Dependency
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: '0'
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/dependabot.yml"
134
- - ".github/workflows/ci.yml"
135
- - ".gitignore"
136
- - ".rspec"
137
- - CHANGELOG.md
138
- - CODE_OF_CONDUCT.md
139
- - Gemfile
140
- - Gemfile.lock
141
40
  - LICENSE.txt
142
41
  - README.md
143
- - Rakefile
144
- - bin/console
145
- - bin/setup
146
42
  - lib/zesty.rb
147
43
  - lib/zesty/auth.rb
148
44
  - lib/zesty/client.rb
@@ -151,7 +47,6 @@ files:
151
47
  - lib/zesty/refinements/snake_case.rb
152
48
  - lib/zesty/request.rb
153
49
  - lib/zesty/version.rb
154
- - zesty.gemspec
155
50
  homepage: https://github.com/jackpocket/zesty-rb
156
51
  licenses:
157
52
  - MIT
@@ -160,7 +55,7 @@ metadata:
160
55
  source_code_uri: https://github.com/jackpocket/zesty-rb
161
56
  changelog_uri: https://github.com/jackpocket/zesty-rb/blob/master/CHANGELOG.md
162
57
  bug_tracker_uri: https://github.com/jackpocket/zesty-rb/issues
163
- post_install_message:
58
+ post_install_message:
164
59
  rdoc_options: []
165
60
  require_paths:
166
61
  - lib
@@ -175,8 +70,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
175
70
  - !ruby/object:Gem::Version
176
71
  version: '0'
177
72
  requirements: []
178
- rubygems_version: 3.1.4
179
- signing_key:
73
+ rubygems_version: 3.5.11
74
+ signing_key:
180
75
  specification_version: 4
181
76
  summary: A Ruby interface to the Zesty.io API
182
77
  test_files: []
data/.env.sample DELETED
@@ -1,4 +0,0 @@
1
- EMAIL="YOUR_EMAIL"
2
- PASSWORD="YOUR_PASSWORD"
3
- INSTANCE_ZUID=""
4
- MODEL_ZUID=""
@@ -1,22 +0,0 @@
1
- version: 2
2
- updates:
3
- - package-ecosystem: bundler
4
- directory: "/"
5
- schedule:
6
- interval: daily
7
- time: "12:00"
8
- timezone: America/New_York
9
- open-pull-requests-limit: 99
10
- allow:
11
- - dependency-type: direct
12
- - dependency-type: indirect
13
- ignore:
14
- - dependency-name: webmock
15
- versions:
16
- - 3.11.3
17
- - dependency-name: rspec-mocks
18
- versions:
19
- - 3.10.2
20
- - dependency-name: rspec-support
21
- versions:
22
- - 3.10.2
@@ -1,29 +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.5', '2.6', '2.7.1', '3.0' ]
15
- name: Ruby ${{ matrix.ruby }}
16
- steps:
17
- - uses: actions/checkout@v2
18
- - uses: ruby/setup-ruby@v1
19
- with:
20
- ruby-version: ${{ matrix.ruby }}
21
- bundler-cache: true # runs 'bundle install' and caches installed gems automatically
22
- - name: Run Tests
23
- env:
24
- EMAIL: email
25
- PASSWORD: password
26
- INSTANCE_ZUID: ${{ secrets.INSTANCE_ZUID }}
27
- MODEL_ZUID: ${{ secrets.MODEL_ZUID }}
28
- run: |
29
- bundle exec rake
data/.gitignore DELETED
@@ -1,13 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
-
10
- # rspec failure tracking
11
- .rspec_status
12
-
13
- .env
data/.rspec DELETED
@@ -1,3 +0,0 @@
1
- --format documentation
2
- --color
3
- --require spec_helper
data/CHANGELOG.md DELETED
@@ -1,14 +0,0 @@
1
- Changelog
2
- =========
3
-
4
- ## 0.2.1 (2021-06-02)
5
-
6
- * No code changes - moved repository to Jackpocket organization and updated URLs
7
-
8
- ## 0.2.0 (2019-07-01)
9
-
10
- * Updated API Auth URL to `https://auth.api.zesty.io` (#1)
11
-
12
- ## 0.1.0 (2019-09-24)
13
-
14
- * Initial release to RubyGems
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
@@ -1,4 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in zesty.gemspec
4
- gemspec
data/Gemfile.lock DELETED
@@ -1,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- zesty (0.2.1)
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.5)
13
- rexml
14
- diff-lcs (1.4.4)
15
- domain_name (0.5.20190701)
16
- unf (>= 0.0.5, < 1.0.0)
17
- dotenv (2.7.6)
18
- ffi (1.15.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.3)
32
- ffi-compiler (>= 1.0, < 2.0)
33
- public_suffix (4.0.6)
34
- rake (13.0.3)
35
- rexml (3.2.5)
36
- rspec (3.10.0)
37
- rspec-core (~> 3.10.0)
38
- rspec-expectations (~> 3.10.0)
39
- rspec-mocks (~> 3.10.0)
40
- rspec-core (3.10.1)
41
- rspec-support (~> 3.10.0)
42
- rspec-expectations (3.10.1)
43
- diff-lcs (>= 1.2.0, < 2.0)
44
- rspec-support (~> 3.10.0)
45
- rspec-json_expectations (2.2.0)
46
- rspec-mocks (3.10.2)
47
- diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.10.0)
49
- rspec-support (3.10.2)
50
- unf (0.1.4)
51
- unf_ext
52
- unf_ext (0.0.7.7)
53
- vcr (6.0.0)
54
- webmock (3.12.2)
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.1.4
data/Rakefile DELETED
@@ -1,6 +0,0 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
3
-
4
- RSpec::Core::RakeTask.new(:spec)
5
-
6
- task default: :spec
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 = ["javier@jackpocket.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/jackpocket/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/jackpocket/zesty-rb/blob/master/CHANGELOG.md"
21
- spec.metadata["bug_tracker_uri"] = "https://github.com/jackpocket/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.5.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