stuart-client-ruby 1.1.0 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/publish.yml +32 -0
- data/README.md +16 -4
- data/lib/stuart-client-ruby/infrastructure/environment.rb +1 -1
- data/lib/stuart-client-ruby/version.rb +1 -1
- data/stuart-client-ruby.gemspec +33 -39
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3eedaffb832b13f059552ef914e9034d331fb3fbe28558f43d84df8b5f18e70f
|
4
|
+
data.tar.gz: 973fc6032797fd8819da0d7a90562bff9976cc8658b50ff455f15855c101a90e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a9f3e56bcd1761e51865eb6ce4ae295894b39744a03c7440fced444c3f274129b6f22b6c0c9b19b7e58972a54b5c56b5453f7191fafc2881d84d66738f502f8
|
7
|
+
data.tar.gz: e11a28e79cc259e680ff5e9c02f7571cb73bc5b8557fb7cb1d0b2a4381fe01f42f5c02add1bf837654ddfea910d740bbe40e2d61c3a20ddfdf6e3f104d749f77
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Ruby gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
tags:
|
6
|
+
- v*
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
deploy:
|
10
|
+
runs-on: ubuntu-latest
|
11
|
+
|
12
|
+
steps:
|
13
|
+
- uses: actions/checkout@v3
|
14
|
+
|
15
|
+
- uses: ruby/setup-ruby@v1
|
16
|
+
with:
|
17
|
+
ruby-version: '2.7' # Not needed with a .ruby-version file
|
18
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
19
|
+
|
20
|
+
- name: Build gem
|
21
|
+
run: |
|
22
|
+
bundle exec rake build
|
23
|
+
|
24
|
+
- name: Publish to RubyGems
|
25
|
+
run: |
|
26
|
+
cat << EOF > ~/.gem/credentials
|
27
|
+
---
|
28
|
+
:rubygems_api_key: ${{ secrets.RUBYGEMS_API_KEY }}
|
29
|
+
EOF
|
30
|
+
|
31
|
+
chmod 0600 ~/.gem/credentials
|
32
|
+
gem push pkg/stuart-client-ruby-*.gem
|
data/README.md
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
[
|
1
|
+
[![Codeship Status for StuartApp/stuart-client-ruby](https://app.codeship.com/projects/bacc9100-b159-0137-6e98-0e2ebd2815ea/status?branch=master)](https://app.codeship.com/projects/363050)
|
2
2
|
|
3
3
|
# Stuart Ruby Client
|
4
|
-
For a complete documentation of all endpoints offered by the Stuart API, you can visit [Stuart API documentation](https://
|
4
|
+
For a complete documentation of all endpoints offered by the Stuart API, you can visit [Stuart API documentation](https://api-docs.stuart.com/).
|
5
5
|
|
6
6
|
## Install
|
7
7
|
``` bash
|
@@ -15,8 +15,8 @@ $ gem install stuart-client-ruby
|
|
15
15
|
```ruby
|
16
16
|
require 'stuart-client-ruby'
|
17
17
|
environment = Stuart::Infrastructure::Environment::SANDBOX
|
18
|
-
api_client_id = 'c6058849d0a056fc743203acb8e6a850dad103485c3edc51b16a9260cc7a7689' # can be found here: https://admin
|
19
|
-
api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin
|
18
|
+
api_client_id = 'c6058849d0a056fc743203acb8e6a850dad103485c3edc51b16a9260cc7a7689' # can be found here: https://admin.sandbox.stuart.com/client/api
|
19
|
+
api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin.sandbox.stuart.com/client/api
|
20
20
|
auth = Stuart::Infrastructure::Authenticator.new(environment, api_client_id, api_client_secret)
|
21
21
|
|
22
22
|
http_client = Stuart::Infrastructure::HttpClient.new(auth)
|
@@ -67,3 +67,15 @@ http_client.perform_post '/v2/jobs', JSON.generate(job)
|
|
67
67
|
```ruby
|
68
68
|
http_client.perform_get('/v2/jobs')
|
69
69
|
```
|
70
|
+
|
71
|
+
### Release process
|
72
|
+
|
73
|
+
1. Review the Gem version in lib/stuart-client-ruby/version.rb
|
74
|
+
2. Create and publish a Git tag with the version defined in lib/stuart-client-ruby/version.rb
|
75
|
+
Example:
|
76
|
+
```
|
77
|
+
git tag v1.2.0-rc.1
|
78
|
+
git push origin --tags
|
79
|
+
```
|
80
|
+
|
81
|
+
3. The workflow [workflows/publish.yml](https://github.com/StuartApp/stuart-client-ruby/actions/workflows/publish.yml) should start and publish the new version to Rubygems https://rubygems.org/gems/stuart-client-ruby
|
data/stuart-client-ruby.gemspec
CHANGED
@@ -2,18 +2,21 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Juwelier::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: stuart-client-ruby 1.1.
|
5
|
+
# stub: stuart-client-ruby 1.1.1.pre.rc.9 ruby lib
|
6
|
+
|
7
|
+
require_relative './lib/stuart-client-ruby/version'
|
6
8
|
|
7
9
|
Gem::Specification.new do |s|
|
8
10
|
s.name = "stuart-client-ruby"
|
9
|
-
s.
|
11
|
+
s.name = "stuart-client-ruby".freeze
|
12
|
+
s.version = Stuart::Version::STRING
|
10
13
|
|
11
|
-
s.required_rubygems_version = Gem::Requirement.new("
|
12
|
-
s.require_paths = ["lib"]
|
13
|
-
s.authors = ["Paul Caillau", "Maximilien Tyc"]
|
14
|
-
s.date = "
|
15
|
-
s.description = "Communicate with the Stuart API"
|
16
|
-
s.email = "engineering@stuart.com"
|
14
|
+
s.required_rubygems_version = Gem::Requirement.new("> 1.3.1".freeze) if s.respond_to? :required_rubygems_version=
|
15
|
+
s.require_paths = ["lib".freeze]
|
16
|
+
s.authors = ["Paul Caillau".freeze, "Maximilien Tyc".freeze]
|
17
|
+
s.date = "2023-01-02"
|
18
|
+
s.description = "Communicate with the Stuart API".freeze
|
19
|
+
s.email = "engineering@stuart.com".freeze
|
17
20
|
s.extra_rdoc_files = [
|
18
21
|
"LICENSE.txt",
|
19
22
|
"README.md"
|
@@ -37,42 +40,33 @@ Gem::Specification.new do |s|
|
|
37
40
|
"spec/stuart-client-ruby/infrastructure/http_client_spec.rb",
|
38
41
|
"stuart-client-ruby.gemspec"
|
39
42
|
]
|
40
|
-
s.homepage = "http://github.com/stuartapp/stuart-client-ruby"
|
41
|
-
s.licenses = ["MIT"]
|
42
|
-
s.rubygems_version = "
|
43
|
-
s.summary = "Stuart API Ruby client"
|
43
|
+
s.homepage = "http://github.com/stuartapp/stuart-client-ruby".freeze
|
44
|
+
s.licenses = ["MIT".freeze]
|
45
|
+
s.rubygems_version = "3.3.25".freeze
|
46
|
+
s.summary = "Stuart API Ruby client".freeze
|
44
47
|
|
45
48
|
if s.respond_to? :specification_version then
|
46
49
|
s.specification_version = 4
|
50
|
+
end
|
47
51
|
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
else
|
58
|
-
s.add_dependency(%q<oauth2>, [">= 0"])
|
59
|
-
s.add_dependency(%q<typhoeus>, [">= 0"])
|
60
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
61
|
-
s.add_dependency(%q<juwelier>, [">= 0"])
|
62
|
-
s.add_dependency(%q<rdoc>, [">= 0"])
|
63
|
-
s.add_dependency(%q<rspec>, [">= 0"])
|
64
|
-
s.add_dependency(%q<shoulda>, [">= 0"])
|
65
|
-
s.add_dependency(%q<simplecov>, [">= 0"])
|
66
|
-
end
|
52
|
+
if s.respond_to? :add_runtime_dependency then
|
53
|
+
s.add_runtime_dependency(%q<oauth2>.freeze, [">= 0"])
|
54
|
+
s.add_runtime_dependency(%q<typhoeus>.freeze, [">= 0"])
|
55
|
+
s.add_development_dependency(%q<bundler>.freeze, [">= 0"])
|
56
|
+
s.add_development_dependency(%q<juwelier>.freeze, [">= 0"])
|
57
|
+
s.add_development_dependency(%q<rdoc>.freeze, [">= 0"])
|
58
|
+
s.add_development_dependency(%q<rspec>.freeze, [">= 0"])
|
59
|
+
s.add_development_dependency(%q<shoulda>.freeze, [">= 0"])
|
60
|
+
s.add_development_dependency(%q<simplecov>.freeze, [">= 0"])
|
67
61
|
else
|
68
|
-
s.add_dependency(%q<oauth2
|
69
|
-
s.add_dependency(%q<typhoeus
|
70
|
-
s.add_dependency(%q<bundler
|
71
|
-
s.add_dependency(%q<juwelier
|
72
|
-
s.add_dependency(%q<rdoc
|
73
|
-
s.add_dependency(%q<rspec
|
74
|
-
s.add_dependency(%q<shoulda
|
75
|
-
s.add_dependency(%q<simplecov
|
62
|
+
s.add_dependency(%q<oauth2>.freeze, [">= 0"])
|
63
|
+
s.add_dependency(%q<typhoeus>.freeze, [">= 0"])
|
64
|
+
s.add_dependency(%q<bundler>.freeze, [">= 0"])
|
65
|
+
s.add_dependency(%q<juwelier>.freeze, [">= 0"])
|
66
|
+
s.add_dependency(%q<rdoc>.freeze, [">= 0"])
|
67
|
+
s.add_dependency(%q<rspec>.freeze, [">= 0"])
|
68
|
+
s.add_dependency(%q<shoulda>.freeze, [">= 0"])
|
69
|
+
s.add_dependency(%q<simplecov>.freeze, [">= 0"])
|
76
70
|
end
|
77
71
|
end
|
78
72
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stuart-client-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul Caillau
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oauth2
|
@@ -132,6 +132,7 @@ extra_rdoc_files:
|
|
132
132
|
- README.md
|
133
133
|
files:
|
134
134
|
- ".document"
|
135
|
+
- ".github/workflows/publish.yml"
|
135
136
|
- ".rubocop.yml"
|
136
137
|
- Gemfile
|
137
138
|
- LICENSE.txt
|
@@ -167,8 +168,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
168
|
- !ruby/object:Gem::Version
|
168
169
|
version: '0'
|
169
170
|
requirements: []
|
170
|
-
|
171
|
-
rubygems_version: 2.4.5.1
|
171
|
+
rubygems_version: 3.1.6
|
172
172
|
signing_key:
|
173
173
|
specification_version: 4
|
174
174
|
summary: Stuart API Ruby client
|