gemika 0.3.3 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) 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 +85 -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 +10 -4
  22. data/lib/gemika/env.rb +6 -0
  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 -20
  47. data/.travis.yml +0 -62
  48. data/gemfiles/Gemfile.2.3.mysql2 +0 -17
  49. data/gemfiles/Gemfile.2.3.mysql2.lock +0 -34
  50. 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.3
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: 2018-08-01 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
@@ -16,45 +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
+ - 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
24
39
  - LICENSE
25
40
  - README.md
26
41
  - Rakefile
27
42
  - doc/minidusen_test.png
28
- - gemfiles/Gemfile.2.3.mysql2
29
- - gemfiles/Gemfile.2.3.mysql2.lock
30
- - gemfiles/Gemfile.3.2.mysql2
31
- - gemfiles/Gemfile.3.2.mysql2.lock
32
- - gemfiles/Gemfile.4.2.mysql2
33
- - gemfiles/Gemfile.4.2.mysql2.lock
34
- - gemfiles/Gemfile.4.2.pg
35
- - gemfiles/Gemfile.4.2.pg.lock
36
- - gemfiles/Gemfile.5.0.mysql2
37
- - gemfiles/Gemfile.5.0.mysql2.lock
38
- - gemfiles/Gemfile.5.0.pg
39
- - gemfiles/Gemfile.5.0.pg.lock
40
- - gemfiles/Gemfile.5.0.sqlite3
41
- - gemfiles/Gemfile.5.0.sqlite3.lock
42
43
  - gemika.gemspec
43
44
  - lib/gemika.rb
44
45
  - lib/gemika/database.rb
45
46
  - lib/gemika/env.rb
46
47
  - lib/gemika/errors.rb
48
+ - lib/gemika/github_actions_generator.rb
47
49
  - lib/gemika/matrix.rb
50
+ - lib/gemika/matrix/github_actions_config.rb
51
+ - lib/gemika/matrix/travis_config.rb
48
52
  - lib/gemika/rspec.rb
49
53
  - lib/gemika/tasks.rb
54
+ - lib/gemika/tasks/gemika.rb
50
55
  - lib/gemika/tasks/matrix.rb
51
56
  - lib/gemika/tasks/rspec.rb
52
57
  - lib/gemika/version.rb
53
58
  - spec/fixtures/gemfiles/Gemfile_with_activesupport_5
54
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
55
70
  - spec/fixtures/travis_yml/Gemfile_without_gemika
56
71
  - spec/fixtures/travis_yml/excludes.yml
57
72
  - spec/fixtures/travis_yml/gemfile_without_gemika.yml
73
+ - spec/fixtures/travis_yml/includes.yml
58
74
  - spec/fixtures/travis_yml/missing_gemfile.yml
59
75
  - spec/fixtures/travis_yml/two_by_two.yml
60
76
  - spec/gemika/database_spec.rb
@@ -62,9 +78,9 @@ files:
62
78
  - spec/gemika/matrix_spec.rb
63
79
  - spec/gemika/rspec_spec.rb
64
80
  - spec/spec_helper.rb
81
+ - spec/support/database.github.yml
65
82
  - spec/support/database.rb
66
83
  - spec/support/database.sample.yml
67
- - spec/support/database.travis.yml
68
84
  - spec/support/models.rb
69
85
  homepage: https://github.com/makandra/gemika
70
86
  licenses:
@@ -85,8 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
85
101
  - !ruby/object:Gem::Version
86
102
  version: '0'
87
103
  requirements: []
88
- rubyforge_project:
89
- rubygems_version: 2.7.6
104
+ rubygems_version: 3.2.15
90
105
  signing_key:
91
106
  specification_version: 4
92
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
@@ -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: