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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 40da37f436ac3296743d2becb2098d58e59ef504
4
- data.tar.gz: 78927f05443992fde4ae019ffd842c5f29e7e611
3
+ metadata.gz: 8f23b29b8203e4aa58d682ad5fa9461aa541cce7
4
+ data.tar.gz: 466a911fc20a62c28ae391dd15c95cedc63047ad
5
5
  SHA512:
6
- metadata.gz: 628a764f66be754f023e99a7eaf7669c9ec3695538d98fd3ad5dc87216e8dd989567b3b94e871b838649e1a0d937bf02c3ae0435edb7613e5e36d4e53edcb8b2
7
- data.tar.gz: bb431afb2682dfe43124451b4dd955d716e4f5b4a0684dbcbf3c9cb57fd542d4117a0173cd2ae5a5a8303910102c1894061165c67abd442521282f6c83d5c561
6
+ metadata.gz: c67d7b52f7c85f05c49c3d9570b5ee290d4371b197b86269b214de2b8a7a4f924fc304a9f042c5d5c16c2ea1cf433ce74483d8ae5c0ef35817a52e207f2129d1
7
+ data.tar.gz: 42d896bf38f16e6371805cd6699b6e87d516026de87240018f34e6582d8a5d4350506b37189d14dd5739fc9ccfbbbe44df59611b0256e06977b5bc3bbeb6fcf1
@@ -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') }
@@ -1,3 +1,3 @@
1
1
  module Ichiban
2
- VERSION = '1.2.8'
2
+ VERSION = '1.2.9'
3
3
  end
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.8
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-09-07 00:00:00.000000000 Z
11
+ date: 2015-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ejs