gemika 0.4.0 → 0.4.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fedb3aee63ae355ed896b97cf22727672fb183d6e2b9b65c763218b70d6e870d
4
+ data.tar.gz: 3255a3af654ad5e6b1da0f72de06df6ec329fb245b115171d2c0d616f682e8b7
5
+ SHA512:
6
+ metadata.gz: a48af295157b11a8db5d0732852fd1d22e0d11e75e3fd86abb74eca8ed15ef5c75cf17ef402c292fab258c4dc9f5b9080e2307905b0340fdb810f380aebdb920
7
+ data.tar.gz: 1426cb831889286355ab5e297f794dfa0f9b75ec387aed8d8dc68d3e7fc443e7074486a29f8ec1898a22748a26e77b5509a283d54a9ddc9c8c51e3240c3b78be
@@ -2,6 +2,9 @@ language: ruby
2
2
 
3
3
  dist: trusty
4
4
 
5
+ services:
6
+ - postgresql
7
+
5
8
  matrix:
6
9
  include:
7
10
  # Rails 2.3
@@ -27,19 +30,22 @@ matrix:
27
30
  rvm: 2.3.1
28
31
  - gemfile: Gemfile.4.2.pg
29
32
  rvm: 2.3.1
30
- # Rails 5.0
31
- - gemfile: Gemfile.5.0.mysql2
33
+ # Rails 5.2
34
+ - gemfile: Gemfile.5.2.mysql2
32
35
  rvm: 2.2.4
33
- - gemfile: Gemfile.5.0.pg
36
+ - gemfile: Gemfile.5.2.pg
34
37
  rvm: 2.2.4
35
- - gemfile: Gemfile.5.0.sqlite3
38
+ - gemfile: Gemfile.5.2.sqlite3
36
39
  rvm: 2.2.4
37
- - gemfile: Gemfile.5.0.mysql2
40
+ - gemfile: Gemfile.5.2.mysql2
38
41
  rvm: 2.3.1
39
- - gemfile: Gemfile.5.0.pg
42
+ - gemfile: Gemfile.5.2.pg
40
43
  rvm: 2.3.1
41
- - gemfile: Gemfile.5.0.sqlite3
44
+ - gemfile: Gemfile.5.2.sqlite3
42
45
  rvm: 2.3.1
46
+ # Rails 6.0
47
+ - gemfile: Gemfile.6.0.pg
48
+ rvm: 2.6.4
43
49
 
44
50
  install:
45
51
  # Replace default Travis CI bundler script with a version that doesn't
@@ -56,3 +62,5 @@ sudo: false
56
62
 
57
63
  cache: bundler
58
64
 
65
+ addons:
66
+ postgresql: 9.3
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  ruby '>= 2.2'
5
5
 
6
6
  # Runtime dependencies
7
- gem 'activerecord', '~>5.0.0'
7
+ gem 'activerecord', '~>5.2.0'
8
8
  gem 'rspec', '~>3.5'
9
9
  gem 'mysql2', '~>0.4.4'
10
10
 
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (5.0.0.1)
10
- activesupport (= 5.0.0.1)
11
- activerecord (5.0.0.1)
12
- activemodel (= 5.0.0.1)
13
- activesupport (= 5.0.0.1)
14
- arel (~> 7.0)
15
- activesupport (5.0.0.1)
9
+ activemodel (5.2.3)
10
+ activesupport (= 5.2.3)
11
+ activerecord (5.2.3)
12
+ activemodel (= 5.2.3)
13
+ activesupport (= 5.2.3)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.3)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (~> 0.7)
17
+ i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
19
19
  tzinfo (~> 1.1)
20
- arel (7.1.2)
20
+ arel (9.0.0)
21
21
  coderay (1.1.2)
22
- concurrent-ruby (1.0.2)
23
- database_cleaner (1.5.3)
22
+ concurrent-ruby (1.1.5)
23
+ database_cleaner (1.7.0)
24
24
  diff-lcs (1.2.5)
25
- i18n (0.7.0)
25
+ i18n (1.5.1)
26
+ concurrent-ruby (~> 1.0)
26
27
  method_source (0.9.2)
27
- minitest (5.9.0)
28
+ minitest (5.11.3)
28
29
  mysql2 (0.4.4)
29
30
  pry (0.12.2)
30
31
  coderay (~> 1.1.0)
@@ -43,15 +44,15 @@ GEM
43
44
  diff-lcs (>= 1.2.0, < 2.0)
44
45
  rspec-support (~> 3.5.0)
45
46
  rspec-support (3.5.0)
46
- thread_safe (0.3.5)
47
- tzinfo (1.2.2)
47
+ thread_safe (0.3.6)
48
+ tzinfo (1.2.5)
48
49
  thread_safe (~> 0.1)
49
50
 
50
51
  PLATFORMS
51
52
  ruby
52
53
 
53
54
  DEPENDENCIES
54
- activerecord (~> 5.0.0)
55
+ activerecord (~> 5.2.0)
55
56
  database_cleaner
56
57
  gemika!
57
58
  mysql2 (~> 0.4.4)
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  ruby '>= 2.2'
5
5
 
6
6
  # Runtime dependencies
7
- gem 'activerecord', '~>5.0.0'
7
+ gem 'activerecord', '~>5.2.0'
8
8
  gem 'rspec', '~>3.5'
9
9
  gem 'pg', '~>0.18.4'
10
10
 
@@ -1,30 +1,31 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.4.0)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (5.0.0.1)
10
- activesupport (= 5.0.0.1)
11
- activerecord (5.0.0.1)
12
- activemodel (= 5.0.0.1)
13
- activesupport (= 5.0.0.1)
14
- arel (~> 7.0)
15
- activesupport (5.0.0.1)
9
+ activemodel (5.2.3)
10
+ activesupport (= 5.2.3)
11
+ activerecord (5.2.3)
12
+ activemodel (= 5.2.3)
13
+ activesupport (= 5.2.3)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.3)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
- i18n (~> 0.7)
17
+ i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
19
19
  tzinfo (~> 1.1)
20
- arel (7.1.2)
20
+ arel (9.0.0)
21
21
  coderay (1.1.2)
22
- concurrent-ruby (1.0.2)
23
- database_cleaner (1.5.3)
22
+ concurrent-ruby (1.1.5)
23
+ database_cleaner (1.7.0)
24
24
  diff-lcs (1.2.5)
25
- i18n (0.7.0)
25
+ i18n (1.5.1)
26
+ concurrent-ruby (~> 1.0)
26
27
  method_source (0.9.2)
27
- minitest (5.9.0)
28
+ minitest (5.11.3)
28
29
  pg (0.18.4)
29
30
  pry (0.12.2)
30
31
  coderay (~> 1.1.0)
@@ -43,15 +44,15 @@ GEM
43
44
  diff-lcs (>= 1.2.0, < 2.0)
44
45
  rspec-support (~> 3.5.0)
45
46
  rspec-support (3.5.0)
46
- thread_safe (0.3.5)
47
- tzinfo (1.2.2)
47
+ thread_safe (0.3.6)
48
+ tzinfo (1.2.5)
48
49
  thread_safe (~> 0.1)
49
50
 
50
51
  PLATFORMS
51
52
  ruby
52
53
 
53
54
  DEPENDENCIES
54
- activerecord (~> 5.0.0)
55
+ activerecord (~> 5.2.0)
55
56
  database_cleaner
56
57
  gemika!
57
58
  pg (~> 0.18.4)
@@ -4,7 +4,7 @@ source 'https://rubygems.org'
4
4
  ruby '>= 2.2'
5
5
 
6
6
  # Runtime dependencies
7
- gem 'activerecord', '~>5.0.0'
7
+ gem 'activerecord', '~>5.2.0'
8
8
  gem 'rspec', '~>3.5'
9
9
  gem 'sqlite3'
10
10
 
@@ -1,28 +1,28 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gemika (0.3.4)
4
+ gemika (0.4.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
- activemodel (5.0.7)
10
- activesupport (= 5.0.7)
11
- activerecord (5.0.7)
12
- activemodel (= 5.0.7)
13
- activesupport (= 5.0.7)
14
- arel (~> 7.0)
15
- activesupport (5.0.7)
9
+ activemodel (5.2.3)
10
+ activesupport (= 5.2.3)
11
+ activerecord (5.2.3)
12
+ activemodel (= 5.2.3)
13
+ activesupport (= 5.2.3)
14
+ arel (>= 9.0)
15
+ activesupport (5.2.3)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 0.7, < 2)
18
18
  minitest (~> 5.1)
19
19
  tzinfo (~> 1.1)
20
- arel (7.1.4)
20
+ arel (9.0.0)
21
21
  coderay (1.1.2)
22
- concurrent-ruby (1.0.5)
22
+ concurrent-ruby (1.1.5)
23
23
  database_cleaner (1.7.0)
24
24
  diff-lcs (1.3)
25
- i18n (1.0.1)
25
+ i18n (1.5.1)
26
26
  concurrent-ruby (~> 1.0)
27
27
  method_source (0.9.2)
28
28
  minitest (5.11.3)
@@ -52,7 +52,7 @@ PLATFORMS
52
52
  ruby
53
53
 
54
54
  DEPENDENCIES
55
- activerecord (~> 5.0.0)
55
+ activerecord (~> 5.2.0)
56
56
  database_cleaner
57
57
  gemika!
58
58
  pry
@@ -0,0 +1,17 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Ruby
4
+ ruby '>= 2.2'
5
+
6
+ # Runtime dependencies
7
+ gem 'activerecord', '~>6.0.0'
8
+ gem 'rspec', '~>3.5'
9
+ gem 'pg', '~>0.18.4'
10
+
11
+ # Development dependencies
12
+ gem 'rake'
13
+ gem 'database_cleaner'
14
+ gem 'pry'
15
+
16
+ # Gem under test
17
+ gem 'gemika', :path => '.'
@@ -0,0 +1,67 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ gemika (0.4.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
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)
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)
20
+ coderay (1.1.2)
21
+ concurrent-ruby (1.1.5)
22
+ database_cleaner (1.7.0)
23
+ diff-lcs (1.3)
24
+ i18n (1.6.0)
25
+ concurrent-ruby (~> 1.0)
26
+ method_source (0.9.2)
27
+ minitest (5.11.3)
28
+ pg (0.18.4)
29
+ pry (0.12.2)
30
+ coderay (~> 1.1.0)
31
+ method_source (~> 0.9.0)
32
+ rake (12.3.3)
33
+ rspec (3.8.0)
34
+ rspec-core (~> 3.8.0)
35
+ rspec-expectations (~> 3.8.0)
36
+ rspec-mocks (~> 3.8.0)
37
+ rspec-core (3.8.2)
38
+ rspec-support (~> 3.8.0)
39
+ rspec-expectations (3.8.4)
40
+ diff-lcs (>= 1.2.0, < 2.0)
41
+ rspec-support (~> 3.8.0)
42
+ rspec-mocks (3.8.1)
43
+ diff-lcs (>= 1.2.0, < 2.0)
44
+ rspec-support (~> 3.8.0)
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)
50
+
51
+ PLATFORMS
52
+ ruby
53
+
54
+ DEPENDENCIES
55
+ activerecord (~> 6.0.0)
56
+ database_cleaner
57
+ gemika!
58
+ pg (~> 0.18.4)
59
+ pry
60
+ rake
61
+ rspec (~> 3.5)
62
+
63
+ RUBY VERSION
64
+ ruby 2.2.4p230
65
+
66
+ BUNDLED WITH
67
+ 1.17.2
@@ -11,8 +11,8 @@ Gem::Specification.new do |s|
11
11
  s.description = s.summary
12
12
  s.license = 'MIT'
13
13
 
14
- s.files = `git ls-files`.split("\n").reject { |path| File.lstat(path).symlink? }
15
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| File.lstat(path).symlink? }
14
+ s.files = `git ls-files`.split("\n").reject { |path| !File.exists?(path) || File.lstat(path).symlink? }
15
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n").reject { |path| !File.exists?(path) || File.lstat(path).symlink? }
16
16
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
17
17
  s.require_paths = ["lib"]
18
18
  end
@@ -14,7 +14,13 @@ module Gemika
14
14
 
15
15
  def initialize(options = {})
16
16
  yaml_config_folder = options.fetch(:config_folder, 'spec/support')
17
- yaml_config_filename = Env.travis? ? 'database.travis.yml' : 'database.yml'
17
+ yaml_config_filename = if Env.travis?
18
+ 'database.travis.yml'
19
+ elsif Env.github?
20
+ 'database.github.yml'
21
+ else
22
+ 'database.yml'
23
+ end
18
24
  yaml_config_path = File.join(yaml_config_folder, yaml_config_filename)
19
25
  if File.exists?(yaml_config_path)
20
26
  @yaml_config = YAML.load_file(yaml_config_path)
@@ -87,6 +87,12 @@ module Gemika
87
87
  !!ENV['TRAVIS']
88
88
  end
89
89
 
90
+ ##
91
+ # Return whether this process is running within a Github Actions build.
92
+ def github?
93
+ ENV.key?('GITHUB_WORKFLOW')
94
+ end
95
+
90
96
  ##
91
97
  # Creates an hash that enumerates entries in order of insertion.
92
98
  #
@@ -1,3 +1,3 @@
1
1
  module Gemika
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -1,37 +1,26 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gemika
3
- version: !ruby/object:Gem::Version
4
- hash: 15
5
- prerelease:
6
- segments:
7
- - 0
8
- - 4
9
- - 0
10
- version: 0.4.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.4.1
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Henning Koch
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2019-08-07 00:00:00 Z
11
+ date: 2020-09-28 00:00:00.000000000 Z
19
12
  dependencies: []
20
-
21
13
  description: Helpers for testing Ruby gems
22
14
  email: henning.koch@makandra.de
23
15
  executables: []
24
-
25
16
  extensions: []
26
-
27
17
  extra_rdoc_files: []
28
-
29
- files:
30
- - .gitignore
31
- - .rspec
32
- - .ruby-version
33
- - .travis.yml
34
- - .yardopts
18
+ files:
19
+ - ".gitignore"
20
+ - ".rspec"
21
+ - ".ruby-version"
22
+ - ".travis.yml"
23
+ - ".yardopts"
35
24
  - CHANGELOG.md
36
25
  - Gemfile.2.3.mysql2
37
26
  - Gemfile.2.3.mysql2.lock
@@ -41,12 +30,14 @@ files:
41
30
  - Gemfile.4.2.mysql2.lock
42
31
  - Gemfile.4.2.pg
43
32
  - Gemfile.4.2.pg.lock
44
- - Gemfile.5.0.mysql2
45
- - Gemfile.5.0.mysql2.lock
46
- - Gemfile.5.0.pg
47
- - Gemfile.5.0.pg.lock
48
- - Gemfile.5.0.sqlite3
49
- - Gemfile.5.0.sqlite3.lock
33
+ - Gemfile.5.2.mysql2
34
+ - Gemfile.5.2.mysql2.lock
35
+ - Gemfile.5.2.pg
36
+ - Gemfile.5.2.pg.lock
37
+ - Gemfile.5.2.sqlite3
38
+ - Gemfile.5.2.sqlite3.lock
39
+ - Gemfile.6.0.pg
40
+ - Gemfile.6.0.pg.lock
50
41
  - LICENSE
51
42
  - README.md
52
43
  - Rakefile
@@ -80,38 +71,26 @@ files:
80
71
  - spec/support/database.travis.yml
81
72
  - spec/support/models.rb
82
73
  homepage: https://github.com/makandra/gemika
83
- licenses:
74
+ licenses:
84
75
  - MIT
76
+ metadata: {}
85
77
  post_install_message:
86
78
  rdoc_options: []
87
-
88
- require_paths:
79
+ require_paths:
89
80
  - lib
90
- required_ruby_version: !ruby/object:Gem::Requirement
91
- none: false
92
- requirements:
81
+ required_ruby_version: !ruby/object:Gem::Requirement
82
+ requirements:
93
83
  - - ">="
94
- - !ruby/object:Gem::Version
95
- hash: 3
96
- segments:
97
- - 0
98
- version: "0"
99
- required_rubygems_version: !ruby/object:Gem::Requirement
100
- none: false
101
- requirements:
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ required_rubygems_version: !ruby/object:Gem::Requirement
87
+ requirements:
102
88
  - - ">="
103
- - !ruby/object:Gem::Version
104
- hash: 3
105
- segments:
106
- - 0
107
- version: "0"
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
108
91
  requirements: []
109
-
110
- rubyforge_project:
111
- rubygems_version: 1.8.30
92
+ rubygems_version: 3.1.4
112
93
  signing_key:
113
- specification_version: 3
94
+ specification_version: 4
114
95
  summary: Helpers for testing Ruby gems
115
96
  test_files: []
116
-
117
- has_rdoc: