activesupport-deprecation_test_helper 0.1.2 → 0.2.0.pre.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/pipeline.yml +30 -0
- data/.gitignore +1 -0
- data/.ruby-version +1 -1
- data/Appraisals +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +14 -15
- data/active_support-deprecation_test_helper.gemspec +1 -1
- data/gemfiles/rails_5.gemfile +1 -1
- data/gemfiles/rails_6.gemfile +1 -1
- data/gemfiles/{rails_4.gemfile → rails_7.gemfile} +2 -2
- data/lib/active_support/deprecation_test_helper/version.rb +1 -1
- metadata +12 -19
- data/.jenkins/Jenkinsfile +0 -69
- data/.jenkins/ruby_build_pod.yml +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3991c7c35694cf766d643781b4ff33bd772e18e19bb77240f6586583512079b4
|
4
|
+
data.tar.gz: f1b5c084b5d027972fa6a0dfd218d77dce0d6a33002963b0195e8b5bde61cbff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b66ddd03dba3ca55b03b4cad7a266b7186b32ccd2a588c35000f8f5fefc0c0bcf8ccfdd3be246d8ab94194683c8b4e81f2f55117402b14d7cb1e3a1bb9d312d
|
7
|
+
data.tar.gz: d69e8cf60e6937320bfd6ada1344a28d5c211a07e0b678fb4a26529a87355e5579d3fcb76bed78bcdbd90ffed9a45a7d1ee05f2aeacc67b684d60efbfec28297
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
name: Pipeline
|
3
|
+
on: [push]
|
4
|
+
jobs:
|
5
|
+
tests:
|
6
|
+
name: Unit Tests
|
7
|
+
runs-on: ubuntu-latest
|
8
|
+
strategy:
|
9
|
+
fail-fast: false
|
10
|
+
matrix:
|
11
|
+
ruby: [2.6, 2.7, '3.0', 3.1]
|
12
|
+
gemfile:
|
13
|
+
- Gemfile
|
14
|
+
- gemfiles/rails_5.gemfile
|
15
|
+
- gemfiles/rails_6.gemfile
|
16
|
+
- gemfiles/rails_7.gemfile
|
17
|
+
exclude:
|
18
|
+
- ruby: 2.6
|
19
|
+
gemfile: gemfiles/rails_7.gemfile
|
20
|
+
env:
|
21
|
+
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
- uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby }}
|
27
|
+
bundler: 2.2.29
|
28
|
+
bundler-cache: true
|
29
|
+
- name: Unit tests
|
30
|
+
run: bundle exec rake
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.5
|
data/Appraisals
CHANGED
@@ -1,9 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
appraise 'rails-4' do
|
4
|
-
gem 'activesupport', '~> 4.2'
|
5
|
-
end
|
6
|
-
|
7
3
|
appraise 'rails-5' do
|
8
4
|
gem 'activesupport', '~> 5.2'
|
9
5
|
end
|
@@ -11,3 +7,7 @@ end
|
|
11
7
|
appraise 'rails-6' do
|
12
8
|
gem 'activesupport', '~> 6.0'
|
13
9
|
end
|
10
|
+
|
11
|
+
appraise 'rails-7' do
|
12
|
+
gem 'activesupport', '~> 7.0'
|
13
|
+
end
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ Inspired by [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
|
|
4
4
|
|
5
5
|
Note: this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## [0.2.0] - Unreleased
|
8
|
+
### Added
|
9
|
+
- Added explicit support for Ruby 2.7, 3.0, and 3.1
|
10
|
+
|
11
|
+
### Removed
|
12
|
+
- Removed support for Rails 4
|
13
|
+
|
7
14
|
## [0.1.2] - 2020-06-18
|
8
15
|
### Fixed
|
9
16
|
- RSpec configuration bug where after(:suite) callback was unable to execute successfully
|
data/Gemfile.lock
CHANGED
@@ -1,30 +1,30 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
activesupport-deprecation_test_helper (0.1
|
5
|
-
activesupport (>=
|
4
|
+
activesupport-deprecation_test_helper (0.2.0.pre.1)
|
5
|
+
activesupport (>= 5.2)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
activesupport (6.
|
10
|
+
activesupport (6.1.7.2)
|
11
11
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>=
|
13
|
-
minitest (
|
14
|
-
tzinfo (~>
|
15
|
-
zeitwerk (~> 2.
|
12
|
+
i18n (>= 1.6, < 2)
|
13
|
+
minitest (>= 5.1)
|
14
|
+
tzinfo (~> 2.0)
|
15
|
+
zeitwerk (~> 2.3)
|
16
16
|
appraisal (2.3.0)
|
17
17
|
bundler
|
18
18
|
rake
|
19
19
|
thor (>= 0.14.0)
|
20
20
|
byebug (11.1.3)
|
21
21
|
coderay (1.1.3)
|
22
|
-
concurrent-ruby (1.
|
22
|
+
concurrent-ruby (1.2.2)
|
23
23
|
diff-lcs (1.3)
|
24
|
-
i18n (1.
|
24
|
+
i18n (1.12.0)
|
25
25
|
concurrent-ruby (~> 1.0)
|
26
26
|
method_source (1.0.0)
|
27
|
-
minitest (5.
|
27
|
+
minitest (5.18.0)
|
28
28
|
pry (0.13.1)
|
29
29
|
coderay (~> 1.1)
|
30
30
|
method_source (~> 1.0)
|
@@ -48,10 +48,9 @@ GEM
|
|
48
48
|
rspec_junit_formatter (0.4.1)
|
49
49
|
rspec-core (>= 2, < 4, != 2.12.0)
|
50
50
|
thor (1.0.1)
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
zeitwerk (2.3.0)
|
51
|
+
tzinfo (2.0.6)
|
52
|
+
concurrent-ruby (~> 1.0)
|
53
|
+
zeitwerk (2.6.7)
|
55
54
|
|
56
55
|
PLATFORMS
|
57
56
|
ruby
|
@@ -66,4 +65,4 @@ DEPENDENCIES
|
|
66
65
|
rspec_junit_formatter (~> 0.4)
|
67
66
|
|
68
67
|
BUNDLED WITH
|
69
|
-
|
68
|
+
2.2.29
|
data/gemfiles/rails_5.gemfile
CHANGED
data/gemfiles/rails_6.gemfile
CHANGED
@@ -5,9 +5,9 @@ source "https://rubygems.org"
|
|
5
5
|
gem "appraisal"
|
6
6
|
gem "pry"
|
7
7
|
gem "pry-byebug"
|
8
|
-
gem "rake", "~>
|
8
|
+
gem "rake", "~> 13.0"
|
9
9
|
gem "rspec", "~> 3.0"
|
10
10
|
gem "rspec_junit_formatter", "~> 0.4"
|
11
|
-
gem "activesupport", "~>
|
11
|
+
gem "activesupport", "~> 7.0"
|
12
12
|
|
13
13
|
gemspec path: "../"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activesupport-deprecation_test_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Invoca
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -16,20 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
20
|
-
- - "<"
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: '7'
|
19
|
+
version: '5.2'
|
23
20
|
type: :runtime
|
24
21
|
prerelease: false
|
25
22
|
version_requirements: !ruby/object:Gem::Requirement
|
26
23
|
requirements:
|
27
24
|
- - ">="
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
30
|
-
- - "<"
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: '7'
|
26
|
+
version: '5.2'
|
33
27
|
description: A test helper that removes `ActiveSupport::Deprecation` noise from being
|
34
28
|
interlaced in your test output. Instead this gem collects any and all deprecation
|
35
29
|
warnings that occur during your tests, and succinctly reports them at the end of
|
@@ -41,9 +35,8 @@ extensions: []
|
|
41
35
|
extra_rdoc_files: []
|
42
36
|
files:
|
43
37
|
- ".dependabot/config.yml"
|
38
|
+
- ".github/workflows/pipeline.yml"
|
44
39
|
- ".gitignore"
|
45
|
-
- ".jenkins/Jenkinsfile"
|
46
|
-
- ".jenkins/ruby_build_pod.yml"
|
47
40
|
- ".rspec"
|
48
41
|
- ".ruby-version"
|
49
42
|
- Appraisals
|
@@ -55,9 +48,9 @@ files:
|
|
55
48
|
- active_support-deprecation_test_helper.gemspec
|
56
49
|
- bin/console
|
57
50
|
- bin/setup
|
58
|
-
- gemfiles/rails_4.gemfile
|
59
51
|
- gemfiles/rails_5.gemfile
|
60
52
|
- gemfiles/rails_6.gemfile
|
53
|
+
- gemfiles/rails_7.gemfile
|
61
54
|
- lib/active_support/deprecation_test_helper.rb
|
62
55
|
- lib/active_support/deprecation_test_helper/version.rb
|
63
56
|
homepage: https://github.com/Invoca/active_support-deprecation_test_helper
|
@@ -67,7 +60,7 @@ metadata:
|
|
67
60
|
homepage_uri: https://github.com/Invoca/active_support-deprecation_test_helper
|
68
61
|
source_code_uri: https://github.com/Invoca/active_support-deprecation_test_helper
|
69
62
|
changelog_uri: https://github.com/Invoca/active_support-deprecation_test_helper/blob/master/CHANGELOG.md
|
70
|
-
post_install_message:
|
63
|
+
post_install_message:
|
71
64
|
rdoc_options: []
|
72
65
|
require_paths:
|
73
66
|
- lib
|
@@ -78,12 +71,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
78
71
|
version: '0'
|
79
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
80
73
|
requirements:
|
81
|
-
- - "
|
74
|
+
- - ">"
|
82
75
|
- !ruby/object:Gem::Version
|
83
|
-
version:
|
76
|
+
version: 1.3.1
|
84
77
|
requirements: []
|
85
|
-
rubygems_version: 3.
|
86
|
-
signing_key:
|
78
|
+
rubygems_version: 3.1.6
|
79
|
+
signing_key:
|
87
80
|
specification_version: 4
|
88
81
|
summary: A test helper that removes `ActiveSupport::Deprecation` noise from being
|
89
82
|
interlaced in your test output.
|
data/.jenkins/Jenkinsfile
DELETED
@@ -1,69 +0,0 @@
|
|
1
|
-
#!/usr/bin/groovy
|
2
|
-
|
3
|
-
@Library('jenkins-pipeline@v0.4.4')
|
4
|
-
|
5
|
-
def setGithubStatus(String name, String description, String status) {
|
6
|
-
gitHubStatus([
|
7
|
-
repoSlug: 'Invoca/active_support-deprecation_test_helper',
|
8
|
-
sha: env.GIT_COMMIT,
|
9
|
-
description: description,
|
10
|
-
context: name,
|
11
|
-
targetURL: env.RUN_DISPLAY_URL,
|
12
|
-
token: env.GITHUB_TOKEN,
|
13
|
-
status: status
|
14
|
-
])
|
15
|
-
}
|
16
|
-
|
17
|
-
pipeline {
|
18
|
-
agent {
|
19
|
-
kubernetes {
|
20
|
-
defaultContainer 'ruby'
|
21
|
-
yamlFile '.jenkins/ruby_build_pod.yml'
|
22
|
-
}
|
23
|
-
}
|
24
|
-
|
25
|
-
environment { GITHUB_TOKEN = credentials('github_token') }
|
26
|
-
|
27
|
-
stages {
|
28
|
-
stage("Setup") {
|
29
|
-
steps {
|
30
|
-
setGithubStatus('clean-build', 'Running unit tests', 'pending')
|
31
|
-
sh 'bundle install'
|
32
|
-
sh 'bundle exec appraisal install'
|
33
|
-
}
|
34
|
-
}
|
35
|
-
|
36
|
-
stage("Appraisals") {
|
37
|
-
parallel {
|
38
|
-
stage("Current") {
|
39
|
-
environment { JUNIT_OUTPUT = 'spec/reports/current/rspec.xml' }
|
40
|
-
steps { sh 'bundle exec rake' }
|
41
|
-
post { always { junit JUNIT_OUTPUT } }
|
42
|
-
}
|
43
|
-
|
44
|
-
stage("Rails 4") {
|
45
|
-
environment { JUNIT_OUTPUT = 'spec/reports/rails-4/rspec.xml' }
|
46
|
-
steps { sh 'bundle exec appraisal rails-4 rake' }
|
47
|
-
post { always { junit JUNIT_OUTPUT } }
|
48
|
-
}
|
49
|
-
|
50
|
-
stage("Rails 5") {
|
51
|
-
environment { JUNIT_OUTPUT = 'spec/reports/rails-5/rspec.xml' }
|
52
|
-
steps { sh 'bundle exec appraisal rails-5 rake' }
|
53
|
-
post { always { junit JUNIT_OUTPUT } }
|
54
|
-
}
|
55
|
-
|
56
|
-
stage("Rails 6") {
|
57
|
-
environment { JUNIT_OUTPUT = 'spec/reports/rails-6/rspec.xml' }
|
58
|
-
steps { sh 'bundle exec appraisal rails-6 rake' }
|
59
|
-
post { always { junit JUNIT_OUTPUT } }
|
60
|
-
}
|
61
|
-
}
|
62
|
-
}
|
63
|
-
}
|
64
|
-
|
65
|
-
post {
|
66
|
-
success { setGithubStatus('clean-build', 'Passed all unit tests!', 'success') }
|
67
|
-
failure { setGithubStatus('clean-build', 'Failure during unit tests!', 'failure') }
|
68
|
-
}
|
69
|
-
}
|
data/.jenkins/ruby_build_pod.yml
DELETED
@@ -1,18 +0,0 @@
|
|
1
|
-
---
|
2
|
-
apiVersion: v1
|
3
|
-
kind: Pod
|
4
|
-
metadata:
|
5
|
-
labels:
|
6
|
-
jenkins/active_support-deprecation_test_helper: 'true'
|
7
|
-
namespace: jenkins
|
8
|
-
name: active_support-deprecation_test_helper
|
9
|
-
spec:
|
10
|
-
containers:
|
11
|
-
- name: ruby
|
12
|
-
image: ruby:2.6.5
|
13
|
-
tty: true
|
14
|
-
resources:
|
15
|
-
requests:
|
16
|
-
memory: "100Mi"
|
17
|
-
command:
|
18
|
-
- cat
|