schema_dev 3.13.1 → 4.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/prs.yml +49 -0
  3. data/.simplecov +20 -0
  4. data/Gemfile +2 -0
  5. data/README.md +9 -7
  6. data/Rakefile +3 -5
  7. data/bin/schema_dev +25 -21
  8. data/lib/schema_dev/config.rb +62 -44
  9. data/lib/schema_dev/executor.rb +9 -8
  10. data/lib/schema_dev/gem.rb +45 -37
  11. data/lib/schema_dev/gemfile_selector.rb +7 -7
  12. data/lib/schema_dev/gemfiles.rb +6 -5
  13. data/lib/schema_dev/github_actions.rb +266 -0
  14. data/lib/schema_dev/matrix_executor.rb +4 -2
  15. data/lib/schema_dev/readme.rb +17 -10
  16. data/lib/schema_dev/rspec/db.rb +44 -33
  17. data/lib/schema_dev/rspec.rb +4 -9
  18. data/lib/schema_dev/ruby_selector.rb +29 -14
  19. data/lib/schema_dev/runner.rb +14 -10
  20. data/lib/schema_dev/tasks/dbms.rb +34 -26
  21. data/lib/schema_dev/tasks.rb +2 -3
  22. data/lib/schema_dev/templates.rb +5 -5
  23. data/lib/schema_dev/version.rb +3 -1
  24. data/lib/schema_dev.rb +3 -1
  25. data/schema_dev.gemspec +23 -26
  26. data/spec/schema_dev/config_spec.rb +60 -0
  27. data/spec/schema_dev/gem_spec.rb +74 -0
  28. data/spec/schema_dev/gemfile_selector_spec.rb +11 -0
  29. data/spec/schema_dev/gemfiles_spec.rb +41 -0
  30. data/spec/schema_dev/github_actions_spec.rb +818 -0
  31. data/spec/schema_dev/runner_spec.rb +103 -0
  32. data/spec/spec_helper.rb +5 -6
  33. data/templates/README/uses.schema_dev.md.erb +1 -2
  34. data/templates/gem/GEM_NAME.gemspec.erb +15 -14
  35. data/templates/gem/Gemfile.erb +2 -0
  36. data/templates/gem/Gemfile.local.erb +2 -0
  37. data/templates/gem/README.md.erb +1 -2
  38. data/templates/gem/Rakefile.erb +2 -0
  39. data/templates/gem/schema_dev.yml.erb +4 -1
  40. data/templates/gem/simplecov.erb +20 -0
  41. data/templates/gemfiles/{activerecord-5.0 → activerecord-6.0}/Gemfile.base.erb +1 -1
  42. data/templates/gemfiles/{activerecord-5.0 → activerecord-6.0}/Gemfile.mysql2.erb +0 -0
  43. data/templates/gemfiles/{activerecord-5.1 → activerecord-6.0}/Gemfile.postgresql.erb +1 -1
  44. data/templates/gemfiles/{activerecord-5.0 → activerecord-6.0}/Gemfile.sqlite3.erb +0 -0
  45. data/templates/gemfiles/{activerecord-5.1 → activerecord-6.1}/Gemfile.base.erb +1 -1
  46. data/templates/gemfiles/{activerecord-5.1 → activerecord-6.1}/Gemfile.mysql2.erb +0 -0
  47. data/templates/gemfiles/{activerecord-5.0 → activerecord-6.1}/Gemfile.postgresql.erb +1 -1
  48. data/templates/gemfiles/{activerecord-5.1 → activerecord-6.1}/Gemfile.sqlite3.erb +0 -0
  49. metadata +55 -98
  50. data/.travis.yml +0 -4
  51. data/lib/schema_dev/tasks/coveralls.rb +0 -3
  52. data/lib/schema_dev/travis.rb +0 -139
  53. data/spec/config_spec.rb +0 -61
  54. data/spec/gem_spec.rb +0 -77
  55. data/spec/gemfile_sepector_spec.rb +0 -10
  56. data/spec/gemfiles_spec.rb +0 -41
  57. data/spec/runner_spec.rb +0 -106
  58. data/spec/travis_spec.rb +0 -392
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'schema_dev/runner'
4
+ require 'which_works'
5
+ require 'pathname'
6
+
7
+ describe SchemaDev::Runner do
8
+ it 'creates gemfiles' do
9
+ config = get_config(ruby: '2.5', activerecord: '6.0', db: 'sqlite3')
10
+ runner = described_class.new(config)
11
+ in_tmpdir do
12
+ expect { runner.gemfiles }.to output("* Updated gemfiles\n").to_stdout
13
+ expect(Pathname.new('gemfiles')).to be_directory
14
+ end
15
+ end
16
+
17
+ it 'creates github actions' do
18
+ config = get_config(ruby: '2.5', activerecord: '6.0', db: 'sqlite3')
19
+ runner = described_class.new(config)
20
+ in_tmpdir do
21
+ expect { runner.github_actions }.to output('* Updated ' + SchemaDev::GithubActions::WORKFLOW_FILE + "\n").to_stdout
22
+ expect(Pathname.new(SchemaDev::GithubActions::WORKFLOW_FILE)).to be_file
23
+ end
24
+ end
25
+
26
+ {
27
+ 'chruby-exec' => "SHELL=/usr/local/bin/bash chruby-exec ruby-#{RUBY_VERSION} --",
28
+ 'rvm' => "rvm #{RUBY_VERSION} do",
29
+ 'rbenv' => "RBENV_VERSION=#{RUBY_VERSION}"
30
+ }.each do |selector, selection_command|
31
+ describe "matrix (#{selector})" do
32
+ before(:each) do
33
+ # mocking Which.which to find selector
34
+ SchemaDev::RubySelector._reset
35
+ allow(Which).to receive(:which) { |cmd| ['bash', selector].include?(cmd) ? "/usr/local/bin/#{cmd}" : nil }
36
+ case selector
37
+ when 'chruby-exec'
38
+ expect_any_instance_of(Pathname).to receive(:entries).and_return [Pathname.new("ruby-#{RUBY_VERSION}")]
39
+ when 'rbenv'
40
+ expect_any_instance_of(SchemaDev::RubySelector::Rbenv).to receive(:`).with('rbenv versions --bare').and_return RUBY_VERSION
41
+ end
42
+
43
+ # mocking execution
44
+ original_popen2e = Open3.method(:popen2e)
45
+ allow(Open3).to receive(:popen2e) { |cmd, &block|
46
+ cmd = case cmd
47
+ when /false$/ then 'false'
48
+ when /true$/ then 'true'
49
+ else cmd.sub(/.*echo/, 'echo')
50
+ end
51
+ original_popen2e.call(cmd, &block)
52
+ }
53
+ end
54
+
55
+ let(:config) { get_config(ruby: RUBY_VERSION, activerecord: '6.0', db: %w[sqlite3 postgresql]) }
56
+ let(:runner) { described_class.new(config) }
57
+
58
+ let(:expected_output) { <<~ENDOUTPUT.strip }
59
+ * Updated #{SchemaDev::GithubActions::WORKFLOW_FILE}
60
+ * Updated gemfiles
61
+
62
+
63
+ *** ruby #{RUBY_VERSION} - activerecord 6.0 - db sqlite3 [1 of 2]
64
+
65
+ * /usr/bin/env BUNDLE_GEMFILE=gemfiles/activerecord-6.0/Gemfile.sqlite3 #{selection_command} %{cmd}
66
+ %{output}
67
+
68
+ *** ruby #{RUBY_VERSION} - activerecord 6.0 - db postgresql [2 of 2]
69
+
70
+ * /usr/bin/env BUNDLE_GEMFILE=gemfiles/activerecord-6.0/Gemfile.postgresql #{selection_command} %{cmd}
71
+ %{output}
72
+ ENDOUTPUT
73
+
74
+ it 'runs successfully' do
75
+ in_tmpdir do
76
+ expect { runner.run('true') }.to output(expected_output % { cmd: 'true', output: nil }).to_stdout
77
+ end
78
+ end
79
+
80
+ it 'reports error exits' do
81
+ in_tmpdir do
82
+ expect { runner.run('false') }.to output(expected_output % { cmd: 'false', output: nil } + <<~ENDERR).to_stdout
83
+
84
+ *** 2 failures:
85
+ \truby #{RUBY_VERSION} - activerecord 6.0 - db sqlite3
86
+ \truby #{RUBY_VERSION} - activerecord 6.0 - db postgresql
87
+ ENDERR
88
+ end
89
+ end
90
+
91
+ it 'reports error messages' do
92
+ in_tmpdir do
93
+ expect { runner.run('echo', 'LoadError') }.to output(expected_output % { cmd: 'echo LoadError', output: "LoadError\n" } + <<~ENDERR).to_stdout
94
+
95
+ *** 2 failures:
96
+ \truby #{RUBY_VERSION} - activerecord 6.0 - db sqlite3
97
+ \truby #{RUBY_VERSION} - activerecord 6.0 - db postgresql
98
+ ENDERR
99
+ end
100
+ end
101
+ end
102
+ end
103
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'simplecov'
2
4
  SimpleCov.start
3
5
 
@@ -8,11 +10,9 @@ require 'webmock/rspec'
8
10
 
9
11
  require 'schema_dev/config'
10
12
 
11
- def in_tmpdir
13
+ def in_tmpdir(&block)
12
14
  Dir.mktmpdir do |dir|
13
- Dir.chdir(dir) do
14
- yield
15
- end
15
+ Dir.chdir(dir, &block)
16
16
  end
17
17
  end
18
18
 
@@ -31,11 +31,10 @@ def suppress_stdout_stderr
31
31
  end
32
32
  end
33
33
 
34
-
35
34
  def get_config(data)
36
35
  SchemaDev::Config._reset
37
36
  in_tmpdir do
38
- Pathname.new(SchemaDev::CONFIG_FILE).open("w") {|f| f.write data.to_yaml }
37
+ Pathname.new(SchemaDev::CONFIG_FILE).open('w') { |f| f.write data.to_yaml }
39
38
  SchemaDev::Config.load
40
39
  end
41
40
  end
@@ -1,7 +1,7 @@
1
1
  * **schema_dev**: <%= gem_module %> uses [schema_dev](https://github.com/SchemaPlus/schema_dev) to
2
2
  facilitate running rspec tests on the matrix of ruby, activerecord, and database
3
3
  versions that the gem supports, both locally and on
4
- [travis-ci](http://travis-ci.org/SchemaPlus/<%= gem_name %>)
4
+ [github actions](https://github.com/SchemaPlus/<%= gem_name %>/actions)
5
5
 
6
6
  To to run rspec locally on the full matrix, do:
7
7
 
@@ -12,4 +12,3 @@
12
12
 
13
13
  The matrix of configurations is specified in `schema_dev.yml` in
14
14
  the project root.
15
-
@@ -1,30 +1,31 @@
1
- # coding: utf-8
2
- lib = File.expand_path('../lib', __FILE__)
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require '<%= gem_lib_path %>/version'
5
6
 
6
7
  Gem::Specification.new do |gem|
7
- gem.name = "<%= gem_name %>"
8
+ gem.name = '<%= gem_name %>'
8
9
  gem.version = <%= gem_module %>::VERSION
9
10
  gem.authors = ["<%= fullname %>"]
10
11
  gem.email = ["<%= email %>"]
11
12
  gem.summary = %q{TODO: Write a short summary. Required.}
12
13
  gem.description = %q{TODO: Write a longer description. Optional.}
13
- gem.homepage = "https://github.com/SchemaPlus/<%= gem_name %>"
14
- gem.license = "MIT"
14
+ gem.homepage = 'https://github.com/SchemaPlus/<%= gem_name %>'
15
+ gem.license = 'MIT'
15
16
 
16
17
  gem.files = `git ls-files -z`.split("\x0")
17
18
  gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
19
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
- gem.require_paths = ["lib"]
20
+ gem.require_paths = ['lib']
21
+
22
+ gem.required_ruby_version = '>= 2.5.0'
20
23
 
21
- gem.add_dependency "activerecord", "~> 4.2"
22
- gem.add_dependency "schema_plus_core", <%= schema_plus_core_dependency %>
24
+ gem.add_dependency 'activerecord', '>= 5.2', '< 7.0'
25
+ gem.add_dependency 'schema_plus_core', <%= schema_plus_core_dependency %>
23
26
 
24
- gem.add_development_dependency "bundler"
25
- gem.add_development_dependency "rake", "~> 10.0"
26
- gem.add_development_dependency "rspec", "~> 3.0"
27
- gem.add_development_dependency "schema_dev", <%= schema_dev_dependency %>
28
- gem.add_development_dependency "simplecov"
29
- gem.add_development_dependency "simplecov-gem-profile"
27
+ gem.add_development_dependency 'bundler'
28
+ gem.add_development_dependency 'rake', '~> 13.0'
29
+ gem.add_development_dependency 'rspec', '~> 3.0'
30
+ gem.add_development_dependency 'schema_dev', <%= schema_dev_dependency %>
30
31
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source "http://rubygems.org"
2
4
 
3
5
  gemspec
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # Gemfile.local
2
4
  #
3
5
  # Gems for local development, .gitignore'd to not include in released gem
@@ -1,7 +1,6 @@
1
1
  [![Gem Version](https://badge.fury.io/rb/<%= gem_name %>.svg)](http://badge.fury.io/rb/<%= gem_name %>)
2
- [![Build Status](https://secure.travis-ci.org/SchemaPlus/<%= gem_name %>.svg)](http://travis-ci.org/SchemaPlus/<%= gem_name %>)
2
+ [![Build Status](https://github.com/SchemaPlus/<%= gem_name %>/actions/workflows/prs.yml/badge.svg)](https://github.com/SchemaPlus/<%= gem_name %>/actions)
3
3
  [![Coverage Status](https://img.shields.io/coveralls/SchemaPlus/<%= gem_name %>.svg)](https://coveralls.io/r/SchemaPlus/<%= gem_name %>)
4
- [![Dependency Status](https://gemnasium.com/SchemaPlus/<%= gem_name %>.svg)](https://gemnasium.com/SchemaPlus/<%= gem_name %>)
5
4
 
6
5
  # <%= gem_module %>
7
6
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'bundler'
2
4
  Bundler::GemHelper.install_tasks
3
5
 
@@ -1,7 +1,10 @@
1
1
  ruby:
2
- - 2.7.4
2
+ - 2.7
3
+ - 3.0
3
4
  activerecord:
4
5
  - 5.2
6
+ - 6.0
7
+ - 6.1
5
8
  db:
6
9
  - mysql2
7
10
  - sqlite3
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ SimpleCov.configure do
4
+ enable_coverage :branch
5
+ add_filter '/spec/'
6
+
7
+ add_group 'Binaries', '/bin/'
8
+ add_group 'Libraries', '/lib/'
9
+
10
+ if ENV['CI']
11
+ require 'simplecov-lcov'
12
+
13
+ SimpleCov::Formatter::LcovFormatter.config do |c|
14
+ c.report_with_single_file = true
15
+ c.single_report_path = 'coverage/lcov.info'
16
+ end
17
+
18
+ formatter SimpleCov::Formatter::LcovFormatter
19
+ end
20
+ end
@@ -1,4 +1,4 @@
1
1
  base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
2
  eval File.read(base_gemfile)
3
3
 
4
- gem "activerecord", "~> 5.0.1"
4
+ gem "activerecord", ">= 6.0", "< 6.1"
@@ -2,7 +2,7 @@ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
2
  eval File.read(base_gemfile), binding, base_gemfile
3
3
 
4
4
  platform :ruby do
5
- gem "pg", "< 1"
5
+ gem "pg"
6
6
  end
7
7
 
8
8
  platform :jruby do
@@ -1,4 +1,4 @@
1
1
  base_gemfile = File.expand_path('../../Gemfile.base', __FILE__)
2
2
  eval File.read(base_gemfile)
3
3
 
4
- gem "activerecord", "~> 5.1.0"
4
+ gem "activerecord", ">= 6.1", "< 6.2"
@@ -2,7 +2,7 @@ base_gemfile = File.expand_path('../Gemfile.base', __FILE__)
2
2
  eval File.read(base_gemfile), binding, base_gemfile
3
3
 
4
4
  platform :ruby do
5
- gem "pg", "< 1"
5
+ gem "pg"
6
6
  end
7
7
 
8
8
  platform :jruby do
metadata CHANGED
@@ -1,59 +1,37 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: schema_dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.13.1
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ronen barzel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-14 00:00:00.000000000 Z
11
+ date: 2022-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.0'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - "~>"
19
+ version: '5.2'
20
+ - - "<"
25
21
  - !ruby/object:Gem::Version
26
- version: '5.0'
27
- - !ruby/object:Gem::Dependency
28
- name: coveralls_reborn
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '0.23'
22
+ version: '6.2'
34
23
  type: :runtime
35
24
  prerelease: false
36
25
  version_requirements: !ruby/object:Gem::Requirement
37
26
  requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '0.23'
41
- - !ruby/object:Gem::Dependency
42
- name: faraday
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
27
+ - - ">="
46
28
  - !ruby/object:Gem::Version
47
- version: '0.9'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
29
+ version: '5.2'
30
+ - - "<"
53
31
  - !ruby/object:Gem::Version
54
- version: '0.9'
32
+ version: '6.2'
55
33
  - !ruby/object:Gem::Dependency
56
- name: fastandand
34
+ name: faraday
57
35
  requirement: !ruby/object:Gem::Requirement
58
36
  requirements:
59
37
  - - "~>"
@@ -67,61 +45,53 @@ dependencies:
67
45
  - !ruby/object:Gem::Version
68
46
  version: '1.0'
69
47
  - !ruby/object:Gem::Dependency
70
- name: hash_keyword_args
71
- requirement: !ruby/object:Gem::Requirement
72
- requirements:
73
- - - "~>"
74
- - !ruby/object:Gem::Version
75
- version: '0.1'
76
- type: :runtime
77
- prerelease: false
78
- version_requirements: !ruby/object:Gem::Requirement
79
- requirements:
80
- - - "~>"
81
- - !ruby/object:Gem::Version
82
- version: '0.1'
83
- - !ruby/object:Gem::Dependency
84
- name: its-it
48
+ name: simplecov
85
49
  requirement: !ruby/object:Gem::Requirement
86
50
  requirements:
87
- - - "~>"
51
+ - - ">="
88
52
  - !ruby/object:Gem::Version
89
- version: '1.3'
53
+ version: '0'
90
54
  type: :runtime
91
55
  prerelease: false
92
56
  version_requirements: !ruby/object:Gem::Requirement
93
57
  requirements:
94
- - - "~>"
58
+ - - ">="
95
59
  - !ruby/object:Gem::Version
96
- version: '1.3'
60
+ version: '0'
97
61
  - !ruby/object:Gem::Dependency
98
- name: key_struct
62
+ name: simplecov-lcov
99
63
  requirement: !ruby/object:Gem::Requirement
100
64
  requirements:
101
65
  - - "~>"
102
66
  - !ruby/object:Gem::Version
103
- version: '0.4'
67
+ version: 0.8.0
104
68
  type: :runtime
105
69
  prerelease: false
106
70
  version_requirements: !ruby/object:Gem::Requirement
107
71
  requirements:
108
72
  - - "~>"
109
73
  - !ruby/object:Gem::Version
110
- version: '0.4'
74
+ version: 0.8.0
111
75
  - !ruby/object:Gem::Dependency
112
76
  name: thor
113
77
  requirement: !ruby/object:Gem::Requirement
114
78
  requirements:
115
- - - "~>"
79
+ - - ">="
116
80
  - !ruby/object:Gem::Version
117
81
  version: '0.19'
82
+ - - "<"
83
+ - !ruby/object:Gem::Version
84
+ version: '2.0'
118
85
  type: :runtime
119
86
  prerelease: false
120
87
  version_requirements: !ruby/object:Gem::Requirement
121
88
  requirements:
122
- - - "~>"
89
+ - - ">="
123
90
  - !ruby/object:Gem::Version
124
91
  version: '0.19'
92
+ - - "<"
93
+ - !ruby/object:Gem::Version
94
+ version: '2.0'
125
95
  - !ruby/object:Gem::Dependency
126
96
  name: which_works
127
97
  requirement: !ruby/object:Gem::Requirement
@@ -156,14 +126,14 @@ dependencies:
156
126
  requirements:
157
127
  - - "~>"
158
128
  - !ruby/object:Gem::Version
159
- version: '10.0'
129
+ version: '13.0'
160
130
  type: :development
161
131
  prerelease: false
162
132
  version_requirements: !ruby/object:Gem::Requirement
163
133
  requirements:
164
134
  - - "~>"
165
135
  - !ruby/object:Gem::Version
166
- version: '10.0'
136
+ version: '13.0'
167
137
  - !ruby/object:Gem::Dependency
168
138
  name: rspec
169
139
  requirement: !ruby/object:Gem::Requirement
@@ -192,34 +162,20 @@ dependencies:
192
162
  - - "~>"
193
163
  - !ruby/object:Gem::Version
194
164
  version: '3.8'
195
- - !ruby/object:Gem::Dependency
196
- name: simplecov
197
- requirement: !ruby/object:Gem::Requirement
198
- requirements:
199
- - - ">="
200
- - !ruby/object:Gem::Version
201
- version: '0'
202
- type: :development
203
- prerelease: false
204
- version_requirements: !ruby/object:Gem::Requirement
205
- requirements:
206
- - - ">="
207
- - !ruby/object:Gem::Version
208
- version: '0'
209
165
  - !ruby/object:Gem::Dependency
210
166
  name: webmock
211
167
  requirement: !ruby/object:Gem::Requirement
212
168
  requirements:
213
169
  - - "~>"
214
170
  - !ruby/object:Gem::Version
215
- version: '2.1'
171
+ version: '3.0'
216
172
  type: :development
217
173
  prerelease: false
218
174
  version_requirements: !ruby/object:Gem::Requirement
219
175
  requirements:
220
176
  - - "~>"
221
177
  - !ruby/object:Gem::Version
222
- version: '2.1'
178
+ version: '3.0'
223
179
  description: SchemaPlus development tools
224
180
  email:
225
181
  - ronen@barzel.org
@@ -228,9 +184,10 @@ executables:
228
184
  extensions: []
229
185
  extra_rdoc_files: []
230
186
  files:
187
+ - ".github/workflows/prs.yml"
231
188
  - ".gitignore"
232
189
  - ".rspec"
233
- - ".travis.yml"
190
+ - ".simplecov"
234
191
  - Gemfile
235
192
  - LICENSE.txt
236
193
  - README.md
@@ -242,6 +199,7 @@ files:
242
199
  - lib/schema_dev/gem.rb
243
200
  - lib/schema_dev/gemfile_selector.rb
244
201
  - lib/schema_dev/gemfiles.rb
202
+ - lib/schema_dev/github_actions.rb
245
203
  - lib/schema_dev/matrix_executor.rb
246
204
  - lib/schema_dev/readme.rb
247
205
  - lib/schema_dev/rspec.rb
@@ -249,19 +207,17 @@ files:
249
207
  - lib/schema_dev/ruby_selector.rb
250
208
  - lib/schema_dev/runner.rb
251
209
  - lib/schema_dev/tasks.rb
252
- - lib/schema_dev/tasks/coveralls.rb
253
210
  - lib/schema_dev/tasks/dbms.rb
254
211
  - lib/schema_dev/templates.rb
255
- - lib/schema_dev/travis.rb
256
212
  - lib/schema_dev/version.rb
257
213
  - schema_dev.gemspec
258
- - spec/config_spec.rb
259
- - spec/gem_spec.rb
260
- - spec/gemfile_sepector_spec.rb
261
- - spec/gemfiles_spec.rb
262
- - spec/runner_spec.rb
214
+ - spec/schema_dev/config_spec.rb
215
+ - spec/schema_dev/gem_spec.rb
216
+ - spec/schema_dev/gemfile_selector_spec.rb
217
+ - spec/schema_dev/gemfiles_spec.rb
218
+ - spec/schema_dev/github_actions_spec.rb
219
+ - spec/schema_dev/runner_spec.rb
263
220
  - spec/spec_helper.rb
264
- - spec/travis_spec.rb
265
221
  - templates/README/installation.md.erb
266
222
  - templates/README/uses.schema_dev.md.erb
267
223
  - templates/README/uses.schema_monkey.md.erb
@@ -276,21 +232,22 @@ files:
276
232
  - templates/gem/lib/GEM_BASE_NAME.rb.erb
277
233
  - templates/gem/lib/GEM_BASE_NAME/version.rb.erb
278
234
  - templates/gem/schema_dev.yml.erb
235
+ - templates/gem/simplecov.erb
279
236
  - templates/gem/spec/sanity_spec.rb.erb
280
237
  - templates/gem/spec/spec_helper.rb.erb
281
238
  - templates/gemfiles/Gemfile.base.erb
282
- - templates/gemfiles/activerecord-5.0/Gemfile.base.erb
283
- - templates/gemfiles/activerecord-5.0/Gemfile.mysql2.erb
284
- - templates/gemfiles/activerecord-5.0/Gemfile.postgresql.erb
285
- - templates/gemfiles/activerecord-5.0/Gemfile.sqlite3.erb
286
- - templates/gemfiles/activerecord-5.1/Gemfile.base.erb
287
- - templates/gemfiles/activerecord-5.1/Gemfile.mysql2.erb
288
- - templates/gemfiles/activerecord-5.1/Gemfile.postgresql.erb
289
- - templates/gemfiles/activerecord-5.1/Gemfile.sqlite3.erb
290
239
  - templates/gemfiles/activerecord-5.2/Gemfile.base.erb
291
240
  - templates/gemfiles/activerecord-5.2/Gemfile.mysql2.erb
292
241
  - templates/gemfiles/activerecord-5.2/Gemfile.postgresql.erb
293
242
  - templates/gemfiles/activerecord-5.2/Gemfile.sqlite3.erb
243
+ - templates/gemfiles/activerecord-6.0/Gemfile.base.erb
244
+ - templates/gemfiles/activerecord-6.0/Gemfile.mysql2.erb
245
+ - templates/gemfiles/activerecord-6.0/Gemfile.postgresql.erb
246
+ - templates/gemfiles/activerecord-6.0/Gemfile.sqlite3.erb
247
+ - templates/gemfiles/activerecord-6.1/Gemfile.base.erb
248
+ - templates/gemfiles/activerecord-6.1/Gemfile.mysql2.erb
249
+ - templates/gemfiles/activerecord-6.1/Gemfile.postgresql.erb
250
+ - templates/gemfiles/activerecord-6.1/Gemfile.sqlite3.erb
294
251
  homepage: https://github.com/SchemaPlus/schema_dev
295
252
  licenses:
296
253
  - MIT
@@ -315,10 +272,10 @@ signing_key:
315
272
  specification_version: 4
316
273
  summary: SchemaPlus development tools
317
274
  test_files:
318
- - spec/config_spec.rb
319
- - spec/gem_spec.rb
320
- - spec/gemfile_sepector_spec.rb
321
- - spec/gemfiles_spec.rb
322
- - spec/runner_spec.rb
275
+ - spec/schema_dev/config_spec.rb
276
+ - spec/schema_dev/gem_spec.rb
277
+ - spec/schema_dev/gemfile_selector_spec.rb
278
+ - spec/schema_dev/gemfiles_spec.rb
279
+ - spec/schema_dev/github_actions_spec.rb
280
+ - spec/schema_dev/runner_spec.rb
323
281
  - spec/spec_helper.rb
324
- - spec/travis_spec.rb
data/.travis.yml DELETED
@@ -1,4 +0,0 @@
1
- rvm:
2
- - 2.5.9
3
- - 2.7.4
4
- script: bundle exec rake travis
@@ -1,3 +0,0 @@
1
- require 'coveralls/rake/task'
2
- Coveralls::RakeTask.new
3
- task :spec_with_coveralls => [:spec, 'coveralls:push']