stuart-client-ruby 1.1.0 → 1.1.1.pre.rc.12

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
- SHA1:
3
- metadata.gz: 8d48685d175f268ff5885b54c968329a8793a98f
4
- data.tar.gz: d6e5356a7cf35c7672011bb57fad0675179d15c2
2
+ SHA256:
3
+ metadata.gz: 222d61649212d58cbdaa0e17574563ddc8781c5784a7d12e370436a3e8526e66
4
+ data.tar.gz: c9f67a2a9257d276062f657ed4da467b6a1db19a81fd501a7af7050c910d4fc8
5
5
  SHA512:
6
- metadata.gz: 299032668b273547d05a8217f4f63b4b70d4eeba1f7fda25be649e030762857c347fd0321e62a309081d17f77138df0c657ffd72a6144af02c7462d6060ac051
7
- data.tar.gz: 8e42be838f2b84b4ef488fd5975014dda26fe8a2ee0d78b439b251c03f95412b873f7190fa42f677b9e44b0a3218d074e76faba8effb5d4f642c329dbf604dfd
6
+ metadata.gz: be4250239d539a70007ddf45518a06e250f51d17b2062e841af04c09a30be146f61abfb3fd024786779093586760d79578d5e5780d26b8390060929f2b939d8e
7
+ data.tar.gz: a87734225c7ea4f1b07a00c7542655e569cedaf900db857bb6fd19d10ef3adedfc6d3aab3fc156e60b5f1025ee9f7c3f125d81357f9c6f8e41c079afce6dcb04
@@ -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
- [ ![Codeship Status for StuartApp/stuart-client-ruby](https://app.codeship.com/projects/47814430-f49c-0135-ebec-46d7136b8c34/status?branch=master)](https://app.codeship.com/projects/273162)
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://stuart.api-docs.io).
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-sandbox.stuart.com/client/api
19
- api_client_secret = 'aa6a415fce31967501662c1960fcbfbf4745acff99acb19dbc1aae6f76c9c618' # can be found here: https://admin-sandbox.stuart.com/client/api
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
@@ -1,7 +1,7 @@
1
1
  module Stuart
2
2
  module Infrastructure
3
3
  class Environment
4
- SANDBOX = { base_url: "https://sandbox-api.stuart.com" }.freeze
4
+ SANDBOX = { base_url: "https://api.sandbox.stuart.com" }.freeze
5
5
 
6
6
  PRODUCTION = { base_url: "https://api.stuart.com" }.freeze
7
7
  end
@@ -2,7 +2,7 @@ module Stuart
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 1
5
- PATCH = 0
5
+ PATCH = "1-rc.12"
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join(".")
8
8
  end
@@ -4,9 +4,11 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
  # stub: stuart-client-ruby 1.1.0 ruby lib
6
6
 
7
+ require_relative './lib/stuart-client-ruby/version'
8
+
7
9
  Gem::Specification.new do |s|
8
10
  s.name = "stuart-client-ruby"
9
- s.version = "1.1.0"
11
+ s.version = Stuart::Version::STRING
10
12
 
11
13
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
14
  s.require_paths = ["lib"]
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.0
4
+ version: 1.1.1.pre.rc.12
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: 2018-06-13 00:00:00.000000000 Z
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
@@ -163,12 +164,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
163
164
  version: '0'
164
165
  required_rubygems_version: !ruby/object:Gem::Requirement
165
166
  requirements:
166
- - - ">="
167
+ - - ">"
167
168
  - !ruby/object:Gem::Version
168
- version: '0'
169
+ version: 1.3.1
169
170
  requirements: []
170
- rubyforge_project:
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