popit_representers 0.0.12 → 0.0.13
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fb2bb33042b9bc4842213ae1066aba2efd9a2e63
|
4
|
+
data.tar.gz: 4c69accfa01117df836c9f7b6ea3efe2c4cfcde7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b3bf482feddc07ee3f5bc6afbc0f5b4af20d4cda7e964f50da684cae9db5ce2786386f0dfa17acac863b529100c116daf5b6a51be8d4c432f01c71be931ee01
|
7
|
+
data.tar.gz: 9162bef689c05606393ab3099dd2b30b84bf99bc55f5c977451c270033216036a4ea1c9f5f3e056f91efc0aa8b544f317d06ce874bbf842fbc6b22f56d9321a4
|
@@ -20,6 +20,13 @@ module Popit
|
|
20
20
|
klass.send :include, Roar::Representer::Feature::Hypermedia
|
21
21
|
end
|
22
22
|
|
23
|
+
property :total
|
24
|
+
property :page
|
25
|
+
property :per_page
|
26
|
+
property :has_more
|
27
|
+
property :next_url
|
28
|
+
property :prev_url
|
29
|
+
|
23
30
|
collection :result, :extend => PersonRepresenter, :class => PopitPerson
|
24
31
|
|
25
32
|
def persons
|
@@ -18,7 +18,7 @@ require 'popit_representers/representers/personperiod_representer'
|
|
18
18
|
|
19
19
|
module Popit
|
20
20
|
module PersonRepresenter
|
21
|
-
include Roar::Representer::JSON
|
21
|
+
include Roar::Representer::JSON
|
22
22
|
|
23
23
|
module Initializer
|
24
24
|
def initialize
|
@@ -42,7 +42,7 @@ module Popit
|
|
42
42
|
|
43
43
|
collection :images, extend: PersonimageRepresenter, class: Popit::Personimage
|
44
44
|
collection :memberships, extend: PersonmembershipRepresenter, class: Popit::Personmembership
|
45
|
-
collection :links, extend: PersonlinkRepresenter, class: Popit::Personlink
|
45
|
+
#collection :links, extend: Popit::PersonlinkRepresenter, class: Popit::Personlink
|
46
46
|
collection :commissions, extend: PersoncommissionRepresenter, class: Popit::Personcommission
|
47
47
|
collection :represent, extend: PersonrepresentRepresenter, class: Popit::Personrepresent
|
48
48
|
collection :parliamentarian_period, extend: PersonperiodRepresenter, class: Popit::Personperiod
|
data/popit_representers.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'popit_representers'
|
3
|
-
gem.version = '0.0.
|
3
|
+
gem.version = '0.0.13'
|
4
4
|
gem.date = '2014-02-18'
|
5
5
|
gem.summary = "Representers for the pop-it module of the Poplus project."
|
6
6
|
gem.description = "Representers for the pop-it module of the Poplus project. These provide object-like access to remote data, using Resource-Oriented Architectures in Ruby (ROAR)."
|