billit_representers 0.8.9 → 0.8.10

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: 68e0d1456523eaaef8450554ab4256fabf54877a
4
- data.tar.gz: 487535911edffc0f88f4f44350d661e45f8e4b7d
3
+ metadata.gz: b361ad9a97a05590e018c598149d7b7c0817c1c6
4
+ data.tar.gz: 14e1e3f8eaa497dea9d18dd7b6f115dcf093385a
5
5
  SHA512:
6
- metadata.gz: a805353d14c1b9eda402335e435cf3fa3899a2aab88a72c030b642a178815096b383f114e26dc52801b8212ba609be57ed6bfae7eb325a6a9407bba12ba77bb0
7
- data.tar.gz: d8c215c94fdacb79a95464cf95fe8eaefeb14372e3c2d627c180573ecfc486959cd1130bee3ef870fcd3c6d761f657a6fab86e71eb6839066231938ebe4d9695
6
+ metadata.gz: 671ceaff979a70f3c0fc44c9af82e3b8a0e88fe3cc2bc4b6b3055a9337031c63a11eac24f77aab01b2c3ec00f87a25c2b2f8a9d941c01bb8915eedd03af5c827
7
+ data.tar.gz: 6393c125ae813898e3a84ec1e087a64aa07dcadd890a0eb8e1aa0a0ad3c32f27ddc88c24abb2a5c9250a945a171fbcdbab9e9d7cc5f3ee945aa41ad42b204bb0
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'billit_representers'
3
- gem.version = '0.8.9'
4
- gem.date = '2014-03-06'
3
+ gem.version = '0.8.10'
4
+ gem.date = '2014-03-18'
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"]
@@ -3,6 +3,8 @@ module Billit
3
3
  class Bill
4
4
  include Billit::BillModelRepresenter
5
5
 
6
+ attr_reader :representable_attrs
7
+
6
8
  def self_link
7
9
  links[:self].href if links[:self]
8
10
  end
@@ -46,6 +46,7 @@ module Billit
46
46
  end
47
47
 
48
48
  property :uid
49
+ property :short_uid
49
50
  property :title
50
51
  property :creation_date
51
52
  property :source
@@ -55,14 +56,13 @@ module Billit
55
56
  property :sub_stage
56
57
  property :status
57
58
  property :resulting_document
58
- property :law_link
59
+ property :law_id
59
60
  property :merged_bills
60
61
  property :subject_areas
61
62
  property :authors
62
63
  property :publish_date
63
64
  property :abstract
64
65
  property :tags
65
- property :bill_draft_link
66
66
 
67
67
  collection :paperworks, extend: Billit::PaperworkRepresenter, class: Billit::Paperwork
68
68
  collection :priorities, extend: Billit::PriorityRepresenter, class: Billit::Priority
@@ -76,6 +76,18 @@ module Billit
76
76
  bill_url(self.uid)
77
77
  end
78
78
 
79
+ link :law_xml do
80
+ self.law_xml_link
81
+ end
82
+
83
+ link :law_web do
84
+ self.law_web_link
85
+ end
86
+
87
+ link :bill_draft do
88
+ self.bill_draft_link
89
+ end
90
+
79
91
  @@subject_areas_valid_values =
80
92
  [
81
93
  '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.9
4
+ version: 0.8.10
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-06 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: roar