rails-decorators 0.1.0 → 0.1.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: d2b058e294fde7539190070d9b3136d605cae188
4
- data.tar.gz: 68cb945a3eaf62cb046404b26fa55d500e5fcdbc
3
+ metadata.gz: 9abcc516c64a62c5839b64e18d1821eb3b74e933
4
+ data.tar.gz: de637f8a73faf8b95f821b0d83e1b5a2ef4ff0f0
5
5
  SHA512:
6
- metadata.gz: cce41bd1af784df612dfb8c1f45236b4331e29d67b5cf4c012126f925c842674de2cb797e52282185037e5ab06785ece88c8e957cfc6ce12b5aaa7155121b0d6
7
- data.tar.gz: 5604cad44131f137b6baa2c96964237da3be1d310089a292bd962268100728ca46d282d4ea101cf6917eed78e2adcf8b54d646d0c7da017cfef702d6e572f6f4
6
+ metadata.gz: 314500d8ddf9901d838c5b1f88544e7a9cbcd841ee5312eeee1c0ac4f98a7e4b85060ae936bc95782c4fb7c347a64932696e48410737c8b7dac51da35e5a12da
7
+ data.tar.gz: 83b8f2c34b998b76565377ecbf719b7a315750fdcda4bdcb4989b3398d59ce68c636642ebf5b1af794a7497ddf00caeac572e6147241081e2d369bb59837af57
@@ -0,0 +1,2 @@
1
+ class Rails::Decorators::TestDecorator
2
+ end
@@ -0,0 +1,10 @@
1
+ module Rails
2
+ module Decorators
3
+ class TestModel
4
+ def foo
5
+ 'bar'
6
+ end
7
+ end
8
+ end
9
+ end
10
+
@@ -4,11 +4,7 @@ module Rails
4
4
  isolate_namespace Rails::Decorators
5
5
 
6
6
  config.before_initialize do |app|
7
- engines = ObjectSpace
8
- .each_object(Class)
9
- .select { |klass| klass < ::Rails::Engine }
10
- .select { |klass| klass.name.present? }
11
- .select { |klass| klass != ::Rails::Application }
7
+ engines = Rails::Engine.subclasses
12
8
 
13
9
  loader = Decorator.loader(engines.map(&:root) + [Rails.root])
14
10
  app.config.to_prepare(&loader)
@@ -1,5 +1,5 @@
1
1
  module Rails
2
2
  module Decorators
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-decorators
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-04-03 00:00:00.000000000 Z
11
+ date: 2017-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -48,6 +48,8 @@ files:
48
48
  - MIT-LICENSE
49
49
  - README.md
50
50
  - Rakefile
51
+ - app/models/rails/decorators/test_decorator.decorator
52
+ - app/models/rails/decorators/test_model.rb
51
53
  - lib/rails/decorators.rb
52
54
  - lib/rails/decorators/active_support.rb
53
55
  - lib/rails/decorators/application.rb