pluginizer 0.0.8 → 0.0.9
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a84688f54d7a62942a5248aeb64d3df5ce38224f
|
4
|
+
data.tar.gz: e418412335b7f150bcfb5577129c2ecd69a071d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e81eb95688abb42f42e212d27671e2d28c00bc03744e7bfe82627b86b4118c3c2a00ce4bbf6c1cbd64c7f2ae5ecf4ca2bd1fab9551f00804a417c601dce01e44
|
7
|
+
data.tar.gz: 1276c92b5b4b2a6182948efbf53700c067e71fb9af500a51cdc8dba3e075d4da3cd124f61620eced11d5817fd6a4808ceae5ea288478065c8ee111e5e58c4e07
|
data/lib/pluginizer/version.rb
CHANGED
@@ -0,0 +1,25 @@
|
|
1
|
+
module <%= camelized_modules %>
|
2
|
+
@@config = nil
|
3
|
+
|
4
|
+
def self.configure
|
5
|
+
@@config ||= Configuration.new
|
6
|
+
|
7
|
+
if block_given?
|
8
|
+
yield config
|
9
|
+
end
|
10
|
+
|
11
|
+
config
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.config
|
15
|
+
@@config || configure
|
16
|
+
end
|
17
|
+
|
18
|
+
class Configuration
|
19
|
+
# attr_writer :config_name
|
20
|
+
|
21
|
+
# def config_name
|
22
|
+
# @config_name ||= 'default value'
|
23
|
+
# end
|
24
|
+
end
|
25
|
+
end
|
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.9
|
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-24 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%/configuration.rb.tt
|
87
88
|
- templates/lib/%namespaced_name%/engine.rb.tt
|
88
89
|
homepage: https://github.com/patleb/pluginizer
|
89
90
|
licenses:
|