jt-mobile-kit 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,20 @@
1
+ class Scaffold < Thor
2
+ include Thor::Actions
3
+ source_root File.expand_path("../templates", __FILE__)
4
+ def initialize(args=[], options={}, config={})
5
+ super
6
+ self.destination_root= ""
7
+ end
8
+
9
+ desc "define_page_md_class", "create domain with class"
10
+ def define_page_md_class
11
+ scaffold_name = "test"
12
+ restful_url = "/#{scaffold_name}.json"
13
+ content = eval( File.read "templates/md_list_class.js" )
14
+
15
+ #content = content.gsub "@{scaffold_name}", scaffold_name
16
+ #content = content.gsub "@{restful_url}", "/#{scaffold_name}.json"
17
+ #create_file "public/mobile/js/#{scaffold_name}.js", content
18
+ puts content
19
+ end
20
+ end
@@ -0,0 +1,7 @@
1
+ #@{scaffold_name}_list_page(data-role="page")
2
+ =head_bar :href => "#main_page", :title => "@{scaffold_name} List Page"
3
+ %div(data-role="content")
4
+ .content-primary
5
+ %ul#@{scaffold_name}_list(data-role="listview")
6
+ %li
7
+ %h3 loading...
@@ -0,0 +1,4 @@
1
+ #@{scaffold_name}_page(data-role="page")
2
+ =head_bar :href => "#@{scaffold_name}_list_page", :title => "@{scaffold_name} Page"
3
+ %div(data-role="content")
4
+ .content-primary
@@ -0,0 +1,9 @@
1
+ __define_mdclass("@{scaffold_name}", '@{restful_url}');
2
+
3
+ @{scaffold_name}.prototype.specific_property = function (send_string_object) {
4
+
5
+ }
6
+
7
+ @{scaffold_name}.prototype.refresh_view = function (data) {
8
+
9
+ }
@@ -0,0 +1,9 @@
1
+ __define_page_mdclass("#{scaffold_name}", '#{restful_url}');
2
+
3
+ #{scaffold_name}.prototype.specific_property = function (send_string_object) {
4
+
5
+ }
6
+
7
+ #{scaffold_name}.prototype.refresh_view = function (data) {
8
+
9
+ }
@@ -1,7 +1,7 @@
1
1
  module Jt
2
2
  module Mobile
3
3
  module Kit
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jt-mobile-kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-02 00:00:00.000000000 Z
12
+ date: 2013-01-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: ! ' description'
15
15
  email:
@@ -49,7 +49,7 @@ files:
49
49
  - lib/jt-mobile-kit/android/templates/assets/www/lib/js/jquery/jquery.mobile-1.2.0.min.js
50
50
  - lib/jt-mobile-kit/android/templates/assets/www/lib/js/jt/jt.js
51
51
  - lib/jt-mobile-kit/android/templates/assets/www/lib/js/jt/JTObject.js
52
- - lib/jt-mobile-kit/android/templates/assets/www/pages/main_page.haml
52
+ - lib/jt-mobile-kit/android/templates/assets/www/pages/_main_page.haml
53
53
  - lib/jt-mobile-kit/android/templates/assets/www/spec/function_spec.js
54
54
  - lib/jt-mobile-kit/android/templates/assets/www/spec/helper.js
55
55
  - lib/jt-mobile-kit/android/templates/assets/www/spec/index.js
@@ -128,6 +128,11 @@ files:
128
128
  - lib/jt-mobile-kit/android/templates/src/com/moode/sms/utils/Constants.java
129
129
  - lib/jt-mobile-kit/android/templates/src/com/moode/sms/utils/JsonUtils.java
130
130
  - lib/jt-mobile-kit/android/templates/src/com/moode/sms/utils/StringUtils.java
131
+ - lib/jt-mobile-kit/scaffold/scaffold.thor
132
+ - lib/jt-mobile-kit/scaffold/templates/_list_page.haml
133
+ - lib/jt-mobile-kit/scaffold/templates/_page.haml
134
+ - lib/jt-mobile-kit/scaffold/templates/md_class.js
135
+ - lib/jt-mobile-kit/scaffold/templates/md_list_class.js
131
136
  - lib/jt-mobile-kit/version.rb
132
137
  - lib/jt-mobile-kit.rb
133
138
  - lib/jt-mobile-kit/android/templates/.gitignore
@@ -153,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
158
  version: '0'
154
159
  requirements: []
155
160
  rubyforge_project:
156
- rubygems_version: 1.8.24
161
+ rubygems_version: 1.8.23
157
162
  signing_key:
158
163
  specification_version: 3
159
164
  summary: summary