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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d293adbc6c33e8f6b608c9d73acd1194dd4b4a07
|
4
|
+
data.tar.gz: 004938bd5796dc20ec999cf8a4f12c0ff2629551
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
6
|
-
|
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
|
|
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.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.
|
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.
|
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.
|