has_defaults 1.0.0 → 1.1.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fcfc24271641cef17a5ed5a48d68d210d5ca74e8b3adb0252c445367d4d629ed
4
- data.tar.gz: 8e5830c9b7e8a53e19f2aa8187244a28591ee766b72dfdbdcb75e158731f837e
3
+ metadata.gz: d3eae6f469137f2596e0037f16750876be8e3859b37ff37d1d3969edff48752c
4
+ data.tar.gz: 0004d3d663f7cb8b31622886852711a574c01a0a72f95dbac530e8ea80498d20
5
5
  SHA512:
6
- metadata.gz: 6e68e7a35cce3d32cda7374a9bc9b50661abdf374c03a5ebb51238fa2d2d5b781784d8e44992bc59cf8b6646baebbcc3acdc272921c57703784f28a8bcd0b516
7
- data.tar.gz: c5245aaa1afbaf678d18cc6a14e48cf97ccd42cdc2676ed5be292f4b04031d95d67f53a43bdfa8ed377e10141e05ec019e0cbf7af3f4da3f6e895ad4dbd8d20c
6
+ metadata.gz: 6747c2fc5b0fa501718d94838b7e098304ce4399ee4e998f5cd758920121e16f3e31e4ff9cc9567f6acb4ee8807e017726e81df83d2d56d1addc15fdc0924c79
7
+ data.tar.gz: f557ba0bb57c4612c10ffb9f66786fa00be49a5897b1dbda40615bc067abfda22b3e804cede99e447f185b11ac3aad267a4a34ef2c050087e454e19c508aa5dd
@@ -44,7 +44,8 @@ jobs:
44
44
  ruby-version: "${{ matrix.ruby }}"
45
45
  - name: Setup database
46
46
  run: |
47
- sudo apt-get install -y mysql-client libmariadbclient-dev
47
+ sudo apt-get update
48
+ sudo apt-get install -y mariadb-client libmariadbclient-dev
48
49
  mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
49
50
  - name: Bundle
50
51
  run: |
@@ -68,6 +69,7 @@ jobs:
68
69
  # Rails 4.2: Ruby 2.5.7
69
70
  # Rails 5.2: Ruby 2.5.7 and 2.7.4
70
71
  # Rails 6.1: Ruby 2.5.7, 2.7.4 and 3.0.2
72
+ # Rails 7.0: Ruby 2.7.4 and 3.0.2
71
73
  matrix:
72
74
  include:
73
75
  - ruby: 2.5.7
@@ -80,8 +82,12 @@ jobs:
80
82
  gemfile: Gemfile.5.2.pg
81
83
  - ruby: 2.7.4
82
84
  gemfile: Gemfile.6.1.pg
85
+ - ruby: 2.7.4
86
+ gemfile: Gemfile.7.0.pg
83
87
  - ruby: 3.0.2
84
88
  gemfile: Gemfile.6.1.pg
89
+ - ruby: 3.0.2
90
+ gemfile: Gemfile.7.0.pg
85
91
  env:
86
92
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
87
93
  steps:
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.7
1
+ 2.7.4
data/CHANGELOG.md CHANGED
@@ -11,6 +11,15 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
11
11
  ### Compatible changes
12
12
 
13
13
 
14
+ ## 1.1.0 - 2022-01-20
15
+
16
+ ### Breaking changes
17
+
18
+ ### Compatible changes
19
+
20
+ * Add support for Rails 7 (see [#7](https://github.com/makandra/has_defaults/issues/7))
21
+
22
+
14
23
  ## 1.0.0 - 2021-08-25
15
24
 
16
25
  ### Breaking changes
data/Gemfile CHANGED
@@ -1 +1 @@
1
- Gemfile.4.2.mysql2
1
+ ./Gemfile.7.0.pg
@@ -8,7 +8,7 @@ GIT
8
8
  PATH
9
9
  remote: .
10
10
  specs:
11
- has_defaults (1.0.0)
11
+ has_defaults (1.1.0)
12
12
  activerecord
13
13
 
14
14
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.0.0)
4
+ has_defaults (1.1.0)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.4.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.0.0)
4
+ has_defaults (1.1.0)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.0.0)
4
+ has_defaults (1.1.0)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.5.2.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.0.0)
4
+ has_defaults (1.1.0)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.0.0)
4
+ has_defaults (1.1.0)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.7.0.pg ADDED
@@ -0,0 +1,15 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Runtime dependencies
4
+ gem 'activerecord', '~>7.0.1'
5
+ gem 'pg', '~>1.1'
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: '.'
@@ -0,0 +1,73 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.1.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (7.0.1)
11
+ activesupport (= 7.0.1)
12
+ activerecord (7.0.1)
13
+ activemodel (= 7.0.1)
14
+ activesupport (= 7.0.1)
15
+ activesupport (7.0.1)
16
+ concurrent-ruby (~> 1.0, >= 1.0.2)
17
+ i18n (>= 1.6, < 2)
18
+ minitest (>= 5.1)
19
+ tzinfo (~> 2.0)
20
+ byebug (11.1.3)
21
+ coderay (1.1.3)
22
+ concurrent-ruby (1.1.9)
23
+ database_cleaner (2.0.1)
24
+ database_cleaner-active_record (~> 2.0.0)
25
+ database_cleaner-active_record (2.0.1)
26
+ activerecord (>= 5.a)
27
+ database_cleaner-core (~> 2.0.0)
28
+ database_cleaner-core (2.0.1)
29
+ diff-lcs (1.5.0)
30
+ gemika (0.6.1)
31
+ i18n (1.8.11)
32
+ concurrent-ruby (~> 1.0)
33
+ method_source (1.0.0)
34
+ minitest (5.15.0)
35
+ pg (1.2.3)
36
+ pry (0.13.1)
37
+ coderay (~> 1.1)
38
+ method_source (~> 1.0)
39
+ pry-byebug (3.9.0)
40
+ byebug (~> 11.0)
41
+ pry (~> 0.13.0)
42
+ rake (13.0.6)
43
+ rspec (3.10.0)
44
+ rspec-core (~> 3.10.0)
45
+ rspec-expectations (~> 3.10.0)
46
+ rspec-mocks (~> 3.10.0)
47
+ rspec-core (3.10.1)
48
+ rspec-support (~> 3.10.0)
49
+ rspec-expectations (3.10.2)
50
+ diff-lcs (>= 1.2.0, < 2.0)
51
+ rspec-support (~> 3.10.0)
52
+ rspec-mocks (3.10.2)
53
+ diff-lcs (>= 1.2.0, < 2.0)
54
+ rspec-support (~> 3.10.0)
55
+ rspec-support (3.10.3)
56
+ tzinfo (2.0.4)
57
+ concurrent-ruby (~> 1.0)
58
+
59
+ PLATFORMS
60
+ x86_64-linux
61
+
62
+ DEPENDENCIES
63
+ activerecord (~> 7.0.1)
64
+ database_cleaner
65
+ gemika (>= 0.2.0)
66
+ has_defaults!
67
+ pg (~> 1.1)
68
+ pry-byebug
69
+ rake
70
+ rspec (~> 3.5)
71
+
72
+ BUNDLED WITH
73
+ 2.2.26
data/Gemfile.lock CHANGED
@@ -1 +1 @@
1
- Gemfile.4.2.mysql2.lock
1
+ ./Gemfile.7.0.pg.lock
@@ -1,5 +1,5 @@
1
1
  module HasDefaults
2
2
 
3
- VERSION = '1.0.0'
3
+ VERSION = '1.1.0'
4
4
 
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: has_defaults
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Henning Koch
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-08-25 00:00:00.000000000 Z
11
+ date: 2022-01-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -48,6 +48,8 @@ files:
48
48
  - Gemfile.5.2.pg.lock
49
49
  - Gemfile.6.1.pg
50
50
  - Gemfile.6.1.pg.lock
51
+ - Gemfile.7.0.pg
52
+ - Gemfile.7.0.pg.lock
51
53
  - Gemfile.lock
52
54
  - LICENSE
53
55
  - README.md
@@ -75,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
77
  - !ruby/object:Gem::Version
76
78
  version: '0'
77
79
  requirements: []
78
- rubygems_version: 3.2.26
80
+ rubygems_version: 3.1.6
79
81
  signing_key:
80
82
  specification_version: 4
81
83
  summary: Default values for ActiveRecord models