billit_representers 0.6.2 → 0.7.0

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: 340156871407d9efc18e77cdfcd7f6a8e292ff50
4
- data.tar.gz: 965f27b159c03064ef8092c1bda00d74ac006cb9
3
+ metadata.gz: 101f186e9e1f86689c942802a40d1977dffe4e27
4
+ data.tar.gz: 191272f056f13878fda0995521597a03e2256d19
5
5
  SHA512:
6
- metadata.gz: 2680f96f6d0a37aac9f42b24c379aac8ab67a3d13dcadbca59b07f233112cf34819f63b4f59e12ac9bd647be12648cf904d3dc910f420d4ec503529d261b8de9
7
- data.tar.gz: 59209e6c7f44646fe3ae20b011152401a3501ac25bfeb4afde7146ae705aaf544a730e4c82e209dfb875e9da405e60617c6738da3480b7fae9cb03b33b05882c
6
+ metadata.gz: e51860e2a737a4d1af25052d0641d7c7512b07e57588072a55e53d3f5ea5569f5c47e555d99118d815199a1ab096782a9bc228bd875dab663c58aa3084f7e7bd
7
+ data.tar.gz: f51991d41993fd75da9f06f4fb7da5bb6bda9250c37e9d2750fd617fc8a158d7b5aa6b8ef778d7cf4b7cd283b3f8f25ddd6a8a97965eb044b6110434461e699b
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'billit_representers'
3
- gem.version = '0.6.2'
4
- gem.date = '2013-12-20'
3
+ gem.version = '0.7.0'
4
+ gem.date = '2013-12-30'
5
5
  gem.summary = "Representers for the bill-it module of the Poplus project."
6
6
  gem.description = "Representers for the bill-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,7 +11,7 @@ Gem::Specification.new do |gem|
11
11
 
12
12
  gem.files = `git ls-files`.split("\n")
13
13
 
14
- gem.add_runtime_dependency "roar"
15
- gem.add_runtime_dependency "roar-rails"
14
+ gem.add_runtime_dependency "roar", "0.11.19"
15
+ gem.add_runtime_dependency "roar-rails", "0.1.0"
16
16
  gem.add_runtime_dependency "activemodel"
17
17
  end
@@ -2,8 +2,9 @@ require 'roar/representer/feature/hypermedia'
2
2
  require 'roar/representer/feature/http_verbs'
3
3
  require 'roar/representer/feature/client'
4
4
  require 'active_model'
5
- require 'roar/rails/hal'
6
- require 'billit_representers/representers/event_representer'
5
+ # require 'roar/rails/hal'
6
+ # require 'roar/representer/json/hal'
7
+ require 'billit_representers/representers/paperwork_representer'
7
8
 
8
9
  module Billit
9
10
  module BillRepresenter
@@ -23,43 +24,43 @@ module Billit
23
24
  klass.send :include, ActiveModel::Validations
24
25
  klass.send :include, Roar::Representer::Feature::HttpVerbs
25
26
  klass.validates_presence_of :uid
26
- klass.validates :matters, inclusion: { in: @@matters_valid_values }
27
+ klass.validates :subject_areas, inclusion: { in: @@subject_areas_valid_values }
27
28
  klass.validates :stage, inclusion: { in: @@stage_valid_values }
28
- klass.validates :origin_chamber, inclusion: { in: @@origin_chamber_valid_values }
29
- klass.validates :current_urgency, inclusion: { in: @@current_urgency_valid_values }
29
+ klass.validates :initial_chamber, inclusion: { in: @@initial_chamber_valid_values }
30
+ klass.validates :current_priority, inclusion: { in: @@current_priority_valid_values }
30
31
  end
31
32
 
32
33
  property :uid
33
34
  property :title
34
35
  property :creation_date
35
- property :initiative
36
- property :origin_chamber
37
- property :current_urgency
36
+ property :source
37
+ property :initial_chamber
38
+ property :current_priority
38
39
  property :stage
39
40
  property :sub_stage
40
- property :state
41
- property :law
42
- property :link_law
43
- property :merged
44
- property :matters
41
+ property :status
42
+ property :resulting_document
43
+ property :law_link
44
+ property :merged_bills
45
+ property :subject_areas
45
46
  property :authors
46
47
  property :publish_date
47
48
  property :abstract
48
49
  property :tags
49
50
 
50
- collection :events, :extend => EventRepresenter, :class => Event
51
- property :urgencies
51
+ collection :paperworks, :extend => PaperworkRepresenter, :class => Paperwork
52
+ property :priorities
52
53
  property :reports
53
- property :modifications
54
+ property :revisions
54
55
  property :documents
55
- property :instructions
56
- property :observations
56
+ property :directives
57
+ property :remarks
57
58
 
58
59
  link :self do
59
60
  bill_url(self.uid)
60
61
  end
61
62
 
62
- @@matters_valid_values =
63
+ @@subject_areas_valid_values =
63
64
  [
64
65
  'Defensa',
65
66
  'Impuestos',
@@ -114,13 +115,13 @@ module Billit
114
115
  'Trámite finalización en Cámara de Origen'
115
116
  ]
116
117
 
117
- @@origin_chamber_valid_values =
118
+ @@initial_chamber_valid_values =
118
119
  [
119
120
  'C.Diputados',
120
121
  'Senado'
121
122
  ]
122
123
 
123
- @@current_urgency_valid_values =
124
+ @@current_priority_valid_values =
124
125
  [
125
126
  'Discusión inmediata',
126
127
  'Simple',
@@ -4,16 +4,17 @@ require 'roar/representer/feature/hypermedia'
4
4
  require 'roar/representer/feature/http_verbs'
5
5
  require 'roar/representer/feature/client'
6
6
  require 'active_model'
7
- require 'roar/rails/hal'
7
+ # require 'roar/rails/hal'
8
+ # require 'roar/representer/json/hal'
8
9
 
9
10
  module Billit
10
- module EventRepresenter
11
+ module PaperworkRepresenter
11
12
  # include Roar::Representer
12
13
  include Roar::Representer::JSON::HAL
13
14
 
14
15
  module Initializer
15
16
  def initialize
16
- extend Billit::EventRepresenter
17
+ extend Billit::PaperworkRepresenter
17
18
  extend Roar::Representer::Feature::Client
18
19
  super
19
20
  end
@@ -21,7 +21,7 @@ module Billit
21
21
  end
22
22
 
23
23
  property :uid
24
- property :origin_chamber
24
+ property :initial_chamber
25
25
  property :creation_date
26
26
  property :legislature
27
27
  property :session
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billit_representers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
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-20 00:00:00.000000000 Z
11
+ date: 2013-12-30 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: roar-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activemodel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -68,7 +68,7 @@ files:
68
68
  - lib/billit_representers/representers/bill_collection_page_representer.rb
69
69
  - lib/billit_representers/representers/bill_collection_representer.rb
70
70
  - lib/billit_representers/representers/bill_representer.rb
71
- - lib/billit_representers/representers/event_representer.rb
71
+ - lib/billit_representers/representers/paperwork_representer.rb
72
72
  - lib/billit_representers/representers/table_collection_page_representer.rb
73
73
  - lib/billit_representers/representers/table_collection_representer.rb
74
74
  - lib/billit_representers/representers/table_representer.rb
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.1.11
95
+ rubygems_version: 2.0.3
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Representers for the bill-it module of the Poplus project.