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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bad787b4d9a048415f84ac84bb57b0d0c07b78172a2205db2364a1b1d5d23ee4
4
- data.tar.gz: a3065ffcbeed05f69f53d0914dec79471f75cbdfc83ec302d251ddef90279a7b
3
+ metadata.gz: ef978d1ab357140ef5d176fdd9c0cfc1f07ce437fb34ef43f343c3178c009761
4
+ data.tar.gz: 799baed24420ccec09763e5fcf6af16ce1c7d4378517aa57f348a09febf5b8c0
5
5
  SHA512:
6
- metadata.gz: 57b2b2295e4ecf25e5572cbd68f2b7dfcda2e5de192a7f10271bebbd0344b8d7607e8ad22ecddc5bbdfcb3390209d2285d17295345b6ea03b12c67a517610b2b
7
- data.tar.gz: 97e971f2beb8a47dec9dcc70401e70493f53a309e9c705075ae030f9c7c448f62baa51ef923bd73eede89f864a136edd4a5b0a84802335ee2ebbb287c58e2e4b
6
+ metadata.gz: 6dc5d7c0d65fec6a3d348e05693ee5ec79457c910969b99bd953124fb74d18abd4c0fff6432f5beed7bf623fbe1d0e2f3f4efd7301c4c4f727cc55c60f7bc151
7
+ data.tar.gz: 75bc4c1fc38d77a977714b70392cbf36a6d9985129f157ab1b33a92cea08033501e1ffa3a8246253bd63db84770e6a5fd05a88254f4a83e98f40bd342e05a625
data/Gemfile CHANGED
@@ -1,5 +1,5 @@
1
1
  source 'https://rubygems.org'
2
-
2
+ ruby '2.5.1'
3
3
  gemspec
4
4
 
5
5
  gem 'rails'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- relation (0.3.0)
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.0.0)
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
- [![Build Status](http://img.shields.io/travis/matique/relation.svg)](https://travis-ci.org/matique/relation)
3
- [![Dependency Status](http://img.shields.io/gemnasium/matique/relation.svg)](https://gemnasium.com/matique/relation)
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
- Rails 5
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
@@ -1,3 +1,4 @@
1
1
  module ModRelation
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1' # 2018-08-05
3
+ # VERSION = '0.3.0'
3
4
  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.3.0
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-07-07 00:00:00.000000000 Z
11
+ date: 2018-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord