gakubuchi 1.0.0.rc2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/gakubuchi/configuration.rb +2 -2
- data/lib/gakubuchi/fileutils.rb +1 -1
- data/lib/gakubuchi/task.rb +3 -3
- data/lib/gakubuchi/template_engine.rb +1 -1
- data/lib/gakubuchi/version.rb +1 -1
- data/lib/generators/gakubuchi/install/templates/gakubuchi.rb +4 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6de288cdb9cc2f2b61191e7fb50df1ff510f8bb
|
4
|
+
data.tar.gz: 6054e7122db45c76d91abf652b40ed9dd1ab1ff0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
89
|
+
leave_digest_named_templates # false by default
|
90
90
|
template_directory # 'templates' by default
|
91
91
|
```
|
92
92
|
|
data/lib/gakubuchi/fileutils.rb
CHANGED
data/lib/gakubuchi/task.rb
CHANGED
@@ -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)
|
17
|
+
FileUtils.remove(src) unless leave_digest_named_templates?
|
18
18
|
end
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
!!Gakubuchi.configuration.
|
21
|
+
def leave_digest_named_templates?
|
22
|
+
!!Gakubuchi.configuration.leave_digest_named_templates
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
data/lib/gakubuchi/version.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
Gakubuchi.configure do |config|
|
2
|
-
# Set this configuration to
|
3
|
-
# in public/assets. By default, Gakubuchi removes them after
|
4
|
-
#
|
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
|
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-
|
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:
|
177
|
+
version: '0'
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
180
|
rubygems_version: 2.4.5
|