popit_representers 0.0.9 → 0.0.10

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: e639a86b9cf37e1f5a15ec1e4788f5257acdce2c
4
- data.tar.gz: cf8ffdca3973a668af670b911ca94f4648641b49
3
+ metadata.gz: d293adbc6c33e8f6b608c9d73acd1194dd4b4a07
4
+ data.tar.gz: 004938bd5796dc20ec999cf8a4f12c0ff2629551
5
5
  SHA512:
6
- metadata.gz: 5be969fedd816b01136fd8a5e6e534da803ab92bb4d110b5056b8f9a1eda56b154f68db917e67b5506da8f44ed007802a73ffe5b03bb1588ff4de6bf51032472
7
- data.tar.gz: f923328410a39996ff2767d39c0d002477d270fdb1bd16c87eb8daaa6ca0a6e8265ff3e5892d7f5b81d58165444c34061ef5f4860d0b527715aebdc99e3c9a96
6
+ metadata.gz: f17e393fc18f08c787db1e7cc9cf598788251eb900d6b982a0926cc70eafefd7f20b88049029bc7f94a8349438b5b3bcd87b755b84e5de772733bd587430191f
7
+ data.tar.gz: 5127170fb4c73580040598c08ea96cd8dfbde77e19e84ccc29fd68246185d41de80987a4c54e259ad8b23efe6661ad6e97e560f666c7986886bc5f1db52e84a2
@@ -1,9 +1,24 @@
1
+ require 'roar/representer'
1
2
  require 'popit_representers/representers/person_representer'
2
3
 
3
4
  module Popit
4
5
  module PersonCollectionRepresenter
5
- include Roar::Representer::JSON::HAL
6
- include Roar::Representer::Feature::Hypermedia
6
+ include Roar::Representer
7
+
8
+ module Initializer
9
+ def initialize
10
+ extend Popit::PersonCollectionRepresenter
11
+ extend Roar::Representer::Feature::Client
12
+ super
13
+ end
14
+ end
15
+
16
+ def self.included(klass)
17
+ klass.send :prepend, Initializer
18
+ klass.send :include, Roar::Representer::JSON::HAL
19
+ klass.send :include, Roar::Representer::Feature::HttpVerbs
20
+ klass.send :include, Roar::Representer::Feature::Hypermedia
21
+ end
7
22
 
8
23
  collection :result, :extend => PersonRepresenter, :class => PopitPerson
9
24
 
@@ -21,7 +21,7 @@ module Popit
21
21
  klass.send :include, Roar::Representer::Feature::HttpVerbs
22
22
  end
23
23
 
24
- property :uid
24
+ property :id
25
25
  property :name
26
26
  property :slug
27
27
  property :images
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'popit_representers'
3
- gem.version = '0.0.9'
3
+ gem.version = '0.0.10'
4
4
  gem.date = '2014-01-07'
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Augsburger
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  version: '0'
74
74
  requirements: []
75
75
  rubyforge_project:
76
- rubygems_version: 2.0.3
76
+ rubygems_version: 2.1.11
77
77
  signing_key:
78
78
  specification_version: 4
79
79
  summary: Representers for the pop-it module of the Poplus project.