aptible-tasks 0.6.1 → 0.6.2

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
- SHA1:
3
- metadata.gz: ef7fc2d72afbc80c060a55f249f937ed2f5a951d
4
- data.tar.gz: fa5d9b17614c056687e41212c499ce90fe030039
2
+ SHA256:
3
+ metadata.gz: caa2b0404ca21f5bf868e1df82dea81080517f109b6a568d1d1af46e3632cfeb
4
+ data.tar.gz: cee7b631dc0d401417f44b363158bfcc79997bb3c888faac1a8ea51c1b7b0c5a
5
5
  SHA512:
6
- metadata.gz: 1cf18981543362e39da4fd565ab1516a8cbcf20291158e5dedeb00f237607f3e91e365bb0a8298575f94b5331d354e51c3e47868cc94cf829832adf912a73e6a
7
- data.tar.gz: 5a1eee8d8dc3063876834d16faad72141dd3ab618e2690804fa7b37e5961f28aec50f61ce6af5463f65e68416722bd0dccf3b2d26bbdd70cc9db9814914b76af
6
+ metadata.gz: 3ed5a7455dc75627e41af4ce809f27b3548a740c075494a1f4cd0bc3be01dc13d59170131be9eef4ad0f8584b9fb6b99c61df31679e105d9d9cd79caa10c069a
7
+ data.tar.gz: 5a440ef2e175919980636a86bd508f84cae826cb261b09f12843dd18b8b9a9fd05c96cf4736836b0d34ce837b184a602de521196040d356a66e57de0f233753c
@@ -0,0 +1,26 @@
1
+ on:
2
+ release:
3
+ types: [published]
4
+
5
+ jobs:
6
+ push:
7
+ name: Push gem to RubyGems.org
8
+ runs-on: ubuntu-latest
9
+
10
+ permissions:
11
+ id-token: write
12
+ contents: write
13
+
14
+ steps:
15
+ - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
16
+ with:
17
+ persist-credentials: false
18
+ - name: Set up Ruby
19
+ uses: ruby/setup-ruby@211ffaaa5f8dda97e9e8bca4e70d0fbaf2f8c41c
20
+ with:
21
+ bundler-cache: false
22
+ ruby-version: "3.3"
23
+
24
+ - run: bundle install
25
+
26
+ - uses: rubygems/release-gem@1c162a739e8b4cb21a676e97b087e8268d8fc40b
@@ -0,0 +1,29 @@
1
+ name: Tests
2
+
3
+ on:
4
+ pull_request:
5
+ branches:
6
+ - master
7
+ push:
8
+ branches:
9
+ - master
10
+
11
+ jobs:
12
+ test:
13
+ name: Run tests on Ruby ${{ matrix.RUBY_VERSION }}
14
+ runs-on: ubuntu-24.04
15
+ strategy:
16
+ fail-fast: false
17
+ matrix:
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 }}
21
+ steps:
22
+ - name: Check out code
23
+ uses: actions/checkout@v4
24
+
25
+ - name: Rubocop
26
+ run: make lint
27
+
28
+ - name: Rspec
29
+ run: make test
data/.gitignore CHANGED
@@ -15,3 +15,4 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ /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-tasks.gemspec /app/
13
+ RUN mkdir -p /app/lib/aptible/tasks/
14
+ COPY lib/aptible/tasks/version.rb /app/lib/aptible/tasks/
15
+
16
+ RUN bundle install
17
+
18
+ COPY . /app
19
+
20
+ CMD ["bash"]
data/Makefile ADDED
@@ -0,0 +1,74 @@
1
+
2
+ export COMPOSE_IGNORE_ORPHANS ?= true
3
+ export RUBY_VERSION ?= 2.3.1
4
+ RUBY_VERSION_MAJOR = $(word 1,$(subst ., ,$(RUBY_VERSION)))
5
+ RUBY_VERSION_MINOR = $(word 2,$(subst ., ,$(RUBY_VERSION)))
6
+ export BUNDLER_VERSION ?=
7
+ ifeq ($(BUNDLER_VERSION),)
8
+ ifeq ($(RUBY_VERSION_MAJOR),2)
9
+ # Use old bundler for Ruby 2.3-2.6; Ruby 2.7 needs bundler 2.x to avoid resolver bugs
10
+ ifeq ($(RUBY_VERSION_MINOR),7)
11
+ export BUNDLER_VERSION = 2.4.22
12
+ else
13
+ export BUNDLER_VERSION = 1.17.3
14
+ endif
15
+ endif
16
+ endif
17
+ PROJECT_NAME = $(shell ls *.gemspec | sed 's/\.gemspec//')
18
+ export COMPOSE_PROJECT_NAME ?= $(PROJECT_NAME)-$(subst .,_,$(RUBY_VERSION))
19
+
20
+ default: help
21
+
22
+ ## Show this help message
23
+ help:
24
+ @echo "\n\033[1;34mAvailable targets:\033[0m\n"
25
+ @awk 'BEGIN {FS = ":"; prev = ""} \
26
+ /^## / {prev = substr($$0, 4); next} \
27
+ /^[a-zA-Z_-]+:/ {if (prev != "") printf " \033[1;36m%-20s\033[0m %s\n", $$1, prev; prev = ""} \
28
+ {prev = ""}' $(MAKEFILE_LIST) | sort
29
+ @echo
30
+
31
+ BUILD_ARGS ?=
32
+ ## Build and pull docker compose images
33
+ build: gemfile-lock
34
+ docker compose build --pull $(BUILD_ARGS)
35
+
36
+ ## Create a Gemfile.lock specific to the container (i.e., for the ruby version)
37
+ gemfile-lock:
38
+ mkdir -pv ./docker/ruby-$(RUBY_VERSION)/ && \
39
+ echo '' > ./docker/ruby-$(RUBY_VERSION)/Gemfile.lock
40
+
41
+ ## Open shell in a docker container, supports CMD=
42
+ bash: build
43
+ $(MAKE) run CMD=bash
44
+
45
+ CMD ?= bash
46
+ ## Run command in a docker container, supports CMD=
47
+ run:
48
+ docker compose run --rm runner $(CMD)
49
+
50
+ ## Run tests in a docker container, supports ARGS=
51
+ test: build
52
+ $(MAKE) test-direct ARGS="$(ARGS)"
53
+
54
+ ## Run tests in a docker container without building, supports ARGS=
55
+ test-direct:
56
+ $(MAKE) run CMD="bundle exec rspec $(ARGS)"
57
+
58
+ ## Run rubocop in a docker container, supports ARGS=
59
+ lint: build
60
+ $(MAKE) lint-direct ARGS="$(ARGS)"
61
+
62
+ ## Run rubocop in a docker container without building, supports ARGS=
63
+ lint-direct:
64
+ $(MAKE) run CMD="bundle exec rake rubocop $(ARGS)"
65
+
66
+ ## Clean up docker compose resources
67
+ clean: clean-gemfile-lock
68
+ docker compose down --remove-orphans --volumes
69
+
70
+ ## Clean up the container specific Gemfile.lock
71
+ clean-gemfile-lock:
72
+ rm -v ./docker/ruby-$(RUBY_VERSION)/Gemfile.lock ||:
73
+
74
+ .PHONY: build bash test
data/README.md CHANGED
@@ -1,7 +1,6 @@
1
1
  # Aptible::Tasks
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/aptible-tasks.png)](https://rubygems.org/gems/aptible-tasks)
4
- [![Build Status](https://travis-ci.org/aptible/aptible-tasks.png?branch=master)](https://travis-ci.org/aptible/aptible-tasks)
5
4
  [![Dependency Status](https://gemnasium.com/aptible/aptible-tasks.png)](https://gemnasium.com/aptible/aptible-tasks)
6
5
 
7
6
  Shared Rake tasks for Aptible projects.
data/SECURITY.md ADDED
@@ -0,0 +1,23 @@
1
+ # Aptible Open Source Security Policies and Procedures
2
+
3
+ This document outlines security procedures and general policies for the Aptible open source projects as found on https://github.com/aptible.
4
+
5
+ * [Reporting a Vulnerability](#reporting-a-vulnerability)
6
+ * [Responsible Disclosure Policy](#responsible-disclosure-policy)
7
+
8
+ ## Reporting a Vulnerability
9
+
10
+ The Aptible team and community take all security vulnerabilities
11
+ seriously. Thank you for improving the security of our open source software. We appreciate your efforts and responsible disclosure and will make every effort to acknowledge your contributions.
12
+
13
+ Report security vulnerabilities by emailing the Aptible security team at:
14
+
15
+ security@aptible.com
16
+
17
+ Security researchers can also privately report security vulnerabilities to repository maintainers using the GitHub "Report a Vulnerability" feature. [See how-to here](https://docs.github.com/en/code-security/security-advisories/guidance-on-reporting-and-writing/privately-reporting-a-security-vulnerability#privately-reporting-a-security-vulnerability).
18
+
19
+ The Aptible team will acknowledge your email within 24 business hours and send a detailed response within 48 business hours indicating the next steps in handling your report. The Aptible security team will keep you informed of the progress and may ask for additional information or guidance.
20
+
21
+ ## Responsible Disclosure Policy
22
+
23
+ Please see Aptible's Responsible Disclosure Policy here: https://www.aptible.com/legal/responsible-disclosure/
@@ -20,6 +20,8 @@ Gem::Specification.new do |spec|
20
20
  spec.test_files = spec.files.grep(%r{^spec/})
21
21
  spec.require_paths = ['lib']
22
22
 
23
+ spec.add_dependency 'base64'
24
+ spec.add_dependency 'ostruct'
23
25
  spec.add_dependency 'rake'
24
26
  spec.add_dependency 'rubocop', '= 0.62.0'
25
27
 
@@ -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 Tasks
3
- VERSION = '0.6.1'.freeze
3
+ VERSION = '0.6.2'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aptible-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frank Macreery
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-08 00:00:00.000000000 Z
11
+ date: 2025-12-29 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: base64
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ostruct
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: rake
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -102,15 +130,20 @@ extensions: []
102
130
  extra_rdoc_files: []
103
131
  files:
104
132
  - ".github/CODEOWNERS"
133
+ - ".github/workflows/release.yml"
134
+ - ".github/workflows/test.yml"
105
135
  - ".gitignore"
106
136
  - ".rspec"
107
137
  - ".rubocop.yml"
108
- - ".travis.yml"
138
+ - Dockerfile
109
139
  - Gemfile
110
140
  - LICENSE.md
141
+ - Makefile
111
142
  - README.md
112
143
  - Rakefile
144
+ - SECURITY.md
113
145
  - aptible-tasks.gemspec
146
+ - docker-compose.yml
114
147
  - lib/aptible/tasks.rb
115
148
  - lib/aptible/tasks/rubocop.rb
116
149
  - lib/aptible/tasks/version.rb
@@ -129,7 +162,7 @@ homepage: https://github.com/aptible/aptible-tasks
129
162
  licenses:
130
163
  - MIT
131
164
  metadata: {}
132
- post_install_message:
165
+ post_install_message:
133
166
  rdoc_options: []
134
167
  require_paths:
135
168
  - lib
@@ -144,9 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
177
  - !ruby/object:Gem::Version
145
178
  version: '0'
146
179
  requirements: []
147
- rubyforge_project:
148
- rubygems_version: 2.4.5.5
149
- signing_key:
180
+ rubygems_version: 3.5.22
181
+ signing_key:
150
182
  specification_version: 4
151
183
  summary: Shared Rake tasks for Aptible projects
152
184
  test_files:
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- sudo: false
2
- rvm:
3
- - "2.2"
4
- - "2.5"