pluginizer 0.0.5 → 0.0.6

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: cc62565fd24a159e40c9004f8915986d84f9b78b
4
- data.tar.gz: b3cbc03b81125641f22aa566c16fa44e62d3cc14
3
+ metadata.gz: f58dba9ce09c3252dc1fdb0e6afe804be10ba26b
4
+ data.tar.gz: 4bb68397efc8949f7e530aaf1cb1821a85cfe8dd
5
5
  SHA512:
6
- metadata.gz: d96be24e0f2ebe3304283dbec2a963abe5e1e93f0a60d968c09842dafd8c0ee80b2b64d8472eda31925136a479559121789fd322f807ca3ff9838fc04d8ddd51
7
- data.tar.gz: 9343cc79ed2a839b8c14fc4ff06cc627097198f67e03e84af47c44318cca54cc45faa659544159e3cc4fd6a4799df4ca2bcb3e36377e8f298b2d392382f0f61d
6
+ metadata.gz: 8036a887227d711f5161753132263996e9819e02be676a4fe3c2a7dbd4d3a1d0b0c0a2c2cad50431828227778d729bbd8257b7f2d277e85d0672086a14347e7a
7
+ data.tar.gz: faf955b7adff72316cc2f8f83d7107b36fbeba0767400d21d811b7b9fe502d90bf9c5a8c30302e9808f1f25cf8bae428ad93963914408204826565f03b94423c
@@ -1,3 +1,3 @@
1
1
  module Pluginizer
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -0,0 +1,25 @@
1
+ <%= wrap_in_modules <<-rb.strip_heredoc
2
+ class Engine < ::Rails::Engine
3
+ #{mountable? ? ' isolate_namespace ' + camelized_modules : ' '}
4
+ #{api? ? " config.generators.api_only = true" : ' '}
5
+ # Initialize engine dependencies on wrapper application
6
+ Gem.loaded_specs["#{ name }"].dependencies.each do |d|
7
+ begin
8
+ require d.name
9
+ rescue LoadError => e
10
+ # Put exceptions here.
11
+ end
12
+ end
13
+
14
+
15
+ # Uncomment if migrations need to be shared
16
+ # initializer :append_migrations do |app|
17
+ # unless app.root.to_s.match root.to_s
18
+ # config.paths["db/migrate"].expanded.each do |expanded_path|
19
+ # app.config.paths["db/migrate"] << expanded_path
20
+ # end
21
+ # end
22
+ # end
23
+ end
24
+ rb
25
+ %>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pluginizer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrice Lebel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -84,6 +84,7 @@ files:
84
84
  - templates/.gitignore.tt
85
85
  - templates/.ruby-version.tt
86
86
  - templates/README.md.tt
87
+ - templates/lib/%namespaced_name%/engine.rb.tt
87
88
  homepage: https://github.com/patleb/pluginizer
88
89
  licenses:
89
90
  - MIT