uuid_associations-active_record 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -0
- data/.travis.yml +17 -6
- data/Appraisals +5 -0
- data/CHANGELOG.md +61 -0
- data/Gemfile +2 -0
- data/README.md +20 -0
- data/Rakefile +11 -0
- data/lib/uuid_associations/active_record.rb +2 -0
- data/lib/uuid_associations/active_record/association_method_definitions.rb +2 -0
- data/lib/uuid_associations/active_record/inline.rb +2 -0
- data/lib/uuid_associations/active_record/nested_attributes/uuid_finder.rb +2 -0
- data/lib/uuid_associations/active_record/nested_attributes_method_definitions.rb +2 -0
- data/lib/uuid_associations/active_record/railtie.rb +2 -0
- data/lib/uuid_associations/active_record/relationship_definitions/base.rb +2 -0
- data/lib/uuid_associations/active_record/relationship_definitions/belongs_to.rb +2 -0
- data/lib/uuid_associations/active_record/relationship_definitions/has_many.rb +2 -0
- data/lib/uuid_associations/active_record/version.rb +3 -1
- data/spec/integration/nested_attributes/collection_spec.rb +2 -0
- data/spec/integration/relationship_definitions/belongs_to_spec.rb +2 -0
- data/spec/integration/relationship_definitions/has_and_belongs_to_many_spec.rb +2 -0
- data/spec/integration/relationship_definitions/has_many_spec.rb +2 -0
- data/spec/spec_helper.rb +2 -0
- data/spec/support/models/attachment.rb +2 -0
- data/spec/support/models/comment.rb +2 -0
- data/spec/support/models/pet.rb +2 -0
- data/spec/support/models/post.rb +2 -0
- data/spec/support/models/team.rb +2 -0
- data/spec/support/models/toy.rb +2 -0
- data/spec/support/models/user.rb +2 -0
- data/spec/support/schema.rb +2 -0
- data/spec/unit/uuid_associations/active_record/nested_attributes/uuid_finder_spec.rb +2 -0
- data/uuid_associations-active_record.gemspec +8 -4
- metadata +13 -19
- data/gemfiles/.bundle/config +0 -2
- data/gemfiles/active_record_4.2.gemfile +0 -8
- data/gemfiles/active_record_5.0.gemfile +0 -8
- data/gemfiles/active_record_5.1.gemfile +0 -8
- data/gemfiles/active_record_5.2.gemfile +0 -8
- data/gemfiles/active_record_edge.gemfile +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fdcb52186f2c9301d9c0133d1815037a4a35dd050f18e041b45e741c6c5dabd4
|
4
|
+
data.tar.gz: 6c9ea59b6b51ecb5d0ced33dded60195c247a60786cd864014f7f850f36d1617
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0f5f93564252ef9140340c7e73dd7b17449813ce30a557d64d5f8e71068729d1b529e50b850dc403f767cde825ebcd689aa84f3e6739ee0c73572999e07c968c
|
7
|
+
data.tar.gz: e1314504a226a16e563303c9960f570153b027fc26c3777c9c11a8c00290b87068678c6d6ce3bf35b9a821af6e8a8c83eb46e360027a33fb96a1def0beb3710a
|
data/.gitignore
CHANGED
data/.travis.yml
CHANGED
@@ -6,9 +6,10 @@ cache: bundler
|
|
6
6
|
rvm:
|
7
7
|
- 2.2.10
|
8
8
|
- 2.3.8
|
9
|
-
- 2.4.
|
10
|
-
- 2.5.
|
11
|
-
- 2.6.
|
9
|
+
- 2.4.10
|
10
|
+
- 2.5.8
|
11
|
+
- 2.6.6
|
12
|
+
- 2.7.1
|
12
13
|
|
13
14
|
gemfile:
|
14
15
|
- gemfiles/active_record_4.2.gemfile
|
@@ -20,7 +21,17 @@ matrix:
|
|
20
21
|
include:
|
21
22
|
- gemfile: gemfiles/active_record_4.2.gemfile
|
22
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
|
23
30
|
- gemfile: gemfiles/active_record_edge.gemfile
|
24
|
-
rvm: 2.
|
25
|
-
|
26
|
-
|
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
|
data/Appraisals
CHANGED
@@ -18,6 +18,11 @@ appraise 'active_record_5.2' do
|
|
18
18
|
gem 'activerecord', github: 'rails/rails', branch: '5-2-stable'
|
19
19
|
end
|
20
20
|
|
21
|
+
appraise 'active_record_6.0' do
|
22
|
+
gem 'sqlite3'
|
23
|
+
gem 'activerecord', github: 'rails/rails', branch: '6-0-stable'
|
24
|
+
end
|
25
|
+
|
21
26
|
appraise 'active_record_edge' do
|
22
27
|
gem 'sqlite3'
|
23
28
|
gem 'activerecord', github: 'rails/rails', branch: 'master'
|
data/CHANGELOG.md
ADDED
@@ -0,0 +1,61 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## [v0.4.3](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.4.3) (2020-08-02)
|
4
|
+
|
5
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.4.2...v0.4.3)
|
6
|
+
|
7
|
+
**Implemented enhancements:**
|
8
|
+
|
9
|
+
- Add frozen string literal to ruby files [\#6](https://github.com/mcelicalderon/uuid_associations-active_record/pull/6) ([mcelicalderon](https://github.com/mcelicalderon))
|
10
|
+
|
11
|
+
## [v0.4.2](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.4.2) (2019-04-30)
|
12
|
+
|
13
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.4.1...v0.4.2)
|
14
|
+
|
15
|
+
## [v0.4.1](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.4.1) (2019-04-30)
|
16
|
+
|
17
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.4.0...v0.4.1)
|
18
|
+
|
19
|
+
## [v0.4.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.4.0) (2019-04-30)
|
20
|
+
|
21
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.4...v0.4.0)
|
22
|
+
|
23
|
+
## [v0.3.4](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.4) (2019-04-06)
|
24
|
+
|
25
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.3...v0.3.4)
|
26
|
+
|
27
|
+
## [v0.3.3](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.3) (2019-01-08)
|
28
|
+
|
29
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.2...v0.3.3)
|
30
|
+
|
31
|
+
**Fixed bugs:**
|
32
|
+
|
33
|
+
- 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))
|
34
|
+
|
35
|
+
## [v0.3.2](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.2) (2018-10-29)
|
36
|
+
|
37
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.1...v0.3.2)
|
38
|
+
|
39
|
+
## [v0.3.1](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.1) (2018-10-29)
|
40
|
+
|
41
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.3.0...v0.3.1)
|
42
|
+
|
43
|
+
## [v0.3.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.3.0) (2018-10-29)
|
44
|
+
|
45
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.2.0...v0.3.0)
|
46
|
+
|
47
|
+
## [v0.2.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.2.0) (2018-10-29)
|
48
|
+
|
49
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/v0.1.0...v0.2.0)
|
50
|
+
|
51
|
+
**Implemented enhancements:**
|
52
|
+
|
53
|
+
- Allow nested attributes to update records using UUID [\#1](https://github.com/mcelicalderon/uuid_associations-active_record/pull/1) ([mcelicalderon](https://github.com/mcelicalderon))
|
54
|
+
|
55
|
+
## [v0.1.0](https://github.com/mcelicalderon/uuid_associations-active_record/tree/v0.1.0) (2018-10-16)
|
56
|
+
|
57
|
+
[Full Changelog](https://github.com/mcelicalderon/uuid_associations-active_record/compare/80bc4bb1598bfd913418927c42c781456151ce9e...v0.1.0)
|
58
|
+
|
59
|
+
|
60
|
+
|
61
|
+
\* *This Changelog was automatically generated by [github_changelog_generator](https://github.com/github-changelog-generator/github-changelog-generator)*
|
data/Gemfile
CHANGED
data/README.md
CHANGED
@@ -2,6 +2,26 @@
|
|
2
2
|
[![Build Status](https://travis-ci.org/mcelicalderon/uuid_associations-active_record.svg?branch=master)](https://travis-ci.org/mcelicalderon/uuid_associations-active_record)
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/uuid_associations-active_record.svg)](https://badge.fury.io/rb/uuid_associations-active_record)
|
4
4
|
|
5
|
+
## Table of Contents
|
6
|
+
|
7
|
+
<!--ts-->
|
8
|
+
* [UUID Associations ActiveRecord](#uuid-associations-activerecord)
|
9
|
+
* [Table of Contents](#table-of-contents)
|
10
|
+
* [Installation](#installation)
|
11
|
+
* [Rationale](#rationale)
|
12
|
+
* [Usage](#usage)
|
13
|
+
* [Association Methods](#association-methods)
|
14
|
+
* [Generated Methods](#generated-methods)
|
15
|
+
* [Nested Attributes](#nested-attributes)
|
16
|
+
* [Future Work](#future-work)
|
17
|
+
* [Development](#development)
|
18
|
+
* [Contributing](#contributing)
|
19
|
+
* [License](#license)
|
20
|
+
|
21
|
+
<!-- Added by: mcelicalderon, at: Sun Aug 2 12:17:14 -05 2020 -->
|
22
|
+
|
23
|
+
<!--te-->
|
24
|
+
|
5
25
|
## Installation
|
6
26
|
|
7
27
|
Add this line to your application's Gemfile:
|
data/Rakefile
CHANGED
@@ -1,6 +1,17 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'bundler/gem_tasks'
|
2
4
|
require 'rspec/core/rake_task'
|
3
5
|
|
4
6
|
RSpec::Core::RakeTask.new(:spec)
|
5
7
|
|
6
8
|
task default: :spec
|
9
|
+
|
10
|
+
require 'github_changelog_generator/task'
|
11
|
+
|
12
|
+
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
|
13
|
+
config.user = 'mcelicalderon'
|
14
|
+
config.project = 'uuid_associations-active_record'
|
15
|
+
config.future_release = ENV['FUTURE_RELEASE']
|
16
|
+
config.add_issues_wo_labels = false
|
17
|
+
end
|
data/spec/spec_helper.rb
CHANGED
data/spec/support/models/pet.rb
CHANGED
data/spec/support/models/post.rb
CHANGED
data/spec/support/models/team.rb
CHANGED
data/spec/support/models/toy.rb
CHANGED
data/spec/support/models/user.rb
CHANGED
data/spec/support/schema.rb
CHANGED
@@ -16,8 +16,12 @@ Gem::Specification.new do |spec|
|
|
16
16
|
'source_code_uri' => 'https://github.com/mcelicalderon/uuid_associations-active_record'
|
17
17
|
}
|
18
18
|
|
19
|
-
spec.files
|
20
|
-
|
19
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
20
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|gemfiles)/}) }
|
21
|
+
end
|
22
|
+
spec.test_files = Dir.chdir(File.expand_path(__dir__)) do
|
23
|
+
`git ls-files -z`.split("\x0").select { |f| f.match(%r{^spec/}) }
|
24
|
+
end
|
21
25
|
spec.bindir = 'exe'
|
22
26
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
23
27
|
spec.require_paths = ['lib']
|
@@ -27,9 +31,9 @@ Gem::Specification.new do |spec|
|
|
27
31
|
spec.add_dependency 'activerecord', '>= 4.2', '< 7.0'
|
28
32
|
|
29
33
|
spec.add_development_dependency 'appraisal', '~> 2.0'
|
30
|
-
spec.add_development_dependency '
|
34
|
+
spec.add_development_dependency 'github_changelog_generator'
|
31
35
|
spec.add_development_dependency 'pry', '~> 0.11.3'
|
32
|
-
spec.add_development_dependency 'rake', '
|
36
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
33
37
|
spec.add_development_dependency 'rspec', '~> 3.0'
|
34
38
|
spec.add_development_dependency 'sqlite3', '~> 1.3'
|
35
39
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uuid_associations-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mario Celi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -45,19 +45,19 @@ dependencies:
|
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '2.0'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
|
-
name:
|
48
|
+
name: github_changelog_generator
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '
|
53
|
+
version: '0'
|
54
54
|
type: :development
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- - "
|
58
|
+
- - ">="
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '
|
60
|
+
version: '0'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: pry
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -76,16 +76,16 @@ dependencies:
|
|
76
76
|
name: rake
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - "
|
79
|
+
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version:
|
81
|
+
version: 12.3.3
|
82
82
|
type: :development
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
|
-
- - "
|
86
|
+
- - ">="
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
88
|
+
version: 12.3.3
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: rspec
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
@@ -126,18 +126,13 @@ files:
|
|
126
126
|
- ".rspec"
|
127
127
|
- ".travis.yml"
|
128
128
|
- Appraisals
|
129
|
+
- CHANGELOG.md
|
129
130
|
- Gemfile
|
130
131
|
- LICENSE.txt
|
131
132
|
- README.md
|
132
133
|
- Rakefile
|
133
134
|
- bin/console
|
134
135
|
- bin/setup
|
135
|
-
- gemfiles/.bundle/config
|
136
|
-
- gemfiles/active_record_4.2.gemfile
|
137
|
-
- gemfiles/active_record_5.0.gemfile
|
138
|
-
- gemfiles/active_record_5.1.gemfile
|
139
|
-
- gemfiles/active_record_5.2.gemfile
|
140
|
-
- gemfiles/active_record_edge.gemfile
|
141
136
|
- lib/uuid_associations/active_record.rb
|
142
137
|
- lib/uuid_associations/active_record/association_method_definitions.rb
|
143
138
|
- lib/uuid_associations/active_record/inline.rb
|
@@ -183,8 +178,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
183
178
|
- !ruby/object:Gem::Version
|
184
179
|
version: '0'
|
185
180
|
requirements: []
|
186
|
-
|
187
|
-
rubygems_version: 2.7.9
|
181
|
+
rubygems_version: 3.1.4
|
188
182
|
signing_key:
|
189
183
|
specification_version: 4
|
190
184
|
summary: Helper methods for UUID associations in Active Record
|
data/gemfiles/.bundle/config
DELETED