relation 0.3.1 → 0.3.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +10 -13
- data/.rubocop.yml +8 -0
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +16 -10
- data/.watchr +6 -12
- data/Appraisals +10 -6
- data/Gemfile +6 -1
- data/MIT-LICENSE +1 -1
- data/README.md +15 -7
- data/Rakefile +8 -10
- data/app/models/dangling.rb +11 -14
- data/app/models/relation.rb +1 -3
- data/app/models/relation_ext.rb +4 -6
- data/gemfiles/rails_5.2.gemfile +4 -0
- data/gemfiles/{rails_5.0.gemfile → rails_6.0.gemfile} +5 -1
- data/lib/relation.rb +2 -0
- data/lib/relation/engine.rb +19 -18
- data/lib/relation/version.rb +10 -2
- data/relation.gemspec +6 -7
- data/test/support/database.rb +19 -21
- data/test/test_helper.rb +6 -5
- metadata +29 -44
- data/gemfiles/rails_5.1.gemfile +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 853bc18cefd0604f0b9292840ea11d6ba76ec7375bf0d9802cf078f61c7b4823
|
4
|
+
data.tar.gz: 82bb8714278faf2abe55bcae1387443783e1fec691dc54c1bc0585991b2d90f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b25cebb6364b1978bcc3c447adb9407d31d191483c26adc3da12eae5dda385d00ab250476de1775bb9101ea1b60a41c79b9f6aad03f6512f6ed812c0292a722
|
7
|
+
data.tar.gz: 5f2f0501587bb4b3cdba3b9190759ed6ed0fedc4da7938dcba4f0693eab3d5a989c32ede95accf0d59b2224cf215e38d6f8cb9252ba4396d3341f9f58b48a2d3
|
data/.gitignore
CHANGED
@@ -1,14 +1,11 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
Gemfile.lock
|
4
|
-
gemfiles/*.lock
|
5
|
-
coverage/*
|
6
|
-
pkg/*
|
7
|
-
|
8
|
-
# Ignore the default SQLite database.
|
9
|
-
/db/*.sqlite3
|
10
|
-
/db/*.sqlite3-journal
|
1
|
+
.bundle/
|
2
|
+
coverage/
|
11
3
|
|
12
|
-
|
13
|
-
log
|
14
|
-
|
4
|
+
*.gem
|
5
|
+
*.log
|
6
|
+
*.lock
|
7
|
+
*.sqlite3
|
8
|
+
**/*.gem
|
9
|
+
**/*.log
|
10
|
+
**/*.lock
|
11
|
+
**/*.sqlite3
|
data/.rubocop.yml
ADDED
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-
|
1
|
+
rails-6.0
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.6.6
|
data/.travis.yml
CHANGED
@@ -13,25 +13,31 @@ bundler_args: --without production
|
|
13
13
|
#bundler_args: --without development
|
14
14
|
|
15
15
|
rvm:
|
16
|
-
- 2.
|
17
|
-
- 2.5
|
16
|
+
- 2.6.6 # 2020-07-14
|
17
|
+
# - 2.6.5 # 2019-10-29
|
18
|
+
# - 2.6.4 # 2019-10-04
|
19
|
+
# - 2.6.3 # 2019-06-21
|
20
|
+
# - 2.6.1 # 2019-03-05
|
21
|
+
# - 2.5.1 # 2018-04-27
|
22
|
+
# - 2.5.0 # 2018-02-22
|
18
23
|
# - 2.4.1 # tested: working for Rails 5
|
19
24
|
# - 2.3.1 # tested: working for Rails 5
|
20
25
|
# - 2.2.7 # tested: working for Rails 5
|
21
26
|
# - 2.2.0 # tested: failing for Rails 5
|
22
27
|
|
23
28
|
gemfile:
|
24
|
-
- gemfiles/
|
25
|
-
- gemfiles/rails_5.
|
26
|
-
- gemfiles/rails_5.
|
29
|
+
- gemfiles/rails_6.0.gemfile
|
30
|
+
# - gemfiles/rails_5.2.gemfile
|
31
|
+
# - gemfiles/rails_5.1.gemfile
|
32
|
+
# - gemfiles/rails_5.0.gemfile
|
27
33
|
# - gemfiles/rails_4.gemfile
|
28
34
|
|
29
35
|
notifications:
|
30
36
|
email: false
|
31
37
|
|
32
38
|
matrix:
|
33
|
-
allow_failures:
|
34
|
-
- gemfile: gemfiles/rails_5.0.gemfile
|
35
|
-
rvm: 2.2.0
|
36
|
-
- gemfile: gemfiles/rails_5.1.gemfile
|
37
|
-
rvm: 2.2.0
|
39
|
+
# allow_failures:
|
40
|
+
# - gemfile: gemfiles/rails_5.0.gemfile
|
41
|
+
# rvm: 2.2.0
|
42
|
+
# - gemfile: gemfiles/rails_5.1.gemfile
|
43
|
+
# rvm: 2.2.0
|
data/.watchr
CHANGED
@@ -16,36 +16,30 @@ end
|
|
16
16
|
|
17
17
|
def run_it(type, file)
|
18
18
|
case type
|
19
|
-
when 'test'; run %
|
20
|
-
# when 'spec'; run %
|
19
|
+
when 'test'; run %(ruby -I test #{file})
|
20
|
+
# when 'spec'; run %(rspec -X #{file})
|
21
21
|
else; puts "#{H} unknown type: #{type}, file: #{file}"
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
25
|
def run_all_tests
|
26
26
|
puts "\n#{HH} Running all tests #{HH}\n"
|
27
|
-
|
28
|
-
# %w{test}.each { |dir| run "spring rake #{dir} RAILS_ENV=test" if File.exists?(dir) }
|
29
|
-
%w{test}.each { |dir| run "rake #{dir} RAILS_ENV=test" if File.exists?(dir) }
|
27
|
+
%w[test spec].each { |dir| run "rake #{dir}" if File.exist?(dir) }
|
30
28
|
end
|
31
29
|
|
32
30
|
def run_matching_files(base)
|
33
31
|
base = base.split('_').first
|
34
|
-
%w
|
32
|
+
%w[test spec].each { |type|
|
35
33
|
files = Dir["#{type}/**/*.rb"].select { |file| file =~ /#{base}_.*\.rb/ }
|
36
34
|
run_it type, files.join(' ') unless files.empty?
|
37
35
|
}
|
38
36
|
end
|
39
37
|
|
40
|
-
%w
|
38
|
+
%w[test spec].each { |type|
|
41
39
|
watch("#{type}/#{type}_helper\.rb") { run_all_tests }
|
40
|
+
watch('lib/.*\.rb') { run_all_tests }
|
42
41
|
watch("#{type}/.*/*_#{type}\.rb") { |match| run_it type, match[0] }
|
43
42
|
}
|
44
|
-
%w{rb erb haml slim}.each { |type|
|
45
|
-
watch("app/.*/.*\.#{type}") { |m|
|
46
|
-
run_matching_files("#{m[0].split('/').at(2).split('.').first}")
|
47
|
-
}
|
48
|
-
}
|
49
43
|
|
50
44
|
# Ctrl-\ or ctrl-4
|
51
45
|
Signal.trap('QUIT') { run_all_tests }
|
data/Appraisals
CHANGED
@@ -1,11 +1,15 @@
|
|
1
|
-
appraise 'rails-
|
2
|
-
gem 'rails', '~>
|
3
|
-
end
|
4
|
-
|
5
|
-
appraise 'rails-5.1' do
|
6
|
-
gem 'rails', '~> 5.1'
|
1
|
+
appraise 'rails-6.0' do
|
2
|
+
gem 'rails', '~> 6.0.0'
|
7
3
|
end
|
8
4
|
|
9
5
|
appraise 'rails-5.2' do
|
10
6
|
gem 'rails', '~> 5.2.0'
|
11
7
|
end
|
8
|
+
|
9
|
+
#appraise 'rails-5.0' do
|
10
|
+
# gem 'rails', '~> 5.0.0'
|
11
|
+
#end
|
12
|
+
#
|
13
|
+
#appraise 'rails-5.1' do
|
14
|
+
# gem 'rails', '~> 5.1'
|
15
|
+
#end
|
data/Gemfile
CHANGED
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -2,10 +2,16 @@
|
|
2
2
|
[![Gem Version](https://badge.fury.io/rb/relation.png)](http://badge.fury.io/rb/relation)
|
3
3
|
[![Build Status](https://travis-ci.org/matique/relation.png?branch=master)](https://travis-ci.org/matique/relation)
|
4
4
|
|
5
|
-
Relation
|
6
|
-
|
7
|
-
|
8
|
-
|
5
|
+
AFAIK, Relation can replace all kind of relationships in a Rails database.
|
6
|
+
The gem stores the relationships in a additional table (named
|
7
|
+
"relations") containing
|
8
|
+
triples (name of relationship, from:id, to_id).
|
9
|
+
No additional column/field is required in a particular tables.
|
10
|
+
Adding/removing a relationship do not required a migration.
|
11
|
+
|
12
|
+
Is it recommendable? Well, you should know.
|
13
|
+
In particular, the automagic of Rails associations is not available
|
14
|
+
for this gem.
|
9
15
|
|
10
16
|
A habtm (has and belong to many) association of Rails requires an
|
11
17
|
additional table containing the id's of the associated records.
|
@@ -43,7 +49,7 @@ The migration is then done, as usual, by:
|
|
43
49
|
|
44
50
|
## Usage
|
45
51
|
|
46
|
-
In short (order* and user* are ActiveRecords):
|
52
|
+
In short (order* and user* are instances of ActiveRecords):
|
47
53
|
|
48
54
|
Relation.add order, user
|
49
55
|
Relation.add order, user2
|
@@ -80,9 +86,11 @@ They may be used for relationships which can not be based on the
|
|
80
86
|
class name of the ActiveRecords.
|
81
87
|
Keep in mind that dangling relations must be handled by yourself.
|
82
88
|
|
83
|
-
## Rails
|
89
|
+
## Rails 6
|
90
|
+
|
91
|
+
This gem is intended for Rails 6.
|
92
|
+
Rails 5 should work fine.
|
84
93
|
|
85
|
-
This gem is intended for Rails 5.
|
86
94
|
Older Rails versions may use "gem 'relation', '= 0.1.1'".
|
87
95
|
|
88
96
|
## License MIT
|
data/Rakefile
CHANGED
@@ -1,13 +1,11 @@
|
|
1
|
-
|
2
|
-
require "rubygems"
|
3
|
-
require "bundler/setup"
|
1
|
+
require 'rake/testtask'
|
4
2
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
3
|
+
desc 'Run the tests.'
|
4
|
+
Rake::TestTask.new do |t|
|
5
|
+
t.libs << 'lib'
|
6
|
+
t.libs << 'test'
|
7
|
+
t.pattern = 'test/**/*_test.rb'
|
8
|
+
t.verbose = false
|
11
9
|
end
|
12
10
|
|
13
|
-
task :
|
11
|
+
task default: :test
|
data/app/models/dangling.rb
CHANGED
@@ -1,31 +1,28 @@
|
|
1
1
|
# extended Relation: extracts relation from rows
|
2
|
-
class Relation < ActiveRecord::Base
|
3
2
|
|
3
|
+
class Relation < ActiveRecord::Base
|
4
4
|
def self.dangling
|
5
5
|
names = Relation.pluck(:name).uniq
|
6
6
|
models = []
|
7
|
-
names.each { |name|
|
8
|
-
models |= name.split(' ')
|
9
|
-
}
|
7
|
+
names.each { |name| models |= name.split(' ') }
|
10
8
|
hsh = {}
|
11
|
-
models.each
|
9
|
+
models.each do |class_name|
|
12
10
|
klass = class_name.constantize
|
13
11
|
ids = klass.pluck(:id)
|
14
12
|
idx = Relation.where('name like ?', "#{class_name} %").pluck(:from_id)
|
15
13
|
idy = Relation.where('name like ?', "% #{class_name}").pluck(:to_id)
|
16
14
|
arr = (idx | idy) - ids
|
17
|
-
hsh[class_name] = arr
|
18
|
-
|
15
|
+
hsh[class_name] = arr if arr.length.positive?
|
16
|
+
end
|
19
17
|
hsh
|
20
18
|
end
|
21
19
|
|
22
20
|
def self.remove_dangling(hsh)
|
23
|
-
hsh.each
|
24
|
-
arr.each
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
hsh.each do |name, arr|
|
22
|
+
arr.each do |idx|
|
23
|
+
Relation.where(from_id: idx).where('name like ?', "#{name} %").delete_all
|
24
|
+
Relation.where(to_id: idx).where('name like ?', "% #{name}").delete_all
|
25
|
+
end
|
26
|
+
end
|
29
27
|
end
|
30
|
-
|
31
28
|
end
|
data/app/models/relation.rb
CHANGED
@@ -1,8 +1,7 @@
|
|
1
1
|
class Relation < ActiveRecord::Base
|
2
|
-
|
3
2
|
def self.add_raw(name, from_id, to_id)
|
4
3
|
hsh = { name: name, from_id: from_id, to_id: to_id }
|
5
|
-
Relation.create!(hsh)
|
4
|
+
Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
6
5
|
end
|
7
6
|
|
8
7
|
def self.delete_raw(name, from_id, to_id)
|
@@ -17,5 +16,4 @@ class Relation < ActiveRecord::Base
|
|
17
16
|
def self.followers_raw(name, to_id)
|
18
17
|
Relation.where(name: name, to_id: to_id).pluck(:from_id)
|
19
18
|
end
|
20
|
-
|
21
19
|
end
|
data/app/models/relation_ext.rb
CHANGED
@@ -1,9 +1,8 @@
|
|
1
1
|
# extended Relation: extracts relation from rows
|
2
2
|
class Relation < ActiveRecord::Base
|
3
|
-
|
4
3
|
def self.add(row_from, row_to)
|
5
4
|
hsh = normalize(row_from, row_to)
|
6
|
-
Relation.create!(hsh)
|
5
|
+
Relation.create!(hsh) if Relation.where(hsh).first.nil?
|
7
6
|
end
|
8
7
|
|
9
8
|
def self.delete(row_from, row_to)
|
@@ -25,9 +24,9 @@ class Relation < ActiveRecord::Base
|
|
25
24
|
klass.where(id: ids)
|
26
25
|
end
|
27
26
|
|
28
|
-
private
|
29
27
|
def self.name_id(resource)
|
30
|
-
raise 'missing resource'
|
28
|
+
raise 'missing resource' unless resource
|
29
|
+
|
31
30
|
[resource.class.name, resource.id]
|
32
31
|
end
|
33
32
|
|
@@ -40,9 +39,8 @@ class Relation < ActiveRecord::Base
|
|
40
39
|
|
41
40
|
def self.normalize2(kind, row)
|
42
41
|
klass = kind
|
43
|
-
klass = kind.constantize
|
42
|
+
klass = kind.constantize unless klass.is_a?(Class)
|
44
43
|
name, id = name_id(row)
|
45
44
|
[klass, name, id]
|
46
45
|
end
|
47
|
-
|
48
46
|
end
|
data/gemfiles/rails_5.2.gemfile
CHANGED
data/lib/relation.rb
CHANGED
data/lib/relation/engine.rb
CHANGED
@@ -1,25 +1,26 @@
|
|
1
|
+
# rubocop: disable all
|
2
|
+
|
1
3
|
module ModRelation
|
2
4
|
class Engine < Rails::Engine
|
3
5
|
isolate_namespace ModRelation
|
4
6
|
|
5
|
-
# # https://github.com/rails/rails/issues/22261
|
6
|
-
# initializer :append_migrations do |app|
|
7
|
-
# config.paths['db/migrate'].expanded.each do |path|
|
8
|
-
# app.config.paths['db/migrate'] << path
|
9
|
-
# ActiveRecord::Migrator.migrations_paths << path
|
10
|
-
# end
|
11
|
-
# end
|
7
|
+
# # https://github.com/rails/rails/issues/22261
|
8
|
+
# initializer :append_migrations do |app|
|
9
|
+
# config.paths['db/migrate'].expanded.each do |path|
|
10
|
+
# app.config.paths['db/migrate'] << path
|
11
|
+
# ActiveRecord::Migrator.migrations_paths << path
|
12
|
+
# end
|
13
|
+
# end
|
12
14
|
|
15
|
+
# # https://github.com/rails/rails/issues/22261
|
16
|
+
# module ActiveRecord
|
17
|
+
# #module ActiveRecord::Current
|
18
|
+
# class Schema < Migration
|
19
|
+
# def migrations_paths
|
20
|
+
# (ActiveRecord::Migrator.migrations_paths +
|
21
|
+
# Rails.application.paths['db/migrate'].to_a).uniq
|
22
|
+
# end
|
23
|
+
# end
|
24
|
+
# end
|
13
25
|
end
|
14
26
|
end
|
15
|
-
|
16
|
-
|
17
|
-
# # https://github.com/rails/rails/issues/22261
|
18
|
-
# module ActiveRecord
|
19
|
-
# #module ActiveRecord::Current
|
20
|
-
# class Schema < Migration
|
21
|
-
# def migrations_paths
|
22
|
-
# (ActiveRecord::Migrator.migrations_paths + Rails.application.paths['db/migrate'].to_a).uniq
|
23
|
-
# end
|
24
|
-
# end
|
25
|
-
# end
|
data/lib/relation/version.rb
CHANGED
@@ -1,4 +1,12 @@
|
|
1
|
+
# rubocop: disable all
|
2
|
+
|
1
3
|
module ModRelation
|
2
|
-
VERSION = '0.3.
|
3
|
-
#
|
4
|
+
VERSION = '0.3.7' # 2020-07-14
|
5
|
+
# VERSION = '0.3.6' # 2020-04-27
|
6
|
+
# VERSION = '0.3.5' # 2020-03-03
|
7
|
+
# VERSION = '0.3.4' # 2019-10-04
|
8
|
+
# VERSION = '0.3.3' # 2019-03-23
|
9
|
+
# VERSION = '0.3.2' # 2019-03-05
|
10
|
+
# VERSION = '0.3.1' # 2018-08-05
|
11
|
+
# VERSION = '0.3.0' #
|
4
12
|
end
|
data/relation.gemspec
CHANGED
@@ -22,13 +22,12 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
23
23
|
s.require_paths = ['lib', 'app']
|
24
24
|
|
25
|
-
s.add_dependency 'activerecord', '~>
|
25
|
+
s.add_dependency 'activerecord', '~>6'
|
26
26
|
|
27
|
-
s.add_development_dependency '
|
28
|
-
s.add_development_dependency '
|
29
|
-
s.add_development_dependency '
|
27
|
+
s.add_development_dependency 'bundler', '~>1'
|
28
|
+
s.add_development_dependency 'rake', '~>13'
|
29
|
+
s.add_development_dependency 'appraisal', '~>2'
|
30
30
|
|
31
|
-
s.add_development_dependency 'minitest'
|
32
|
-
s.add_development_dependency '
|
33
|
-
s.add_development_dependency 'sqlite3'
|
31
|
+
s.add_development_dependency 'minitest', '~>5'
|
32
|
+
s.add_development_dependency 'sqlite3', '~>1'
|
34
33
|
end
|
data/test/support/database.rb
CHANGED
@@ -1,22 +1,22 @@
|
|
1
1
|
class DB
|
2
|
-
ActiveRecord::Base.establish_connection adapter:
|
3
|
-
|
2
|
+
ActiveRecord::Base.establish_connection adapter: 'sqlite3',
|
3
|
+
database: ':memory:'
|
4
4
|
|
5
5
|
def self.setup
|
6
6
|
capture_stdout do
|
7
7
|
ActiveRecord::Base.logger
|
8
8
|
ActiveRecord::Schema.define(version: 1) do
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
9
|
+
create_table :orders do |t|
|
10
|
+
t.column :name, :string
|
11
|
+
end
|
12
|
+
create_table :users do |t|
|
13
|
+
t.column :name, :string
|
14
|
+
end
|
15
|
+
create_table :relations, id: false do |t|
|
16
|
+
t.string :name
|
17
|
+
t.references :from, null: false
|
18
|
+
t.references :to, null: false
|
19
|
+
end
|
20
20
|
end
|
21
21
|
|
22
22
|
Order.reset_column_information
|
@@ -26,17 +26,16 @@ class DB
|
|
26
26
|
def self.teardown
|
27
27
|
if ActiveRecord::Base.connection.respond_to?(:data_sources)
|
28
28
|
ActiveRecord::Base.connection.data_sources.each do |table|
|
29
|
-
|
29
|
+
ActiveRecord::Base.connection.drop_table(table)
|
30
30
|
end
|
31
31
|
else
|
32
32
|
ActiveRecord::Base.connection.tables.each do |table|
|
33
|
-
|
33
|
+
ActiveRecord::Base.connection.drop_table(table)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
37
37
|
|
38
|
-
|
39
|
-
def self.capture_stdout(&block)
|
38
|
+
def self.capture_stdout
|
40
39
|
real_stdout = $stdout
|
41
40
|
|
42
41
|
$stdout = StringIO.new
|
@@ -45,7 +44,6 @@ class DB
|
|
45
44
|
ensure
|
46
45
|
$stdout = real_stdout
|
47
46
|
end
|
48
|
-
|
49
47
|
end
|
50
48
|
|
51
49
|
class Order < ActiveRecord::Base
|
@@ -54,6 +52,6 @@ end
|
|
54
52
|
class User < ActiveRecord::Base
|
55
53
|
end
|
56
54
|
|
57
|
-
require_relative
|
58
|
-
require_relative
|
59
|
-
require_relative
|
55
|
+
require_relative '../../app/models/relation'
|
56
|
+
require_relative '../../app/models/relation_ext'
|
57
|
+
require_relative '../../app/models/dangling'
|
data/test/test_helper.rb
CHANGED
@@ -1,14 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
if ENV['COVERAGE']
|
2
|
+
require 'simplecov'
|
3
|
+
SimpleCov.start do
|
4
|
+
add_filter '/test/'
|
5
|
+
end
|
4
6
|
end
|
5
7
|
|
6
|
-
ENV["RAILS_ENV"] = "test"
|
7
8
|
require 'active_record'
|
8
9
|
require 'minitest/autorun'
|
9
10
|
|
10
11
|
# Load support files
|
11
|
-
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
12
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].sort.each { |f| require f }
|
12
13
|
|
13
14
|
class Minitest::Test
|
14
15
|
require 'active_support/testing/assertions'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: relation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,98 +16,84 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '6'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
27
|
-
- !ruby/object:Gem::Dependency
|
28
|
-
name: appraisal
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
30
|
-
requirements:
|
31
|
-
- - ">="
|
32
|
-
- !ruby/object:Gem::Version
|
33
|
-
version: '0'
|
34
|
-
type: :development
|
35
|
-
prerelease: false
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - ">="
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '0'
|
26
|
+
version: '6'
|
41
27
|
- !ruby/object:Gem::Dependency
|
42
28
|
name: bundler
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
44
30
|
requirements:
|
45
|
-
- - "
|
31
|
+
- - "~>"
|
46
32
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
33
|
+
version: '1'
|
48
34
|
type: :development
|
49
35
|
prerelease: false
|
50
36
|
version_requirements: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
|
-
- - "
|
38
|
+
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '1'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
|
-
- - "
|
45
|
+
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '13'
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
|
-
- - "
|
52
|
+
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '13'
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
56
|
+
name: appraisal
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
|
-
- - "
|
59
|
+
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '2'
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
|
-
- - "
|
66
|
+
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '2'
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
70
|
+
name: minitest
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
|
-
- - "
|
73
|
+
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '5'
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
|
-
- - "
|
80
|
+
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '
|
82
|
+
version: '5'
|
97
83
|
- !ruby/object:Gem::Dependency
|
98
84
|
name: sqlite3
|
99
85
|
requirement: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
|
-
- - "
|
87
|
+
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '
|
89
|
+
version: '1'
|
104
90
|
type: :development
|
105
91
|
prerelease: false
|
106
92
|
version_requirements: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
|
-
- - "
|
94
|
+
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
96
|
+
version: '1'
|
111
97
|
description: " A Rails gem that adds simple support for organizing ActiveRecord
|
112
98
|
models.\n"
|
113
99
|
email:
|
@@ -117,6 +103,7 @@ extensions: []
|
|
117
103
|
extra_rdoc_files: []
|
118
104
|
files:
|
119
105
|
- ".gitignore"
|
106
|
+
- ".rubocop.yml"
|
120
107
|
- ".ruby-gemset"
|
121
108
|
- ".ruby-version"
|
122
109
|
- ".travis.yml"
|
@@ -131,9 +118,8 @@ files:
|
|
131
118
|
- app/models/relation.rb
|
132
119
|
- app/models/relation_ext.rb
|
133
120
|
- db/migrate/20150810152808_relation.rb
|
134
|
-
- gemfiles/rails_5.0.gemfile
|
135
|
-
- gemfiles/rails_5.1.gemfile
|
136
121
|
- gemfiles/rails_5.2.gemfile
|
122
|
+
- gemfiles/rails_6.0.gemfile
|
137
123
|
- lib/relation.rb
|
138
124
|
- lib/relation/engine.rb
|
139
125
|
- lib/relation/version.rb
|
@@ -163,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
149
|
- !ruby/object:Gem::Version
|
164
150
|
version: '0'
|
165
151
|
requirements: []
|
166
|
-
|
167
|
-
rubygems_version: 2.7.6
|
152
|
+
rubygems_version: 3.0.8
|
168
153
|
signing_key:
|
169
154
|
specification_version: 4
|
170
155
|
summary: Provides a simple directed relationship between active_record models.
|