componeer 0.0.3a → 0.0.4a

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: afdc2b92bfe721aac15e09b76df81c3ee63a18b7d478ea62e1db11f63474a19e
4
- data.tar.gz: 379da8e30d7a2094641d788746ad9b855b9df0f5406b53c492b98861c4c19147
3
+ metadata.gz: bf9667e67bbd5867ff0b220fc8e726dd7d38edfeb458b14d4cd9bc14a5884c64
4
+ data.tar.gz: 37ede31c7884a7f15aad097f039e63895a459a2c7b1efb1cb080db14eb4aafcb
5
5
  SHA512:
6
- metadata.gz: e874ca5ebced2250072cbb1f26ae5b3a4b663f3943f0fc154792af23486d7dffc04a2a03a96eaf7ad330aa366d4b4a9e7e71163de832731e6978242fc1691ffd
7
- data.tar.gz: 226e38839c21e874963bf1f724fa94fed7955acac69d4235e5dff2fa093a1577dc86434f3ebf89d86bc6c094f40d0d6e7be80dde0a09b521b05a9799433064a8
6
+ metadata.gz: 3342c79bf9a9026842767ad8c735e680c8a2c903cfcc555d7394bc051c153056653364950e08681ba8527d18ef0d14217794cf107ea72ea5e4c7a2d793e8bcd4
7
+ data.tar.gz: 4bc158371b0eb9a7e58a349ba41ceab20effa1570167cbeb83ec8aeb7b62899094b892c06906b7515b5333e4a5df50c7b7d23be1d66ef22f013c8feca21869f2
@@ -0,0 +1,8 @@
1
+ Componeer.config do |componeer_config|
2
+ if componeer_config.include_componeer_helpers?
3
+ ActiveSupport.on_load(:action_controller) { include Componeer::Helpers }
4
+ ActiveSupport.on_load(:action_view) { include Componeer::Helpers }
5
+ end
6
+ end
7
+
8
+ Componeer.eager_load!
@@ -1,6 +1,6 @@
1
1
  InlineSvg.configure do |config|
2
2
  config.asset_file = InlineSvg::CachedAssetFile.new(
3
- paths: ['gems/componeer/app/assets/images/icons/'],
3
+ paths: ["#{__dir__}/../../app/assets/images/icons/"],
4
4
  filters: /\.svg/
5
5
  )
6
6
  end
@@ -1,18 +1,5 @@
1
1
  module Componeer
2
2
  class Engine < ::Rails::Engine
3
3
  isolate_namespace Componeer
4
-
5
- initializer 'componeer.include_componeer_helpers' do |app|
6
- app.config do |config|
7
- config.to_prepare do
8
- Componeer.config do |componeer_config|
9
- if componeer_config.include_componeer_helpers?
10
- ActiveSupport.on_load(:action_controller) { include Helpers }
11
- ActiveSupport.on_load(:action_view) { include Helpers }
12
- end
13
- end
14
- end
15
- end
16
- end
17
4
  end
18
5
  end
@@ -1,3 +1,3 @@
1
1
  module Componeer
2
- VERSION = '0.0.3a'.freeze
2
+ VERSION = '0.0.4a'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: componeer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3a
4
+ version: 0.0.4a
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andre Rodrigues
@@ -81,6 +81,7 @@ files:
81
81
  - app/controllers/application_controller.rb
82
82
  - app/controllers/componeer/application_controller.rb
83
83
  - app/helpers/componeer/application_helper.rb
84
+ - config/initializers/componeer.rb
84
85
  - config/initializers/inline_svg.rb
85
86
  - config/routes.rb
86
87
  - lib/componeer.rb