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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZmNiNWY1NWQwYjBjODFmNDU4Y2JjMzcwMWRkNjRjNWZlOGNhM2NlMw==
4
+ NzUxYmJmZWViYTllZGMzYjc4ODgzMzk0YWU2NDQ1OWE0Y2EyNzMzYQ==
5
5
  data.tar.gz: !binary |-
6
- ZjZiYmQzMGRlMmJkZjY2OGQxYzVjNGY3ZDNjNDJjYTdiMGMyYzg3NQ==
6
+ NDg3OTViNzA1NmM0MWZmODkzZTAxYTM0YTI4ZDAyNDhlOTNmYzRmZQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NmE1OTBkOWRjNzZkN2YwOGE2MmEyMzQyZTVlMGExMzVhNTk5MTFjZGNhMzgx
10
- NzhhYjVhZjZhZDJiZjJmNzZhNmQ4ODI2OWNkYjRlMGNmOWQ3ZmE0ZDI5OWEy
11
- ZmVjNWQwOWE4MTFlZjdjYzBhN2E4ODI1NTcyNjQxM2VkYjMzZWY=
9
+ YjFjZmZhN2RkYWEwMDc1ZDUwYmYzNTkyNjNlNDg4ZGI4YTJiOTcyNTFjNDc0
10
+ NDA5ODIxMjg1YWRjZmQ2ZTZmZDUxYjk0OWU3NTM2OTRhMjE1ZWUwZjhjYjBi
11
+ NTRhMjQ4N2RjMTNlNmViMjlhM2I4ODg5Nzg1NGE3M2IwM2MwZTE=
12
12
  data.tar.gz: !binary |-
13
- MDUyYmRmYjdhODVmYTNhOTI4MjM5YWVmZTU5MWM4YmY2ZmY0YzQ3ZjRhY2Uy
14
- NTcxNjJkODhmNzczZDIxYzI5MzhjZWIzMGFhZDA2MGVkNzlmMTI1NWUyM2Fh
15
- MmI2ZGM2Y2U3MWUyNjQzNGJlNDFlMTkwNDA3NmU2ZjllMTJiMWM=
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
@@ -39,6 +39,9 @@ class WebBuild < Thor::Group
39
39
  directory :img
40
40
  end
41
41
 
42
+ def copy_resource
43
+ directory :res
44
+ end
42
45
  end
43
46
 
44
47
  WebBuild.start
data/bin/mdclean CHANGED
@@ -19,22 +19,26 @@ class WebBuild < Thor::Group
19
19
  remove_dir "pages"
20
20
  end
21
21
 
22
- def copy_css
22
+ def remove_css
23
23
  remove_dir "css"
24
24
  end
25
25
 
26
- def copy_js
26
+ def remove_js
27
27
  remove_dir "js"
28
28
  end
29
29
 
30
- def copy_lib
30
+ def remove_lib
31
31
  remove_dir "lib"
32
32
  end
33
33
 
34
- def copy_image
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
@@ -0,0 +1,3 @@
1
+ def load_component_template(component_name)
2
+ return File.read("component/_#{component_name}.haml")
3
+ end
@@ -1,7 +1,7 @@
1
1
  module Moode
2
2
  module Haml
3
3
  module Toolkit
4
- VERSION = "1.0.2"
4
+ VERSION = "1.0.4"
5
5
  end
6
6
  end
7
7
  end
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.2
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-15 00:00:00.000000000 Z
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.3
58
+ rubygems_version: 2.0.5
58
59
  signing_key:
59
60
  specification_version: 4
60
61
  summary: moode mobile development toolkit