relation 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +5 -2
- data/README.md +17 -7
- data/lib/relation/version.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ef978d1ab357140ef5d176fdd9c0cfc1f07ce437fb34ef43f343c3178c009761
|
4
|
+
data.tar.gz: 799baed24420ccec09763e5fcf6af16ce1c7d4378517aa57f348a09febf5b8c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dc5d7c0d65fec6a3d348e05693ee5ec79457c910969b99bd953124fb74d18abd4c0fff6432f5beed7bf623fbe1d0e2f3f4efd7301c4c4f727cc55c60f7bc151
|
7
|
+
data.tar.gz: 75bc4c1fc38d77a977714b70392cbf36a6d9985129f157ab1b33a92cea08033501e1ffa3a8246253bd63db84770e6a5fd05a88254f4a83e98f40bd342e05a625
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
relation (0.3.
|
4
|
+
relation (0.3.1)
|
5
5
|
activerecord (~> 5)
|
6
6
|
|
7
7
|
GEM
|
@@ -79,7 +79,7 @@ GEM
|
|
79
79
|
nokogiri (1.8.4)
|
80
80
|
mini_portile2 (~> 2.3.0)
|
81
81
|
rack (2.0.5)
|
82
|
-
rack-test (1.
|
82
|
+
rack-test (1.1.0)
|
83
83
|
rack (>= 1.0, < 3)
|
84
84
|
rails (5.2.0)
|
85
85
|
actioncable (= 5.2.0)
|
@@ -140,5 +140,8 @@ DEPENDENCIES
|
|
140
140
|
simplecov
|
141
141
|
sqlite3
|
142
142
|
|
143
|
+
RUBY VERSION
|
144
|
+
ruby 2.5.1p57
|
145
|
+
|
143
146
|
BUNDLED WITH
|
144
147
|
1.16.1
|
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# Relation
|
2
|
-
[![
|
3
|
-
[![
|
4
|
-
[![Gem Version](http://img.shields.io/gem/v/relation.svg)](https://rubygems.org/gems/relation)
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/relation.png)](http://badge.fury.io/rb/relation)
|
3
|
+
[![Build Status](https://travis-ci.org/matique/relation.png?branch=master)](https://travis-ci.org/matique/relation)
|
5
4
|
|
6
5
|
Relation is a Rails gem that adds relationships to
|
7
6
|
ActiveRecord items stored in tables.
|
@@ -68,11 +67,22 @@ and cleaned by:
|
|
68
67
|
|
69
68
|
Relation.remove_dangling hsh
|
70
69
|
|
71
|
-
|
72
|
-
|
70
|
+
## Low Level Methods
|
71
|
+
|
72
|
+
Above mentioned methods are based on the following low level methods:
|
73
|
+
|
74
|
+
Relation.add_raw(name, from_id, to_id)
|
75
|
+
Relation.delete_raw(name, from_id, to_id)
|
76
|
+
Relation.references_raw(name, from_id)
|
77
|
+
Relation.followers_raw(name, to_id)
|
78
|
+
|
79
|
+
They may be used for relationships which can not be based on the
|
80
|
+
class name of the ActiveRecords.
|
81
|
+
Keep in mind that dangling relations must be handled by yourself.
|
82
|
+
|
83
|
+
## Rails 5
|
73
84
|
|
74
85
|
This gem is intended for Rails 5.
|
75
86
|
Older Rails versions may use "gem 'relation', '= 0.1.1'".
|
76
87
|
|
77
|
-
License MIT
|
78
|
-
-----------
|
88
|
+
## License MIT
|
data/lib/relation/version.rb
CHANGED
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.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dittmar Krall
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|