aptible-tasks 0.6.0 → 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 +4 -4
- data/.github/CODEOWNERS +1 -0
- data/.github/workflows/release.yml +26 -0
- data/.github/workflows/test.yml +29 -0
- data/.gitignore +1 -0
- data/.rubocop.yml +4 -0
- data/Dockerfile +20 -0
- data/Makefile +74 -0
- data/README.md +1 -4
- data/SECURITY.md +23 -0
- data/aptible-tasks.gemspec +2 -0
- data/docker-compose.yml +12 -0
- data/lib/aptible/tasks/version.rb +1 -1
- metadata +41 -8
- data/.travis.yml +0 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: caa2b0404ca21f5bf868e1df82dea81080517f109b6a568d1d1af46e3632cfeb
|
|
4
|
+
data.tar.gz: cee7b631dc0d401417f44b363158bfcc79997bb3c888faac1a8ea51c1b7b0c5a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ed5a7455dc75627e41af4ce809f27b3548a740c075494a1f4cd0bc3be01dc13d59170131be9eef4ad0f8584b9fb6b99c61df31679e105d9d9cd79caa10c069a
|
|
7
|
+
data.tar.gz: 5a440ef2e175919980636a86bd508f84cae826cb261b09f12843dd18b8b9a9fd05c96cf4736836b0d34ce837b184a602de521196040d356a66e57de0f233753c
|
data/.github/CODEOWNERS
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @fancyremarker
|
|
@@ -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
data/.rubocop.yml
CHANGED
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
|
[](https://rubygems.org/gems/aptible-tasks)
|
|
4
|
-
[](https://travis-ci.org/aptible/aptible-tasks)
|
|
5
4
|
[](https://gemnasium.com/aptible/aptible-tasks)
|
|
6
5
|
|
|
7
6
|
Shared Rake tasks for Aptible projects.
|
|
@@ -42,6 +41,4 @@ If you're running a Rails app, include the above lines after you load your appli
|
|
|
42
41
|
|
|
43
42
|
MIT License, see [LICENSE](LICENSE.md) for details.
|
|
44
43
|
|
|
45
|
-
Copyright (c)
|
|
46
|
-
|
|
47
|
-
[<img src="https://s.gravatar.com/avatar/f7790b867ae619ae0496460aa28c5861?s=60" style="border-radius: 50%;" alt="@fancyremarker" />](https://github.com/fancyremarker)
|
|
44
|
+
Copyright (c) 2019 [Aptible](https://www.aptible.com) and contributors.
|
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/
|
data/aptible-tasks.gemspec
CHANGED
data/docker-compose.yml
ADDED
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.
|
|
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:
|
|
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
|
|
@@ -101,15 +129,21 @@ executables: []
|
|
|
101
129
|
extensions: []
|
|
102
130
|
extra_rdoc_files: []
|
|
103
131
|
files:
|
|
132
|
+
- ".github/CODEOWNERS"
|
|
133
|
+
- ".github/workflows/release.yml"
|
|
134
|
+
- ".github/workflows/test.yml"
|
|
104
135
|
- ".gitignore"
|
|
105
136
|
- ".rspec"
|
|
106
137
|
- ".rubocop.yml"
|
|
107
|
-
-
|
|
138
|
+
- Dockerfile
|
|
108
139
|
- Gemfile
|
|
109
140
|
- LICENSE.md
|
|
141
|
+
- Makefile
|
|
110
142
|
- README.md
|
|
111
143
|
- Rakefile
|
|
144
|
+
- SECURITY.md
|
|
112
145
|
- aptible-tasks.gemspec
|
|
146
|
+
- docker-compose.yml
|
|
113
147
|
- lib/aptible/tasks.rb
|
|
114
148
|
- lib/aptible/tasks/rubocop.rb
|
|
115
149
|
- lib/aptible/tasks/version.rb
|
|
@@ -128,7 +162,7 @@ homepage: https://github.com/aptible/aptible-tasks
|
|
|
128
162
|
licenses:
|
|
129
163
|
- MIT
|
|
130
164
|
metadata: {}
|
|
131
|
-
post_install_message:
|
|
165
|
+
post_install_message:
|
|
132
166
|
rdoc_options: []
|
|
133
167
|
require_paths:
|
|
134
168
|
- lib
|
|
@@ -143,9 +177,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
143
177
|
- !ruby/object:Gem::Version
|
|
144
178
|
version: '0'
|
|
145
179
|
requirements: []
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
signing_key:
|
|
180
|
+
rubygems_version: 3.5.22
|
|
181
|
+
signing_key:
|
|
149
182
|
specification_version: 4
|
|
150
183
|
summary: Shared Rake tasks for Aptible projects
|
|
151
184
|
test_files:
|
data/.travis.yml
DELETED