billit_representers 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/billit_representers.gemspec +2 -2
- data/lib/billit_representers/models/directive.rb +2 -4
- data/lib/billit_representers/models/document.rb +2 -4
- data/lib/billit_representers/models/paperwork.rb +2 -4
- data/lib/billit_representers/models/paperwork_collection.rb +2 -4
- data/lib/billit_representers/models/priority.rb +2 -4
- data/lib/billit_representers/models/remark.rb +2 -4
- data/lib/billit_representers/models/report.rb +2 -4
- data/lib/billit_representers/models/revision.rb +2 -4
- data/lib/billit_representers/representers/bill_representer.rb +7 -7
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebe1d0ed76c1f80832c64eeab453c28cf47e43ad
|
4
|
+
data.tar.gz: 970cfa40837ff4ac4ed12be3b28b95c839926957
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39f497b1b20ebdbf3345871d58fccedf778f41f39480aecd21228f5863ae58368f4d5fde748802702a782ee0288873fcb112bbcf384feee9375745092fceb94e
|
7
|
+
data.tar.gz: fa79cb9d6694971ec1e9c83d53baf52b1e3bb8af46cdfd875a8794116b875b809398a40d9985e241ede31ee0773a5c66010e045f077ec98419b7a66970bebdb6
|
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.9.
|
4
|
-
gem.date = '2014-
|
3
|
+
gem.version = '0.9.1'
|
4
|
+
gem.date = '2014-04-15'
|
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"]
|
@@ -1,6 +1,4 @@
|
|
1
1
|
require 'billit_representers/representers/paperwork_collection_model_representer'
|
2
|
-
|
3
|
-
|
4
|
-
include Billit::PaperworkCollectionModelRepresenter
|
5
|
-
end
|
2
|
+
class BillitPaperworkCollection
|
3
|
+
include Billit::PaperworkCollectionModelRepresenter
|
6
4
|
end
|
@@ -64,13 +64,13 @@ module Billit
|
|
64
64
|
property :abstract
|
65
65
|
property :tags
|
66
66
|
|
67
|
-
collection :paperworks, extend: Billit::PaperworkRepresenter, class:
|
68
|
-
collection :priorities, extend: Billit::PriorityRepresenter, class:
|
69
|
-
collection :reports, extend: Billit::ReportRepresenter, class:
|
70
|
-
collection :documents, extend: Billit::DocumentRepresenter, class:
|
71
|
-
collection :directives, extend: Billit::DirectiveRepresenter, class:
|
72
|
-
collection :remarks, extend: Billit::RemarkRepresenter, class:
|
73
|
-
collection :revisions, extend: Billit::RevisionRepresenter, class:
|
67
|
+
collection :paperworks, extend: Billit::PaperworkRepresenter, class: lambda { |x, *| Module.const_get("Paperwork").is_a?(Class) ? Paperwork : BillitPaperwork }, parse_strategy: :sync
|
68
|
+
collection :priorities, extend: Billit::PriorityRepresenter, class: lambda { |x, *| Module.const_get("Priority").is_a?(Class) ? Priority : BillitPriority }, parse_strategy: :sync
|
69
|
+
collection :reports, extend: Billit::ReportRepresenter, class: lambda { |x, *| Module.const_get("Report").is_a?(Class) ? Report : BillitReport }, parse_strategy: :sync
|
70
|
+
collection :documents, extend: Billit::DocumentRepresenter, class: lambda { |x, *| Module.const_get("Document").is_a?(Class) ? Document : BillitDocument }, parse_strategy: :sync
|
71
|
+
collection :directives, extend: Billit::DirectiveRepresenter, class: lambda { |x, *| Module.const_get("Directive").is_a?(Class) ? Directive : BillitDirective }, parse_strategy: :sync
|
72
|
+
collection :remarks, extend: Billit::RemarkRepresenter, class: lambda { |x, *| Module.const_get("Remark").is_a?(Class) ? Remark : BillitRemark }, parse_strategy: :sync
|
73
|
+
collection :revisions, extend: Billit::RevisionRepresenter, class: lambda { |x, *| Module.const_get("Revision").is_a?(Class) ? Revision : BillitRevision }, parse_strategy: :sync
|
74
74
|
|
75
75
|
link :self do
|
76
76
|
bill_url(self.uid)
|
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.9.
|
4
|
+
version: 0.9.1
|
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-
|
11
|
+
date: 2014-04-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
requirements: []
|
113
113
|
rubyforge_project:
|
114
|
-
rubygems_version: 2.
|
114
|
+
rubygems_version: 2.2.2
|
115
115
|
signing_key:
|
116
116
|
specification_version: 4
|
117
117
|
summary: Representers for the bill-it module of the Poplus project.
|