ichiban 1.2.8 → 1.2.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ichiban/project_file.rb +16 -1
- data/lib/ichiban/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f23b29b8203e4aa58d682ad5fa9461aa541cce7
|
4
|
+
data.tar.gz: 466a911fc20a62c28ae391dd15c95cedc63047ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c67d7b52f7c85f05c49c3d9570b5ee290d4371b197b86269b214de2b8a7a4f924fc304a9f042c5d5c16c2ea1cf433ce74483d8ae5c0ef35817a52e207f2129d1
|
7
|
+
data.tar.gz: 42d896bf38f16e6371805cd6699b6e87d516026de87240018f34e6582d8a5d4350506b37189d14dd5739fc9ccfbbbe44df59611b0256e06977b5bc3bbeb6fcf1
|
data/lib/ichiban/project_file.rb
CHANGED
@@ -165,7 +165,17 @@ module Ichiban
|
|
165
165
|
|
166
166
|
class MiscAssetFile < ProjectFile
|
167
167
|
def dest_rel_to_compiled
|
168
|
-
@rel.slice('assets/misc/'.length..-1)
|
168
|
+
@rel.slice(@rel.slice('assets/misc/'.length..-1))
|
169
|
+
end
|
170
|
+
|
171
|
+
def update
|
172
|
+
Ichiban::AssetCompiler.new(self).compile
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
class MisplacedAssetFile < ProjectFile
|
177
|
+
def dest_rel_to_compiled
|
178
|
+
@rel.slice('html/'.length..-1)
|
169
179
|
end
|
170
180
|
|
171
181
|
def update
|
@@ -221,6 +231,11 @@ module Ichiban
|
|
221
231
|
(rel.end_with?('.html') or rel.end_with?('.md') or rel.end_with?('.markdown')) and
|
222
232
|
!File.basename(rel).start_with?('_')
|
223
233
|
end
|
234
|
+
register_type(Ichiban::MisplacedAssetFile) do |rel|
|
235
|
+
rel.start_with?('html') and
|
236
|
+
!(rel.end_with?('.html') or rel.end_with?('.md') or rel.end_with?('.markdown')) and
|
237
|
+
!File.basename(rel).start_with?('_')
|
238
|
+
end
|
224
239
|
register_type(Ichiban::LayoutFile) { |rel| rel.start_with?('layouts') and rel.end_with?('.html') }
|
225
240
|
register_type(Ichiban::JSFile) { |rel| rel.start_with?('assets/js') and rel.end_with?('.js') }
|
226
241
|
register_type(Ichiban::EJSFile) { |rel| rel.start_with?('assets/ejs') and rel.end_with?('.ejs') }
|
data/lib/ichiban/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ichiban
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jarrett Colby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ejs
|