gemika 0.5.0 → 0.6.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
  SHA256:
3
- metadata.gz: 701bc10b573451892d0ced9b83f58b61abf15c326f81c6db6e7b88b03bddf172
4
- data.tar.gz: 928992d9c46eaa7bb770a94157a7c0c31bd1e25977b2f04b8146c9e6e8cc56e5
3
+ metadata.gz: 28fcdd23de5b84ea13740d1e535b117ab7ba9d984ded03ab60f5f9411af0b95c
4
+ data.tar.gz: e79e1336fc8c93c36c6d77ee667c177cb52b73e126ba3f98f8fdb4714c040f2e
5
5
  SHA512:
6
- metadata.gz: 00bb0cdd5ff56a7ee5a06bf67e89ac0a165b0517e0eda952d1f72f979fc6382559f14bcc13292a43eb1d1f2c024e381cba9484f2b11bc29f458d917d90b94217
7
- data.tar.gz: 0f22df4164b5b72c452a445cd80f11013dd0aef557d431a7b2972c55dc0534461d077284b127e350d3ab79eccbc1c64c14e2e94980781a2e85bf9dffea20118e
6
+ metadata.gz: 8b18d4a2a9224419f7b76fe1510bcbcbd0985e3a34af88874a0f81afe64e915b8f22bf427567b37eb4bb84d939b066df09d51e4c86f14eba8d5b5a5969f92697
7
+ data.tar.gz: d9fabf8b76359a1c6e41d9e617c8a633a70ef9150ac6e400dfe43a7548ef200a54f961480bf3bda9330ee887dfc7774dbf1fa100ba4d27f044b8887b5a6f4fed
@@ -23,16 +23,12 @@ jobs:
23
23
  fail-fast: false
24
24
  matrix:
25
25
  include:
26
- - ruby: 2.2.10
26
+ - ruby: 2.3.8
27
27
  gemfile: Gemfile.3.2.mysql2
28
28
  - ruby: 2.3.8
29
29
  gemfile: Gemfile.4.2.mysql2
30
- - ruby: 2.2.10
31
- gemfile: Gemfile.4.2.mysql2
32
30
  - ruby: 2.3.8
33
31
  gemfile: Gemfile.4.2.mysql2
34
- - ruby: 2.2.10
35
- gemfile: Gemfile.5.2.mysql2
36
32
  - ruby: 2.3.8
37
33
  gemfile: Gemfile.5.2.mysql2
38
34
  env:
@@ -49,7 +45,7 @@ jobs:
49
45
  mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
50
46
  - name: Bundle
51
47
  run: |
52
- gem install bundler:1.17.3
48
+ gem install bundler:2.2.15
53
49
  bundle install --no-deployment
54
50
  - name: Run tests
55
51
  run: bundle exec rspec
@@ -68,16 +64,14 @@ jobs:
68
64
  fail-fast: false
69
65
  matrix:
70
66
  include:
71
- - ruby: 2.2.10
72
- gemfile: Gemfile.4.2.pg
73
67
  - ruby: 2.3.8
74
68
  gemfile: Gemfile.4.2.pg
75
- - ruby: 2.2.10
76
- gemfile: Gemfile.5.2.pg
77
69
  - ruby: 2.3.8
78
70
  gemfile: Gemfile.5.2.pg
79
71
  - ruby: 2.6.4
80
- gemfile: Gemfile.6.0.pg
72
+ gemfile: Gemfile.6.1.pg
73
+ - ruby: 3.0.1
74
+ gemfile: Gemfile.6.1.pg
81
75
  env:
82
76
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
83
77
  steps:
@@ -92,7 +86,7 @@ jobs:
92
86
  PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
93
87
  - name: Bundle
94
88
  run: |
95
- gem install bundler:1.17.3
89
+ gem install bundler:2.2.15
96
90
  bundle install --no-deployment
97
91
  - name: Run tests
98
92
  run: bundle exec rspec
@@ -102,8 +96,6 @@ jobs:
102
96
  fail-fast: false
103
97
  matrix:
104
98
  include:
105
- - ruby: 2.2.10
106
- gemfile: Gemfile.5.2.sqlite3
107
99
  - ruby: 2.3.8
108
100
  gemfile: Gemfile.5.2.sqlite3
109
101
  env:
@@ -116,7 +108,7 @@ jobs:
116
108
  ruby-version: "${{ matrix.ruby }}"
117
109
  - name: Bundle
118
110
  run: |
119
- gem install bundler:1.17.3
111
+ gem install bundler:2.2.15
120
112
  bundle install --no-deployment
121
113
  - name: Run tests
122
114
  run: bundle exec rspec
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.10
1
+ 2.6.4
data/CHANGELOG.md CHANGED
@@ -13,11 +13,21 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
13
13
 
14
14
  -
15
15
 
16
- ## 0.4.0 - 2019-08-07
16
+ ## 0.6.0 - 2021-04-20
17
17
 
18
- ### Breaking changes
18
+ ### Compatible changes
19
19
 
20
- -
20
+ - add Ruby 3 compatibility
21
+ - drop Ruby 2.2 support
22
+
23
+ ## 0.5.0 - 2020-10-09
24
+
25
+ ### Compatible changes
26
+
27
+ - add support for github actions instead of travis
28
+ - add method to migrate travis to github actions workflow
29
+
30
+ ## 0.4.0 - 2019-08-07
21
31
 
22
32
  ### Compatible changes
23
33
 
data/Gemfile.3.2.mysql2 CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Ruby
4
- ruby '< 2.3'
4
+ ruby '< 2.4'
5
5
 
6
6
  # Runtime dependencies
7
7
  gem 'activerecord', '=3.2.22'
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- gemika (0.5.0)
11
+ gemika (0.6.0)
12
12
 
13
13
  GEM
14
14
  remote: https://rubygems.org/
@@ -70,4 +70,4 @@ RUBY VERSION
70
70
  ruby 1.8.7p375
71
71
 
72
72
  BUNDLED WITH
73
- 1.17.3
73
+ 2.2.15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,4 +66,4 @@ RUBY VERSION
66
66
  ruby 2.2.4p230
67
67
 
68
68
  BUNDLED WITH
69
- 1.17.3
69
+ 2.2.15
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -66,4 +66,4 @@ RUBY VERSION
66
66
  ruby 2.3.1p112
67
67
 
68
68
  BUNDLED WITH
69
- 1.17.3
69
+ 2.2.15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 1.17.3
67
+ 2.2.15
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 1.17.3
67
+ 2.2.15
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -64,4 +64,4 @@ RUBY VERSION
64
64
  ruby 2.2.4p230
65
65
 
66
66
  BUNDLED WITH
67
- 1.17.3
67
+ 2.2.15
@@ -4,9 +4,9 @@ source 'https://rubygems.org'
4
4
  ruby '>= 2.2'
5
5
 
6
6
  # Runtime dependencies
7
- gem 'activerecord', '~>6.0.0'
7
+ gem 'activerecord', '~>6.1.0'
8
8
  gem 'rspec', '~>3.5'
9
- gem 'pg', '~>0.18.4'
9
+ gem 'pg'
10
10
 
11
11
  # Development dependencies
12
12
  gem 'rake'
@@ -1,31 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.5.0)
4
+ gemika (0.6.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (6.0.0)
10
- activesupport (= 6.0.0)
11
- activerecord (6.0.0)
12
- activemodel (= 6.0.0)
13
- activesupport (= 6.0.0)
14
- activesupport (6.0.0)
9
+ activemodel (6.1.3.1)
10
+ activesupport (= 6.1.3.1)
11
+ activerecord (6.1.3.1)
12
+ activemodel (= 6.1.3.1)
13
+ activesupport (= 6.1.3.1)
14
+ activesupport (6.1.3.1)
15
15
  concurrent-ruby (~> 1.0, >= 1.0.2)
16
- i18n (>= 0.7, < 2)
17
- minitest (~> 5.1)
18
- tzinfo (~> 1.1)
19
- zeitwerk (~> 2.1, >= 2.1.8)
16
+ i18n (>= 1.6, < 2)
17
+ minitest (>= 5.1)
18
+ tzinfo (~> 2.0)
19
+ zeitwerk (~> 2.3)
20
20
  coderay (1.1.2)
21
- concurrent-ruby (1.1.5)
21
+ concurrent-ruby (1.1.8)
22
22
  database_cleaner (1.7.0)
23
23
  diff-lcs (1.3)
24
- i18n (1.6.0)
24
+ i18n (1.8.10)
25
25
  concurrent-ruby (~> 1.0)
26
26
  method_source (0.9.2)
27
- minitest (5.11.3)
28
- pg (0.18.4)
27
+ minitest (5.14.4)
28
+ pg (1.2.3)
29
29
  pry (0.12.2)
30
30
  coderay (~> 1.1.0)
31
31
  method_source (~> 0.9.0)
@@ -43,19 +43,18 @@ GEM
43
43
  diff-lcs (>= 1.2.0, < 2.0)
44
44
  rspec-support (~> 3.8.0)
45
45
  rspec-support (3.8.2)
46
- thread_safe (0.3.6)
47
- tzinfo (1.2.5)
48
- thread_safe (~> 0.1)
49
- zeitwerk (2.1.10)
46
+ tzinfo (2.0.4)
47
+ concurrent-ruby (~> 1.0)
48
+ zeitwerk (2.4.2)
50
49
 
51
50
  PLATFORMS
52
51
  ruby
53
52
 
54
53
  DEPENDENCIES
55
- activerecord (~> 6.0.0)
54
+ activerecord (~> 6.1.0)
56
55
  database_cleaner
57
56
  gemika!
58
- pg (~> 0.18.4)
57
+ pg
59
58
  pry
60
59
  rake
61
60
  rspec (~> 3.5)
@@ -64,4 +63,4 @@ RUBY VERSION
64
63
  ruby 2.2.4p230
65
64
 
66
65
  BUNDLED WITH
67
- 1.17.2
66
+ 2.2.15
data/README.md CHANGED
@@ -28,9 +28,9 @@ Here's what Gemika can give your test's development setup (all features are opt-
28
28
 
29
29
  Gemika currently supports the following dependency versions:
30
30
 
31
- - Ruby: 1.8.7, 2.1, 2.2, 2.3
31
+ - Ruby: 2.3, 2.6, 3.0
32
32
  - RSpec: Versions 1, 2, 3
33
- - ActiveRecord: Versions 2.3, 3.2, 4.2, 5.0
33
+ - ActiveRecord: Versions 3.2, 4.2, 5.2, 6.1
34
34
  - Databases: PostgreSQL (with `pg` gem), MySQL or MariaDB (with `mysql2` gem), or sqlite3 (with `sqlite3` gem)
35
35
 
36
36
  Gemika also makes some assumption about your Gem:
@@ -695,9 +695,10 @@ Here are some hints when you try to make changes to Gemika itself:
695
695
 
696
696
  There are tests in `spec`. We only accept PRs with tests. To run tests:
697
697
 
698
- - Install Ruby 2.2.4
698
+ - Install Ruby 2.6.4
699
699
  - Create a local test database `gemika_test` in both MySQL and PostgreSQL
700
700
  - Copy `spec/support/database.sample.yml` to `spec/support/database.yml` and enter your local credentials for the test databases
701
+ - Create the databases specified in `database.yml`
701
702
  - Install development dependencies using `bundle install`
702
703
  - Run tests using `bundle exec rspec`
703
704
 
@@ -36,7 +36,7 @@ module Gemika
36
36
  #
37
37
  def connect
38
38
  unless @connected
39
- ActiveRecord::Base.establish_connection(adapter_config)
39
+ ActiveRecord::Base.establish_connection(**adapter_config)
40
40
  @connected = true
41
41
  end
42
42
  end
@@ -108,7 +108,7 @@ module Gemika
108
108
  else
109
109
  raise UnknownAdapter, "Unknown database type. Either 'pg', 'mysql2', or 'sqlite3' gem should be in your current bundle."
110
110
  end
111
- default_config.merge(user_config)
111
+ default_config.merge(user_config).symbolize_keys
112
112
  end
113
113
 
114
114
  private
@@ -1,3 +1,3 @@
1
1
  module Gemika
2
- VERSION = '0.5.0'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -54,7 +54,7 @@ jobs:
54
54
  mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
55
55
  - name: Bundle
56
56
  run: |
57
- gem install bundler:1.17.3
57
+ gem install bundler:2.2.15
58
58
  bundle install --no-deployment
59
59
  - name: Run tests
60
60
  run: bundle exec rspec
@@ -84,7 +84,7 @@ jobs:
84
84
  - ruby: 2.3.1
85
85
  gemfile: Gemfile.5.2.pg
86
86
  - ruby: 2.6.4
87
- gemfile: Gemfile.6.0.pg
87
+ gemfile: Gemfile.6.1.pg
88
88
  env:
89
89
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
90
90
  steps:
@@ -99,7 +99,7 @@ jobs:
99
99
  PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
100
100
  - name: Bundle
101
101
  run: |
102
- gem install bundler:1.17.3
102
+ gem install bundler:2.2.15
103
103
  bundle install --no-deployment
104
104
  - name: Run tests
105
105
  run: bundle exec rspec
@@ -123,7 +123,7 @@ jobs:
123
123
  ruby-version: "${{ matrix.ruby }}"
124
124
  - name: Bundle
125
125
  run: |
126
- gem install bundler:1.17.3
126
+ gem install bundler:2.2.15
127
127
  bundle install --no-deployment
128
128
  - name: Run tests
129
129
  run: bundle exec rspec
@@ -44,7 +44,7 @@ matrix:
44
44
  - gemfile: Gemfile.5.2.sqlite3
45
45
  rvm: 2.3.1
46
46
  # Rails 6.0
47
- - gemfile: Gemfile.6.0.pg
47
+ - gemfile: Gemfile.6.1.pg
48
48
  rvm: 2.6.4
49
49
 
50
50
  install:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemika
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-09 00:00:00.000000000 Z
11
+ date: 2021-04-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Helpers for testing Ruby gems
14
14
  email: henning.koch@makandra.de
@@ -34,8 +34,8 @@ files:
34
34
  - Gemfile.5.2.pg.lock
35
35
  - Gemfile.5.2.sqlite3
36
36
  - Gemfile.5.2.sqlite3.lock
37
- - Gemfile.6.0.pg
38
- - Gemfile.6.0.pg.lock
37
+ - Gemfile.6.1.pg
38
+ - Gemfile.6.1.pg.lock
39
39
  - LICENSE
40
40
  - README.md
41
41
  - Rakefile
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
101
101
  - !ruby/object:Gem::Version
102
102
  version: '0'
103
103
  requirements: []
104
- rubygems_version: 3.1.4
104
+ rubygems_version: 3.2.15
105
105
  signing_key:
106
106
  specification_version: 4
107
107
  summary: Helpers for testing Ruby gems