handcuffs 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8bf95838d49ef0e1f9c6f2729b206f052ffafafd
4
- data.tar.gz: 603ee42e44dd7716a752ea2b8c73e74468a5ffd5
3
+ metadata.gz: de1b84d326918fd88fa607bde5fd543e6f5d5be6
4
+ data.tar.gz: 195cf4b9033d39e665340c2a68711f9c4e7bad87
5
5
  SHA512:
6
- metadata.gz: fadd7fecdda9db713e21272f5a260f5c6cc8498e9be944db3af6b9a2de1dbf28daf32ffbf86bb422bd14534e3d89ff0fcf7fccb96202ac31e5d1f831c521b732
7
- data.tar.gz: abcb16fa6ed6f609e09a264591f8e4fe2652d8ad6515cb4e26a815947c376f5230e69f483ef8093c1773b420d3dfe1e7220c2b0542027219a296917b15a63f0f
6
+ metadata.gz: 26ba39595b3ec99e188ec308c71025a613e53078369154059bab59e6d4c9bc0d980ec54fa50e824eae2da20f8c2f4a53751025aa60fb47a9e7333b5779d2e40e
7
+ data.tar.gz: 6157ce2375dea622597e6baeaabdb8b54305f3e39b9eea2e77e14f85d9b9bdb58a9c894dd5b1e8272952c5a816fc11043238d7a03cca432ef2e534af95502f3f
@@ -0,0 +1,98 @@
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
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
  handcuffs-*.gem
11
11
  /gemfiles/*.gemfile.lock
12
+ .ruby-version
data/Appraisals CHANGED
@@ -1,7 +1,28 @@
1
- appraise "rails-4" do
2
- gem "rails", "4.2.7.1"
1
+ # Ruby 2.7 doesn't support BigDecimal.new, which Rails 4 uses
2
+ if RUBY_VERSION < "2.7"
3
+ appraise "rails-4" do
4
+ gem "rails", "~> 4.2.8"
5
+ gem 'pg', '~> 0.15'
6
+ end
3
7
  end
4
8
 
5
9
  appraise "rails-5" do
6
- gem "rails", "5.0.0.1"
10
+ gem "rails", "~> 5.0.0.1"
11
+ gem 'pg', '~> 0.18'
12
+ end
13
+
14
+ appraise "rails-5.1" do
15
+ gem "rails", "~> 5.1.7"
16
+ gem 'pg', '~> 0.18'
17
+ end
18
+
19
+ appraise "rails-5.2" do
20
+ gem "rails", "~> 5.2.3"
21
+ end
22
+
23
+ # Rails >= 6 requires Ruby >= 2.5
24
+ if RUBY_VERSION >= "2.5"
25
+ appraise "rails-6" do
26
+ gem "rails", "~> 6.0.0"
27
+ end
7
28
  end
data/README.md CHANGED
@@ -55,16 +55,16 @@ end
55
55
 
56
56
  You can then run your migrations in phases using
57
57
  ```bash
58
- rake handcuffs:migrate[pre_restart]
58
+ rake 'handcuffs:migrate[pre_restart]'
59
59
  ```
60
60
  or
61
61
  ```bash
62
- rake handcuffs:migrate[post_restart]
62
+ rake 'handcuffs:migrate[post_restart]'
63
63
  ```
64
64
 
65
65
  You can run all migrations using
66
66
  ```bash
67
- rake handcuffs:migrate[all]
67
+ rake 'handcuffs:migrate[all]'
68
68
  ```
69
69
 
70
70
  This differs from running `rake db:migrate` in that specs will be run in the
@@ -98,7 +98,7 @@ Or install it yourself as:
98
98
 
99
99
  $ gem install handcuffs
100
100
 
101
- ##Running specs
101
+ ## Running specs
102
102
 
103
103
  The specs for handcuffs are in the dummy application at `/spec/dummy/spec`. The
104
104
  spec suite requires PostgreSQL. To run it you will have to set the environment
@@ -0,0 +1,2 @@
1
+ ---
2
+ BUNDLE_RETRY: "1"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "4.2.0"
5
+ gem "rails", "~> 4.2.8"
6
+ gem "pg", "~> 0.15"
6
7
 
7
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,8 @@
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: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 5.2.3"
6
+
7
+ gemspec path: "../"
@@ -2,6 +2,7 @@
2
2
 
3
3
  source "https://rubygems.org"
4
4
 
5
- gem "rails", "5.0.0.1"
5
+ gem "rails", "~> 5.0.0.1"
6
+ gem "pg", "~> 0.18"
6
7
 
7
- gemspec :path => "../"
8
+ gemspec path: "../"
@@ -0,0 +1,7 @@
1
+ # This file was generated by Appraisal
2
+
3
+ source "https://rubygems.org"
4
+
5
+ gem "rails", "~> 6.0.0"
6
+
7
+ gemspec path: "../"
@@ -33,5 +33,5 @@ Gem::Specification.new do |spec|
33
33
  spec.add_development_dependency "pry-byebug"
34
34
  spec.add_development_dependency "rspec-rails", "~> 3.0"
35
35
 
36
- spec.add_runtime_dependency "rails", ">= 4.0", "< 6.0"
36
+ spec.add_runtime_dependency "rails", ">= 4.0", "<= 6.0"
37
37
  end
@@ -1,3 +1,3 @@
1
1
  module Handcuffs
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
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.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brad Urani
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-12-13 00:00:00.000000000 Z
11
+ date: 2020-02-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: appraisal
@@ -87,7 +87,7 @@ dependencies:
87
87
  - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '4.0'
90
- - - "<"
90
+ - - "<="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '6.0'
93
93
  type: :runtime
@@ -97,7 +97,7 @@ dependencies:
97
97
  - - ">="
98
98
  - !ruby/object:Gem::Version
99
99
  version: '4.0'
100
- - - "<"
100
+ - - "<="
101
101
  - !ruby/object:Gem::Version
102
102
  version: '6.0'
103
103
  description: Allows you to define a phase on Active Record migrations and provides
@@ -109,8 +109,8 @@ executables: []
109
109
  extensions: []
110
110
  extra_rdoc_files: []
111
111
  files:
112
+ - ".circleci/config.yml"
112
113
  - ".gitignore"
113
- - ".ruby-version"
114
114
  - Appraisals
115
115
  - CODE_OF_CONDUCT.md
116
116
  - Gemfile
@@ -119,9 +119,12 @@ files:
119
119
  - Rakefile
120
120
  - bin/console
121
121
  - bin/setup
122
- - circle.yml
122
+ - gemfiles/.bundle/config
123
123
  - gemfiles/rails_4.gemfile
124
+ - gemfiles/rails_5.1.gemfile
125
+ - gemfiles/rails_5.2.gemfile
124
126
  - gemfiles/rails_5.gemfile
127
+ - gemfiles/rails_6.gemfile
125
128
  - handcuffs.gemspec
126
129
  - lib/handcuffs.rb
127
130
  - lib/handcuffs/configuration.rb
@@ -154,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
154
157
  version: '0'
155
158
  requirements: []
156
159
  rubyforge_project:
157
- rubygems_version: 2.5.2
160
+ rubygems_version: 2.6.11
158
161
  signing_key:
159
162
  specification_version: 4
160
163
  summary: A Ruby gem for running Active Record migrations in phases
File without changes
data/circle.yml DELETED
@@ -1,20 +0,0 @@
1
- machine:
2
- environment:
3
- POSTGRES_DB_DATABASE: circle_test
4
- POSTGRES_DB_USERNAME: ubuntu
5
- POSTGRES_DB_PASSWORD: ''
6
- ruby:
7
- version: 2.3.3
8
-
9
- database:
10
- override:
11
- - echo 'Using circle_test'
12
- - cd spec/dummy && bin/rake db:create db:migrate --trace
13
-
14
- dependencies:
15
- post:
16
- - bundle exec appraisal install
17
- test:
18
- override:
19
- - bundle exec appraisal rspec
20
- - cd spec/dummy && bin/rspec