interage-query 0.1.2 → 0.1.3

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: 598c61f8efaff276e6b799d934421883f742913298e6767d533bdb83a412fef4
4
- data.tar.gz: 1c5ae4709e3fa6c3fc490667ef2f0a2a470abe722b8d5c06bc10166527af298e
3
+ metadata.gz: bd944a447104ccf65281efac5edc8d647fc8eb193edcfecec93f8005272584ff
4
+ data.tar.gz: 379233d6e1248a889773845b1b801a93efc39fc264ba40b2ae99743771541e84
5
5
  SHA512:
6
- metadata.gz: ab758a7d71571f8d1e70403270ba8952d4725f3da51574be7ae644dc24a90071fa558bf464136036d1bc49f2ae4790cd13e5ed1612d6afabaf934b8fcec20926
7
- data.tar.gz: 6d46aeae2b6792d32a0ff6034727e84cf69174fd6624001b36450fb9da027516abc26a249e02ead3ca88970a5c69da8add1440864bc26f5a4f0c64457d9af2ee
6
+ metadata.gz: 660dbc47d6c187a2065cbe4c52c24e1f9b6014ac0704a5ef976ad66d458b4adb3356e337dc6e1cd97aaa8d2e75a6da8c8fd168595ebb682bad4d741ec84882a6
7
+ data.tar.gz: bcd023a668acbe1963fb277e8f47cf84d58ee9648436fecd86bd72216eae3c7656064eed2dc77e8500502b6ee1c1862107f5a1c4dc2da00c3c78646472334a58
data/CHANGES CHANGED
@@ -1,3 +1,6 @@
1
+ Version 0.1.2:
2
+ - Remove gem kaminari
3
+
1
4
  Version 0.1.1:
2
5
  - Adiciona metodo empty_relation
3
6
  - Adiciona gem kaminari
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -15,7 +15,7 @@ module Interage
15
15
  end
16
16
 
17
17
  def find(id)
18
- relation.find_by(id: id)
18
+ all.find_by(id: id)
19
19
  end
20
20
 
21
21
  def paginate(page = 1)
@@ -53,6 +53,12 @@ module Interage
53
53
  self
54
54
  end
55
55
 
56
+ def decorate
57
+ @relation = ActiveDecorator::Decorator.instance.decorate(relation)
58
+
59
+ self
60
+ end
61
+
56
62
  protected
57
63
 
58
64
  attr_accessor :relation
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Interage
4
4
  module Query
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: interage-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Walmir Neto
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-07-01 00:00:00.000000000 Z
11
+ date: 2020-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -109,7 +109,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  requirements: []
112
- rubygems_version: 3.0.3
112
+ rubygems_version: 3.0.6
113
113
  signing_key:
114
114
  specification_version: 4
115
115
  summary: Application Query for Interage