has_defaults 1.2.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4fb449c362751859cba75244e139688ecb2910493d04d2d7e169dcb95c519ddf
4
- data.tar.gz: 1dfc7ff69e71e7b8db9e5fed41755339f78b8a992391398899a1389646968ffa
3
+ metadata.gz: cf9fba68ef0886841ad0e03cc946b53178e46203eb6c3181701d6ac5ff717c37
4
+ data.tar.gz: db101e37ed3be781181b2b972207359fbf9ee23a4e4e3b865aed3a16a8531b81
5
5
  SHA512:
6
- metadata.gz: a96e5636f4df55e20067f185f439d1314a1c6083719eb3d6b4ec56b5c9560ebc2cf8a0bd4eb5fc152a1a0f29f6d72ef1024a393dfc95b82b35c00acc9d466534
7
- data.tar.gz: 1c352ff44bc64ba36b7c8657faf44145b6548b285cd8cf0af473d7405e4420fa91016f4fc8f024593dc658c7c4f22429d2694866966bb5fc0c52388850399337
6
+ metadata.gz: 8e8cece1db2b7a16c3e673df9a4bcea6386348a02f992566db97bbeaad3f19d1320002fac387ec4095bd0a1ff28520780359aa40ca4cc58254b9b68580621588
7
+ data.tar.gz: 532f5521a85b743235056be482bb8a6ee6f6c551798e851f5c6ffe99287fb7dafe862d2cac6e8c75095237b05b42da8602d1960ed82d1e83af69a19ffaa6b852
@@ -8,51 +8,8 @@ name: Tests
8
8
  branches:
9
9
  - master
10
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
- mysql -e 'create database IF NOT EXISTS test;' -u root --password=password -P 3306 -h 127.0.0.1
48
- - name: Bundle
49
- run: |
50
- gem install bundler:1.17.3
51
- bundle install --no-deployment
52
- - name: Run tests
53
- run: bundle exec rspec
54
11
  test_pg:
55
- runs-on: ubuntu-20.04
12
+ runs-on: ubuntu-22.04
56
13
  services:
57
14
  postgres:
58
15
  image: postgres
@@ -64,26 +21,34 @@ jobs:
64
21
  - 5432:5432
65
22
  strategy:
66
23
  fail-fast: false
67
- # Rails 4.2: Ruby 2.5.7
68
- # Rails 5.2: Ruby 2.5.7 and 2.7.4
69
- # Rails 6.1: Ruby 2.7.4 and 3.2.1
70
- # Rails 7.0: Ruby 2.7.4 and 3.2.1
71
24
  matrix:
72
25
  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.7.4
78
- gemfile: Gemfile.5.2.pg
79
26
  - ruby: 2.7.4
80
27
  gemfile: Gemfile.6.1.pg
81
28
  - ruby: 2.7.4
82
29
  gemfile: Gemfile.7.0.pg
30
+ - ruby: 2.7.4
31
+ gemfile: Gemfile.7.1.pg
83
32
  - ruby: 3.2.1
84
33
  gemfile: Gemfile.6.1.pg
85
34
  - ruby: 3.2.1
86
35
  gemfile: Gemfile.7.0.pg
36
+ - ruby: 3.2.1
37
+ gemfile: Gemfile.8.0.pg
38
+ - ruby: 3.3.6
39
+ gemfile: Gemfile.7.0.pg
40
+ - ruby: 3.3.6
41
+ gemfile: Gemfile.7.1.pg
42
+ - ruby: 3.3.6
43
+ gemfile: Gemfile.7.2.pg
44
+ - ruby: 3.3.6
45
+ gemfile: Gemfile.8.0.pg
46
+ - ruby: 3.4.1
47
+ gemfile: Gemfile.7.1.pg
48
+ - ruby: 3.4.1
49
+ gemfile: Gemfile.7.2.pg
50
+ - ruby: 3.4.1
51
+ gemfile: Gemfile.8.0.pg
87
52
  env:
88
53
  BUNDLE_GEMFILE: "${{ matrix.gemfile }}"
89
54
  steps:
data/CHANGELOG.md CHANGED
@@ -11,6 +11,24 @@ This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html
11
11
  ### Compatible changes
12
12
 
13
13
 
14
+ ## 1.3.0 - 2025-01-29
15
+
16
+ ### Breaking changes
17
+ - Drop support for Rails < 6.1. This also drops support for MySQL, which had only been present for Rails < 6.
18
+
19
+ ### Compatible changes
20
+
21
+ - Add support for Rails 7.1, 7.2 and Ruby 3.3
22
+ - Add support for Rails 8.0 and Ruby 3.4
23
+
24
+
25
+ ## 1.2.1 - 2024-10-25
26
+
27
+ ### Compatible changes
28
+
29
+ * Follow recommended way to extend Railties
30
+
31
+
14
32
  ## 1.2.0 - 2023-03-15
15
33
 
16
34
  ### Breaking changes
data/Gemfile.6.1.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.2.0)
4
+ has_defaults (1.3.0)
5
5
  activerecord
6
6
 
7
7
  GEM
data/Gemfile.7.0.pg.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- has_defaults (1.2.0)
4
+ has_defaults (1.3.0)
5
5
  activerecord
6
6
 
7
7
  GEM
@@ -27,7 +27,7 @@ GEM
27
27
  database_cleaner-core (~> 2.0.0)
28
28
  database_cleaner-core (2.0.1)
29
29
  diff-lcs (1.5.0)
30
- gemika (0.8.1)
30
+ gemika (0.8.4)
31
31
  i18n (1.12.0)
32
32
  concurrent-ruby (~> 1.0)
33
33
  method_source (1.0.0)
@@ -1,15 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '~>5'
5
- gem 'mysql2', '~>0.4.10'
4
+ gem 'activerecord', '~>7.1.5'
5
+ gem 'pg', '>=1.3'
6
6
 
7
7
  # Development dependencies
8
8
  gem 'rake'
9
9
  gem 'database_cleaner'
10
10
  gem 'rspec', '~>3.5'
11
- gem 'gemika', '>= 0.2.0'
12
- gem 'pry-byebug'
11
+ gem 'gemika', '>=0.8.1'
12
+ gem 'pry-byebug', '>=3.10.1'
13
13
 
14
14
  # Gem under test
15
15
  gem 'has_defaults', path: '.'
@@ -0,0 +1,91 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.3.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (7.1.5)
11
+ activesupport (= 7.1.5)
12
+ activerecord (7.1.5)
13
+ activemodel (= 7.1.5)
14
+ activesupport (= 7.1.5)
15
+ timeout (>= 0.4.0)
16
+ activesupport (7.1.5)
17
+ base64
18
+ benchmark (>= 0.3)
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.0.2)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ mutex_m
27
+ securerandom (>= 0.3)
28
+ tzinfo (~> 2.0)
29
+ base64 (0.2.0)
30
+ benchmark (0.4.0)
31
+ bigdecimal (3.1.8)
32
+ byebug (11.1.3)
33
+ coderay (1.1.3)
34
+ concurrent-ruby (1.3.4)
35
+ connection_pool (2.4.1)
36
+ database_cleaner (2.1.0)
37
+ database_cleaner-active_record (>= 2, < 3)
38
+ database_cleaner-active_record (2.2.0)
39
+ activerecord (>= 5.a)
40
+ database_cleaner-core (~> 2.0.0)
41
+ database_cleaner-core (2.0.1)
42
+ diff-lcs (1.5.1)
43
+ drb (2.2.1)
44
+ gemika (0.8.3)
45
+ i18n (1.14.6)
46
+ concurrent-ruby (~> 1.0)
47
+ logger (1.6.1)
48
+ method_source (1.1.0)
49
+ minitest (5.25.2)
50
+ mutex_m (0.3.0)
51
+ pg (1.5.9)
52
+ pry (0.14.2)
53
+ coderay (~> 1.1)
54
+ method_source (~> 1.0)
55
+ pry-byebug (3.10.1)
56
+ byebug (~> 11.0)
57
+ pry (>= 0.13, < 0.15)
58
+ rake (13.2.1)
59
+ rspec (3.13.0)
60
+ rspec-core (~> 3.13.0)
61
+ rspec-expectations (~> 3.13.0)
62
+ rspec-mocks (~> 3.13.0)
63
+ rspec-core (3.13.2)
64
+ rspec-support (~> 3.13.0)
65
+ rspec-expectations (3.13.3)
66
+ diff-lcs (>= 1.2.0, < 2.0)
67
+ rspec-support (~> 3.13.0)
68
+ rspec-mocks (3.13.2)
69
+ diff-lcs (>= 1.2.0, < 2.0)
70
+ rspec-support (~> 3.13.0)
71
+ rspec-support (3.13.1)
72
+ securerandom (0.3.2)
73
+ timeout (0.4.2)
74
+ tzinfo (2.0.6)
75
+ concurrent-ruby (~> 1.0)
76
+
77
+ PLATFORMS
78
+ ruby
79
+
80
+ DEPENDENCIES
81
+ activerecord (~> 7.1.5)
82
+ database_cleaner
83
+ gemika (>= 0.8.1)
84
+ has_defaults!
85
+ pg (>= 1.3)
86
+ pry-byebug (>= 3.10.1)
87
+ rake
88
+ rspec (~> 3.5)
89
+
90
+ BUNDLED WITH
91
+ 2.3.26
@@ -1,16 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord','~>5'
5
- gem 'activesupport'
6
- gem 'pg', '~>0.18.4'
4
+ gem 'activerecord', '~>7.2.2'
5
+ gem 'pg', '>=1.3'
7
6
 
8
7
  # Development dependencies
9
8
  gem 'rake'
10
9
  gem 'database_cleaner'
11
10
  gem 'rspec', '~>3.5'
12
- gem 'gemika', '>= 0.2.0'
13
- gem 'pry-byebug'
11
+ gem 'gemika', '>=0.8.1'
12
+ gem 'pry-byebug', '>=3.10.1'
14
13
 
15
14
  # Gem under test
16
15
  gem 'has_defaults', path: '.'
@@ -0,0 +1,89 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.3.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (7.2.2)
11
+ activesupport (= 7.2.2)
12
+ activerecord (7.2.2)
13
+ activemodel (= 7.2.2)
14
+ activesupport (= 7.2.2)
15
+ timeout (>= 0.4.0)
16
+ activesupport (7.2.2)
17
+ base64
18
+ benchmark (>= 0.3)
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ base64 (0.2.0)
29
+ benchmark (0.4.0)
30
+ bigdecimal (3.1.8)
31
+ byebug (11.1.3)
32
+ coderay (1.1.3)
33
+ concurrent-ruby (1.3.4)
34
+ connection_pool (2.4.1)
35
+ database_cleaner (2.1.0)
36
+ database_cleaner-active_record (>= 2, < 3)
37
+ database_cleaner-active_record (2.2.0)
38
+ activerecord (>= 5.a)
39
+ database_cleaner-core (~> 2.0.0)
40
+ database_cleaner-core (2.0.1)
41
+ diff-lcs (1.5.1)
42
+ drb (2.2.1)
43
+ gemika (0.8.3)
44
+ i18n (1.14.6)
45
+ concurrent-ruby (~> 1.0)
46
+ logger (1.6.1)
47
+ method_source (1.1.0)
48
+ minitest (5.25.2)
49
+ pg (1.5.9)
50
+ pry (0.14.2)
51
+ coderay (~> 1.1)
52
+ method_source (~> 1.0)
53
+ pry-byebug (3.10.1)
54
+ byebug (~> 11.0)
55
+ pry (>= 0.13, < 0.15)
56
+ rake (13.2.1)
57
+ rspec (3.13.0)
58
+ rspec-core (~> 3.13.0)
59
+ rspec-expectations (~> 3.13.0)
60
+ rspec-mocks (~> 3.13.0)
61
+ rspec-core (3.13.2)
62
+ rspec-support (~> 3.13.0)
63
+ rspec-expectations (3.13.3)
64
+ diff-lcs (>= 1.2.0, < 2.0)
65
+ rspec-support (~> 3.13.0)
66
+ rspec-mocks (3.13.2)
67
+ diff-lcs (>= 1.2.0, < 2.0)
68
+ rspec-support (~> 3.13.0)
69
+ rspec-support (3.13.1)
70
+ securerandom (0.3.2)
71
+ timeout (0.4.2)
72
+ tzinfo (2.0.6)
73
+ concurrent-ruby (~> 1.0)
74
+
75
+ PLATFORMS
76
+ ruby
77
+
78
+ DEPENDENCIES
79
+ activerecord (~> 7.2.2)
80
+ database_cleaner
81
+ gemika (>= 0.8.1)
82
+ has_defaults!
83
+ pg (>= 1.3)
84
+ pry-byebug (>= 3.10.1)
85
+ rake
86
+ rspec (~> 3.5)
87
+
88
+ BUNDLED WITH
89
+ 2.5.23
@@ -1,15 +1,15 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies
4
- gem 'activerecord', '~>4.2.1'
5
- gem 'pg'
4
+ gem 'activerecord', '~>8.0.0'
5
+ gem 'pg', '>=1.3'
6
6
 
7
7
  # Development dependencies
8
8
  gem 'rake'
9
9
  gem 'database_cleaner'
10
- gem 'rspec', '~>3.4'
11
- gem 'gemika', '>= 0.2.0'
12
- gem 'pry-byebug'
10
+ gem 'rspec', '~>3.5'
11
+ gem 'gemika', '>=0.8.1'
12
+ gem 'pry-byebug', '>=3.10.1'
13
13
 
14
14
  # Gem under test
15
15
  gem 'has_defaults', path: '.'
@@ -0,0 +1,91 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ has_defaults (1.3.0)
5
+ activerecord
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ activemodel (8.0.1)
11
+ activesupport (= 8.0.1)
12
+ activerecord (8.0.1)
13
+ activemodel (= 8.0.1)
14
+ activesupport (= 8.0.1)
15
+ timeout (>= 0.4.0)
16
+ activesupport (8.0.1)
17
+ base64
18
+ benchmark (>= 0.3)
19
+ bigdecimal
20
+ concurrent-ruby (~> 1.0, >= 1.3.1)
21
+ connection_pool (>= 2.2.5)
22
+ drb
23
+ i18n (>= 1.6, < 2)
24
+ logger (>= 1.4.2)
25
+ minitest (>= 5.1)
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0, >= 2.0.5)
28
+ uri (>= 0.13.1)
29
+ base64 (0.2.0)
30
+ benchmark (0.4.0)
31
+ bigdecimal (3.1.9)
32
+ byebug (11.1.3)
33
+ coderay (1.1.3)
34
+ concurrent-ruby (1.3.5)
35
+ connection_pool (2.5.0)
36
+ database_cleaner (2.1.0)
37
+ database_cleaner-active_record (>= 2, < 3)
38
+ database_cleaner-active_record (2.2.0)
39
+ activerecord (>= 5.a)
40
+ database_cleaner-core (~> 2.0.0)
41
+ database_cleaner-core (2.0.1)
42
+ diff-lcs (1.5.1)
43
+ drb (2.2.1)
44
+ gemika (0.8.4)
45
+ i18n (1.14.6)
46
+ concurrent-ruby (~> 1.0)
47
+ logger (1.6.5)
48
+ method_source (1.1.0)
49
+ minitest (5.25.4)
50
+ pg (1.5.9)
51
+ pry (0.14.2)
52
+ coderay (~> 1.1)
53
+ method_source (~> 1.0)
54
+ pry-byebug (3.10.1)
55
+ byebug (~> 11.0)
56
+ pry (>= 0.13, < 0.15)
57
+ rake (13.2.1)
58
+ rspec (3.13.0)
59
+ rspec-core (~> 3.13.0)
60
+ rspec-expectations (~> 3.13.0)
61
+ rspec-mocks (~> 3.13.0)
62
+ rspec-core (3.13.2)
63
+ rspec-support (~> 3.13.0)
64
+ rspec-expectations (3.13.3)
65
+ diff-lcs (>= 1.2.0, < 2.0)
66
+ rspec-support (~> 3.13.0)
67
+ rspec-mocks (3.13.2)
68
+ diff-lcs (>= 1.2.0, < 2.0)
69
+ rspec-support (~> 3.13.0)
70
+ rspec-support (3.13.2)
71
+ securerandom (0.4.1)
72
+ timeout (0.4.3)
73
+ tzinfo (2.0.6)
74
+ concurrent-ruby (~> 1.0)
75
+ uri (1.0.2)
76
+
77
+ PLATFORMS
78
+ x86_64-linux
79
+
80
+ DEPENDENCIES
81
+ activerecord (~> 8.0.0)
82
+ database_cleaner
83
+ gemika (>= 0.8.1)
84
+ has_defaults!
85
+ pg (>= 1.3)
86
+ pry-byebug (>= 3.10.1)
87
+ rake
88
+ rspec (~> 3.5)
89
+
90
+ BUNDLED WITH
91
+ 2.4.7
data/README.md CHANGED
@@ -6,13 +6,13 @@ Default values for ActiveRecord models.
6
6
 
7
7
  In your `Gemfile`
8
8
 
9
- ```
9
+ ```rb
10
10
  gem 'has_defaults'
11
11
  ```
12
12
 
13
13
  Now run
14
14
 
15
- ```
15
+ ```sh
16
16
  bundle install
17
17
  ```
18
18
 
@@ -20,7 +20,7 @@ bundle install
20
20
 
21
21
  Add the method call `has_defaults` to your model.
22
22
 
23
- ```
23
+ ```rb
24
24
  class Page < ActiveRecord::Base
25
25
  has_defaults :title => "New page", :body => "Put your text here"
26
26
  end
@@ -30,19 +30,19 @@ Attributes will be set only if it's a new record and the attribute is blank.
30
30
 
31
31
  Retrieve the default attribute with the `default_for` instance method:
32
32
 
33
- ```
33
+ ```rb
34
34
  @page.default_for(:title)
35
35
  ```
36
36
 
37
37
  You can pass Proc as attribute:
38
38
 
39
- ```
39
+ ```rb
40
40
  has_defaults :expires_at => proc { Time.now }
41
41
  ```
42
42
 
43
43
  You can override the default attributes as follow:
44
44
 
45
- ```
45
+ ```rb
46
46
  Page.has_defaults_options = {:title => "Here's your new page", :body => "Write your page text"}
47
47
  ```
48
48
 
@@ -29,16 +29,6 @@ module HasDefaults
29
29
 
30
30
  self.has_defaults_options ||= {}
31
31
  self.has_defaults_options.merge!(attrs)
32
-
33
- if ActiveRecord::VERSION::MAJOR < 3
34
- # ActiveRecord only calls after_initialize callbacks only if is
35
- # explicit defined in a class. We should however only define that
36
- # callback if a default has been set, as it really slow downs Rails.
37
- unless method_defined?(:after_initialize)
38
- define_method(:after_initialize) {}
39
- end
40
- end
41
-
42
32
  end
43
33
 
44
34
  end
@@ -76,6 +66,6 @@ module HasDefaults
76
66
  end
77
67
  end
78
68
 
79
- ActiveRecord::Base.extend(HasDefaults::ActiveRecordExt::ClassMethods)
80
-
81
-
69
+ ActiveSupport.on_load(:active_record) do
70
+ extend(HasDefaults::ActiveRecordExt::ClassMethods)
71
+ end
@@ -1,5 +1,5 @@
1
1
  module HasDefaults
2
2
 
3
- VERSION = '1.2.0'
3
+ VERSION = '1.3.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.2.0
4
+ version: 1.3.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: 2023-03-15 00:00:00.000000000 Z
11
+ date: 2025-01-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -36,20 +36,16 @@ files:
36
36
  - ".ruby-version"
37
37
  - CHANGELOG.md
38
38
  - Gemfile
39
- - Gemfile.3.2.mysql2
40
- - Gemfile.3.2.mysql2.lock
41
- - Gemfile.4.2.mysql2
42
- - Gemfile.4.2.mysql2.lock
43
- - Gemfile.4.2.pg
44
- - Gemfile.4.2.pg.lock
45
- - Gemfile.5.2.mysql2
46
- - Gemfile.5.2.mysql2.lock
47
- - Gemfile.5.2.pg
48
- - Gemfile.5.2.pg.lock
49
39
  - Gemfile.6.1.pg
50
40
  - Gemfile.6.1.pg.lock
51
41
  - Gemfile.7.0.pg
52
42
  - Gemfile.7.0.pg.lock
43
+ - Gemfile.7.1.pg
44
+ - Gemfile.7.1.pg.lock
45
+ - Gemfile.7.2.pg
46
+ - Gemfile.7.2.pg.lock
47
+ - Gemfile.8.0.pg
48
+ - Gemfile.8.0.pg.lock
53
49
  - Gemfile.lock
54
50
  - LICENSE
55
51
  - README.md
data/Gemfile.3.2.mysql2 DELETED
@@ -1,16 +0,0 @@
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,75 +0,0 @@
1
- GIT
2
- remote: https://github.com/makandra/mysql2
3
- revision: 451c4a666212aa3c5e9f4dbfbe94f49bade4286b
4
- branch: 0.3.x-lts
5
- specs:
6
- mysql2 (0.3.21)
7
-
8
- PATH
9
- remote: .
10
- specs:
11
- has_defaults (1.2.0)
12
- activerecord
13
-
14
- GEM
15
- remote: https://rubygems.org/
16
- specs:
17
- activemodel (3.2.22)
18
- activesupport (= 3.2.22)
19
- builder (~> 3.0.0)
20
- activerecord (3.2.22)
21
- activemodel (= 3.2.22)
22
- activesupport (= 3.2.22)
23
- arel (~> 3.0.2)
24
- tzinfo (~> 0.3.29)
25
- activesupport (3.2.22)
26
- i18n (~> 0.6, >= 0.6.4)
27
- multi_json (~> 1.0)
28
- arel (3.0.3)
29
- builder (3.0.4)
30
- byebug (11.1.3)
31
- coderay (1.1.3)
32
- database_cleaner (1.0.1)
33
- diff-lcs (1.2.5)
34
- gemika (0.6.1)
35
- i18n (0.6.11)
36
- method_source (1.0.0)
37
- multi_json (1.12.1)
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)
44
- rake (10.0.4)
45
- rspec (3.5.0)
46
- rspec-core (~> 3.5.0)
47
- rspec-expectations (~> 3.5.0)
48
- rspec-mocks (~> 3.5.0)
49
- rspec-core (3.5.3)
50
- rspec-support (~> 3.5.0)
51
- rspec-expectations (3.5.0)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.5.0)
54
- rspec-mocks (3.5.0)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.5.0)
57
- rspec-support (3.5.0)
58
- tzinfo (0.3.51)
59
-
60
- PLATFORMS
61
- ruby
62
-
63
- DEPENDENCIES
64
- activerecord (= 3.2.22)
65
- database_cleaner (~> 1.0.0)
66
- gemika (>= 0.2.0)
67
- has_defaults!
68
- i18n
69
- mysql2!
70
- pry-byebug
71
- rake (= 10.0.4)
72
- rspec (~> 3.4)
73
-
74
- BUNDLED WITH
75
- 2.3.4
data/Gemfile.4.2.mysql2 DELETED
@@ -1,15 +0,0 @@
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,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- has_defaults (1.2.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (4.2.11)
11
- activesupport (= 4.2.11)
12
- builder (~> 3.1)
13
- activerecord (4.2.11)
14
- activemodel (= 4.2.11)
15
- activesupport (= 4.2.11)
16
- arel (~> 6.0)
17
- activesupport (4.2.11)
18
- i18n (~> 0.7)
19
- minitest (~> 5.1)
20
- thread_safe (~> 0.3, >= 0.3.4)
21
- tzinfo (~> 1.1)
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)
28
- diff-lcs (1.2.5)
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)
41
- rake (11.3.0)
42
- rspec (3.5.0)
43
- rspec-core (~> 3.5.0)
44
- rspec-expectations (~> 3.5.0)
45
- rspec-mocks (~> 3.5.0)
46
- rspec-core (3.5.3)
47
- rspec-support (~> 3.5.0)
48
- rspec-expectations (3.5.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.5.0)
51
- rspec-mocks (3.5.0)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.5.0)
54
- rspec-support (3.5.0)
55
- thread_safe (0.3.6)
56
- tzinfo (1.2.9)
57
- thread_safe (~> 0.1)
58
-
59
- PLATFORMS
60
- ruby
61
-
62
- DEPENDENCIES
63
- activerecord (~> 4.2.11)
64
- database_cleaner
65
- gemika (>= 0.2.0)
66
- has_defaults!
67
- mysql2 (~> 0.4.0)
68
- pry-byebug
69
- rake
70
- rspec (~> 3.4)
71
-
72
- BUNDLED WITH
73
- 2.3.4
data/Gemfile.4.2.pg.lock DELETED
@@ -1,73 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- has_defaults (1.2.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (4.2.7.1)
11
- activesupport (= 4.2.7.1)
12
- builder (~> 3.1)
13
- activerecord (4.2.7.1)
14
- activemodel (= 4.2.7.1)
15
- activesupport (= 4.2.7.1)
16
- arel (~> 6.0)
17
- activesupport (4.2.7.1)
18
- i18n (~> 0.7)
19
- json (~> 1.7, >= 1.7.7)
20
- minitest (~> 5.1)
21
- thread_safe (~> 0.3, >= 0.3.4)
22
- tzinfo (~> 1.1)
23
- arel (6.0.3)
24
- builder (3.2.2)
25
- byebug (11.1.3)
26
- coderay (1.1.3)
27
- database_cleaner (1.5.3)
28
- diff-lcs (1.2.5)
29
- gemika (0.5.0)
30
- i18n (0.7.0)
31
- json (1.8.6)
32
- method_source (1.0.0)
33
- minitest (5.9.0)
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)
41
- rake (11.3.0)
42
- rspec (3.5.0)
43
- rspec-core (~> 3.5.0)
44
- rspec-expectations (~> 3.5.0)
45
- rspec-mocks (~> 3.5.0)
46
- rspec-core (3.5.3)
47
- rspec-support (~> 3.5.0)
48
- rspec-expectations (3.5.0)
49
- diff-lcs (>= 1.2.0, < 2.0)
50
- rspec-support (~> 3.5.0)
51
- rspec-mocks (3.5.0)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.5.0)
54
- rspec-support (3.5.0)
55
- thread_safe (0.3.5)
56
- tzinfo (1.2.2)
57
- thread_safe (~> 0.1)
58
-
59
- PLATFORMS
60
- ruby
61
-
62
- DEPENDENCIES
63
- activerecord (~> 4.2.1)
64
- database_cleaner
65
- gemika (>= 0.2.0)
66
- has_defaults!
67
- pg
68
- pry-byebug
69
- rake
70
- rspec (~> 3.4)
71
-
72
- BUNDLED WITH
73
- 2.3.4
@@ -1,71 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- has_defaults (1.2.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
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
- arel (~> 7.0)
16
- activesupport (5.0.7.2)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
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)
26
- diff-lcs (1.2.5)
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.4.10)
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)
39
- rake (11.3.0)
40
- rspec (3.5.0)
41
- rspec-core (~> 3.5.0)
42
- rspec-expectations (~> 3.5.0)
43
- rspec-mocks (~> 3.5.0)
44
- rspec-core (3.5.3)
45
- rspec-support (~> 3.5.0)
46
- rspec-expectations (3.5.0)
47
- diff-lcs (>= 1.2.0, < 2.0)
48
- rspec-support (~> 3.5.0)
49
- rspec-mocks (3.5.0)
50
- diff-lcs (>= 1.2.0, < 2.0)
51
- rspec-support (~> 3.5.0)
52
- rspec-support (3.5.0)
53
- thread_safe (0.3.6)
54
- tzinfo (1.2.8)
55
- thread_safe (~> 0.1)
56
-
57
- PLATFORMS
58
- ruby
59
-
60
- DEPENDENCIES
61
- activerecord (~> 5)
62
- database_cleaner
63
- gemika (>= 0.2.0)
64
- has_defaults!
65
- mysql2 (~> 0.4.10)
66
- pry-byebug
67
- rake
68
- rspec (~> 3.5)
69
-
70
- BUNDLED WITH
71
- 2.3.26
data/Gemfile.5.2.pg.lock DELETED
@@ -1,77 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- has_defaults (1.2.0)
5
- activerecord
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- activemodel (5.2.6)
11
- activesupport (= 5.2.6)
12
- activerecord (5.2.6)
13
- activemodel (= 5.2.6)
14
- activesupport (= 5.2.6)
15
- arel (>= 9.0)
16
- activesupport (5.2.6)
17
- concurrent-ruby (~> 1.0, >= 1.0.2)
18
- i18n (>= 0.7, < 2)
19
- minitest (~> 5.1)
20
- tzinfo (~> 1.1)
21
- arel (9.0.0)
22
- byebug (11.1.3)
23
- coderay (1.1.3)
24
- concurrent-ruby (1.1.9)
25
- database_cleaner (2.0.1)
26
- database_cleaner-active_record (~> 2.0.0)
27
- database_cleaner-active_record (2.0.1)
28
- activerecord (>= 5.a)
29
- database_cleaner-core (~> 2.0.0)
30
- database_cleaner-core (2.0.1)
31
- diff-lcs (1.2.5)
32
- gemika (0.6.1)
33
- i18n (1.8.10)
34
- concurrent-ruby (~> 1.0)
35
- method_source (1.0.0)
36
- minitest (5.14.4)
37
- pg (0.18.4)
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)
44
- rake (11.3.0)
45
- rspec (3.5.0)
46
- rspec-core (~> 3.5.0)
47
- rspec-expectations (~> 3.5.0)
48
- rspec-mocks (~> 3.5.0)
49
- rspec-core (3.5.3)
50
- rspec-support (~> 3.5.0)
51
- rspec-expectations (3.5.0)
52
- diff-lcs (>= 1.2.0, < 2.0)
53
- rspec-support (~> 3.5.0)
54
- rspec-mocks (3.5.0)
55
- diff-lcs (>= 1.2.0, < 2.0)
56
- rspec-support (~> 3.5.0)
57
- rspec-support (3.5.0)
58
- thread_safe (0.3.6)
59
- tzinfo (1.2.9)
60
- thread_safe (~> 0.1)
61
-
62
- PLATFORMS
63
- ruby
64
-
65
- DEPENDENCIES
66
- activerecord (~> 5)
67
- activesupport
68
- database_cleaner
69
- gemika (>= 0.2.0)
70
- has_defaults!
71
- pg (~> 0.18.4)
72
- pry-byebug
73
- rake
74
- rspec (~> 3.5)
75
-
76
- BUNDLED WITH
77
- 2.3.26