popit_representers 0.0.16 → 0.0.17

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: 7c34dfcf285eab9757b55652976a24f6c5b460ea
4
- data.tar.gz: 1cae3417eec3628166b653e7b5bdd7c8695e3fbe
3
+ metadata.gz: 6e5a0e60e2c6041ac7dac38d6764f9944ccba876
4
+ data.tar.gz: bc3a06815f3d44c1568db2ecf2c0138e1993a0e0
5
5
  SHA512:
6
- metadata.gz: 5ad5fa72d6bbdbec6f942cade6e6b4567461b2a3211c364f57e2148b2d386430b79a1afa6a21d12d198b7d25be453e1582647759de317b3bb27ae9ed0d196354
7
- data.tar.gz: fc02b5d9cae76ec7dfb5378fb392f3062dd606c04c694ea17e4a3e0b798546a43fe8d4387487a6c1241ce60e874364d2367af840bad9ded805d1b405bb80638a
6
+ metadata.gz: 5673502b70e927dd571ffbb9d6c868cbe80e4c7c1d331272fbe210f7b6030fbbea7df4288c80bdc40cf22ff88fb6b8611e98cbb7dfbb676e801ff8e1cad24193
7
+ data.tar.gz: fa6a5ce3183da9b8b3e1848a770bb0a9527b6ee799758df45a7947af83e44a50f553075911bfaa513df2342b8a0fe0299be84e562d6d0ab2e8460221db02ff27
@@ -0,0 +1,6 @@
1
+ require 'popit_representers/representers/personalinfo_representer'
2
+ module Popit
3
+ class Personalinfo
4
+ include Popit::PersonalinfoRepresenter
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'popit_representers/representers/professionalinfo_representer'
2
+ module Popit
3
+ class Professionalinfo
4
+ include Popit::ProfessionalinfoRepresenter
5
+ end
6
+ end
@@ -9,12 +9,16 @@ require 'popit_representers/models/personlink'
9
9
  require 'popit_representers/models/personcommission'
10
10
  require 'popit_representers/models/personrepresent'
11
11
  require 'popit_representers/models/personperiod'
12
+ require 'popit_representers/models/personalinfo'
13
+ require 'popit_representers/models/professionalinfo'
12
14
  require 'popit_representers/representers/personimage_representer'
13
15
  require 'popit_representers/representers/personmembership_representer'
14
16
  require 'popit_representers/representers/personlink_representer'
15
17
  require 'popit_representers/representers/personcommission_representer'
16
18
  require 'popit_representers/representers/personrepresent_representer'
17
19
  require 'popit_representers/representers/personperiod_representer'
20
+ require 'popit_representers/representers/personalinfo_representer'
21
+ require 'popit_representers/representers/professionalinfo_representer'
18
22
 
19
23
  module Popit
20
24
  module PersonRepresenter
@@ -47,6 +51,8 @@ module Popit
47
51
  collection :commissions, extend: PersoncommissionRepresenter, class: Popit::Personcommission
48
52
  collection :represent, extend: PersonrepresentRepresenter, class: Popit::Personrepresent
49
53
  collection :parliamentarian_period, extend: PersonperiodRepresenter, class: Popit::Personperiod
54
+ collection :personal_info, extend: PersonalinfoRepresenter, class: Popit::Personalinfo
55
+ collection :professional_info, extend: ProfessionalinfoRepresenter, class: Popit::Professionalinfo
50
56
 
51
57
  end
52
58
  end
@@ -0,0 +1,26 @@
1
+ require 'roar/representer'
2
+ require 'roar/representer/feature/http_verbs'
3
+ require 'roar/representer/feature/client'
4
+ require 'roar/representer/json/hal'
5
+
6
+ module Popit
7
+ module PersonalinfoRepresenter
8
+ include Roar::Representer::JSON::HAL
9
+
10
+ module Initializer
11
+ def initialize
12
+ extend Popit::PersonalinfoRepresenter
13
+ extend Roar::Representer::Feature::Client
14
+ super
15
+ end
16
+ end
17
+
18
+ def self.included(klass)
19
+ klass.send :prepend, Initializer
20
+ klass.send :include, Roar::Representer::Feature::HttpVerbs
21
+ end
22
+
23
+ property :profession
24
+
25
+ end
26
+ end
@@ -0,0 +1,27 @@
1
+ require 'roar/representer'
2
+ require 'roar/representer/feature/http_verbs'
3
+ require 'roar/representer/feature/client'
4
+ require 'roar/representer/json/hal'
5
+
6
+ module Popit
7
+ module ProfessionalinfoRepresenter
8
+ include Roar::Representer::JSON::HAL
9
+
10
+ module Initializer
11
+ def initialize
12
+ extend Popit::ProfessionalinfoRepresenter
13
+ extend Roar::Representer::Feature::Client
14
+ super
15
+ end
16
+ end
17
+
18
+ def self.included(klass)
19
+ klass.send :prepend, Initializer
20
+ klass.send :include, Roar::Representer::Feature::HttpVerbs
21
+ end
22
+
23
+ property :percentage_votes
24
+ property :place
25
+
26
+ end
27
+ end
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'popit_representers'
3
- gem.version = '0.0.16'
3
+ gem.version = '0.0.17'
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.16
4
+ version: 0.0.17
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Augsburger
@@ -51,24 +51,28 @@ files:
51
51
  - README.md
52
52
  - lib/popit_representers/models/organization.rb
53
53
  - lib/popit_representers/models/organization_collection.rb
54
+ - lib/popit_representers/models/personalinfo.rb
54
55
  - lib/popit_representers/models/personcommission.rb
55
56
  - lib/popit_representers/models/personimage.rb
56
57
  - lib/popit_representers/models/personlink.rb
57
58
  - lib/popit_representers/models/personmembership.rb
58
59
  - lib/popit_representers/models/personperiod.rb
59
60
  - lib/popit_representers/models/personrepresent.rb
61
+ - lib/popit_representers/models/professionalinfo.rb
60
62
  - lib/popit_representers/models/wrapped_person.rb
61
63
  - lib/popit_representers/popit_representers.rb
62
64
  - lib/popit_representers/representers/organization_representer.rb
63
65
  - lib/popit_representers/representers/organizationcollection_representer.rb
64
66
  - lib/popit_representers/representers/person_collection_representer.rb
65
67
  - lib/popit_representers/representers/person_representer.rb
68
+ - lib/popit_representers/representers/personalinfo_representer.rb
66
69
  - lib/popit_representers/representers/personcommission_representer.rb
67
70
  - lib/popit_representers/representers/personimage_representer.rb
68
71
  - lib/popit_representers/representers/personlink_representer.rb
69
72
  - lib/popit_representers/representers/personmembership_representer.rb
70
73
  - lib/popit_representers/representers/personperiod_representer.rb
71
74
  - lib/popit_representers/representers/personrepresent_representer.rb
75
+ - lib/popit_representers/representers/professionalinfo_representer.rb
72
76
  - popit_representers.gemspec
73
77
  homepage: https://github.com/ciudadanointeligente/billit_representers
74
78
  licenses: