billit_representers 0.9.2 → 0.9.3
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/paperwork_collection.rb +2 -2
- data/lib/billit_representers/representers/paperwork_collection_representer.rb +1 -1
- metadata +2 -3
- data/lib/billit_representers/representers/paperwork_collection_model_representer.rb +0 -30
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff7eb0c3b6538d7fe0cbd2d0b91640e75c3df3b9
|
4
|
+
data.tar.gz: 4deded1c1831fc71c93a6dcd1ddb2317209417c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02bf2e69c6b68740c128408ab8fe2d6a4aea90d5687cd651f0e10192ca3752cf830d6c77ed558d3453c820b131b20292a11d8a589f732b738d55a6fe641f8c88
|
7
|
+
data.tar.gz: 105de8f0aeb0ef9eb45c295949dedb2e3376205ffba836e74c66281697ae7f3fef965cfdacfa9fb9aa15340d45971d5a573d2aae046eb26bd19925980016e80a
|
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-04-
|
3
|
+
gem.version = '0.9.3'
|
4
|
+
gem.date = '2014-04-21'
|
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,4 +1,4 @@
|
|
1
|
-
require 'billit_representers/representers/
|
1
|
+
require 'billit_representers/representers/paperwork_collection_representer'
|
2
2
|
class BillitPaperworkCollection
|
3
|
-
include Billit::
|
3
|
+
include Billit::PaperworkCollectionRepresenter
|
4
4
|
end
|
@@ -20,7 +20,7 @@ module Billit
|
|
20
20
|
klass.send :include, Roar::Representer::Feature::HttpVerbs
|
21
21
|
end
|
22
22
|
|
23
|
-
collection :paperworks, :extend => PaperworkRepresenter, :class => Paperwork
|
23
|
+
collection :paperworks, :extend => PaperworkRepresenter, :class => lambda { |x, *| Object.const_defined?("Paperwork") ? Paperwork : BillitPaperwork }, parse_strategy: :sync
|
24
24
|
|
25
25
|
def paperworks
|
26
26
|
collect
|
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.3
|
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-04-
|
11
|
+
date: 2014-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|
@@ -81,7 +81,6 @@ files:
|
|
81
81
|
- lib/billit_representers/representers/bill_representer.rb
|
82
82
|
- lib/billit_representers/representers/directive_representer.rb
|
83
83
|
- lib/billit_representers/representers/document_representer.rb
|
84
|
-
- lib/billit_representers/representers/paperwork_collection_model_representer.rb
|
85
84
|
- lib/billit_representers/representers/paperwork_collection_representer.rb
|
86
85
|
- lib/billit_representers/representers/paperwork_representer.rb
|
87
86
|
- lib/billit_representers/representers/priority_representer.rb
|
@@ -1,30 +0,0 @@
|
|
1
|
-
require 'roar/representer/json'
|
2
|
-
require 'billit_representers/representers/paperwork_representer'
|
3
|
-
require 'billit_representers/models/paperwork'
|
4
|
-
|
5
|
-
module Billit
|
6
|
-
module PaperworkCollectionModelRepresenter
|
7
|
-
# include Roar::Representer
|
8
|
-
include Roar::Representer::JSON
|
9
|
-
include Roar::Representer::Feature::Hypermedia
|
10
|
-
|
11
|
-
module Initializer
|
12
|
-
def initialize
|
13
|
-
extend Billit::PaperworkCollectionModelRepresenter
|
14
|
-
extend Roar::Representer::Feature::Client
|
15
|
-
super
|
16
|
-
end
|
17
|
-
end
|
18
|
-
|
19
|
-
def self.included(klass)
|
20
|
-
klass.send :prepend, Initializer
|
21
|
-
klass.send :include, Roar::Representer::Feature::HttpVerbs
|
22
|
-
end
|
23
|
-
|
24
|
-
collection :paperworks, :extend => Billit::PaperworkRepresenter, :class => Billit::Paperwork
|
25
|
-
|
26
|
-
def paperworks
|
27
|
-
collect
|
28
|
-
end
|
29
|
-
end
|
30
|
-
end
|