pluginizer 0.0.8 → 0.0.9

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
  SHA1:
3
- metadata.gz: 1474e751fcbfb0df06d6def48df79f3c0d448173
4
- data.tar.gz: 81834036ec701fe4480a9c8f9e9b3fe2d75bc08e
3
+ metadata.gz: a84688f54d7a62942a5248aeb64d3df5ce38224f
4
+ data.tar.gz: e418412335b7f150bcfb5577129c2ecd69a071d0
5
5
  SHA512:
6
- metadata.gz: d1ef1f58ce18ed0d80aab63ba442d4796d658edf9c2b129ffb57d12e0975a0120e476c9265433bebec4e9fe2bcf8322dc302218d048960a97806b5b1b3f67877
7
- data.tar.gz: 3f5438ae64b6fc65100af5f69bc57e1bff7b3f0e3789949112a84c1902638ce6c3087b492a0f5cb49d7adf40d5c52a15b2f38d4c73582bf14461d4fe97a42f09
6
+ metadata.gz: e81eb95688abb42f42e212d27671e2d28c00bc03744e7bfe82627b86b4118c3c2a00ce4bbf6c1cbd64c7f2ae5ecf4ca2bd1fab9551f00804a417c601dce01e44
7
+ data.tar.gz: 1276c92b5b4b2a6182948efbf53700c067e71fb9af500a51cdc8dba3e075d4da3cd124f61620eced11d5817fd6a4808ceae5ea288478065c8ee111e5e58c4e07
@@ -17,6 +17,7 @@ module Pluginizer
17
17
 
18
18
  def leftovers
19
19
  template '.ruby-version'
20
+ template "lib/%namespaced_name%/configuration.rb"
20
21
 
21
22
  after_bundle do
22
23
  in_root do
@@ -1,3 +1,3 @@
1
1
  module Pluginizer
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
@@ -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.8
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-22 00:00:00.000000000 Z
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: