has_defaults 0.4.4 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: fcfc24271641cef17a5ed5a48d68d210d5ca74e8b3adb0252c445367d4d629ed
4
+ data.tar.gz: 8e5830c9b7e8a53e19f2aa8187244a28591ee766b72dfdbdcb75e158731f837e
5
+ SHA512:
6
+ metadata.gz: 6e68e7a35cce3d32cda7374a9bc9b50661abdf374c03a5ebb51238fa2d2d5b781784d8e44992bc59cf8b6646baebbcc3acdc272921c57703784f28a8bcd0b516
7
+ data.tar.gz: c5245aaa1afbaf678d18cc6a14e48cf97ccd42cdc2676ed5be292f4b04031d95d67f53a43bdfa8ed377e10141e05ec019e0cbf7af3f4da3f6e895ad4dbd8d20c
@@ -0,0 +1,102 @@
1
+ ---
2
+ name: Tests
3
+ 'on':
4
+ push:
5
+ branches:
6
+ - master
7
+ pull_request:
8
+ branches:
9
+ - master
10
+ jobs:
11
+ test_mysql:
12
+ runs-on: ubuntu-20.04
13
+ services:
14
+ mysql:
15
+ image: mysql:5.6
16
+ env:
17
+ MYSQL_ROOT_PASSWORD: password
18
+ options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout
19
+ 5s --health-retries 5
20
+ ports:
21
+ - 3306:3306
22
+ strategy:
23
+ fail-fast: false
24
+ # Rails 3.2 LTS: Ruby 2.5.7
25
+ # Rails 4.2: Ruby 2.5.7
26
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
27
+ matrix:
28
+ include:
29
+ - ruby: 2.5.7
30
+ gemfile: Gemfile.3.2.mysql2
31
+ - ruby: 2.5.7
32
+ gemfile: Gemfile.4.2.mysql2
33
+ - ruby: 2.5.7
34
+ gemfile: Gemfile.5.2.mysql2
35
+ - ruby: 2.7.4
36
+ gemfile: Gemfile.5.2.mysql2
37
+ env:
38
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
39
+ steps:
40
+ - uses: actions/checkout@v2
41
+ - name: Install ruby
42
+ uses: ruby/setup-ruby@v1
43
+ with:
44
+ ruby-version: "${{ matrix.ruby }}"
45
+ - name: Setup database
46
+ run: |
47
+ sudo apt-get install -y mysql-client libmariadbclient-dev
48
+ mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
49
+ - name: Bundle
50
+ run: |
51
+ gem install bundler:1.17.3
52
+ bundle install --no-deployment
53
+ - name: Run tests
54
+ run: bundle exec rspec
55
+ test_pg:
56
+ runs-on: ubuntu-20.04
57
+ services:
58
+ postgres:
59
+ image: postgres
60
+ env:
61
+ POSTGRES_PASSWORD: postgres
62
+ options: "--health-cmd pg_isready --health-interval 10s --health-timeout 5s
63
+ --health-retries 5"
64
+ ports:
65
+ - 5432:5432
66
+ strategy:
67
+ fail-fast: false
68
+ # Rails 4.2: Ruby 2.5.7
69
+ # Rails 5.2: Ruby 2.5.7 and 2.7.4
70
+ # Rails 6.1: Ruby 2.5.7, 2.7.4 and 3.0.2
71
+ matrix:
72
+ include:
73
+ - ruby: 2.5.7
74
+ gemfile: Gemfile.4.2.pg
75
+ - ruby: 2.5.7
76
+ gemfile: Gemfile.5.2.pg
77
+ - ruby: 2.5.7
78
+ gemfile: Gemfile.6.1.pg
79
+ - ruby: 2.7.4
80
+ gemfile: Gemfile.5.2.pg
81
+ - ruby: 2.7.4
82
+ gemfile: Gemfile.6.1.pg
83
+ - ruby: 3.0.2
84
+ gemfile: Gemfile.6.1.pg
85
+ env:
86
+ BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
87
+ steps:
88
+ - uses: actions/checkout@v2
89
+ - name: Install ruby
90
+ uses: ruby/setup-ruby@v1
91
+ with:
92
+ ruby-version: "${{ matrix.ruby }}"
93
+ - name: Setup database
94
+ run: |
95
+ sudo apt-get install -y postgresql-client
96
+ PGPASSWORD=postgres psql -c 'create database test;' -U postgres -p 5432 -h localhost
97
+ - name: Bundle
98
+ run: |
99
+ gem install bundler:2.2.26
100
+ bundle install --no-deployment
101
+ - name: Run tests
102
+ run: bundle exec rspec
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
1
  .idea/*
2
+ spec/support/database.yml
2
3
  pkg
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.4
1
+ 2.5.7
data/CHANGELOG.md ADDED
@@ -0,0 +1,23 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this file.
3
+
4
+ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
5
+
6
+
7
+ ## Unreleased
8
+
9
+ ### Breaking changes
10
+
11
+ ### Compatible changes
12
+
13
+
14
+ ## 1.0.0 - 2021-08-25
15
+
16
+ ### Breaking changes
17
+
18
+ - Drop support for Ruby 1.8.7 and Rails 2.3
19
+
20
+ ### Compatible changes
21
+
22
+ - Added this CHANGELOG file.
23
+ - Add support for Rails 6.1
data/Gemfile ADDED
@@ -0,0 +1 @@
1
+ Gemfile.4.2.mysql2
@@ -0,0 +1,16 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '=3.2.22'
5
+ gem 'mysql2', git: 'https://github.com/makandra/mysql2', branch: '0.3.x-lts'
6
+ gem 'i18n'
7
+
8
+ # Development dependencies
9
+ gem 'rake', '=10.0.4'
10
+ gem 'database_cleaner', '~>1.0.0'
11
+ gem 'rspec', '~> 3.4'
12
+ gem 'gemika', '>= 0.2.0'
13
+ gem 'pry-byebug'
14
+
15
+ # Gem under test
16
+ gem 'has_defaults', :path => '.'
@@ -1,7 +1,14 @@
1
+ GIT
2
+ remote: https://github.com/makandra/mysql2
3
+ revision: c920d41e43c4722d4c065d2ea9d21494c560bd85
4
+ branch: 0.3.x-lts
5
+ specs:
6
+ mysql2 (0.3.21)
7
+
1
8
  PATH
2
- remote: ..
9
+ remote: .
3
10
  specs:
4
- has_defaults (0.4.3)
11
+ has_defaults (1.0.0)
5
12
  activerecord
6
13
 
7
14
  GEM
@@ -20,11 +27,20 @@ GEM
20
27
  multi_json (~> 1.0)
21
28
  arel (3.0.3)
22
29
  builder (3.0.4)
30
+ byebug (11.1.3)
31
+ coderay (1.1.3)
32
+ database_cleaner (1.0.1)
23
33
  diff-lcs (1.2.5)
24
- gemika (0.2.0)
34
+ gemika (0.6.1)
25
35
  i18n (0.6.11)
36
+ method_source (1.0.0)
26
37
  multi_json (1.12.1)
27
- mysql2 (0.3.17)
38
+ pry (0.13.1)
39
+ coderay (~> 1.1)
40
+ method_source (~> 1.0)
41
+ pry-byebug (3.9.0)
42
+ byebug (~> 11.0)
43
+ pry (~> 0.13.0)
28
44
  rake (10.0.4)
29
45
  rspec (3.5.0)
30
46
  rspec-core (~> 3.5.0)
@@ -46,12 +62,14 @@ PLATFORMS
46
62
 
47
63
  DEPENDENCIES
48
64
  activerecord (= 3.2.22)
65
+ database_cleaner (~> 1.0.0)
49
66
  gemika (>= 0.2.0)
50
67
  has_defaults!
51
- i18n (= 0.6.11)
52
- mysql2 (= 0.3.17)
68
+ i18n
69
+ mysql2!
70
+ pry-byebug
53
71
  rake (= 10.0.4)
54
72
  rspec (~> 3.4)
55
73
 
56
74
  BUNDLED WITH
57
- 1.12.5
75
+ 2.2.26
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>4.2.11'
5
+ gem 'mysql2', '~> 0.4.0'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.4'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -1,33 +1,43 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- has_defaults (0.4.3)
4
+ has_defaults (1.0.0)
5
5
  activerecord
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (4.2.7.1)
11
- activesupport (= 4.2.7.1)
10
+ activemodel (4.2.11)
11
+ activesupport (= 4.2.11)
12
12
  builder (~> 3.1)
13
- activerecord (4.2.7.1)
14
- activemodel (= 4.2.7.1)
15
- activesupport (= 4.2.7.1)
13
+ activerecord (4.2.11)
14
+ activemodel (= 4.2.11)
15
+ activesupport (= 4.2.11)
16
16
  arel (~> 6.0)
17
- activesupport (4.2.7.1)
17
+ activesupport (4.2.11)
18
18
  i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
19
  minitest (~> 5.1)
21
20
  thread_safe (~> 0.3, >= 0.3.4)
22
21
  tzinfo (~> 1.1)
23
- arel (6.0.3)
24
- builder (3.2.2)
22
+ arel (6.0.4)
23
+ builder (3.2.4)
24
+ byebug (11.1.3)
25
+ coderay (1.1.3)
26
+ concurrent-ruby (1.1.9)
27
+ database_cleaner (1.5.3)
25
28
  diff-lcs (1.2.5)
26
- gemika (0.2.0)
27
- i18n (0.7.0)
28
- json (1.8.3)
29
- minitest (5.9.0)
30
- mysql2 (0.3.21)
29
+ gemika (0.6.1)
30
+ i18n (0.9.5)
31
+ concurrent-ruby (~> 1.0)
32
+ method_source (1.0.0)
33
+ minitest (5.14.4)
34
+ mysql2 (0.4.10)
35
+ pry (0.13.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
+ pry-byebug (3.9.0)
39
+ byebug (~> 11.0)
40
+ pry (~> 0.13.0)
31
41
  rake (11.3.0)
32
42
  rspec (3.5.0)
33
43
  rspec-core (~> 3.5.0)
@@ -42,20 +52,22 @@ GEM
42
52
  diff-lcs (>= 1.2.0, < 2.0)
43
53
  rspec-support (~> 3.5.0)
44
54
  rspec-support (3.5.0)
45
- thread_safe (0.3.5)
46
- tzinfo (1.2.2)
55
+ thread_safe (0.3.6)
56
+ tzinfo (1.2.9)
47
57
  thread_safe (~> 0.1)
48
58
 
49
59
  PLATFORMS
50
60
  ruby
51
61
 
52
62
  DEPENDENCIES
53
- activerecord (~> 4.2.1)
63
+ activerecord (~> 4.2.11)
64
+ database_cleaner
54
65
  gemika (>= 0.2.0)
55
66
  has_defaults!
56
- mysql2 (~> 0.3.17)
67
+ mysql2 (~> 0.4.0)
68
+ pry-byebug
57
69
  rake
58
70
  rspec (~> 3.4)
59
71
 
60
72
  BUNDLED WITH
61
- 1.12.5
73
+ 2.2.26
data/Gemfile.4.2.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>4.2.1'
5
+ gem 'pg'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.4'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- has_defaults (0.4.3)
4
+ has_defaults (1.0.0)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -22,12 +22,22 @@ GEM
22
22
  tzinfo (~> 1.1)
23
23
  arel (6.0.3)
24
24
  builder (3.2.2)
25
+ byebug (11.1.3)
26
+ coderay (1.1.3)
27
+ database_cleaner (1.5.3)
25
28
  diff-lcs (1.2.5)
26
- gemika (0.2.0)
29
+ gemika (0.5.0)
27
30
  i18n (0.7.0)
28
- json (1.8.3)
31
+ json (1.8.6)
32
+ method_source (1.0.0)
29
33
  minitest (5.9.0)
30
34
  pg (0.19.0)
35
+ pry (0.13.1)
36
+ coderay (~> 1.1)
37
+ method_source (~> 1.0)
38
+ pry-byebug (3.9.0)
39
+ byebug (~> 11.0)
40
+ pry (~> 0.13.0)
31
41
  rake (11.3.0)
32
42
  rspec (3.5.0)
33
43
  rspec-core (~> 3.5.0)
@@ -51,11 +61,13 @@ PLATFORMS
51
61
 
52
62
  DEPENDENCIES
53
63
  activerecord (~> 4.2.1)
64
+ database_cleaner
54
65
  gemika (>= 0.2.0)
55
66
  has_defaults!
56
67
  pg
68
+ pry-byebug
57
69
  rake
58
70
  rspec (~> 3.4)
59
71
 
60
72
  BUNDLED WITH
61
- 1.12.5
73
+ 2.2.26
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>5.0.0'
5
+ gem 'mysql2', '~>0.5.3'
6
+
7
+ # Development dependencies
8
+ gem 'rake'
9
+ gem 'database_cleaner'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'gemika', '>= 0.2.0'
12
+ gem 'pry-byebug'
13
+
14
+ # Gem under test
15
+ gem 'has_defaults', path: '.'
@@ -1,30 +1,41 @@
1
1
  PATH
2
- remote: ..
2
+ remote: .
3
3
  specs:
4
- has_defaults (0.4.3)
4
+ has_defaults (1.0.0)
5
5
  activerecord
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (5.0.0.1)
11
- activesupport (= 5.0.0.1)
12
- activerecord (5.0.0.1)
13
- activemodel (= 5.0.0.1)
14
- activesupport (= 5.0.0.1)
10
+ activemodel (5.0.7.2)
11
+ activesupport (= 5.0.7.2)
12
+ activerecord (5.0.7.2)
13
+ activemodel (= 5.0.7.2)
14
+ activesupport (= 5.0.7.2)
15
15
  arel (~> 7.0)
16
- activesupport (5.0.0.1)
16
+ activesupport (5.0.7.2)
17
17
  concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (~> 0.7)
18
+ i18n (>= 0.7, < 2)
19
19
  minitest (~> 5.1)
20
20
  tzinfo (~> 1.1)
21
- arel (7.1.2)
22
- concurrent-ruby (1.0.2)
21
+ arel (7.1.4)
22
+ byebug (11.1.3)
23
+ coderay (1.1.3)
24
+ concurrent-ruby (1.1.7)
25
+ database_cleaner (1.5.3)
23
26
  diff-lcs (1.2.5)
24
- gemika (0.2.0)
25
- i18n (0.7.0)
26
- minitest (5.9.0)
27
- mysql2 (0.4.4)
27
+ gemika (0.5.0)
28
+ i18n (1.5.1)
29
+ concurrent-ruby (~> 1.0)
30
+ method_source (1.0.0)
31
+ minitest (5.14.2)
32
+ mysql2 (0.5.3)
33
+ pry (0.13.1)
34
+ coderay (~> 1.1)
35
+ method_source (~> 1.0)
36
+ pry-byebug (3.9.0)
37
+ byebug (~> 11.0)
38
+ pry (~> 0.13.0)
28
39
  rake (11.3.0)
29
40
  rspec (3.5.0)
30
41
  rspec-core (~> 3.5.0)
@@ -39,8 +50,8 @@ GEM
39
50
  diff-lcs (>= 1.2.0, < 2.0)
40
51
  rspec-support (~> 3.5.0)
41
52
  rspec-support (3.5.0)
42
- thread_safe (0.3.5)
43
- tzinfo (1.2.2)
53
+ thread_safe (0.3.6)
54
+ tzinfo (1.2.8)
44
55
  thread_safe (~> 0.1)
45
56
 
46
57
  PLATFORMS
@@ -48,11 +59,13 @@ PLATFORMS
48
59
 
49
60
  DEPENDENCIES
50
61
  activerecord (~> 5.0.0)
62
+ database_cleaner
51
63
  gemika (>= 0.2.0)
52
64
  has_defaults!
53
- mysql2 (~> 0.4.4)
65
+ mysql2 (~> 0.5.3)
66
+ pry-byebug
54
67
  rake
55
68
  rspec (~> 3.5)
56
69
 
57
70
  BUNDLED WITH
58
- 1.12.5
71
+ 2.2.26