billit_representers 0.5.6 → 0.6.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 753f912a84fc0fa641c0cecba2a96bad2faf92c9
|
4
|
+
data.tar.gz: f74f231aa967b4e013932a01e1f2b7930523ee71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71ff1769277f1901ca63c0ecbcc0c68ff4e8eed2ae1762c4417178c4fcb8e8e26808f69adb16ce5224b65962e3295aefbf6c6b4ff5ff6a70b1975cf65455affc
|
7
|
+
data.tar.gz: fccba5c0848b7dff2a3bf63fce3fde811d4da06091610f4e4d4dc20e27d7402ce76629c3fe3150910cfaaa5ac4a58d4d9403fcf4ff000e8b535e8c37285e7ad2
|
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.
|
4
|
-
gem.date = '2013-12-
|
3
|
+
gem.version = '0.6.0'
|
4
|
+
gem.date = '2013-12-13'
|
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,9 +2,12 @@ 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/representer/json/hal'
|
6
|
+
require 'billit_representers/representers/event_representer'
|
5
7
|
|
6
8
|
module Billit
|
7
9
|
module BillRepresenter
|
10
|
+
# include Roar::Representer
|
8
11
|
include Roar::Representer::JSON::HAL
|
9
12
|
|
10
13
|
module Initializer
|
@@ -44,7 +47,7 @@ module Billit
|
|
44
47
|
property :abstract
|
45
48
|
property :tags
|
46
49
|
|
47
|
-
|
50
|
+
collection :events, :extend => EventRepresenter, :class => Event
|
48
51
|
property :urgencies
|
49
52
|
property :reports
|
50
53
|
property :modifications
|
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'roar'
|
2
|
+
require 'roar/representer'
|
3
|
+
require 'roar/representer/feature/hypermedia'
|
4
|
+
require 'roar/representer/feature/http_verbs'
|
5
|
+
require 'roar/representer/feature/client'
|
6
|
+
require 'active_model'
|
7
|
+
require 'roar/representer/json/hal'
|
8
|
+
|
9
|
+
module Billit
|
10
|
+
module EventRepresenter
|
11
|
+
# include Roar::Representer
|
12
|
+
include Roar::Representer::JSON::HAL
|
13
|
+
|
14
|
+
module Initializer
|
15
|
+
def initialize
|
16
|
+
extend Billit::EventRepresenter
|
17
|
+
extend Roar::Representer::Feature::Client
|
18
|
+
super
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.included(klass)
|
23
|
+
klass.send :prepend, Initializer
|
24
|
+
klass.send :include, Roar::Representer::Feature::HttpVerbs
|
25
|
+
end
|
26
|
+
|
27
|
+
property :chamber
|
28
|
+
property :created_at
|
29
|
+
property :date
|
30
|
+
property :description
|
31
|
+
property :session
|
32
|
+
property :stage
|
33
|
+
property :updated_at
|
34
|
+
|
35
|
+
end
|
36
|
+
end
|
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.
|
4
|
+
version: 0.6.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-
|
11
|
+
date: 2013-12-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|
@@ -54,6 +54,7 @@ files:
|
|
54
54
|
- lib/billit_representers/representers/bill_collection_page_representer.rb
|
55
55
|
- lib/billit_representers/representers/bill_collection_representer.rb
|
56
56
|
- lib/billit_representers/representers/bill_representer.rb
|
57
|
+
- lib/billit_representers/representers/event_representer.rb
|
57
58
|
- lib/billit_representers/representers/table_collection_page_representer.rb
|
58
59
|
- lib/billit_representers/representers/table_collection_representer.rb
|
59
60
|
- lib/billit_representers/representers/table_representer.rb
|
@@ -77,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
78
|
version: '0'
|
78
79
|
requirements: []
|
79
80
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
81
|
+
rubygems_version: 2.1.11
|
81
82
|
signing_key:
|
82
83
|
specification_version: 4
|
83
84
|
summary: Representers for the bill-it module of the Poplus project.
|