moode-haml-toolkit 1.0.2 → 1.0.4
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 +8 -8
- data/bin/gen +2 -1
- data/bin/mdbuild +3 -0
- data/bin/mdclean +8 -4
- data/lib/moode-haml-toolkit/compoent_helper.rb +3 -0
- data/lib/moode-haml-toolkit/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NzUxYmJmZWViYTllZGMzYjc4ODgzMzk0YWU2NDQ1OWE0Y2EyNzMzYQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDg3OTViNzA1NmM0MWZmODkzZTAxYTM0YTI4ZDAyNDhlOTNmYzRmZQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjFjZmZhN2RkYWEwMDc1ZDUwYmYzNTkyNjNlNDg4ZGI4YTJiOTcyNTFjNDc0
|
10
|
+
NDA5ODIxMjg1YWRjZmQ2ZTZmZDUxYjk0OWU3NTM2OTRhMjE1ZWUwZjhjYjBi
|
11
|
+
NTRhMjQ4N2RjMTNlNmViMjlhM2I4ODg5Nzg1NGE3M2IwM2MwZTE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTU5ZTEwYTNhOTJiNjhmZjM4NDM4ZjU2YTQyZWE0MDE5ODFkZWFmZTU4Nzll
|
14
|
+
ZTg0NGE2NjI4YWE0NWY4OWVmN2QwOWVjN2IyZWYxMGZiYTZmYWE0NzNjNDdl
|
15
|
+
N2M0ZjRlNDA3NjMwYzNiYjc1MDI0OTI4NTQ3MGE5MjYxZmQ2NzI=
|
data/bin/gen
CHANGED
@@ -10,13 +10,14 @@ require 'jt-partial'
|
|
10
10
|
js_files = File.join("hamls","pages","**", "*.haml")
|
11
11
|
prefix = "hamls/"
|
12
12
|
Dir.glob js_files do |file|
|
13
|
-
output = haml_render("#{file}")
|
14
13
|
|
15
14
|
file_path_without_haml = "#{file[prefix.length, file.length-5-prefix.length]}"
|
16
15
|
output_path = file_path_without_haml[0,file_path_without_haml.rindex('/')]
|
17
16
|
output_file_name_with_under_line = file_path_without_haml[output_path.length+1, file_path_without_haml.length]
|
18
17
|
output_file_name = output_file_name_with_under_line
|
19
18
|
puts "#{output_path}/#{output_file_name}.html"
|
19
|
+
|
20
|
+
output = haml_render("#{file}")
|
20
21
|
html_page = File.new("#{output_path}/#{output_file_name}.html", "w")
|
21
22
|
html_page.write(output)
|
22
23
|
end
|
data/bin/mdbuild
CHANGED
data/bin/mdclean
CHANGED
@@ -19,22 +19,26 @@ class WebBuild < Thor::Group
|
|
19
19
|
remove_dir "pages"
|
20
20
|
end
|
21
21
|
|
22
|
-
def
|
22
|
+
def remove_css
|
23
23
|
remove_dir "css"
|
24
24
|
end
|
25
25
|
|
26
|
-
def
|
26
|
+
def remove_js
|
27
27
|
remove_dir "js"
|
28
28
|
end
|
29
29
|
|
30
|
-
def
|
30
|
+
def remove_lib
|
31
31
|
remove_dir "lib"
|
32
32
|
end
|
33
33
|
|
34
|
-
def
|
34
|
+
def remove_image
|
35
35
|
remove_dir "img"
|
36
36
|
end
|
37
37
|
|
38
|
+
def remove_resource
|
39
|
+
remove_dir "res"
|
40
|
+
end
|
41
|
+
|
38
42
|
end
|
39
43
|
|
40
44
|
WebBuild.start
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: moode-haml-toolkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- jtong, xudejian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-07-
|
11
|
+
date: 2013-07-21 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: moode mobile development toolkit
|
14
14
|
email:
|
@@ -33,6 +33,7 @@ files:
|
|
33
33
|
- bin/mdclean
|
34
34
|
- bin/mdk
|
35
35
|
- lib/moode-haml-toolkit.rb
|
36
|
+
- lib/moode-haml-toolkit/compoent_helper.rb
|
36
37
|
- lib/moode-haml-toolkit/version.rb
|
37
38
|
- moode-haml-toolkit.gemspec
|
38
39
|
homepage: ''
|
@@ -54,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
54
55
|
version: '0'
|
55
56
|
requirements: []
|
56
57
|
rubyforge_project:
|
57
|
-
rubygems_version: 2.0.
|
58
|
+
rubygems_version: 2.0.5
|
58
59
|
signing_key:
|
59
60
|
specification_version: 4
|
60
61
|
summary: moode mobile development toolkit
|