decorators 1.0.3 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/lib/decorators.rb +2 -1
  3. data/license.md +1 -1
  4. data/readme.md +33 -2
  5. metadata +13 -145
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 265d704ccd8a15c29c70aaf5e19fe61b56a30eb4
4
+ data.tar.gz: ce71931babf9cc7a656f87f21f2876d1c41a6afc
5
+ SHA512:
6
+ metadata.gz: 4fc36298b2d6bf24170bf881a75613b6724be54297fa428ab0993930f5d6c16dab41371e758d4191661f5af8d85dede284b137af8d878c286858824f546ae64e
7
+ data.tar.gz: 5976f624f6dff498d4ac42b5f8d1eb879c9c7cf871b180bb82cde6fc51724ecf79385fa657563f2db44982d2e72a9a1cd809add5e317aea86e65105f1652ebff
data/lib/decorators.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  module Decorators
2
2
  require 'decorators/paths'
3
- require 'decorators/railtie'
4
3
 
5
4
  class << self
6
5
  def load!(cache_classes)
@@ -42,3 +41,5 @@ module Decorators
42
41
  end
43
42
 
44
43
  end
44
+
45
+ require 'decorators/railtie'
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright (c) 2013 [Philip Arndt](http://philiparndt.name)
3
+ Copyright (c) 2013 - 2015 [Philip Arndt](http://p.arndt.io)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/readme.md CHANGED
@@ -26,7 +26,7 @@ The important parts are being inside a sub directory of `app/decorators` and hav
26
26
  In your Gemfile, add the gem:
27
27
 
28
28
  ```ruby
29
- gem 'decorators', '~> 1.0.0'
29
+ gem 'decorators', '~> 1.0.5'
30
30
  ```
31
31
 
32
32
  Now, run `bundle install` and the gem should install.
@@ -48,7 +48,38 @@ Or for many paths:
48
48
  require 'decorators'
49
49
  Decorators.register! Rails.root, Rails.root.join('vendor', 'extensions', 'extension_with_decorators')
50
50
  ```
51
+
52
+ #### Avoiding Rails development mode reloading issues ([example](https://github.com/refinery/refinerycms/issues/2267))
53
+
54
+ If you are loading this from within a Rails engine definition make sure you require
55
+ the decorators library in the standard way, from outside of any method definitions:
56
+
57
+ ```diff
58
+ +require 'decorators'
59
+ +
60
+ module Namespaced
61
+ class Engine < Rails::Engine
62
+
63
+ initializer 'load decorators' do
64
+ - require 'decorators'
65
+ Decorators.register! Rails.root, Rails.root.join('vendor', 'extensions', 'namespaced')
66
+ end
67
+ end
68
+ ```
69
+
70
+ If this is happening in the main application you can avoid this in `config/application.rb`:
71
+
72
+ ```diff
73
+ require File.expand_path('../boot', __FILE__)
74
+
75
+ require 'rails/all'
76
+ +require 'decorators'
77
+
78
+ if defined?(Bundler)
79
+ # etc
80
+ ```
81
+
51
82
  ## License
52
83
 
53
84
  Decorators is released under the [MIT license](https://github.com/parndt/decorators/blob/master/license.md#readme)
54
- and is copyright (c) 2013 [Philip Arndt](http://philiparndt.name)
85
+ and is copyright (c) 2013 [Philip Arndt](http://p.arndt.io)
metadata CHANGED
@@ -1,176 +1,45 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
5
- prerelease:
4
+ version: 1.0.5
6
5
  platform: ruby
7
6
  authors:
8
7
  - Philip Arndt
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-02-12 00:00:00.000000000 Z
11
+ date: 2015-04-16 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: railties
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: 3.0.19
22
- - - ! '!='
23
- - !ruby/object:Gem::Version
24
- version: 3.1.0
25
- - - ! '!='
26
- - !ruby/object:Gem::Version
27
- version: 3.1.1
28
- - - ! '!='
29
- - !ruby/object:Gem::Version
30
- version: 3.1.2
31
- - - ! '!='
32
- - !ruby/object:Gem::Version
33
- version: 3.1.3
34
- - - ! '!='
35
- - !ruby/object:Gem::Version
36
- version: 3.1.4
37
- - - ! '!='
38
- - !ruby/object:Gem::Version
39
- version: 3.1.5
40
- - - ! '!='
41
- - !ruby/object:Gem::Version
42
- version: 3.1.6
43
- - - ! '!='
44
- - !ruby/object:Gem::Version
45
- version: 3.1.7
46
- - - ! '!='
47
- - !ruby/object:Gem::Version
48
- version: 3.1.8
49
- - - ! '!='
50
- - !ruby/object:Gem::Version
51
- version: 3.1.9
52
- - - ! '!='
53
- - !ruby/object:Gem::Version
54
- version: 3.2.0
55
- - - ! '!='
56
- - !ruby/object:Gem::Version
57
- version: 3.2.1
58
- - - ! '!='
59
- - !ruby/object:Gem::Version
60
- version: 3.2.2
61
- - - ! '!='
62
- - !ruby/object:Gem::Version
63
- version: 3.2.3
64
- - - ! '!='
65
- - !ruby/object:Gem::Version
66
- version: 3.2.4
67
- - - ! '!='
68
- - !ruby/object:Gem::Version
69
- version: 3.2.5
70
- - - ! '!='
71
- - !ruby/object:Gem::Version
72
- version: 3.2.6
73
- - - ! '!='
74
- - !ruby/object:Gem::Version
75
- version: 3.2.7
76
- - - ! '!='
77
- - !ruby/object:Gem::Version
78
- version: 3.2.8
79
- - - ! '!='
80
- - !ruby/object:Gem::Version
81
- version: 3.2.9
82
- - - ! '!='
83
- - !ruby/object:Gem::Version
84
- version: 3.2.10
85
20
  type: :runtime
86
21
  prerelease: false
87
22
  version_requirements: !ruby/object:Gem::Requirement
88
- none: false
89
23
  requirements:
90
- - - ! '>='
24
+ - - ">="
91
25
  - !ruby/object:Gem::Version
92
26
  version: 3.0.19
93
- - - ! '!='
94
- - !ruby/object:Gem::Version
95
- version: 3.1.0
96
- - - ! '!='
97
- - !ruby/object:Gem::Version
98
- version: 3.1.1
99
- - - ! '!='
100
- - !ruby/object:Gem::Version
101
- version: 3.1.2
102
- - - ! '!='
103
- - !ruby/object:Gem::Version
104
- version: 3.1.3
105
- - - ! '!='
106
- - !ruby/object:Gem::Version
107
- version: 3.1.4
108
- - - ! '!='
109
- - !ruby/object:Gem::Version
110
- version: 3.1.5
111
- - - ! '!='
112
- - !ruby/object:Gem::Version
113
- version: 3.1.6
114
- - - ! '!='
115
- - !ruby/object:Gem::Version
116
- version: 3.1.7
117
- - - ! '!='
118
- - !ruby/object:Gem::Version
119
- version: 3.1.8
120
- - - ! '!='
121
- - !ruby/object:Gem::Version
122
- version: 3.1.9
123
- - - ! '!='
124
- - !ruby/object:Gem::Version
125
- version: 3.2.0
126
- - - ! '!='
127
- - !ruby/object:Gem::Version
128
- version: 3.2.1
129
- - - ! '!='
130
- - !ruby/object:Gem::Version
131
- version: 3.2.2
132
- - - ! '!='
133
- - !ruby/object:Gem::Version
134
- version: 3.2.3
135
- - - ! '!='
136
- - !ruby/object:Gem::Version
137
- version: 3.2.4
138
- - - ! '!='
139
- - !ruby/object:Gem::Version
140
- version: 3.2.5
141
- - - ! '!='
142
- - !ruby/object:Gem::Version
143
- version: 3.2.6
144
- - - ! '!='
145
- - !ruby/object:Gem::Version
146
- version: 3.2.7
147
- - - ! '!='
148
- - !ruby/object:Gem::Version
149
- version: 3.2.8
150
- - - ! '!='
151
- - !ruby/object:Gem::Version
152
- version: 3.2.9
153
- - - ! '!='
154
- - !ruby/object:Gem::Version
155
- version: 3.2.10
156
27
  - !ruby/object:Gem::Dependency
157
28
  name: rspec
158
29
  requirement: !ruby/object:Gem::Requirement
159
- none: false
160
30
  requirements:
161
- - - ! '>='
31
+ - - ">="
162
32
  - !ruby/object:Gem::Version
163
33
  version: '0'
164
34
  type: :development
165
35
  prerelease: false
166
36
  version_requirements: !ruby/object:Gem::Requirement
167
- none: false
168
37
  requirements:
169
- - - ! '>='
38
+ - - ">="
170
39
  - !ruby/object:Gem::Version
171
40
  version: '0'
172
41
  description: Manages the process of loading decorators into your Rails application.
173
- email: parndt@gmail.com
42
+ email: p@arndt.io
174
43
  executables: []
175
44
  extensions: []
176
45
  extra_rdoc_files: []
@@ -180,29 +49,28 @@ files:
180
49
  - lib/decorators/railtie.rb
181
50
  - license.md
182
51
  - readme.md
183
- homepage: http://philiparndt.name
52
+ homepage: https://github.com/parndt/decorators
184
53
  licenses:
185
54
  - MIT
55
+ metadata: {}
186
56
  post_install_message:
187
57
  rdoc_options: []
188
58
  require_paths:
189
59
  - lib
190
60
  required_ruby_version: !ruby/object:Gem::Requirement
191
- none: false
192
61
  requirements:
193
- - - ! '>='
62
+ - - ">="
194
63
  - !ruby/object:Gem::Version
195
64
  version: '0'
196
65
  required_rubygems_version: !ruby/object:Gem::Requirement
197
- none: false
198
66
  requirements:
199
- - - ! '>='
67
+ - - ">="
200
68
  - !ruby/object:Gem::Version
201
69
  version: '0'
202
70
  requirements: []
203
71
  rubyforge_project:
204
- rubygems_version: 1.8.25
72
+ rubygems_version: 2.4.6
205
73
  signing_key:
206
- specification_version: 3
74
+ specification_version: 4
207
75
  summary: Rails decorators plugin.
208
76
  test_files: []