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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ad313075bd4af21d2a1f2c995ddeb608cd9f4a7
4
- data.tar.gz: db586b4052f594a86cebd02826610cca4516f383
3
+ metadata.gz: ebe1d0ed76c1f80832c64eeab453c28cf47e43ad
4
+ data.tar.gz: 970cfa40837ff4ac4ed12be3b28b95c839926957
5
5
  SHA512:
6
- metadata.gz: fb1f83f13ff34b77cbe761f5d6c7641c6475fb4946d545c2bcae290fa40e2ecc7a21d265fe3e5d9ea463ed0e41b0b3a1837541d615375bbac5b43c206af99b42
7
- data.tar.gz: 0b2a40a2137e3c7e60386222b6601f7bf6f30f91e37be82465607a1945f04392e3bb327650452b63b0b912f1c541a625b0ba591abd801ecfef1f7a757f8acfaa
6
+ metadata.gz: 39f497b1b20ebdbf3345871d58fccedf778f41f39480aecd21228f5863ae58368f4d5fde748802702a782ee0288873fcb112bbcf384feee9375745092fceb94e
7
+ data.tar.gz: fa79cb9d6694971ec1e9c83d53baf52b1e3bb8af46cdfd875a8794116b875b809398a40d9985e241ede31ee0773a5c66010e045f077ec98419b7a66970bebdb6
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = 'billit_representers'
3
- gem.version = '0.9.0'
4
- gem.date = '2014-03-21'
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/directive_representer'
2
- module Billit
3
- class Directive
4
- include Billit::DirectiveRepresenter
5
- end
2
+ class BillitDirective
3
+ include Billit::DirectiveRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/document_representer'
2
- module Billit
3
- class Document
4
- include Billit::DocumentRepresenter
5
- end
2
+ class BillitDocument
3
+ include Billit::DocumentRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/paperwork_representer'
2
- module Billit
3
- class Paperwork
4
- include Billit::PaperworkRepresenter
5
- end
2
+ class BillitPaperwork
3
+ include Billit::PaperworkRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/paperwork_collection_model_representer'
2
- module Billit
3
- class PaperworkCollection
4
- include Billit::PaperworkCollectionModelRepresenter
5
- end
2
+ class BillitPaperworkCollection
3
+ include Billit::PaperworkCollectionModelRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/priority_representer'
2
- module Billit
3
- class Priority
4
- include Billit::PriorityRepresenter
5
- end
2
+ class BillitPriority
3
+ include Billit::PriorityRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/remark_representer'
2
- module Billit
3
- class Remark
4
- include Billit::RemarkRepresenter
5
- end
2
+ class BillitRemark
3
+ include Billit::RemarkRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/report_representer'
2
- module Billit
3
- class Report
4
- include Billit::ReportRepresenter
5
- end
2
+ class BillitReport
3
+ include Billit::ReportRepresenter
6
4
  end
@@ -1,6 +1,4 @@
1
1
  require 'billit_representers/representers/revision_representer'
2
- module Billit
3
- class Revision
4
- include Billit::RevisionRepresenter
5
- end
2
+ class BillitRevision
3
+ include Billit::RevisionRepresenter
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: Billit::Paperwork, parse_strategy: :sync
68
- collection :priorities, extend: Billit::PriorityRepresenter, class: Billit::Priority, parse_strategy: :sync
69
- collection :reports, extend: Billit::ReportRepresenter, class: Billit::Report, parse_strategy: :sync
70
- collection :documents, extend: Billit::DocumentRepresenter, class: Billit::Document, parse_strategy: :sync
71
- collection :directives, extend: Billit::DirectiveRepresenter, class: Billit::Directive, parse_strategy: :sync
72
- collection :remarks, extend: Billit::RemarkRepresenter, class: Billit::Remark, parse_strategy: :sync
73
- collection :revisions, extend: Billit::RevisionRepresenter, class: Billit::Revision, parse_strategy: :sync
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.0
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-03-21 00:00:00.000000000 Z
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.0.3
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.