pluginizer 0.0.5 → 0.0.6
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 +4 -4
- data/lib/pluginizer/version.rb +1 -1
- data/templates/lib/%namespaced_name%/engine.rb.tt +25 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f58dba9ce09c3252dc1fdb0e6afe804be10ba26b
|
4
|
+
data.tar.gz: 4bb68397efc8949f7e530aaf1cb1821a85cfe8dd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8036a887227d711f5161753132263996e9819e02be676a4fe3c2a7dbd4d3a1d0b0c0a2c2cad50431828227778d729bbd8257b7f2d277e85d0672086a14347e7a
|
7
|
+
data.tar.gz: faf955b7adff72316cc2f8f83d7107b36fbeba0767400d21d811b7b9fe502d90bf9c5a8c30302e9808f1f25cf8bae428ad93963914408204826565f03b94423c
|
data/lib/pluginizer/version.rb
CHANGED
@@ -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.
|
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
|
+
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
|