decorators 1.0.5 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/decorators.rb +1 -2
- data/lib/decorators/railtie.rb +8 -5
- data/readme.md +1 -1
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe7e9dc3732fcbd67705e03a592889bc4bf2b741
|
4
|
+
data.tar.gz: e06202364b70bac2d506d2a86c87e5a4e0c2193c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4c1593e5294e9cd8ef70474e33579631fe6b029de8daebc8de9398efe47d335c24101e9fc08d1c0ee1531829cce094664719bb7021de1c8ef2d62ce960b4e4ed
|
7
|
+
data.tar.gz: 0f43415c404eb40b7b8e2995ed2a5007a1c7bd7e7b6ce1dc5a5eccaea1d7dea28b98accc7b993ed31836766c347649ca39a7b036d6c4621190b08058d6ccc3e2
|
data/lib/decorators.rb
CHANGED
data/lib/decorators/railtie.rb
CHANGED
@@ -3,12 +3,15 @@ require 'rails'
|
|
3
3
|
module Decorators
|
4
4
|
class Railtie < Rails::Railtie
|
5
5
|
|
6
|
-
|
7
|
-
Decorators.load!
|
8
|
-
end
|
6
|
+
config.before_initialize do |app|
|
7
|
+
loader = proc { Decorators.load!(app.config.cache_classes) }
|
9
8
|
|
10
|
-
|
11
|
-
|
9
|
+
if app.config.eager_load
|
10
|
+
app.config.after_initialize(&loader)
|
11
|
+
else
|
12
|
+
app.config.to_prepare(&loader)
|
13
|
+
end
|
14
|
+
end
|
12
15
|
|
13
16
|
end
|
14
17
|
end
|
data/readme.md
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: decorators
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Philip Arndt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -16,14 +16,20 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 5.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 4.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 5.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rspec
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -69,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
75
|
version: '0'
|
70
76
|
requirements: []
|
71
77
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.4.
|
78
|
+
rubygems_version: 2.4.5
|
73
79
|
signing_key:
|
74
80
|
specification_version: 4
|
75
81
|
summary: Rails decorators plugin.
|