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: 50d635863a42a7a4d110d3e7de46d8cc14c7dc25
4
- data.tar.gz: 3c0b81ca0141def77ff0f42b7c56388dce2d38d7
3
+ metadata.gz: fb2bb33042b9bc4842213ae1066aba2efd9a2e63
4
+ data.tar.gz: 4c69accfa01117df836c9f7b6ea3efe2c4cfcde7
5
5
  SHA512:
6
- metadata.gz: 4047f9c7418e75b7c3ad9cc5562c2ce8a8476b16ac5b58bbee8f77f95f10b68c4101c1cab279ed06ea19a16a737fcd49018672e81826645f7f751cdde08a0287
7
- data.tar.gz: 8c3cee7deef7c13bb9ba99057f01c947be54717d846aa110aabe1ed5fc127ce28097459722fcdb8eecd7448646d3fc8a34da707d8fa45bd531c0fbf918e60bb7
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::HAL
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
@@ -5,7 +5,7 @@ require 'roar/representer/json/hal'
5
5
 
6
6
  module Popit
7
7
  module PersonlinkRepresenter
8
- include Roar::Representer::JSON::HAL
8
+ include Roar::Representer::JSON
9
9
 
10
10
  module Initializer
11
11
  def initialize
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'popit_representers'
3
- gem.version = '0.0.12'
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)."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popit_representers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Augsburger