moode-haml-toolkit 1.1.6 → 1.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/bin/gen CHANGED
@@ -11,9 +11,9 @@ require 'moode-haml-toolkit/component_generator'
11
11
  require 'moode-haml-component-angular'
12
12
 
13
13
 
14
- js_files = File.join("hamls","pages","**", "*.haml")
14
+ haml_pages = File.join("hamls","pages","**", "*.haml")
15
15
  prefix = "hamls/"
16
- Dir.glob js_files do |file|
16
+ Dir.glob haml_pages do |file|
17
17
 
18
18
  file_path_without_haml = "#{file[prefix.length, file.length-5-prefix.length]}"
19
19
  output_path = file_path_without_haml[0,file_path_without_haml.rindex('/')]
@@ -9,6 +9,7 @@ class Object < BasicObject
9
9
  template = load_component_template(method_name)
10
10
  Haml::Engine.new(template).render Object.new, args
11
11
  end
12
+ puts "with component: #{method_name}"
12
13
  end
13
14
  end
14
15
 
@@ -18,8 +19,9 @@ class Object < BasicObject
18
19
  method_name = file_name[1, file_name.length].to_sym
19
20
  if(not self.respond_to? method_name)
20
21
  self.send :define_method, method_name do |args = {}, &block|
21
- container "component/container/#{method_name}.haml", args, &block
22
+ container "component/container/_#{method_name}.haml", args, &block
22
23
  end
24
+ puts "with container: #{method_name}"
23
25
  end
24
26
  end
25
27
  end
@@ -1,7 +1,7 @@
1
1
  module Moode
2
2
  module Haml
3
3
  module Toolkit
4
- VERSION = "1.1.6"
4
+ VERSION = "1.1.7"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moode-haml-toolkit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.6
4
+ version: 1.1.7
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - jtong, xudejian
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2013-08-27 00:00:00.000000000 Z
12
+ date: 2013-12-04 00:00:00.000000000 Z
12
13
  dependencies: []
13
14
  description: moode mobile development toolkit
14
15
  email:
@@ -43,25 +44,26 @@ files:
43
44
  - moode-haml-toolkit.gemspec
44
45
  homepage: ''
45
46
  licenses: []
46
- metadata: {}
47
47
  post_install_message:
48
48
  rdoc_options: []
49
49
  require_paths:
50
50
  - lib
51
51
  required_ruby_version: !ruby/object:Gem::Requirement
52
+ none: false
52
53
  requirements:
53
- - - ! '>='
54
+ - - '>='
54
55
  - !ruby/object:Gem::Version
55
56
  version: '0'
56
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
57
59
  requirements:
58
- - - ! '>='
60
+ - - '>='
59
61
  - !ruby/object:Gem::Version
60
62
  version: '0'
61
63
  requirements: []
62
64
  rubyforge_project:
63
- rubygems_version: 2.0.3
65
+ rubygems_version: 1.8.28
64
66
  signing_key:
65
- specification_version: 4
67
+ specification_version: 3
66
68
  summary: moode mobile development toolkit
67
69
  test_files: []
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- ZDk5ODg3NTQ3MmJjMTg2ODI0MTQwZTQ4YmUyNTU4OTEzMzU5ZWE5MQ==
5
- data.tar.gz: !binary |-
6
- YzIyY2M3YmMyYmUwYzM1ZWU0MTU0MTNiNjUxMzlkNDdiOTQyM2FhZA==
7
- !binary "U0hBNTEy":
8
- metadata.gz: !binary |-
9
- NmQyNjcyZjVmZGY4ZmE2M2MwOTU2YWFiNmM3MTY2ODkyY2U3ZTNmZWQ5ZWY4
10
- NWQ5YjVkYTZjNjdhYjk4MWQyYzY5ZWZlODQ2YTUwMGI2OTRhODYyZTk3OWU3
11
- OGNjZDA5MTAzMDBmMjA4NmFkNzdhMzk3MWZjN2QxN2I3NTUwYWU=
12
- data.tar.gz: !binary |-
13
- NDdiNzlhM2EwYjljNTA5YjIxYmUyNzc5MTNmN2NkMWQ5NGVmZTg0MjFhNmRm
14
- OGQyZDJlNGQ4MWEwZjliOWMwYzRjYmNiN2U2MjZkYmQyMWUwMzg2NTQzYWU2
15
- MTRkOGRhYmZiNzBkZTJhOWIxNzMwYzYwMzBjNDdiNDhiNzAwOTA=