billit_representers 0.9.1 → 0.9.2

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: ebe1d0ed76c1f80832c64eeab453c28cf47e43ad
4
- data.tar.gz: 970cfa40837ff4ac4ed12be3b28b95c839926957
3
+ metadata.gz: 1baea2b8fa55cf3b883fcd4b676d74ba2f18e461
4
+ data.tar.gz: 4c90515c6910f46d865af72ba7364d85efd63e98
5
5
  SHA512:
6
- metadata.gz: 39f497b1b20ebdbf3345871d58fccedf778f41f39480aecd21228f5863ae58368f4d5fde748802702a782ee0288873fcb112bbcf384feee9375745092fceb94e
7
- data.tar.gz: fa79cb9d6694971ec1e9c83d53baf52b1e3bb8af46cdfd875a8794116b875b809398a40d9985e241ede31ee0773a5c66010e045f077ec98419b7a66970bebdb6
6
+ metadata.gz: 6bef360373f93896fa226441c1a3f6082b6aefd0ea4c5a19183ed1af991c93502bc3c9f2954aee7ca2c94466cf9cfe9bacce36c17d75e017c2e445f95bb8b51b
7
+ data.tar.gz: 2d7a0f09ab1ad99dabaf1eb9a35fb4b43b5bc5fffda9cfd97998b95115622777809febb2d3bd6f172b3e143b6ba162e7f8d78ea5ad42a62dc155c63a7664303a
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'billit_representers'
3
- gem.version = '0.9.1'
4
- gem.date = '2014-04-15'
3
+ gem.version = '0.9.2'
4
+ gem.date = '2014-04-16'
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"]
@@ -57,6 +57,7 @@ module Billit
57
57
  property :status
58
58
  property :resulting_document
59
59
  property :law_id, writeable: false
60
+ property :bill_draft_link
60
61
  property :merged_bills
61
62
  property :subject_areas
62
63
  property :authors
@@ -64,13 +65,13 @@ module Billit
64
65
  property :abstract
65
66
  property :tags
66
67
 
67
- collection :paperworks, extend: Billit::PaperworkRepresenter, class: lambda { |x, *| Module.const_get("Paperwork").is_a?(Class) ? Paperwork : BillitPaperwork }, parse_strategy: :sync
68
- collection :priorities, extend: Billit::PriorityRepresenter, class: lambda { |x, *| Module.const_get("Priority").is_a?(Class) ? Priority : BillitPriority }, parse_strategy: :sync
69
- collection :reports, extend: Billit::ReportRepresenter, class: lambda { |x, *| Module.const_get("Report").is_a?(Class) ? Report : BillitReport }, parse_strategy: :sync
70
- collection :documents, extend: Billit::DocumentRepresenter, class: lambda { |x, *| Module.const_get("Document").is_a?(Class) ? Document : BillitDocument }, parse_strategy: :sync
71
- collection :directives, extend: Billit::DirectiveRepresenter, class: lambda { |x, *| Module.const_get("Directive").is_a?(Class) ? Directive : BillitDirective }, parse_strategy: :sync
72
- collection :remarks, extend: Billit::RemarkRepresenter, class: lambda { |x, *| Module.const_get("Remark").is_a?(Class) ? Remark : BillitRemark }, parse_strategy: :sync
73
- collection :revisions, extend: Billit::RevisionRepresenter, class: lambda { |x, *| Module.const_get("Revision").is_a?(Class) ? Revision : BillitRevision }, parse_strategy: :sync
68
+ collection :paperworks, extend: Billit::PaperworkRepresenter, class: lambda { |x, *| Object.const_defined?("Paperwork") ? Paperwork : BillitPaperwork }, parse_strategy: :sync
69
+ collection :priorities, extend: Billit::PriorityRepresenter, class: lambda { |x, *| Object.const_defined?("Priority") ? Priority : BillitPriority }, parse_strategy: :sync
70
+ collection :reports, extend: Billit::ReportRepresenter, class: lambda { |x, *| Object.const_defined?("Report") ? Report : BillitReport }, parse_strategy: :sync
71
+ collection :documents, extend: Billit::DocumentRepresenter, class: lambda { |x, *| Object.const_defined?("Document") ? Document : BillitDocument }, parse_strategy: :sync
72
+ collection :directives, extend: Billit::DirectiveRepresenter, class: lambda { |x, *| Object.const_defined?("Directive") ? Directive : BillitDirective }, parse_strategy: :sync
73
+ collection :remarks, extend: Billit::RemarkRepresenter, class: lambda { |x, *| Object.const_defined?("Remark") ? Remark : BillitRemark }, parse_strategy: :sync
74
+ collection :revisions, extend: Billit::RevisionRepresenter, class: lambda { |x, *| Object.const_defined?("Revision") ? Revision : BillitRevision }, parse_strategy: :sync
74
75
 
75
76
  link :self do
76
77
  bill_url(self.uid)
@@ -84,10 +85,6 @@ module Billit
84
85
  self.law_web_link
85
86
  end
86
87
 
87
- link :bill_draft do
88
- self.bill_draft_link
89
- end
90
-
91
88
  @@subject_areas_valid_values =
92
89
  [
93
90
  'Defensa',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billit_representers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcel Augsburger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-15 00:00:00.000000000 Z
11
+ date: 2014-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roar