gakubuchi 1.0.0.rc2 → 1.0.0

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: 24f1923fe8e330d09cd3297d4eab8eb3707417c8
4
- data.tar.gz: 6b6960e650da43d042f666c8dcee139ec5e50664
3
+ metadata.gz: f6de288cdb9cc2f2b61191e7fb50df1ff510f8bb
4
+ data.tar.gz: 6054e7122db45c76d91abf652b40ed9dd1ab1ff0
5
5
  SHA512:
6
- metadata.gz: 76a1cafe291e2264a0832315fbc501bb9afc590187f6546bc59510b8b7e8c7509e0647b37f05881bd8a9a89d5c94cf9b30df45e63206d6f21b9d298b2a214244
7
- data.tar.gz: e2e8e17b243aae14a0ec7ed71ddb02278bab8eb5dc93f666ad29de35f175aec2fca5ec0f6e8a347fa95f9fe5f87b87e691300178a7f020a1e49b4858d9e806cc
6
+ metadata.gz: 30077eb6fdbb9eca6b7c29ade9bdb8797384ecc623dc91bf22f178bc962eea79df0aaff07f7be1a32e47adfb4ffc5b25bddab4b275be430ab6c4fc6f63ef18c2
7
+ data.tar.gz: b00ce31a1eff5d21024f8970befd1708c2944c3fa3168cd8171160903c0d6f40848e5f310f8460fc5e8d343a0aa293db78436a6a2be60d754921337a3ce2d2c3
data/README.md CHANGED
@@ -86,7 +86,7 @@ Rails.application.config.assets.precompile += %w(error.css error.js)
86
86
  In `config/initializers/gakubuchi.rb`, you can configure the following values.
87
87
 
88
88
  ```
89
- remove_precompiled_templates # true by default
89
+ leave_digest_named_templates # false by default
90
90
  template_directory # 'templates' by default
91
91
  ```
92
92
 
@@ -6,8 +6,8 @@ module Gakubuchi
6
6
  private :config
7
7
  def_delegators :config, :to_h
8
8
 
9
- config_accessor :remove_precompiled_templates do
10
- true
9
+ config_accessor :leave_digest_named_templates do
10
+ false
11
11
  end
12
12
 
13
13
  config_accessor :template_directory do
@@ -11,7 +11,7 @@ module Gakubuchi
11
11
 
12
12
  def remove(list)
13
13
  super(list)
14
- logging("Removed #{list.join(' ')}")
14
+ logging("Removed #{Array(list).join(' ')}")
15
15
  end
16
16
 
17
17
  private
@@ -14,12 +14,12 @@ module Gakubuchi
14
14
  dest = template.destination_pathname
15
15
  FileUtils.copy_p(src, dest)
16
16
 
17
- FileUtils.remove(src) if remove_precompiled_templates?
17
+ FileUtils.remove(src) unless leave_digest_named_templates?
18
18
  end
19
19
  end
20
20
 
21
- def remove_precompiled_templates?
22
- !!Gakubuchi.configuration.remove_precompiled_templates
21
+ def leave_digest_named_templates?
22
+ !!Gakubuchi.configuration.leave_digest_named_templates
23
23
  end
24
24
  end
25
25
  end
@@ -14,7 +14,7 @@ module Gakubuchi
14
14
  end
15
15
 
16
16
  def register!(extname)
17
- if engine.instance_of?(Class) && !registered?(extname)
17
+ if engine.instance_of?(::Class) && !registered?(extname)
18
18
  !!assets.register_engine(extname, engine)
19
19
  else
20
20
  false
@@ -1,3 +1,3 @@
1
1
  module Gakubuchi
2
- VERSION = '1.0.0.rc2'
2
+ VERSION = '1.0.0'
3
3
  end
@@ -1,7 +1,8 @@
1
1
  Gakubuchi.configure do |config|
2
- # Set this configuration to false if you want to leave precompiled templates
3
- # in public/assets. By default, Gakubuchi removes them after the precompile.
4
- # config.remove_precompiled_templates = true
2
+ # Set this configuration to true if you want to leave digest-named templates
3
+ # in public/assets directory. By default, Gakubuchi removes them after making
4
+ # the non-digest-named copies in public directory.
5
+ # config.leave_digest_named_templates = false
5
6
 
6
7
  # Name of directory for templates ('<%= DEFAULT_DIRECTORY %>' by default).
7
8
  # Gakubuchi treats "app/assets/#{config.template_directory}" as root directory
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gakubuchi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yasaichi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -172,9 +172,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
172
172
  version: 2.0.0
173
173
  required_rubygems_version: !ruby/object:Gem::Requirement
174
174
  requirements:
175
- - - ">"
175
+ - - ">="
176
176
  - !ruby/object:Gem::Version
177
- version: 1.3.1
177
+ version: '0'
178
178
  requirements: []
179
179
  rubyforge_project:
180
180
  rubygems_version: 2.4.5