aptible-auth 1.3.0 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa366e77caf944b6664bf9028ed18951244aa306db65267f4f7cd6abc5b186b6
4
- data.tar.gz: f8142c1e9887387bf58187937b5f182396b83ff9f68f834811065b5606e33de0
3
+ metadata.gz: a41b77f6708abdde557d4763215fd5f6e18460716a25c94c29fdd15564588dc3
4
+ data.tar.gz: a74283bb27a4a0ac4b952b2c0dd7065f0e7b35640d6354af73ab01910101f4de
5
5
  SHA512:
6
- metadata.gz: b8e25debb3cca514e6b6fd343d57f1010ca657e34640e7a5a188d45ff98d48a2c1946ff56ff9019d015c22d6f9d5b4b47ec6d927a4dd96f26727f020c778ef2a
7
- data.tar.gz: 6e4947efb5abd53ea279f90be54d237c289d14d4f968ea5b49e2b7ba570828d6f51708a744ac8c6d7c7cdbadd47a071d0d4b55cc4a1c88d4c0ef27cc8e34678c
6
+ metadata.gz: 9597770fc7f1a203eb2efbb0326a58e495912cc3fde1835737cb6d9850395ab1a0d341ccea701db3502137aef32cfdd6199ada643908048148690224f55d0614
7
+ data.tar.gz: 05e43ea50940aa25ba554db3b0eb78469d52c27e96ad9af0db46b6efb9803dc39e0fe916dbd3c0c608babc606dff23f4cd7804c436d87cedc6cdd8997a4aa2ae
@@ -15,22 +15,15 @@ jobs:
15
15
  strategy:
16
16
  fail-fast: false
17
17
  matrix:
18
- RUBY_VERSION: [2.6, 2.7, 3.3, 3.4]
18
+ RUBY_VERSION: [2.3, 2.4, 2.5, 2.6, 2.7, 3.1, 3.2, 3.3, 3.4]
19
+ env:
20
+ RUBY_VERSION: ${{ matrix.RUBY_VERSION }}
19
21
  steps:
20
22
  - name: Check out code
21
23
  uses: actions/checkout@v4
22
24
 
23
- - name: Install Ruby
24
- uses: ruby/setup-ruby@v1
25
- with:
26
- ruby-version: ${{ matrix.RUBY_VERSION }}
27
- bundler: 1.17.3
28
-
29
- - name: Bundle install
30
- run: bundle install
31
-
32
25
  - name: Rubocop
33
- run: bundle exec rake rubocop
26
+ run: make lint
34
27
 
35
28
  - name: Rspec
36
- run: bundle exec rspec
29
+ run: make test
data/.gitignore CHANGED
@@ -16,3 +16,4 @@ test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
18
  .idea
19
+ /docker/ruby-*/
data/Dockerfile ADDED
@@ -0,0 +1,20 @@
1
+ ARG RUBY_VERSION=2.3.1
2
+ FROM ruby:${RUBY_VERSION}
3
+
4
+ ARG BUNDLER_VERSION=1.17.3
5
+ ENV BUNDLER_VERSION=${BUNDLER_VERSION}
6
+ RUN if [ "${BUNDLER_VERSION}" != "" ] ; then \
7
+ gem install bundler -v "${BUNDLER_VERSION}" ; \
8
+ fi
9
+
10
+ WORKDIR /app
11
+ COPY Gemfile /app/
12
+ COPY aptible-auth.gemspec /app/
13
+ RUN mkdir -p /app/lib/aptible/auth/
14
+ COPY lib/aptible/auth/version.rb /app/lib/aptible/auth/
15
+
16
+ RUN bundle install
17
+
18
+ COPY . /app
19
+
20
+ CMD ["bash"]
data/Makefile ADDED
@@ -0,0 +1,68 @@
1
+
2
+ export COMPOSE_IGNORE_ORPHANS ?= true
3
+ export RUBY_VERSION ?= 2.3.1
4
+ RUBY_VERSION_MAJOR = $(word 1,$(subst ., ,$(RUBY_VERSION)))
5
+ export BUNDLER_VERSION ?=
6
+ ifeq ($(BUNDLER_VERSION),)
7
+ ifeq ($(RUBY_VERSION_MAJOR),2)
8
+ export BUNDLER_VERSION = 1.17.3
9
+ endif
10
+ endif
11
+ PROJECT_NAME = $(shell ls *.gemspec | sed 's/\.gemspec//')
12
+ export COMPOSE_PROJECT_NAME ?= $(PROJECT_NAME)-$(subst .,_,$(RUBY_VERSION))
13
+
14
+ default: help
15
+
16
+ ## Show this help message
17
+ help:
18
+ @echo "\n\033[1;34mAvailable targets:\033[0m\n"
19
+ @awk 'BEGIN {FS = ":"; prev = ""} \
20
+ /^## / {prev = substr($$0, 4); next} \
21
+ /^[a-zA-Z_-]+:/ {if (prev != "") printf " \033[1;36m%-20s\033[0m %s\n", $$1, prev; prev = ""} \
22
+ {prev = ""}' $(MAKEFILE_LIST) | sort
23
+ @echo
24
+
25
+ BUILD_ARGS ?=
26
+ ## Build and pull docker compose images
27
+ build: gemfile-lock
28
+ docker compose build --pull $(BUILD_ARGS)
29
+
30
+ ## Create a Gemfile.lock specific to the container (i.e., for the ruby version)
31
+ gemfile-lock:
32
+ mkdir -pv ./docker/ruby-$(RUBY_VERSION)/ && \
33
+ echo '' > ./docker/ruby-$(RUBY_VERSION)/Gemfile.lock
34
+
35
+ ## Open shell in a docker container, supports CMD=
36
+ bash: build
37
+ $(MAKE) run CMD=bash
38
+
39
+ CMD ?= bash
40
+ ## Run command in a docker container, supports CMD=
41
+ run:
42
+ docker compose run --rm runner $(CMD)
43
+
44
+ ## Run tests in a docker container, supports ARGS=
45
+ test: build
46
+ $(MAKE) test-direct ARGS="$(ARGS)"
47
+
48
+ ## Run tests in a docker container without building, supports ARGS=
49
+ test-direct:
50
+ $(MAKE) run CMD="bundle exec rspec $(ARGS)"
51
+
52
+ ## Run rubocop in a docker container, supports ARGS=
53
+ lint: build
54
+ $(MAKE) lint-direct ARGS="$(ARGS)"
55
+
56
+ ## Run rubocop in a docker container without building, supports ARGS=
57
+ lint-direct:
58
+ $(MAKE) run CMD="bundle exec rake rubocop $(ARGS)"
59
+
60
+ ## Clean up docker compose resources
61
+ clean: clean-gemfile-lock
62
+ docker compose down --remove-orphans --volumes
63
+
64
+ ## Clean up the container specific Gemfile.lock
65
+ clean-gemfile-lock:
66
+ rm -v ./docker/ruby-$(RUBY_VERSION)/Gemfile.lock ||:
67
+
68
+ .PHONY: build bash test
data/aptible-auth.gemspec CHANGED
@@ -21,7 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.require_paths = ['lib']
22
22
 
23
23
  spec.add_dependency 'aptible-resource', '~> 1.0'
24
- spec.add_dependency 'concurrent-ruby', '1.3.4'
25
24
  spec.add_dependency 'gem_config'
26
25
  spec.add_dependency 'multipart-post', '2.1.1'
27
26
  spec.add_dependency 'oauth2', '2.0.9'
@@ -31,5 +30,5 @@ Gem::Specification.new do |spec|
31
30
  spec.add_development_dependency 'rake'
32
31
  spec.add_development_dependency 'rspec', '~> 3.0'
33
32
  spec.add_development_dependency 'rspec-its'
34
- spec.add_development_dependency 'timecop', '~> 0.8.1'
33
+ spec.add_development_dependency 'timecop', '~> 0.9.10'
35
34
  end
@@ -0,0 +1,12 @@
1
+ services:
2
+ runner:
3
+ build:
4
+ context: .
5
+ args:
6
+ RUBY_VERSION: ${RUBY_VERSION:-2.3.1}
7
+ BUNDLER_VERSION: ${BUNDLER_VERSION:-}
8
+ volumes:
9
+ - type: bind
10
+ source: .
11
+ target: /app
12
+ - ./docker/ruby-${RUBY_VERSION}/Gemfile.lock:/app/Gemfile.lock
@@ -1,5 +1,5 @@
1
1
  module Aptible
2
2
  module Auth
3
- VERSION = '1.3.0'.freeze
3
+ VERSION = '1.4.0'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
+ autorequire:
8
9
  bindir: bin
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2025-12-17 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: aptible-resource
@@ -23,20 +24,6 @@ dependencies:
23
24
  - - "~>"
24
25
  - !ruby/object:Gem::Version
25
26
  version: '1.0'
26
- - !ruby/object:Gem::Dependency
27
- name: concurrent-ruby
28
- requirement: !ruby/object:Gem::Requirement
29
- requirements:
30
- - - '='
31
- - !ruby/object:Gem::Version
32
- version: 1.3.4
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: !ruby/object:Gem::Requirement
36
- requirements:
37
- - - '='
38
- - !ruby/object:Gem::Version
39
- version: 1.3.4
40
27
  - !ruby/object:Gem::Dependency
41
28
  name: gem_config
42
29
  requirement: !ruby/object:Gem::Requirement
@@ -155,14 +142,14 @@ dependencies:
155
142
  requirements:
156
143
  - - "~>"
157
144
  - !ruby/object:Gem::Version
158
- version: 0.8.1
145
+ version: 0.9.10
159
146
  type: :development
160
147
  prerelease: false
161
148
  version_requirements: !ruby/object:Gem::Requirement
162
149
  requirements:
163
150
  - - "~>"
164
151
  - !ruby/object:Gem::Version
165
- version: 0.8.1
152
+ version: 0.9.10
166
153
  description: Ruby client for auth.aptible.com
167
154
  email:
168
155
  - frank@macreery.com
@@ -174,14 +161,16 @@ files:
174
161
  - ".github/workflows/ci.yml"
175
162
  - ".gitignore"
176
163
  - ".rspec"
177
- - ".ruby-version"
164
+ - Dockerfile
178
165
  - Gemfile
179
166
  - LICENSE.md
167
+ - Makefile
180
168
  - Procfile
181
169
  - README.md
182
170
  - Rakefile
183
171
  - SECURITY.md
184
172
  - aptible-auth.gemspec
173
+ - docker-compose.yml
185
174
  - lib/aptible/auth.rb
186
175
  - lib/aptible/auth/agent.rb
187
176
  - lib/aptible/auth/client.rb
@@ -217,6 +206,7 @@ homepage: https://github.com/aptible/aptible-auth-ruby
217
206
  licenses:
218
207
  - MIT
219
208
  metadata: {}
209
+ post_install_message:
220
210
  rdoc_options: []
221
211
  require_paths:
222
212
  - lib
@@ -231,7 +221,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
231
221
  - !ruby/object:Gem::Version
232
222
  version: '0'
233
223
  requirements: []
234
- rubygems_version: 3.6.9
224
+ rubygems_version: 3.5.22
225
+ signing_key:
235
226
  specification_version: 4
236
227
  summary: Ruby client for auth.aptible.com
237
228
  test_files:
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.4