pragma-decorator 2.0.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +10 -0
- data/CHANGELOG.md +36 -0
- data/README.md +13 -11
- data/lib/pragma/decorator/association/adapter/active_record.rb +142 -0
- data/lib/pragma/decorator/association/adapter/base.rb +88 -0
- data/lib/pragma/decorator/association/adapter/poro.rb +48 -0
- data/lib/pragma/decorator/association/adapter.rb +32 -0
- data/lib/pragma/decorator/association/{binding.rb → bond.rb} +32 -23
- data/lib/pragma/decorator/association/errors.rb +37 -0
- data/lib/pragma/decorator/association/reflection.rb +1 -1
- data/lib/pragma/decorator/association.rb +42 -5
- data/lib/pragma/decorator/base.rb +1 -3
- data/lib/pragma/decorator/collection.rb +38 -3
- data/lib/pragma/decorator/pagination/adapter/base.rb +80 -0
- data/lib/pragma/decorator/pagination/adapter/kaminari.rb +71 -0
- data/lib/pragma/decorator/pagination/adapter/will_paginate.rb +71 -0
- data/lib/pragma/decorator/pagination/adapter.rb +51 -0
- data/lib/pragma/decorator/pagination.rb +73 -24
- data/lib/pragma/decorator/timestamp.rb +11 -3
- data/lib/pragma/decorator/type.rb +43 -12
- data/lib/pragma/decorator/version.rb +1 -1
- data/lib/pragma/decorator.rb +9 -3
- metadata +12 -3
data/lib/pragma/decorator.rb
CHANGED
@@ -6,17 +6,23 @@ require 'pragma/decorator/version'
|
|
6
6
|
require 'pragma/decorator/base'
|
7
7
|
require 'pragma/decorator/association'
|
8
8
|
require 'pragma/decorator/association/reflection'
|
9
|
-
require 'pragma/decorator/association/
|
9
|
+
require 'pragma/decorator/association/bond'
|
10
|
+
require 'pragma/decorator/association/adapter/base'
|
11
|
+
require 'pragma/decorator/association/adapter/active_record'
|
12
|
+
require 'pragma/decorator/association/adapter/poro'
|
13
|
+
require 'pragma/decorator/association/adapter'
|
10
14
|
require 'pragma/decorator/association/errors'
|
11
15
|
require 'pragma/decorator/timestamp'
|
12
16
|
require 'pragma/decorator/type'
|
13
17
|
require 'pragma/decorator/collection'
|
14
18
|
require 'pragma/decorator/pagination'
|
19
|
+
require 'pragma/decorator/pagination/adapter/base'
|
20
|
+
require 'pragma/decorator/pagination/adapter/kaminari'
|
21
|
+
require 'pragma/decorator/pagination/adapter/will_paginate'
|
22
|
+
require 'pragma/decorator/pagination/adapter'
|
15
23
|
|
16
24
|
module Pragma
|
17
25
|
# Represent your API resources in JSON with minimum hassle.
|
18
|
-
#
|
19
|
-
# @author Alessandro Desantis
|
20
26
|
module Decorator
|
21
27
|
end
|
22
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragma-decorator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Desantis
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: roar
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- ".rspec"
|
134
134
|
- ".rubocop.yml"
|
135
135
|
- ".travis.yml"
|
136
|
+
- CHANGELOG.md
|
136
137
|
- Gemfile
|
137
138
|
- LICENSE.txt
|
138
139
|
- README.md
|
@@ -141,12 +142,20 @@ files:
|
|
141
142
|
- bin/setup
|
142
143
|
- lib/pragma/decorator.rb
|
143
144
|
- lib/pragma/decorator/association.rb
|
144
|
-
- lib/pragma/decorator/association/
|
145
|
+
- lib/pragma/decorator/association/adapter.rb
|
146
|
+
- lib/pragma/decorator/association/adapter/active_record.rb
|
147
|
+
- lib/pragma/decorator/association/adapter/base.rb
|
148
|
+
- lib/pragma/decorator/association/adapter/poro.rb
|
149
|
+
- lib/pragma/decorator/association/bond.rb
|
145
150
|
- lib/pragma/decorator/association/errors.rb
|
146
151
|
- lib/pragma/decorator/association/reflection.rb
|
147
152
|
- lib/pragma/decorator/base.rb
|
148
153
|
- lib/pragma/decorator/collection.rb
|
149
154
|
- lib/pragma/decorator/pagination.rb
|
155
|
+
- lib/pragma/decorator/pagination/adapter.rb
|
156
|
+
- lib/pragma/decorator/pagination/adapter/base.rb
|
157
|
+
- lib/pragma/decorator/pagination/adapter/kaminari.rb
|
158
|
+
- lib/pragma/decorator/pagination/adapter/will_paginate.rb
|
150
159
|
- lib/pragma/decorator/timestamp.rb
|
151
160
|
- lib/pragma/decorator/type.rb
|
152
161
|
- lib/pragma/decorator/version.rb
|