uuid_associations-active_record 0.5.0 → 0.6.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: ccf569422d54c246403f2b389a43928cda8e942c483c4eb6a2018eb4b0efeed0
4
- data.tar.gz: ec377489e9fbd6160c5112f119c2bc2926a020c4cbe238c1e1862ddf3c4d2a89
3
+ metadata.gz: 986ed5481909fc49c0f94fe53af4f8c8392d08f67cb82c90339f7ce423e446f5
4
+ data.tar.gz: adef3dd91beda334937d9e5d4521cf533f7495545636e712d8adee36d14b63ae
5
5
  SHA512:
6
- metadata.gz: f9c8349ddf77902cc6f7b928a6173dabe87034a529bca4587340a29db578005606071a5c0b87bc3d27b6d197298b203282c1895e9ab4cd6e0804168e54acfb76
7
- data.tar.gz: 3e94d48823ad91ed60159e2ab60bff39401d56f9fa00371eb43549be2e80fc9e424e8bf5d9a5f9f5ea10bf33db478b18974befad3898e61f8d540ad5b09f80a4
6
+ metadata.gz: 8920166cb033774dadc54dc851dbe3e29391544bbfea2640d6ebf8da196d2c232c92a656940a26f33df19e5c501eb74c6312ae9b9bd7cc77544f6c8a59f293c3
7
+ data.tar.gz: 66a94fda928ee3f91e22041290e47c510fe4ffd2d2bba20fb3a9fc1636d9c765e15f570c39308cfeae58dfe2d20d2b097c3c4058580fead5ecc87e1cedae7b5a
@@ -0,0 +1,87 @@
1
+ version: 2.1
2
+
3
+ jobs:
4
+ test:
5
+ parameters:
6
+ ruby-version:
7
+ type: string
8
+ gemfile:
9
+ type: string
10
+ docker:
11
+ - image: 'ruby:<< parameters.ruby-version >>'
12
+ environment:
13
+ BUNDLE_GEMFILE: << parameters.gemfile >>
14
+ steps:
15
+ - checkout
16
+ - run: gem install bundler -v '1.17'
17
+ - run:
18
+ name: Install dependencies
19
+ command: bundle install
20
+ - run:
21
+ name: Run Specs
22
+ command:
23
+ bundle exec rspec
24
+
25
+ workflows:
26
+ test-suite:
27
+ jobs:
28
+ - test:
29
+ matrix:
30
+ parameters:
31
+ ruby-version:
32
+ - '2.4'
33
+ - '2.5'
34
+ - '2.6'
35
+ - '2.7'
36
+ - '3.0'
37
+ - '3.1'
38
+ - '3.2'
39
+ gemfile:
40
+ - gemfiles/active_record_4.2.gemfile
41
+ - gemfiles/active_record_5.0.gemfile
42
+ - gemfiles/active_record_5.1.gemfile
43
+ - gemfiles/active_record_5.2.gemfile
44
+ - gemfiles/active_record_6.0.gemfile
45
+ - gemfiles/active_record_6.1.gemfile
46
+ - gemfiles/active_record_7.0.gemfile
47
+ exclude:
48
+ - gemfile: gemfiles/active_record_7.0.gemfile
49
+ ruby-version: '2.4'
50
+ - gemfile: gemfiles/active_record_7.0.gemfile
51
+ ruby-version: '2.5'
52
+ - gemfile: gemfiles/active_record_7.0.gemfile
53
+ ruby-version: '2.6'
54
+ - gemfile: gemfiles/active_record_6.1.gemfile
55
+ ruby-version: '2.4'
56
+ - gemfile: gemfiles/active_record_6.1.gemfile
57
+ ruby-version: '3.2'
58
+ - gemfile: gemfiles/active_record_6.0.gemfile
59
+ ruby-version: '2.4'
60
+ - gemfile: gemfiles/active_record_6.0.gemfile
61
+ ruby-version: '3.2'
62
+ - gemfile: gemfiles/active_record_5.2.gemfile
63
+ ruby-version: '3.0'
64
+ - gemfile: gemfiles/active_record_5.2.gemfile
65
+ ruby-version: '3.1'
66
+ - gemfile: gemfiles/active_record_5.2.gemfile
67
+ ruby-version: '3.2'
68
+ - gemfile: gemfiles/active_record_5.1.gemfile
69
+ ruby-version: '3.0'
70
+ - gemfile: gemfiles/active_record_5.1.gemfile
71
+ ruby-version: '3.1'
72
+ - gemfile: gemfiles/active_record_5.1.gemfile
73
+ ruby-version: '3.2'
74
+ - gemfile: gemfiles/active_record_5.0.gemfile
75
+ ruby-version: '3.0'
76
+ - gemfile: gemfiles/active_record_5.0.gemfile
77
+ ruby-version: '3.1'
78
+ - gemfile: gemfiles/active_record_5.0.gemfile
79
+ ruby-version: '3.2'
80
+ - gemfile: gemfiles/active_record_4.2.gemfile
81
+ ruby-version: '3.0'
82
+ - gemfile: gemfiles/active_record_4.2.gemfile
83
+ ruby-version: '3.1'
84
+ - gemfile: gemfiles/active_record_4.2.gemfile
85
+ ruby-version: '2.7'
86
+ - gemfile: gemfiles/active_record_4.2.gemfile
87
+ ruby-version: '3.2'
data/Appraisals CHANGED
@@ -1,29 +1,33 @@
1
1
  appraise 'active_record_4.2' do
2
2
  gem 'sqlite3', '~> 1.3.6'
3
- gem 'activerecord', github: 'rails/rails', branch: '4-2-stable'
3
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '4-2-stable'
4
4
  end
5
5
 
6
6
  appraise 'active_record_5.0' do
7
7
  gem 'sqlite3', '~> 1.3.6'
8
- gem 'activerecord', github: 'rails/rails', branch: '5-0-stable'
8
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '5-0-stable'
9
9
  end
10
10
 
11
11
  appraise 'active_record_5.1' do
12
- gem 'sqlite3'
13
- gem 'activerecord', github: 'rails/rails', branch: '5-1-stable'
12
+ gem 'sqlite3', '~> 1.3.6'
13
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '5-1-stable'
14
14
  end
15
15
 
16
16
  appraise 'active_record_5.2' do
17
- gem 'sqlite3'
18
- gem 'activerecord', github: 'rails/rails', branch: '5-2-stable'
17
+ gem 'sqlite3', '~> 1.3.6'
18
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '5-2-stable'
19
19
  end
20
20
 
21
21
  appraise 'active_record_6.0' do
22
- gem 'sqlite3'
23
- gem 'activerecord', github: 'rails/rails', branch: '6-0-stable'
22
+ gem 'sqlite3', '< 1.5'
23
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '6-0-stable'
24
+ end
25
+
26
+ appraise 'active_record_6.1' do
27
+ gem 'sqlite3', '< 1.5'
28
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '6-1-stable'
24
29
  end
25
30
 
26
- appraise 'active_record_edge' do
27
- gem 'sqlite3'
28
- gem 'activerecord', github: 'rails/rails', branch: 'master'
31
+ appraise 'active_record_7.0' do
32
+ gem 'activerecord', git: 'https://github.com/rails/rails', branch: '7-0-stable'
29
33
  end
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Changelog
2
2
 
3
+ ## [v0.6.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.6.0) (2023-05-03)
4
+
5
+ [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.5.0...v0.6.0)
6
+
7
+ **Implemented enhancements:**
8
+
9
+ - Support Rails 3 [\#9](https://github.com/mcelicalderon/uuid_associations-active_record/pull/9) ([mcelicalderon](https://github.com/mcelicalderon))
10
+
11
+ ## [v0.5.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.5.0) (2023-05-03)
12
+
13
+ [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.4.4...v0.5.0)
14
+
15
+ **Implemented enhancements:**
16
+
17
+ - Support ActiveRecord 7.x [\#8](https://github.com/mcelicalderon/uuid_associations-active_record/pull/8) ([mfitzhenry](https://github.com/mfitzhenry))
18
+
3
19
  ## [v0.4.4](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.4.4) (2020-11-19)
4
20
 
5
21
  [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.4.3...v0.4.4)
@@ -32,6 +48,10 @@
32
48
 
33
49
  [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.3...v0.3.4)
34
50
 
51
+ **Merged pull requests:**
52
+
53
+ - Remove custom script to install bundler \< 2.0 [\#4](https://github.com/mcelicalderon/uuid_associations-active_record/pull/4) ([mcelicalderon](https://github.com/mcelicalderon))
54
+
35
55
  ## [v0.3.3](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.3) (2019-01-08)
36
56
 
37
57
  [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.2...v0.3.3)
@@ -40,6 +60,10 @@
40
60
 
41
61
  - Try to establish DB connection to check for UUID column [\#3](https://github.com/mcelicalderon/uuid_associations-active_record/pull/3) ([mcelicalderon](https://github.com/mcelicalderon))
42
62
 
63
+ **Merged pull requests:**
64
+
65
+ - Update Travis test versions [\#2](https://github.com/mcelicalderon/uuid_associations-active_record/pull/2) ([mcelicalderon](https://github.com/mcelicalderon))
66
+
43
67
  ## [v0.3.2](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.2) (2018-10-29)
44
68
 
45
69
  [Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.1...v0.3.2)
@@ -7,14 +7,14 @@ module UuidAssociations
7
7
  module ActiveRecord
8
8
  module AssociationMethodDefinitions
9
9
  def has_many(name, scope = nil, **options, &extension)
10
- original_payload = super(name, scope, options, &extension)
10
+ original_payload = super(name, scope, **options, &extension)
11
11
  RelationshipDefinitions::HasMany.define_accesors_for(self, original_payload, name)
12
12
 
13
13
  original_payload
14
14
  end
15
15
 
16
16
  def belongs_to(name, scope = nil, **options)
17
- original_payload = super(name, scope, options)
17
+ original_payload = super(name, scope, **options)
18
18
  return original_payload if original_payload.key?('left_side')
19
19
 
20
20
  RelationshipDefinitions::BelongsTo.define_accesors_for(self, original_payload, name)
@@ -2,6 +2,6 @@
2
2
 
3
3
  module UuidAssociations
4
4
  module ActiveRecord
5
- VERSION = '0.5.0'
5
+ VERSION = '0.6.0'
6
6
  end
7
7
  end
@@ -32,8 +32,8 @@ Gem::Specification.new do |spec|
32
32
 
33
33
  spec.add_development_dependency 'appraisal', '~> 2.0'
34
34
  spec.add_development_dependency 'github_changelog_generator'
35
- spec.add_development_dependency 'pry', '~> 0.11.3'
35
+ spec.add_development_dependency 'pry'
36
36
  spec.add_development_dependency 'rake', '>= 12.3.3'
37
37
  spec.add_development_dependency 'rspec', '~> 3.0'
38
- spec.add_development_dependency 'sqlite3', '~> 1.3'
38
+ spec.add_development_dependency 'sqlite3'
39
39
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uuid_associations-active_record
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mario Celi
@@ -62,16 +62,16 @@ dependencies:
62
62
  name: pry
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - "~>"
65
+ - - ">="
66
66
  - !ruby/object:Gem::Version
67
- version: 0.11.3
67
+ version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - "~>"
72
+ - - ">="
73
73
  - !ruby/object:Gem::Version
74
- version: 0.11.3
74
+ version: '0'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rake
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -104,16 +104,16 @@ dependencies:
104
104
  name: sqlite3
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
- - - "~>"
107
+ - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: '1.3'
109
+ version: '0'
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
- - - "~>"
114
+ - - ">="
115
115
  - !ruby/object:Gem::Version
116
- version: '1.3'
116
+ version: '0'
117
117
  description: Adds association_uuids= method on has_many and has_and_belongs_to_many
118
118
  associations
119
119
  email:
@@ -122,9 +122,9 @@ executables: []
122
122
  extensions: []
123
123
  extra_rdoc_files: []
124
124
  files:
125
+ - ".circleci/config.yml"
125
126
  - ".gitignore"
126
127
  - ".rspec"
127
- - ".travis.yml"
128
128
  - Appraisals
129
129
  - CHANGELOG.md
130
130
  - Gemfile
data/.travis.yml DELETED
@@ -1,37 +0,0 @@
1
- ---
2
- language: ruby
3
- sudo: false
4
- cache: bundler
5
-
6
- rvm:
7
- - 2.2.10
8
- - 2.3.8
9
- - 2.4.10
10
- - 2.5.8
11
- - 2.6.6
12
- - 2.7.1
13
-
14
- gemfile:
15
- - gemfiles/active_record_4.2.gemfile
16
- - gemfiles/active_record_5.0.gemfile
17
- - gemfiles/active_record_5.1.gemfile
18
- - gemfiles/active_record_5.2.gemfile
19
-
20
- matrix:
21
- include:
22
- - gemfile: gemfiles/active_record_4.2.gemfile
23
- rvm: 2.1.10
24
- - gemfile: gemfiles/active_record_6.0.gemfile
25
- rvm: 2.5.8
26
- - gemfile: gemfiles/active_record_6.0.gemfile
27
- rvm: 2.6.6
28
- - gemfile: gemfiles/active_record_6.0.gemfile
29
- rvm: 2.7.1
30
- - gemfile: gemfiles/active_record_edge.gemfile
31
- rvm: 2.7.1
32
- exclude:
33
- - gemfile: gemfiles/active_record_4.2.gemfile
34
- rvm: 2.7.1
35
- allow_failures:
36
- - rvm: 2.7.1
37
- gemfile: gemfiles/active_record_edge.gemfile