susanoo 0.13.1 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/susanoo/controllers/views.rb +7 -4
- data/lib/susanoo/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: dee89416004428ec107e848730ec9790e4316c85
|
4
|
+
data.tar.gz: 2692570284af210d56caf462255dace2e5347e97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a6b1593da5f988f3c2178c7606042a5e4afb5e0826e0c0c192fa582797bf972be4e07b8cec8dfc9de1983049b18f7390715f4469e86ca4d302d7c5eb112ecaac
|
7
|
+
data.tar.gz: 02f356d3763c02b3a96e37899c8468d6f0b5e832b935948897aaa8b59a73bb2ccdc5f9d082201593ac4602b543336d4367482e5ce5893ff24777b486070976ff
|
@@ -16,7 +16,8 @@ class Susanoo::Application
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def build(generator, options)
|
19
|
-
|
19
|
+
extensions = ['erb', 'slim', 'haml', 'md', 'org', 'liquid', 'rdoc']
|
20
|
+
file_pattern = File.join(project_root, "src/views/**/*.{html,#{extensions.join(',')}}")
|
20
21
|
dest_path = File.join(project_root, 'www')
|
21
22
|
src_path = File.join(project_root, 'src')
|
22
23
|
|
@@ -29,9 +30,11 @@ class Susanoo::Application
|
|
29
30
|
# Create missing directories in destination path
|
30
31
|
FileUtils.mkpath dest_path
|
31
32
|
|
32
|
-
|
33
|
-
|
34
|
-
|
33
|
+
if extensions.include? File.extname(dest_file)[1..-1]
|
34
|
+
# Remove erb extension name from destination path
|
35
|
+
dest_file.gsub!(File.extname(dest_file), '')
|
36
|
+
dest_file = "#{dest_file}.html" if File.extname(dest_file).empty?
|
37
|
+
end
|
35
38
|
# Create the destination file
|
36
39
|
generator.create_file dest_file, template.render(self)
|
37
40
|
end
|
data/lib/susanoo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: susanoo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sameer Rahmani
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|