relation 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -1
- data/.ruby-version +1 -1
- data/.travis.yml +28 -5
- data/Appraisals +12 -0
- data/Gemfile +6 -6
- data/Gemfile.lock +72 -65
- data/MIT-LICENSE +1 -1
- data/README.md +9 -4
- data/Rakefile +4 -0
- data/gemfiles/rails_4.gemfile +14 -0
- data/gemfiles/rails_4.gemfile.lock +130 -0
- data/gemfiles/rails_5.0.gemfile +13 -0
- data/gemfiles/rails_5.0.gemfile.lock +135 -0
- data/gemfiles/rails_5.1.gemfile +13 -0
- data/gemfiles/rails_5.1.gemfile.lock +135 -0
- data/lib/relation/version.rb +1 -1
- data/relation.gemspec +10 -4
- metadata +14 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc1fc94f49f2026783203f4052e3efbe966141a4
|
4
|
+
data.tar.gz: 8c8228ad1b046a0e03ff35f4344e1cc495f256c7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6502e358961dd1be8c34a6086957f12c5d0de6addefd926b9e0e7282edf26dbf9b50000feeafaab0d06b0c836b994a9182c8b9c47b1682a8b511952c8930de0e
|
7
|
+
data.tar.gz: 904d2dc2698086d31107baf257d5d04a4f6424ac94f89d5ef0bdd9711ebd0adaf542abc4cd9d326e69b6054feebf811f37b4579e57beb718f5345e32e9f7449d
|
data/.ruby-gemset
CHANGED
@@ -1 +1 @@
|
|
1
|
-
rails-5.
|
1
|
+
rails-5.1
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby-2.
|
1
|
+
ruby-2.4.1
|
data/.travis.yml
CHANGED
@@ -1,14 +1,37 @@
|
|
1
1
|
language: ruby
|
2
|
-
|
2
|
+
sudo: false
|
3
|
+
|
4
|
+
## speeding up
|
5
|
+
#env:
|
6
|
+
# - TEST_SUITE=units
|
7
|
+
# - TEST_SUITE=integration
|
8
|
+
#
|
9
|
+
#script: "bundle exec rake test:$TEST_SUITE"
|
10
|
+
|
11
|
+
#bundler_args: --without test
|
12
|
+
#bundler_args: --without production
|
13
|
+
#bundler_args: --without development
|
14
|
+
|
3
15
|
before_install: rm -f Gemfile.lock
|
4
16
|
|
5
17
|
rvm:
|
6
|
-
|
18
|
+
- 2.4.1
|
7
19
|
- 2.3.1
|
20
|
+
# - 2.2.7 # working for Rails 5
|
21
|
+
# - 2.2.0 # failing for Rails 5
|
8
22
|
|
9
|
-
|
10
|
-
-
|
11
|
-
-
|
23
|
+
gemfile:
|
24
|
+
- gemfiles/rails_5.1.gemfile
|
25
|
+
- gemfiles/rails_5.0.gemfile
|
26
|
+
- gemfiles/rails_4.gemfile
|
12
27
|
|
13
28
|
notifications:
|
14
29
|
email: false
|
30
|
+
|
31
|
+
matrix:
|
32
|
+
fast_finish: true
|
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
|
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -2,10 +2,10 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
gemspec
|
4
4
|
|
5
|
-
|
6
|
-
gem 'rails', version ? "~> #{version}" : ">= 5.0"
|
5
|
+
gem 'rails'
|
7
6
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
group :development do
|
8
|
+
gem 'bundler'
|
9
|
+
gem 'rake'
|
10
|
+
gem 'appraisal'
|
11
|
+
end
|
data/Gemfile.lock
CHANGED
@@ -1,116 +1,120 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relation (0.1.
|
4
|
+
relation (0.1.2)
|
5
5
|
activerecord
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
actioncable (5.
|
11
|
-
actionpack (= 5.
|
12
|
-
nio4r (~>
|
10
|
+
actioncable (5.1.1)
|
11
|
+
actionpack (= 5.1.1)
|
12
|
+
nio4r (~> 2.0)
|
13
13
|
websocket-driver (~> 0.6.1)
|
14
|
-
actionmailer (5.
|
15
|
-
actionpack (= 5.
|
16
|
-
actionview (= 5.
|
17
|
-
activejob (= 5.
|
14
|
+
actionmailer (5.1.1)
|
15
|
+
actionpack (= 5.1.1)
|
16
|
+
actionview (= 5.1.1)
|
17
|
+
activejob (= 5.1.1)
|
18
18
|
mail (~> 2.5, >= 2.5.4)
|
19
19
|
rails-dom-testing (~> 2.0)
|
20
|
-
actionpack (5.
|
21
|
-
actionview (= 5.
|
22
|
-
activesupport (= 5.
|
20
|
+
actionpack (5.1.1)
|
21
|
+
actionview (= 5.1.1)
|
22
|
+
activesupport (= 5.1.1)
|
23
23
|
rack (~> 2.0)
|
24
24
|
rack-test (~> 0.6.3)
|
25
25
|
rails-dom-testing (~> 2.0)
|
26
26
|
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
-
actionview (5.
|
28
|
-
activesupport (= 5.
|
27
|
+
actionview (5.1.1)
|
28
|
+
activesupport (= 5.1.1)
|
29
29
|
builder (~> 3.1)
|
30
|
-
|
30
|
+
erubi (~> 1.4)
|
31
31
|
rails-dom-testing (~> 2.0)
|
32
|
-
rails-html-sanitizer (~> 1.0, >= 1.0.
|
33
|
-
activejob (5.
|
34
|
-
activesupport (= 5.
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.1.1)
|
34
|
+
activesupport (= 5.1.1)
|
35
35
|
globalid (>= 0.3.6)
|
36
|
-
activemodel (5.
|
37
|
-
activesupport (= 5.
|
38
|
-
activerecord (5.
|
39
|
-
activemodel (= 5.
|
40
|
-
activesupport (= 5.
|
41
|
-
arel (~>
|
42
|
-
activesupport (5.
|
36
|
+
activemodel (5.1.1)
|
37
|
+
activesupport (= 5.1.1)
|
38
|
+
activerecord (5.1.1)
|
39
|
+
activemodel (= 5.1.1)
|
40
|
+
activesupport (= 5.1.1)
|
41
|
+
arel (~> 8.0)
|
42
|
+
activesupport (5.1.1)
|
43
43
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
44
|
i18n (~> 0.7)
|
45
45
|
minitest (~> 5.1)
|
46
46
|
tzinfo (~> 1.1)
|
47
|
-
|
48
|
-
|
49
|
-
|
47
|
+
appraisal (2.2.0)
|
48
|
+
bundler
|
49
|
+
rake
|
50
|
+
thor (>= 0.14.0)
|
51
|
+
arel (8.0.0)
|
52
|
+
builder (3.2.3)
|
53
|
+
concurrent-ruby (1.0.5)
|
50
54
|
docile (1.1.5)
|
51
|
-
|
52
|
-
globalid (0.
|
53
|
-
activesupport (>= 4.
|
54
|
-
i18n (0.
|
55
|
-
json (2.0
|
55
|
+
erubi (1.6.0)
|
56
|
+
globalid (0.4.0)
|
57
|
+
activesupport (>= 4.2.0)
|
58
|
+
i18n (0.8.4)
|
59
|
+
json (2.1.0)
|
56
60
|
loofah (2.0.3)
|
57
61
|
nokogiri (>= 1.5.9)
|
58
|
-
mail (2.6.
|
62
|
+
mail (2.6.5)
|
59
63
|
mime-types (>= 1.16, < 4)
|
60
64
|
method_source (0.8.2)
|
61
65
|
mime-types (3.1)
|
62
66
|
mime-types-data (~> 3.2015)
|
63
67
|
mime-types-data (3.2016.0521)
|
64
|
-
mini_portile2 (2.
|
65
|
-
minitest (5.10.
|
66
|
-
nio4r (
|
67
|
-
nokogiri (1.
|
68
|
-
mini_portile2 (~> 2.
|
69
|
-
rack (2.0.
|
68
|
+
mini_portile2 (2.2.0)
|
69
|
+
minitest (5.10.2)
|
70
|
+
nio4r (2.1.0)
|
71
|
+
nokogiri (1.8.0)
|
72
|
+
mini_portile2 (~> 2.2.0)
|
73
|
+
rack (2.0.3)
|
70
74
|
rack-test (0.6.3)
|
71
75
|
rack (>= 1.0)
|
72
|
-
rails (5.
|
73
|
-
actioncable (= 5.
|
74
|
-
actionmailer (= 5.
|
75
|
-
actionpack (= 5.
|
76
|
-
actionview (= 5.
|
77
|
-
activejob (= 5.
|
78
|
-
activemodel (= 5.
|
79
|
-
activerecord (= 5.
|
80
|
-
activesupport (= 5.
|
76
|
+
rails (5.1.1)
|
77
|
+
actioncable (= 5.1.1)
|
78
|
+
actionmailer (= 5.1.1)
|
79
|
+
actionpack (= 5.1.1)
|
80
|
+
actionview (= 5.1.1)
|
81
|
+
activejob (= 5.1.1)
|
82
|
+
activemodel (= 5.1.1)
|
83
|
+
activerecord (= 5.1.1)
|
84
|
+
activesupport (= 5.1.1)
|
81
85
|
bundler (>= 1.3.0, < 2.0)
|
82
|
-
railties (= 5.
|
86
|
+
railties (= 5.1.1)
|
83
87
|
sprockets-rails (>= 2.0.0)
|
84
|
-
rails-dom-testing (2.0.
|
85
|
-
activesupport (>= 4.2.0
|
86
|
-
nokogiri (
|
88
|
+
rails-dom-testing (2.0.3)
|
89
|
+
activesupport (>= 4.2.0)
|
90
|
+
nokogiri (>= 1.6)
|
87
91
|
rails-html-sanitizer (1.0.3)
|
88
92
|
loofah (~> 2.0)
|
89
|
-
railties (5.
|
90
|
-
actionpack (= 5.
|
91
|
-
activesupport (= 5.
|
93
|
+
railties (5.1.1)
|
94
|
+
actionpack (= 5.1.1)
|
95
|
+
activesupport (= 5.1.1)
|
92
96
|
method_source
|
93
97
|
rake (>= 0.8.7)
|
94
98
|
thor (>= 0.18.1, < 2.0)
|
95
|
-
rake (
|
96
|
-
simplecov (0.
|
99
|
+
rake (12.0.0)
|
100
|
+
simplecov (0.14.1)
|
97
101
|
docile (~> 1.1.0)
|
98
102
|
json (>= 1.8, < 3)
|
99
103
|
simplecov-html (~> 0.10.0)
|
100
|
-
simplecov-html (0.10.
|
101
|
-
sprockets (3.7.
|
104
|
+
simplecov-html (0.10.1)
|
105
|
+
sprockets (3.7.1)
|
102
106
|
concurrent-ruby (~> 1.0)
|
103
107
|
rack (> 1, < 3)
|
104
108
|
sprockets-rails (3.2.0)
|
105
109
|
actionpack (>= 4.0)
|
106
110
|
activesupport (>= 4.0)
|
107
111
|
sprockets (>= 3.0.0)
|
108
|
-
sqlite3 (1.3.
|
112
|
+
sqlite3 (1.3.13)
|
109
113
|
thor (0.19.4)
|
110
|
-
thread_safe (0.3.
|
111
|
-
tzinfo (1.2.
|
114
|
+
thread_safe (0.3.6)
|
115
|
+
tzinfo (1.2.3)
|
112
116
|
thread_safe (~> 0.1)
|
113
|
-
websocket-driver (0.6.
|
117
|
+
websocket-driver (0.6.5)
|
114
118
|
websocket-extensions (>= 0.1.0)
|
115
119
|
websocket-extensions (0.1.2)
|
116
120
|
|
@@ -118,11 +122,14 @@ PLATFORMS
|
|
118
122
|
ruby
|
119
123
|
|
120
124
|
DEPENDENCIES
|
125
|
+
appraisal
|
126
|
+
bundler
|
121
127
|
minitest
|
122
|
-
rails
|
128
|
+
rails
|
129
|
+
rake
|
123
130
|
relation!
|
124
131
|
simplecov
|
125
132
|
sqlite3
|
126
133
|
|
127
134
|
BUNDLED WITH
|
128
|
-
1.
|
135
|
+
1.14.6
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Relation
|
2
2
|
[![Build Status](http://img.shields.io/travis/matique/relation.svg)](https://travis-ci.org/matique/relation)
|
3
3
|
[![Dependency Status](http://img.shields.io/gemnasium/matique/relation.svg)](https://gemnasium.com/matique/relation)
|
4
|
-
[![Code Climate](http://img.shields.io/codeclimate/github/matique/relation.svg)](https://codeclimate.com/github/matique/relation)
|
5
4
|
[![Gem Version](http://img.shields.io/gem/v/relation.svg)](https://rubygems.org/gems/relation)
|
6
5
|
|
7
6
|
Relation is a Rails gem that adds relationships to
|
@@ -12,6 +11,7 @@ no additional column/field is required in the particular tables.
|
|
12
11
|
A habtm (has and belong to many) association of Rails requires an
|
13
12
|
additional table containing the id's of the associated records.
|
14
13
|
The name of this table indicates which tables are being associated.
|
14
|
+
|
15
15
|
Relation just move the name of the association table into an additional
|
16
16
|
column enabling relationship between any ActiveRecords in any,
|
17
17
|
including themselves, tables.
|
@@ -40,7 +40,7 @@ You may copy the migration "db/migrate/20150810152808_relation.rb"
|
|
40
40
|
from the gem.
|
41
41
|
The migration is then done, as usual, by:
|
42
42
|
|
43
|
-
$
|
43
|
+
$ rails db:migrate
|
44
44
|
|
45
45
|
## Usage
|
46
46
|
|
@@ -68,6 +68,11 @@ and cleaned by:
|
|
68
68
|
|
69
69
|
Relation.remove_dangling hsh
|
70
70
|
|
71
|
-
|
71
|
+
Rails 5
|
72
|
+
-------
|
73
|
+
|
74
|
+
This gem is intended for Rails 5.
|
75
|
+
Older Rails versions may use "gem 'relation', '= 0.1.1'".
|
72
76
|
|
73
|
-
|
77
|
+
License MIT
|
78
|
+
-----------
|
data/Rakefile
CHANGED
@@ -0,0 +1,130 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
relation (0.1.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actionmailer (4.2.3)
|
11
|
+
actionpack (= 4.2.3)
|
12
|
+
actionview (= 4.2.3)
|
13
|
+
activejob (= 4.2.3)
|
14
|
+
mail (~> 2.5, >= 2.5.4)
|
15
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
16
|
+
actionpack (4.2.3)
|
17
|
+
actionview (= 4.2.3)
|
18
|
+
activesupport (= 4.2.3)
|
19
|
+
rack (~> 1.6)
|
20
|
+
rack-test (~> 0.6.2)
|
21
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
22
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
23
|
+
actionview (4.2.3)
|
24
|
+
activesupport (= 4.2.3)
|
25
|
+
builder (~> 3.1)
|
26
|
+
erubis (~> 2.7.0)
|
27
|
+
rails-dom-testing (~> 1.0, >= 1.0.5)
|
28
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
29
|
+
activejob (4.2.3)
|
30
|
+
activesupport (= 4.2.3)
|
31
|
+
globalid (>= 0.3.0)
|
32
|
+
activemodel (4.2.3)
|
33
|
+
activesupport (= 4.2.3)
|
34
|
+
builder (~> 3.1)
|
35
|
+
activerecord (4.2.3)
|
36
|
+
activemodel (= 4.2.3)
|
37
|
+
activesupport (= 4.2.3)
|
38
|
+
arel (~> 6.0)
|
39
|
+
activesupport (4.2.3)
|
40
|
+
i18n (~> 0.7)
|
41
|
+
json (~> 1.7, >= 1.7.7)
|
42
|
+
minitest (~> 5.1)
|
43
|
+
thread_safe (~> 0.3, >= 0.3.4)
|
44
|
+
tzinfo (~> 1.1)
|
45
|
+
appraisal (2.2.0)
|
46
|
+
bundler
|
47
|
+
rake
|
48
|
+
thor (>= 0.14.0)
|
49
|
+
arel (6.0.4)
|
50
|
+
builder (3.2.3)
|
51
|
+
concurrent-ruby (1.0.5)
|
52
|
+
docile (1.1.5)
|
53
|
+
erubis (2.7.0)
|
54
|
+
globalid (0.4.0)
|
55
|
+
activesupport (>= 4.2.0)
|
56
|
+
i18n (0.8.4)
|
57
|
+
json (1.8.6)
|
58
|
+
loofah (2.0.3)
|
59
|
+
nokogiri (>= 1.5.9)
|
60
|
+
mail (2.6.5)
|
61
|
+
mime-types (>= 1.16, < 4)
|
62
|
+
mime-types (3.1)
|
63
|
+
mime-types-data (~> 3.2015)
|
64
|
+
mime-types-data (3.2016.0521)
|
65
|
+
mini_portile2 (2.2.0)
|
66
|
+
minitest (5.10.2)
|
67
|
+
nokogiri (1.8.0)
|
68
|
+
mini_portile2 (~> 2.2.0)
|
69
|
+
rack (1.6.8)
|
70
|
+
rack-test (0.6.3)
|
71
|
+
rack (>= 1.0)
|
72
|
+
rails (4.2.3)
|
73
|
+
actionmailer (= 4.2.3)
|
74
|
+
actionpack (= 4.2.3)
|
75
|
+
actionview (= 4.2.3)
|
76
|
+
activejob (= 4.2.3)
|
77
|
+
activemodel (= 4.2.3)
|
78
|
+
activerecord (= 4.2.3)
|
79
|
+
activesupport (= 4.2.3)
|
80
|
+
bundler (>= 1.3.0, < 2.0)
|
81
|
+
railties (= 4.2.3)
|
82
|
+
sprockets-rails
|
83
|
+
rails-deprecated_sanitizer (1.0.3)
|
84
|
+
activesupport (>= 4.2.0.alpha)
|
85
|
+
rails-dom-testing (1.0.8)
|
86
|
+
activesupport (>= 4.2.0.beta, < 5.0)
|
87
|
+
nokogiri (~> 1.6)
|
88
|
+
rails-deprecated_sanitizer (>= 1.0.1)
|
89
|
+
rails-html-sanitizer (1.0.3)
|
90
|
+
loofah (~> 2.0)
|
91
|
+
railties (4.2.3)
|
92
|
+
actionpack (= 4.2.3)
|
93
|
+
activesupport (= 4.2.3)
|
94
|
+
rake (>= 0.8.7)
|
95
|
+
thor (>= 0.18.1, < 2.0)
|
96
|
+
rake (12.0.0)
|
97
|
+
simplecov (0.14.1)
|
98
|
+
docile (~> 1.1.0)
|
99
|
+
json (>= 1.8, < 3)
|
100
|
+
simplecov-html (~> 0.10.0)
|
101
|
+
simplecov-html (0.10.1)
|
102
|
+
sprockets (3.7.1)
|
103
|
+
concurrent-ruby (~> 1.0)
|
104
|
+
rack (> 1, < 3)
|
105
|
+
sprockets-rails (3.2.0)
|
106
|
+
actionpack (>= 4.0)
|
107
|
+
activesupport (>= 4.0)
|
108
|
+
sprockets (>= 3.0.0)
|
109
|
+
sqlite3 (1.3.13)
|
110
|
+
thor (0.19.4)
|
111
|
+
thread_safe (0.3.6)
|
112
|
+
tzinfo (1.2.3)
|
113
|
+
thread_safe (~> 0.1)
|
114
|
+
|
115
|
+
PLATFORMS
|
116
|
+
ruby
|
117
|
+
|
118
|
+
DEPENDENCIES
|
119
|
+
appraisal
|
120
|
+
bundler
|
121
|
+
minitest
|
122
|
+
rack (< 2)
|
123
|
+
rails (= 4.2.3)
|
124
|
+
rake
|
125
|
+
relation!
|
126
|
+
simplecov
|
127
|
+
sqlite3
|
128
|
+
|
129
|
+
BUNDLED WITH
|
130
|
+
1.14.6
|
@@ -0,0 +1,135 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
relation (0.1.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.0.3)
|
11
|
+
actionpack (= 5.0.3)
|
12
|
+
nio4r (>= 1.2, < 3.0)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.0.3)
|
15
|
+
actionpack (= 5.0.3)
|
16
|
+
actionview (= 5.0.3)
|
17
|
+
activejob (= 5.0.3)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.0.3)
|
21
|
+
actionview (= 5.0.3)
|
22
|
+
activesupport (= 5.0.3)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (~> 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.0.3)
|
28
|
+
activesupport (= 5.0.3)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubis (~> 2.7.0)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.0.3)
|
34
|
+
activesupport (= 5.0.3)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.0.3)
|
37
|
+
activesupport (= 5.0.3)
|
38
|
+
activerecord (5.0.3)
|
39
|
+
activemodel (= 5.0.3)
|
40
|
+
activesupport (= 5.0.3)
|
41
|
+
arel (~> 7.0)
|
42
|
+
activesupport (5.0.3)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
appraisal (2.2.0)
|
48
|
+
bundler
|
49
|
+
rake
|
50
|
+
thor (>= 0.14.0)
|
51
|
+
arel (7.1.4)
|
52
|
+
builder (3.2.3)
|
53
|
+
concurrent-ruby (1.0.5)
|
54
|
+
docile (1.1.5)
|
55
|
+
erubis (2.7.0)
|
56
|
+
globalid (0.4.0)
|
57
|
+
activesupport (>= 4.2.0)
|
58
|
+
i18n (0.8.4)
|
59
|
+
json (2.1.0)
|
60
|
+
loofah (2.0.3)
|
61
|
+
nokogiri (>= 1.5.9)
|
62
|
+
mail (2.6.5)
|
63
|
+
mime-types (>= 1.16, < 4)
|
64
|
+
method_source (0.8.2)
|
65
|
+
mime-types (3.1)
|
66
|
+
mime-types-data (~> 3.2015)
|
67
|
+
mime-types-data (3.2016.0521)
|
68
|
+
mini_portile2 (2.2.0)
|
69
|
+
minitest (5.10.2)
|
70
|
+
nio4r (2.1.0)
|
71
|
+
nokogiri (1.8.0)
|
72
|
+
mini_portile2 (~> 2.2.0)
|
73
|
+
rack (2.0.3)
|
74
|
+
rack-test (0.6.3)
|
75
|
+
rack (>= 1.0)
|
76
|
+
rails (5.0.3)
|
77
|
+
actioncable (= 5.0.3)
|
78
|
+
actionmailer (= 5.0.3)
|
79
|
+
actionpack (= 5.0.3)
|
80
|
+
actionview (= 5.0.3)
|
81
|
+
activejob (= 5.0.3)
|
82
|
+
activemodel (= 5.0.3)
|
83
|
+
activerecord (= 5.0.3)
|
84
|
+
activesupport (= 5.0.3)
|
85
|
+
bundler (>= 1.3.0, < 2.0)
|
86
|
+
railties (= 5.0.3)
|
87
|
+
sprockets-rails (>= 2.0.0)
|
88
|
+
rails-dom-testing (2.0.3)
|
89
|
+
activesupport (>= 4.2.0)
|
90
|
+
nokogiri (>= 1.6)
|
91
|
+
rails-html-sanitizer (1.0.3)
|
92
|
+
loofah (~> 2.0)
|
93
|
+
railties (5.0.3)
|
94
|
+
actionpack (= 5.0.3)
|
95
|
+
activesupport (= 5.0.3)
|
96
|
+
method_source
|
97
|
+
rake (>= 0.8.7)
|
98
|
+
thor (>= 0.18.1, < 2.0)
|
99
|
+
rake (12.0.0)
|
100
|
+
simplecov (0.14.1)
|
101
|
+
docile (~> 1.1.0)
|
102
|
+
json (>= 1.8, < 3)
|
103
|
+
simplecov-html (~> 0.10.0)
|
104
|
+
simplecov-html (0.10.1)
|
105
|
+
sprockets (3.7.1)
|
106
|
+
concurrent-ruby (~> 1.0)
|
107
|
+
rack (> 1, < 3)
|
108
|
+
sprockets-rails (3.2.0)
|
109
|
+
actionpack (>= 4.0)
|
110
|
+
activesupport (>= 4.0)
|
111
|
+
sprockets (>= 3.0.0)
|
112
|
+
sqlite3 (1.3.13)
|
113
|
+
thor (0.19.4)
|
114
|
+
thread_safe (0.3.6)
|
115
|
+
tzinfo (1.2.3)
|
116
|
+
thread_safe (~> 0.1)
|
117
|
+
websocket-driver (0.6.5)
|
118
|
+
websocket-extensions (>= 0.1.0)
|
119
|
+
websocket-extensions (0.1.2)
|
120
|
+
|
121
|
+
PLATFORMS
|
122
|
+
ruby
|
123
|
+
|
124
|
+
DEPENDENCIES
|
125
|
+
appraisal
|
126
|
+
bundler
|
127
|
+
minitest
|
128
|
+
rails (~> 5.0.0)
|
129
|
+
rake
|
130
|
+
relation!
|
131
|
+
simplecov
|
132
|
+
sqlite3
|
133
|
+
|
134
|
+
BUNDLED WITH
|
135
|
+
1.14.6
|
@@ -0,0 +1,135 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ..
|
3
|
+
specs:
|
4
|
+
relation (0.1.2)
|
5
|
+
activerecord
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.1.1)
|
11
|
+
actionpack (= 5.1.1)
|
12
|
+
nio4r (~> 2.0)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.1.1)
|
15
|
+
actionpack (= 5.1.1)
|
16
|
+
actionview (= 5.1.1)
|
17
|
+
activejob (= 5.1.1)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.1.1)
|
21
|
+
actionview (= 5.1.1)
|
22
|
+
activesupport (= 5.1.1)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (~> 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.1.1)
|
28
|
+
activesupport (= 5.1.1)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubi (~> 1.4)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
33
|
+
activejob (5.1.1)
|
34
|
+
activesupport (= 5.1.1)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.1.1)
|
37
|
+
activesupport (= 5.1.1)
|
38
|
+
activerecord (5.1.1)
|
39
|
+
activemodel (= 5.1.1)
|
40
|
+
activesupport (= 5.1.1)
|
41
|
+
arel (~> 8.0)
|
42
|
+
activesupport (5.1.1)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
appraisal (2.2.0)
|
48
|
+
bundler
|
49
|
+
rake
|
50
|
+
thor (>= 0.14.0)
|
51
|
+
arel (8.0.0)
|
52
|
+
builder (3.2.3)
|
53
|
+
concurrent-ruby (1.0.5)
|
54
|
+
docile (1.1.5)
|
55
|
+
erubi (1.6.0)
|
56
|
+
globalid (0.4.0)
|
57
|
+
activesupport (>= 4.2.0)
|
58
|
+
i18n (0.8.4)
|
59
|
+
json (2.1.0)
|
60
|
+
loofah (2.0.3)
|
61
|
+
nokogiri (>= 1.5.9)
|
62
|
+
mail (2.6.5)
|
63
|
+
mime-types (>= 1.16, < 4)
|
64
|
+
method_source (0.8.2)
|
65
|
+
mime-types (3.1)
|
66
|
+
mime-types-data (~> 3.2015)
|
67
|
+
mime-types-data (3.2016.0521)
|
68
|
+
mini_portile2 (2.2.0)
|
69
|
+
minitest (5.10.2)
|
70
|
+
nio4r (2.1.0)
|
71
|
+
nokogiri (1.8.0)
|
72
|
+
mini_portile2 (~> 2.2.0)
|
73
|
+
rack (2.0.3)
|
74
|
+
rack-test (0.6.3)
|
75
|
+
rack (>= 1.0)
|
76
|
+
rails (5.1.1)
|
77
|
+
actioncable (= 5.1.1)
|
78
|
+
actionmailer (= 5.1.1)
|
79
|
+
actionpack (= 5.1.1)
|
80
|
+
actionview (= 5.1.1)
|
81
|
+
activejob (= 5.1.1)
|
82
|
+
activemodel (= 5.1.1)
|
83
|
+
activerecord (= 5.1.1)
|
84
|
+
activesupport (= 5.1.1)
|
85
|
+
bundler (>= 1.3.0, < 2.0)
|
86
|
+
railties (= 5.1.1)
|
87
|
+
sprockets-rails (>= 2.0.0)
|
88
|
+
rails-dom-testing (2.0.3)
|
89
|
+
activesupport (>= 4.2.0)
|
90
|
+
nokogiri (>= 1.6)
|
91
|
+
rails-html-sanitizer (1.0.3)
|
92
|
+
loofah (~> 2.0)
|
93
|
+
railties (5.1.1)
|
94
|
+
actionpack (= 5.1.1)
|
95
|
+
activesupport (= 5.1.1)
|
96
|
+
method_source
|
97
|
+
rake (>= 0.8.7)
|
98
|
+
thor (>= 0.18.1, < 2.0)
|
99
|
+
rake (12.0.0)
|
100
|
+
simplecov (0.14.1)
|
101
|
+
docile (~> 1.1.0)
|
102
|
+
json (>= 1.8, < 3)
|
103
|
+
simplecov-html (~> 0.10.0)
|
104
|
+
simplecov-html (0.10.1)
|
105
|
+
sprockets (3.7.1)
|
106
|
+
concurrent-ruby (~> 1.0)
|
107
|
+
rack (> 1, < 3)
|
108
|
+
sprockets-rails (3.2.0)
|
109
|
+
actionpack (>= 4.0)
|
110
|
+
activesupport (>= 4.0)
|
111
|
+
sprockets (>= 3.0.0)
|
112
|
+
sqlite3 (1.3.13)
|
113
|
+
thor (0.19.4)
|
114
|
+
thread_safe (0.3.6)
|
115
|
+
tzinfo (1.2.3)
|
116
|
+
thread_safe (~> 0.1)
|
117
|
+
websocket-driver (0.6.5)
|
118
|
+
websocket-extensions (>= 0.1.0)
|
119
|
+
websocket-extensions (0.1.2)
|
120
|
+
|
121
|
+
PLATFORMS
|
122
|
+
ruby
|
123
|
+
|
124
|
+
DEPENDENCIES
|
125
|
+
appraisal
|
126
|
+
bundler
|
127
|
+
minitest
|
128
|
+
rails (~> 5.1)
|
129
|
+
rake
|
130
|
+
relation!
|
131
|
+
simplecov
|
132
|
+
sqlite3
|
133
|
+
|
134
|
+
BUNDLED WITH
|
135
|
+
1.14.6
|
data/lib/relation/version.rb
CHANGED
@@ -1 +1 @@
|
|
1
|
-
VERSION = '0.1.
|
1
|
+
VERSION = '0.1.3'
|
data/relation.gemspec
CHANGED
@@ -4,15 +4,22 @@ require 'relation/version'
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = 'relation'
|
6
6
|
s.version = VERSION
|
7
|
+
s.summary = <<-'END'
|
8
|
+
Provides a simple directed relationship between active_record models.
|
9
|
+
END
|
10
|
+
s.description = <<-'END'
|
11
|
+
A Rails gem that adds simple support for organizing ActiveRecord models.
|
12
|
+
END
|
7
13
|
s.authors = ['Dittmar Krall']
|
8
14
|
s.email = ['dittmar.krall@matique.de']
|
9
15
|
s.homepage = 'https://github.com/matique/relation'
|
10
|
-
|
11
|
-
s.
|
16
|
+
|
17
|
+
s.license = 'MIT'
|
18
|
+
s.platform = Gem::Platform::RUBY
|
12
19
|
|
13
20
|
s.files = `git ls-files`.split("\n")
|
14
|
-
s.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
15
21
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
22
|
+
s.test_files = `git ls-files -- {test,features}/*`.split("\n")
|
16
23
|
s.require_paths = ['lib']
|
17
24
|
|
18
25
|
s.add_dependency 'activerecord'
|
@@ -21,5 +28,4 @@ Gem::Specification.new do |s|
|
|
21
28
|
s.add_development_dependency 'sqlite3'
|
22
29
|
s.add_development_dependency 'minitest'
|
23
30
|
s.add_development_dependency 'simplecov'
|
24
|
-
# s.add_development_dependency 'coveralls'
|
25
31
|
end
|
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.1.
|
4
|
+
version: 0.1.3
|
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: 2017-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -66,7 +66,8 @@ dependencies:
|
|
66
66
|
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
-
description: A gem that adds simple support for organizing ActiveRecord
|
69
|
+
description: " A Rails gem that adds simple support for organizing ActiveRecord
|
70
|
+
models.\n"
|
70
71
|
email:
|
71
72
|
- dittmar.krall@matique.de
|
72
73
|
executables: []
|
@@ -77,6 +78,7 @@ files:
|
|
77
78
|
- ".ruby-version"
|
78
79
|
- ".travis.yml"
|
79
80
|
- ".watchr"
|
81
|
+
- Appraisals
|
80
82
|
- Gemfile
|
81
83
|
- Gemfile.lock
|
82
84
|
- MIT-LICENSE
|
@@ -84,6 +86,12 @@ files:
|
|
84
86
|
- Rakefile
|
85
87
|
- app/models/relation.rb
|
86
88
|
- db/migrate/20150810152808_relation.rb
|
89
|
+
- gemfiles/rails_4.gemfile
|
90
|
+
- gemfiles/rails_4.gemfile.lock
|
91
|
+
- gemfiles/rails_5.0.gemfile
|
92
|
+
- gemfiles/rails_5.0.gemfile.lock
|
93
|
+
- gemfiles/rails_5.1.gemfile
|
94
|
+
- gemfiles/rails_5.1.gemfile.lock
|
87
95
|
- lib/relation.rb
|
88
96
|
- lib/relation/version.rb
|
89
97
|
- relation.gemspec
|
@@ -92,7 +100,8 @@ files:
|
|
92
100
|
- test/support/database.rb
|
93
101
|
- test/test_helper.rb
|
94
102
|
homepage: https://github.com/matique/relation
|
95
|
-
licenses:
|
103
|
+
licenses:
|
104
|
+
- MIT
|
96
105
|
metadata: {}
|
97
106
|
post_install_message:
|
98
107
|
rdoc_options: []
|
@@ -110,9 +119,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
110
119
|
version: '0'
|
111
120
|
requirements: []
|
112
121
|
rubyforge_project:
|
113
|
-
rubygems_version: 2.
|
122
|
+
rubygems_version: 2.6.12
|
114
123
|
signing_key:
|
115
124
|
specification_version: 4
|
116
125
|
summary: Provides a simple directed relationship between active_record models.
|
117
126
|
test_files: []
|
118
|
-
has_rdoc:
|