popit_representers 0.0.7 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: abf04707786a3257330d60d9eb09519c67c9ab2e
4
- data.tar.gz: ef0dfff1be43852def19154757e9c3fb85c03fe2
3
+ metadata.gz: e639a86b9cf37e1f5a15ec1e4788f5257acdce2c
4
+ data.tar.gz: cf8ffdca3973a668af670b911ca94f4648641b49
5
5
  SHA512:
6
- metadata.gz: 4e839fed8bc659965a6efdfd4246bfce55396d02d4d13bf4faaac3150ddddbcf04225fffc92be08dc2a4b6969ece28a51c6e3839deb0139afa89ddabc15e5a49
7
- data.tar.gz: 0d7fd6465b2d2e6334153a00978bed395d5c82dab124a3825f4f5dcf0acc8cd6683144a6167705f6cda1b704aa6b3782f83dffe01d0dde7ba9a515e123fe5704
6
+ metadata.gz: 5be969fedd816b01136fd8a5e6e534da803ab92bb4d110b5056b8f9a1eda56b154f68db917e67b5506da8f44ed007802a73ffe5b03bb1588ff4de6bf51032472
7
+ data.tar.gz: f923328410a39996ff2767d39c0d002477d270fdb1bd16c87eb8daaa6ca0a6e8265ff3e5892d7f5b81d58165444c34061ef5f4860d0b527715aebdc99e3c9a96
@@ -1,33 +1,11 @@
1
- require 'roar/representer/json'
2
- require 'representable/json/collection'
3
- require 'representable/json/hash'
4
1
  require 'popit_representers/representers/person_representer'
5
2
 
6
3
  module Popit
7
4
  module PersonCollectionRepresenter
8
- include Roar::Representer
5
+ include Roar::Representer::JSON::HAL
9
6
  include Roar::Representer::Feature::Hypermedia
10
- # include Representable::JSON::Collection
11
7
 
12
- module Initializer
13
- def initialize
14
- extend Popit::PersonCollectionRepresenter
15
- extend Roar::Representer::Feature::Client
16
- super
17
- end
18
- end
19
-
20
- def self.included(klass)
21
- klass.send :prepend, Initializer
22
- klass.send :include, Roar::Representer::JSON
23
- klass.send :include, Roar::Representer::Feature::HttpVerbs
24
- # klass.send :include, Representable::JSON::Collection
25
- end
26
-
27
- # items extend: PersonRepresenter, class: PopitPerson
28
- # self.representation_wrap= :result
29
-
30
- collection :result, :extend => PersonRepresenter, :class => PopitPerson#, as: :persons
8
+ collection :result, :extend => PersonRepresenter, :class => PopitPerson
31
9
 
32
10
  def persons
33
11
  self.result
@@ -1,13 +1,11 @@
1
1
  require 'roar/representer'
2
- require 'roar/representer/json'
3
- require 'roar/representer/feature/hypermedia'
4
2
  require 'roar/representer/feature/http_verbs'
5
3
  require 'roar/representer/feature/client'
6
- require 'active_model'
4
+ require 'roar/representer/json/hal'
7
5
 
8
6
  module Popit
9
7
  module PersonRepresenter
10
- include Roar::Representer
8
+ include Roar::Representer::JSON::HAL
11
9
 
12
10
  module Initializer
13
11
  def initialize
@@ -23,8 +21,7 @@ module Popit
23
21
  klass.send :include, Roar::Representer::Feature::HttpVerbs
24
22
  end
25
23
 
26
- # self.representation_wrap= :result
27
-
24
+ property :uid
28
25
  property :name
29
26
  property :slug
30
27
  property :images
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'popit_representers'
3
- gem.version = '0.0.7'
4
- gem.date = '2013-12-09'
3
+ gem.version = '0.0.9'
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)."
7
7
  gem.authors = ["Marcel Augsburger"]
@@ -11,6 +11,6 @@ Gem::Specification.new do |gem|
11
11
 
12
12
  gem.files = `git ls-files`.split("\n")
13
13
 
14
- gem.add_runtime_dependency "roar"
14
+ gem.add_runtime_dependency "roar", "0.11.19"
15
15
  gem.add_runtime_dependency "activemodel"
16
16
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: popit_representers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Augsburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2014-01-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roar
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 0.11.19
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: '0'
26
+ version: 0.11.19
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement