billit_representers 0.0.0 → 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,16 @@
1
+ *.rbc
2
+ *.sassc
3
+ .sass-cache
4
+ capybara-*.html
5
+ .rspec
6
+ /.bundle
7
+ /vendor/bundle
8
+ /log/*
9
+ /tmp/*
10
+ /db/*.sqlite3
11
+ /public/system/*
12
+ /coverage/
13
+ /spec/tmp/*
14
+ **.orig
15
+ rerun.txt
16
+ pickle-email-*.html
data/README.md ADDED
@@ -0,0 +1,4 @@
1
+ billit_representers
2
+ ===================
3
+
4
+ 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).
@@ -0,0 +1,14 @@
1
+ Gem::Specification.new do |gem|
2
+ gem.name = 'billit_representers'
3
+ gem.version = '0.0.1'
4
+ gem.date = '2013-04-01'
5
+ gem.summary = "Representers for the bill-it module of the Poplus project."
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
+ gem.authors = ["Marcel Augsburger"]
8
+ gem.email = 'devteam@ciudadanointeligente.org'
9
+ gem.homepage = 'https://github.com/ciudadanointeligente/billit_representers'
10
+
11
+ gem.files = `git ls-files`.split("\n")
12
+
13
+ gem.add_runtime_dependency "roar"
14
+ end
@@ -0,0 +1,30 @@
1
+ require 'roar/representer/json'
2
+ require 'roar/representer/feature/hypermedia'
3
+
4
+ module Billit
5
+ module BillRepresenter
6
+ include Roar::Representer::JSON::HAL
7
+
8
+ property :uid
9
+ property :title
10
+ property :summary
11
+ property :tags
12
+ property :matters
13
+ property :stage
14
+ property :creation_date
15
+ property :publish_date
16
+ property :authors
17
+ property :origin_chamber
18
+ property :current_urgency
19
+ property :table_history
20
+ property :link_law
21
+
22
+ property :events
23
+ property :urgencies
24
+ property :reports
25
+
26
+ link :self do
27
+ bill_url(self.uid)
28
+ end
29
+ end
30
+ end
@@ -0,0 +1,2 @@
1
+ module Billit
2
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: billit_representers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-28 00:00:00.000000000 Z
12
+ date: 2013-04-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: roar
@@ -34,7 +34,12 @@ email: devteam@ciudadanointeligente.org
34
34
  executables: []
35
35
  extensions: []
36
36
  extra_rdoc_files: []
37
- files: []
37
+ files:
38
+ - .gitignore
39
+ - README.md
40
+ - billit_representers.gemspec
41
+ - lib/billit_representers.rb
42
+ - lib/billit_representers/bill_representer.rb
38
43
  homepage: https://github.com/ciudadanointeligente/billit_representers
39
44
  licenses: []
40
45
  post_install_message: