moode-haml-toolkit 0.0.3 → 1.0.0

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.
data/bin/gen ADDED
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ if File.exist? "component/custom.rb"
4
+ load "component/custom.rb"
5
+ end
6
+
7
+ require 'moode-haml-jqm'
8
+ require 'jt-partial'
9
+
10
+ js_files = File.join("hamls","pages","**", "*.haml")
11
+ prefix = "hamls/"
12
+ Dir.glob js_files do |file|
13
+ output = haml_render("#{file}")
14
+
15
+ file_path_without_haml = "#{file[prefix.length, file.length-5-prefix.length]}"
16
+ output_path = file_path_without_haml[0,file_path_without_haml.rindex('/')]
17
+ output_file_name_with_under_line = file_path_without_haml[output_path.length+1, file_path_without_haml.length]
18
+ output_file_name = output_file_name_with_under_line[1,output_file_name_with_under_line.length]
19
+ puts "#{output_path}/#{output_file_name}.html"
20
+ html_page = File.new("#{output_path}/#{output_file_name}.html", "w")
21
+ html_page.write(output)
22
+ end
23
+
24
+
25
+ output = haml_render("hamls/index.haml")
26
+ html_page = File.new("index.html", "w")
27
+ html_page.write(output)
@@ -1,7 +1,7 @@
1
1
  module Moode
2
2
  module Haml
3
3
  module Toolkit
4
- VERSION = "0.0.3"
4
+ VERSION = "1.0.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moode-haml-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 1.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,12 +9,13 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-02-19 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: moode mobile development toolkit
15
15
  email:
16
16
  - tj19832@gmail.com
17
17
  executables:
18
+ - gen
18
19
  - md-watch
19
20
  - mdbuild
20
21
  - mdclean
@@ -27,6 +28,7 @@ files:
27
28
  - LICENSE.txt
28
29
  - README.md
29
30
  - Rakefile
31
+ - bin/gen
30
32
  - bin/md-watch
31
33
  - bin/mdbuild
32
34
  - bin/mdclean
@@ -54,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
54
56
  version: '0'
55
57
  requirements: []
56
58
  rubyforge_project:
57
- rubygems_version: 1.8.23
59
+ rubygems_version: 1.8.24
58
60
  signing_key:
59
61
  specification_version: 3
60
62
  summary: moode mobile development toolkit