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: 8a0732a45571553be89b96021e3fc8043297d0ce
4
- data.tar.gz: 32da3a2a0b13dd8edb8e57c85c9fbdbf5529b03b
3
+ metadata.gz: 8de181c3eaad82b56a8e41c8c36b5bfe9917393d
4
+ data.tar.gz: 1715e231764db659596cf0b17f55c255cdabeb1f
5
5
  SHA512:
6
- metadata.gz: 3525626e0af2ceffa872032e4b332d16aa570513077ea7c515ffc224035042df970399a84ef8bbc31dc71c3e257fab3a9c6def84764bcea88f901bcc99314ec4
7
- data.tar.gz: 8360fb9c4097c5ed22230cdd4def185becdfa922fb16a240e3359c3eb4bc064e25edef33d1d486d7b6b89cd35d20f46992e2d998582c16c5c457f0ae692a61d7
6
+ metadata.gz: ad135e81abb0a90d40e8cc46ac07d2266678c7d85303cf43842203a5be9a6221b26555404dbc3d7e350e906bbc8eff19df7f2ec4af77bbcb2b338d563ff4ea35
7
+ data.tar.gz: 4305e31043a3e0d3b2ca28cbdddb5c115328bcaff70f5e7dc71e2e3263b63982f427b65a246fbb125d1be350b536a30930a1cd6a020b5042b39f06f58e094c20
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'billit_representers'
3
- gem.version = '0.8.7'
4
- gem.date = '2014-03-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',
@@ -41,10 +41,6 @@ module Billit
41
41
  bill_url(bill_uid)
42
42
  end
43
43
 
44
- link :document do
45
- self.document_link
46
- end
47
-
48
44
  @@timeline_status_valid_values =
49
45
  [
50
46
  'Ingreso',
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.7
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-03 00:00:00.000000000 Z
11
+ date: 2014-03-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roar