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.
- data/lib/jt-mobile-kit/android/templates/assets/www/pages/{main_page.haml → _main_page.haml} +0 -0
- data/lib/jt-mobile-kit/scaffold/scaffold.thor +20 -0
- data/lib/jt-mobile-kit/scaffold/templates/_list_page.haml +7 -0
- data/lib/jt-mobile-kit/scaffold/templates/_page.haml +4 -0
- data/lib/jt-mobile-kit/scaffold/templates/md_class.js +9 -0
- data/lib/jt-mobile-kit/scaffold/templates/md_list_class.js +9 -0
- data/lib/jt-mobile-kit/version.rb +1 -1
- metadata +9 -4
data/lib/jt-mobile-kit/android/templates/assets/www/pages/{main_page.haml → _main_page.haml}
RENAMED
File without changes
|
@@ -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
|
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.
|
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-
|
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/
|
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.
|
161
|
+
rubygems_version: 1.8.23
|
157
162
|
signing_key:
|
158
163
|
specification_version: 3
|
159
164
|
summary: summary
|