billit_representers 0.8.7 → 0.8.8
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: 8de181c3eaad82b56a8e41c8c36b5bfe9917393d
|
4
|
+
data.tar.gz: 1715e231764db659596cf0b17f55c255cdabeb1f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad135e81abb0a90d40e8cc46ac07d2266678c7d85303cf43842203a5be9a6221b26555404dbc3d7e350e906bbc8eff19df7f2ec4af77bbcb2b338d563ff4ea35
|
7
|
+
data.tar.gz: 4305e31043a3e0d3b2ca28cbdddb5c115328bcaff70f5e7dc71e2e3263b63982f427b65a246fbb125d1be350b536a30930a1cd6a020b5042b39f06f58e094c20
|
data/billit_representers.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |gem|
|
2
2
|
gem.name = 'billit_representers'
|
3
|
-
gem.version = '0.8.
|
4
|
-
gem.date = '2014-03-
|
3
|
+
gem.version = '0.8.8'
|
4
|
+
gem.date = '2014-03-05'
|
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"]
|
@@ -2,5 +2,21 @@ require 'billit_representers/representers/bill_model_representer'
|
|
2
2
|
module Billit
|
3
3
|
class Bill
|
4
4
|
include Billit::BillModelRepresenter
|
5
|
+
|
6
|
+
def self_link
|
7
|
+
links[:self].href if links[:self].href
|
8
|
+
end
|
9
|
+
|
10
|
+
def law_xml_link
|
11
|
+
links[:law_xml].href if links[:law_xml].href
|
12
|
+
end
|
13
|
+
|
14
|
+
def law_web_link
|
15
|
+
links[:law_web].href if links[:law_web].href
|
16
|
+
end
|
17
|
+
|
18
|
+
def bill_draft_link
|
19
|
+
links[:bill_draft].href if links[:bill_draft].href
|
20
|
+
end
|
5
21
|
end
|
6
22
|
end
|
@@ -56,9 +56,6 @@ module Billit
|
|
56
56
|
property :publish_date
|
57
57
|
property :abstract
|
58
58
|
property :tags
|
59
|
-
property :law_xml_link
|
60
|
-
property :law_web_link
|
61
|
-
property :bill_draft_link
|
62
59
|
|
63
60
|
collection :paperworks, extend: PaperworkRepresenter, class: Paperwork
|
64
61
|
collection :priorities, extend: PriorityRepresenter, class: Priority
|
@@ -72,6 +69,18 @@ module Billit
|
|
72
69
|
bill_url(self.uid)
|
73
70
|
end
|
74
71
|
|
72
|
+
link :law_xml do
|
73
|
+
self.law_xml_link
|
74
|
+
end
|
75
|
+
|
76
|
+
link :law_web do
|
77
|
+
self.law_web_link
|
78
|
+
end
|
79
|
+
|
80
|
+
link :bill_draft do
|
81
|
+
self.bill_draft_link
|
82
|
+
end
|
83
|
+
|
75
84
|
@@subject_areas_valid_values =
|
76
85
|
[
|
77
86
|
'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.8.
|
4
|
+
version: 0.8.8
|
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-03-
|
11
|
+
date: 2014-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|