gemika 0.3.4 → 0.6.1

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 (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test.yml +114 -0
  3. data/.ruby-version +1 -1
  4. data/CHANGELOG.md +91 -0
  5. data/{gemfiles/Gemfile.3.2.mysql2 → Gemfile.3.2.mysql2} +4 -3
  6. data/{gemfiles/Gemfile.3.2.mysql2.lock → Gemfile.3.2.mysql2.lock} +19 -5
  7. data/{gemfiles/Gemfile.4.2.mysql2 → Gemfile.4.2.mysql2} +3 -2
  8. data/{gemfiles/Gemfile.4.2.mysql2.lock → Gemfile.4.2.mysql2.lock} +11 -5
  9. data/{gemfiles/Gemfile.4.2.pg → Gemfile.4.2.pg} +2 -1
  10. data/{gemfiles/Gemfile.4.2.pg.lock → Gemfile.4.2.pg.lock} +9 -3
  11. data/{gemfiles/Gemfile.5.0.mysql2 → Gemfile.5.2.mysql2} +4 -3
  12. data/{gemfiles/Gemfile.5.0.mysql2.lock → Gemfile.5.2.mysql2.lock} +28 -21
  13. data/{gemfiles/Gemfile.5.0.pg → Gemfile.5.2.pg} +3 -2
  14. data/{gemfiles/Gemfile.5.0.pg.lock → Gemfile.5.2.pg.lock} +26 -19
  15. data/{gemfiles/Gemfile.5.0.sqlite3 → Gemfile.5.2.sqlite3} +3 -2
  16. data/{gemfiles/Gemfile.5.0.sqlite3.lock → Gemfile.5.2.sqlite3.lock} +20 -14
  17. data/Gemfile.6.1.pg +17 -0
  18. data/Gemfile.6.1.pg.lock +66 -0
  19. data/README.md +117 -49
  20. data/gemika.gemspec +2 -2
  21. data/lib/gemika/database.rb +9 -3
  22. data/lib/gemika/env.rb +15 -1
  23. data/lib/gemika/errors.rb +2 -0
  24. data/lib/gemika/github_actions_generator.rb +150 -0
  25. data/lib/gemika/matrix.rb +38 -33
  26. data/lib/gemika/matrix/github_actions_config.rb +61 -0
  27. data/lib/gemika/matrix/travis_config.rb +42 -0
  28. data/lib/gemika/tasks.rb +1 -0
  29. data/lib/gemika/tasks/gemika.rb +14 -0
  30. data/lib/gemika/tasks/matrix.rb +4 -4
  31. data/lib/gemika/version.rb +1 -1
  32. data/spec/fixtures/github_actions_yml/Gemfile_without_gemika +1 -0
  33. data/spec/fixtures/github_actions_yml/excludes.yml +13 -0
  34. data/spec/fixtures/github_actions_yml/gemfile_without_gemika.yml +8 -0
  35. data/spec/fixtures/github_actions_yml/includes.yml +20 -0
  36. data/spec/fixtures/github_actions_yml/invalid.yml +8 -0
  37. data/spec/fixtures/github_actions_yml/missing_gemfile.yml +8 -0
  38. data/spec/fixtures/github_actions_yml/multiple_jobs.yml +16 -0
  39. data/spec/fixtures/github_actions_yml/two_by_two.yml +10 -0
  40. data/spec/fixtures/migrate/expected_github_actions.yml +129 -0
  41. data/spec/fixtures/migrate/travis.yml +66 -0
  42. data/spec/fixtures/travis_yml/includes.yml +12 -0
  43. data/spec/gemika/matrix_spec.rb +116 -0
  44. data/spec/spec_helper.rb +1 -0
  45. data/spec/support/database.github.yml +13 -0
  46. metadata +35 -21
  47. data/.travis.yml +0 -62
  48. data/Gemfile.lock +0 -63
  49. data/gemfiles/Gemfile.2.3.mysql2 +0 -17
  50. data/gemfiles/Gemfile.2.3.mysql2.lock +0 -34
  51. data/spec/support/database.travis.yml +0 -9
data/spec/spec_helper.rb CHANGED
@@ -2,6 +2,7 @@ $: << File.join(File.dirname(__FILE__), "/../../lib" )
2
2
 
3
3
  require 'active_record'
4
4
  require 'gemika'
5
+ require 'pry'
5
6
 
6
7
  ActiveRecord::Base.default_timezone = :local
7
8
 
@@ -0,0 +1,13 @@
1
+ mysql:
2
+ database: test
3
+ username: root
4
+ password: password
5
+ host: 127.0.0.1
6
+ port: 3306
7
+
8
+ postgresql:
9
+ database: test
10
+ host: localhost
11
+ username: postgres
12
+ password: postgres
13
+ port: 5432
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.3.4
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-29 00:00:00.000000000 Z
11
+ date: 2021-06-29 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Helpers for testing Ruby gems
14
14
  email: henning.koch@makandra.de
@@ -16,46 +16,61 @@ executables: []
16
16
  extensions: []
17
17
  extra_rdoc_files: []
18
18
  files:
19
+ - ".github/workflows/test.yml"
19
20
  - ".gitignore"
20
21
  - ".rspec"
21
22
  - ".ruby-version"
22
- - ".travis.yml"
23
23
  - ".yardopts"
24
- - Gemfile.lock
24
+ - CHANGELOG.md
25
+ - Gemfile.3.2.mysql2
26
+ - Gemfile.3.2.mysql2.lock
27
+ - Gemfile.4.2.mysql2
28
+ - Gemfile.4.2.mysql2.lock
29
+ - Gemfile.4.2.pg
30
+ - Gemfile.4.2.pg.lock
31
+ - Gemfile.5.2.mysql2
32
+ - Gemfile.5.2.mysql2.lock
33
+ - Gemfile.5.2.pg
34
+ - Gemfile.5.2.pg.lock
35
+ - Gemfile.5.2.sqlite3
36
+ - Gemfile.5.2.sqlite3.lock
37
+ - Gemfile.6.1.pg
38
+ - Gemfile.6.1.pg.lock
25
39
  - LICENSE
26
40
  - README.md
27
41
  - Rakefile
28
42
  - doc/minidusen_test.png
29
- - gemfiles/Gemfile.2.3.mysql2
30
- - gemfiles/Gemfile.2.3.mysql2.lock
31
- - gemfiles/Gemfile.3.2.mysql2
32
- - gemfiles/Gemfile.3.2.mysql2.lock
33
- - gemfiles/Gemfile.4.2.mysql2
34
- - gemfiles/Gemfile.4.2.mysql2.lock
35
- - gemfiles/Gemfile.4.2.pg
36
- - gemfiles/Gemfile.4.2.pg.lock
37
- - gemfiles/Gemfile.5.0.mysql2
38
- - gemfiles/Gemfile.5.0.mysql2.lock
39
- - gemfiles/Gemfile.5.0.pg
40
- - gemfiles/Gemfile.5.0.pg.lock
41
- - gemfiles/Gemfile.5.0.sqlite3
42
- - gemfiles/Gemfile.5.0.sqlite3.lock
43
43
  - gemika.gemspec
44
44
  - lib/gemika.rb
45
45
  - lib/gemika/database.rb
46
46
  - lib/gemika/env.rb
47
47
  - lib/gemika/errors.rb
48
+ - lib/gemika/github_actions_generator.rb
48
49
  - lib/gemika/matrix.rb
50
+ - lib/gemika/matrix/github_actions_config.rb
51
+ - lib/gemika/matrix/travis_config.rb
49
52
  - lib/gemika/rspec.rb
50
53
  - lib/gemika/tasks.rb
54
+ - lib/gemika/tasks/gemika.rb
51
55
  - lib/gemika/tasks/matrix.rb
52
56
  - lib/gemika/tasks/rspec.rb
53
57
  - lib/gemika/version.rb
54
58
  - spec/fixtures/gemfiles/Gemfile_with_activesupport_5
55
59
  - spec/fixtures/gemfiles/Gemfile_with_activesupport_5.lock
60
+ - spec/fixtures/github_actions_yml/Gemfile_without_gemika
61
+ - spec/fixtures/github_actions_yml/excludes.yml
62
+ - spec/fixtures/github_actions_yml/gemfile_without_gemika.yml
63
+ - spec/fixtures/github_actions_yml/includes.yml
64
+ - spec/fixtures/github_actions_yml/invalid.yml
65
+ - spec/fixtures/github_actions_yml/missing_gemfile.yml
66
+ - spec/fixtures/github_actions_yml/multiple_jobs.yml
67
+ - spec/fixtures/github_actions_yml/two_by_two.yml
68
+ - spec/fixtures/migrate/expected_github_actions.yml
69
+ - spec/fixtures/migrate/travis.yml
56
70
  - spec/fixtures/travis_yml/Gemfile_without_gemika
57
71
  - spec/fixtures/travis_yml/excludes.yml
58
72
  - spec/fixtures/travis_yml/gemfile_without_gemika.yml
73
+ - spec/fixtures/travis_yml/includes.yml
59
74
  - spec/fixtures/travis_yml/missing_gemfile.yml
60
75
  - spec/fixtures/travis_yml/two_by_two.yml
61
76
  - spec/gemika/database_spec.rb
@@ -63,9 +78,9 @@ files:
63
78
  - spec/gemika/matrix_spec.rb
64
79
  - spec/gemika/rspec_spec.rb
65
80
  - spec/spec_helper.rb
81
+ - spec/support/database.github.yml
66
82
  - spec/support/database.rb
67
83
  - spec/support/database.sample.yml
68
- - spec/support/database.travis.yml
69
84
  - spec/support/models.rb
70
85
  homepage: https://github.com/makandra/gemika
71
86
  licenses:
@@ -86,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
101
  - !ruby/object:Gem::Version
87
102
  version: '0'
88
103
  requirements: []
89
- rubyforge_project:
90
- rubygems_version: 2.7.6
104
+ rubygems_version: 3.0.3
91
105
  signing_key:
92
106
  specification_version: 4
93
107
  summary: Helpers for testing Ruby gems
data/.travis.yml DELETED
@@ -1,62 +0,0 @@
1
- language: ruby
2
-
3
- rvm:
4
- - 1.8.7
5
- - 2.1.8
6
- - 2.2.4
7
- - 2.3.1
8
-
9
- gemfile:
10
- - gemfiles/Gemfile.2.3.mysql2
11
- - gemfiles/Gemfile.3.2.mysql2
12
- - gemfiles/Gemfile.4.2.mysql2
13
- - gemfiles/Gemfile.4.2.pg
14
- - gemfiles/Gemfile.5.0.mysql2
15
- - gemfiles/Gemfile.5.0.pg
16
- - gemfiles/Gemfile.5.0.sqlite3
17
-
18
- matrix:
19
- exclude:
20
- - gemfile: gemfiles/Gemfile.2.3.mysql2
21
- rvm: 2.1.8
22
- - gemfile: gemfiles/Gemfile.2.3.mysql2
23
- rvm: 2.2.4
24
- - gemfile: gemfiles/Gemfile.2.3.mysql2
25
- rvm: 2.3.1
26
- - gemfile: gemfiles/Gemfile.3.2.mysql2
27
- rvm: 2.3.1
28
- - gemfile: gemfiles/Gemfile.4.2.mysql2
29
- rvm: 1.8.7
30
- - gemfile: gemfiles/Gemfile.4.2.pg
31
- rvm: 1.8.7
32
- - gemfile: gemfiles/Gemfile.5.0.mysql2
33
- rvm: 1.8.7
34
- - gemfile: gemfiles/Gemfile.5.0.pg
35
- rvm: 1.8.7
36
- - gemfile: gemfiles/Gemfile.5.0.sqlite3
37
- rvm: 1.8.7
38
- - gemfile: gemfiles/Gemfile.5.0.mysql2
39
- rvm: 2.1.8
40
- - gemfile: gemfiles/Gemfile.5.0.pg
41
- rvm: 2.1.8
42
- - gemfile: gemfiles/Gemfile.5.0.sqlite3
43
- rvm: 2.1.8
44
-
45
- install:
46
- # Replace default Travis CI bundler script with a version that doesn't
47
- # explode when lockfile doesn't match recently bumped version
48
- - bundle install --no-deployment --jobs=3 --retry=3 --path=${BUNDLE_PATH:-vendor/bundle}
49
-
50
- before_script:
51
- - psql -c 'create database gemika_test;' -U postgres
52
- - mysql -e 'create database IF NOT EXISTS gemika_test;'
53
-
54
- script: bundle exec rake current_rspec
55
-
56
- sudo: false
57
-
58
- cache: bundler
59
-
60
- notifications:
61
- email:
62
- - fail@makandra.de
data/Gemfile.lock DELETED
@@ -1,63 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- gemika (0.3.4)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activemodel (4.2.10)
10
- activesupport (= 4.2.10)
11
- builder (~> 3.1)
12
- activerecord (4.2.10)
13
- activemodel (= 4.2.10)
14
- activesupport (= 4.2.10)
15
- arel (~> 6.0)
16
- activesupport (4.2.10)
17
- i18n (~> 0.7)
18
- minitest (~> 5.1)
19
- thread_safe (~> 0.3, >= 0.3.4)
20
- tzinfo (~> 1.1)
21
- arel (6.0.4)
22
- builder (3.2.3)
23
- concurrent-ruby (1.0.5)
24
- database_cleaner (1.7.0)
25
- diff-lcs (1.3)
26
- i18n (0.9.5)
27
- concurrent-ruby (~> 1.0)
28
- minitest (5.11.3)
29
- pg (1.1.2)
30
- rake (12.3.1)
31
- rspec (3.8.0)
32
- rspec-core (~> 3.8.0)
33
- rspec-expectations (~> 3.8.0)
34
- rspec-mocks (~> 3.8.0)
35
- rspec-core (3.8.0)
36
- rspec-support (~> 3.8.0)
37
- rspec-expectations (3.8.1)
38
- diff-lcs (>= 1.2.0, < 2.0)
39
- rspec-support (~> 3.8.0)
40
- rspec-mocks (3.8.0)
41
- diff-lcs (>= 1.2.0, < 2.0)
42
- rspec-support (~> 3.8.0)
43
- rspec-support (3.8.0)
44
- thread_safe (0.3.6)
45
- tzinfo (1.2.5)
46
- thread_safe (~> 0.1)
47
-
48
- PLATFORMS
49
- ruby
50
-
51
- DEPENDENCIES
52
- activerecord (~> 4.2.1)
53
- database_cleaner
54
- gemika!
55
- pg
56
- rake
57
- rspec (~> 3.4)
58
-
59
- RUBY VERSION
60
- ruby 2.2.4p230
61
-
62
- BUNDLED WITH
63
- 1.16.1
@@ -1,17 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- # Ruby
4
- ruby '< 2'
5
-
6
- # Runtime dependencies
7
- gem 'activerecord', '=2.3.18'
8
- gem 'rspec', '~> 1.3.0'
9
- gem 'mysql2', '= 0.2.20'
10
- gem 'i18n', '=0.6.11' # 0.7 no longer builds for Ruby 1.8.7
11
-
12
- # Development dependencies
13
- gem 'rake', '=10.0.4'
14
- gem 'database_cleaner'
15
-
16
- # Gem under test
17
- gem 'gemika', :path => '..'
@@ -1,34 +0,0 @@
1
- PATH
2
- remote: ..
3
- specs:
4
- gemika (0.3.0)
5
-
6
- GEM
7
- remote: https://rubygems.org/
8
- specs:
9
- activerecord (2.3.18)
10
- activesupport (= 2.3.18)
11
- activesupport (2.3.18)
12
- database_cleaner (1.0.1)
13
- i18n (0.6.11)
14
- mysql2 (0.2.20)
15
- rake (10.0.4)
16
- rspec (1.3.2)
17
-
18
- PLATFORMS
19
- ruby
20
-
21
- DEPENDENCIES
22
- activerecord (= 2.3.18)
23
- database_cleaner
24
- gemika!
25
- i18n (= 0.6.11)
26
- mysql2 (= 0.2.20)
27
- rake (= 10.0.4)
28
- rspec (~> 1.3.0)
29
-
30
- RUBY VERSION
31
- ruby 1.8.7p375
32
-
33
- BUNDLED WITH
34
- 1.12.5
@@ -1,9 +0,0 @@
1
- mysql:
2
- database: gemika_test
3
- username: travis
4
- password:
5
-
6
- postgresql:
7
- database: gemika_test
8
- user: postgres
9
- password: