handcuffs 1.4.1 → 2.1.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.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +1 -0
  3. data/.github/ISSUE_TEMPLATE/bug.yml +66 -0
  4. data/.github/ISSUE_TEMPLATE/config.yml +1 -0
  5. data/.github/ISSUE_TEMPLATE/docs.yml +18 -0
  6. data/.github/ISSUE_TEMPLATE/feature-request.yml +36 -0
  7. data/.github/ISSUE_TEMPLATE/question-support.yml +18 -0
  8. data/.github/PULL_REQUEST_TEMPLATE.md +15 -0
  9. data/.github/dependabot.yaml +36 -0
  10. data/.github/workflows/auto-assign-author.yaml +15 -0
  11. data/.github/workflows/codeql.yaml +35 -0
  12. data/.github/workflows/release.yaml +43 -0
  13. data/.github/workflows/stale.yaml +34 -0
  14. data/.github/workflows/test.yaml +52 -0
  15. data/.gitignore +2 -1
  16. data/Appraisals +6 -27
  17. data/CHANGELOG.md +43 -0
  18. data/CODE_OF_CONDUCT.md +117 -36
  19. data/CONTRIBUTING.md +37 -0
  20. data/README.md +92 -59
  21. data/SECURITY.md +19 -0
  22. data/gemfiles/rails_6.1.gemfile +1 -1
  23. data/gemfiles/{rails_5.2.gemfile → rails_7.0.gemfile} +1 -1
  24. data/gemfiles/{rails_6.gemfile → rails_7.1.gemfile} +1 -1
  25. data/handcuffs.gemspec +9 -5
  26. data/lib/handcuffs/configuration.rb +4 -2
  27. data/lib/handcuffs/errors.rb +1 -1
  28. data/lib/handcuffs/extensions.rb +4 -4
  29. data/lib/handcuffs/pending_filter_ext.rb +19 -0
  30. data/lib/handcuffs/phase_filter.rb +2 -2
  31. data/lib/handcuffs/phases.rb +41 -0
  32. data/lib/handcuffs/version.rb +3 -1
  33. data/lib/tasks/handcuffs.rake +26 -31
  34. metadata +50 -21
  35. data/.circleci/config.yml +0 -98
  36. data/gemfiles/rails_4.gemfile +0 -8
  37. data/gemfiles/rails_5.1.gemfile +0 -8
  38. data/gemfiles/rails_5.gemfile +0 -8
  39. /data/{LICENSE.txt → LICENSE.md} +0 -0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: handcuffs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.1
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
- - Brad Urani
8
- autorequire:
7
+ - Procore Technologies, Inc.
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-14 00:00:00.000000000 Z
11
+ date: 2025-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -72,54 +72,79 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.0'
75
+ version: '6.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.0'
82
+ version: '6.1'
83
+ - !ruby/object:Gem::Dependency
84
+ name: simplecov
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
83
97
  - !ruby/object:Gem::Dependency
84
98
  name: rails
85
99
  requirement: !ruby/object:Gem::Requirement
86
100
  requirements:
87
101
  - - ">="
88
102
  - !ruby/object:Gem::Version
89
- version: '4.0'
103
+ version: '6.1'
90
104
  type: :runtime
91
105
  prerelease: false
92
106
  version_requirements: !ruby/object:Gem::Requirement
93
107
  requirements:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
- version: '4.0'
110
+ version: '6.1'
97
111
  description: Allows you to define a phase on Active Record migrations and provides
98
112
  rake tasks for running only migrations tagged with a certain phase
99
113
  email:
100
- - bradurani@gmail.com
101
114
  - opensource@procore.com
102
115
  executables: []
103
116
  extensions: []
104
117
  extra_rdoc_files: []
105
118
  files:
106
- - ".circleci/config.yml"
119
+ - ".github/CODEOWNERS"
120
+ - ".github/ISSUE_TEMPLATE/bug.yml"
121
+ - ".github/ISSUE_TEMPLATE/config.yml"
122
+ - ".github/ISSUE_TEMPLATE/docs.yml"
123
+ - ".github/ISSUE_TEMPLATE/feature-request.yml"
124
+ - ".github/ISSUE_TEMPLATE/question-support.yml"
125
+ - ".github/PULL_REQUEST_TEMPLATE.md"
126
+ - ".github/dependabot.yaml"
127
+ - ".github/workflows/auto-assign-author.yaml"
128
+ - ".github/workflows/codeql.yaml"
129
+ - ".github/workflows/release.yaml"
130
+ - ".github/workflows/stale.yaml"
131
+ - ".github/workflows/test.yaml"
107
132
  - ".gitignore"
108
133
  - Appraisals
134
+ - CHANGELOG.md
109
135
  - CODE_OF_CONDUCT.md
136
+ - CONTRIBUTING.md
110
137
  - Gemfile
111
- - LICENSE.txt
138
+ - LICENSE.md
112
139
  - README.md
113
140
  - Rakefile
141
+ - SECURITY.md
114
142
  - bin/console
115
143
  - bin/setup
116
144
  - gemfiles/.bundle/config
117
- - gemfiles/rails_4.gemfile
118
- - gemfiles/rails_5.1.gemfile
119
- - gemfiles/rails_5.2.gemfile
120
- - gemfiles/rails_5.gemfile
121
145
  - gemfiles/rails_6.1.gemfile
122
- - gemfiles/rails_6.gemfile
146
+ - gemfiles/rails_7.0.gemfile
147
+ - gemfiles/rails_7.1.gemfile
123
148
  - handcuffs.gemspec
124
149
  - lib/handcuffs.rb
125
150
  - lib/handcuffs/configuration.rb
@@ -127,16 +152,20 @@ files:
127
152
  - lib/handcuffs/errors.rb
128
153
  - lib/handcuffs/errors/configuration_block_missing_error.rb
129
154
  - lib/handcuffs/extensions.rb
155
+ - lib/handcuffs/pending_filter_ext.rb
130
156
  - lib/handcuffs/phase_filter.rb
157
+ - lib/handcuffs/phases.rb
131
158
  - lib/handcuffs/railtie.rb
132
159
  - lib/handcuffs/version.rb
133
160
  - lib/tasks/handcuffs.rake
134
- homepage: https://github.com/procore/handcuffs/
161
+ homepage: https://github.com/procore-oss/handcuffs/
135
162
  licenses:
136
163
  - MIT
137
164
  metadata:
138
165
  allowed_push_host: https://rubygems.org
139
- post_install_message:
166
+ rubygems_mfa_required: 'true'
167
+ homepage_uri: https://github.com/procore-oss/handcuffs/
168
+ post_install_message:
140
169
  rdoc_options: []
141
170
  require_paths:
142
171
  - lib
@@ -144,15 +173,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
144
173
  requirements:
145
174
  - - ">="
146
175
  - !ruby/object:Gem::Version
147
- version: '0'
176
+ version: '3.0'
148
177
  required_rubygems_version: !ruby/object:Gem::Requirement
149
178
  requirements:
150
179
  - - ">="
151
180
  - !ruby/object:Gem::Version
152
181
  version: '0'
153
182
  requirements: []
154
- rubygems_version: 3.0.3
155
- signing_key:
183
+ rubygems_version: 3.4.19
184
+ signing_key:
156
185
  specification_version: 4
157
186
  summary: A Ruby gem for running Active Record migrations in phases
158
187
  test_files: []
data/.circleci/config.yml DELETED
@@ -1,98 +0,0 @@
1
- version: 2
2
-
3
- aliases:
4
- database: &database
5
- image: circleci/postgres:10-ram
6
- environment:
7
- POSTGRES_USER: ubuntu
8
- POSTGRES_DB: handcuffs_test
9
- POSTGRES_HOST_AUTH_METHOD: trust
10
-
11
- test_env: &test_env
12
- - PGHOST=localhost
13
- - PGUSER=ubuntu
14
- - RAILS_ENV=test
15
- - BUNDLER_VERSION=1.17.3
16
-
17
- run_tests: &run_tests
18
- - checkout
19
-
20
- - run:
21
- name: Install Bundler
22
- command: gem install bundler:1.17.3
23
-
24
- - run:
25
- name: Install Ruby Dependencies
26
- command: bundle install && cd spec/dummy && bundle install
27
-
28
- - run:
29
- name: Install Apprasals Dependencies
30
- command: bundle exec appraisal install
31
-
32
- - run:
33
- name: Setup Database
34
- command: cd spec/dummy && bundle exec rake db:create db:migrate --trace
35
-
36
- - run:
37
- name: Run Appraisals Tests
38
- command: bundle exec appraisal rspec
39
-
40
- - run:
41
- name: Run Dummy App Tests
42
- command: cd spec/dummy && bin/rspec
43
-
44
- jobs:
45
- ruby_2_3:
46
- docker:
47
- - image: circleci/ruby:2.3
48
- environment:
49
- *test_env
50
- - *database
51
- steps:
52
- *run_tests
53
-
54
- ruby_2_4:
55
- docker:
56
- - image: circleci/ruby:2.4
57
- environment:
58
- *test_env
59
- - *database
60
- steps:
61
- *run_tests
62
-
63
- ruby_2_5:
64
- docker:
65
- - image: circleci/ruby:2.5
66
- environment:
67
- *test_env
68
- - *database
69
- steps:
70
- *run_tests
71
-
72
- ruby_2_6:
73
- docker:
74
- - image: circleci/ruby:2.6
75
- environment:
76
- *test_env
77
- - *database
78
- steps:
79
- *run_tests
80
-
81
- ruby_2_7:
82
- docker:
83
- - image: circleci/ruby:2.7
84
- environment:
85
- *test_env
86
- - *database
87
- steps:
88
- *run_tests
89
-
90
- workflows:
91
- version: 2
92
- test-all:
93
- jobs:
94
- - ruby_2_3
95
- - ruby_2_4
96
- - ruby_2_5
97
- - ruby_2_6
98
- - ruby_2_7
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 4.2.8"
6
- gem "pg", "~> 0.15"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 5.1.7"
6
- gem "pg", "~> 0.18"
7
-
8
- gemspec path: "../"
@@ -1,8 +0,0 @@
1
- # This file was generated by Appraisal
2
-
3
- source "https://rubygems.org"
4
-
5
- gem "rails", "~> 5.0.0.1"
6
- gem "pg", "~> 0.18"
7
-
8
- gemspec path: "../"
File without changes