qedproject 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/qedproject +0 -0
- data/lib/qedproject/libraries/ember.rb +27 -0
- data/lib/qedproject/libraries/jquerymobile.rb +2 -2
- data/lib/qedproject/version.rb +1 -1
- data/lib/qedproject.rb +2 -2
- data/templates/suite.html +8 -1
- data/vendor/ember/app.js +7 -0
- data/vendor/ember/apple-touch-icon-114x114-precomposed.png +0 -0
- data/vendor/ember/apple-touch-icon-57x57-precomposed.png +0 -0
- data/vendor/ember/apple-touch-icon-72x72-precomposed.png +0 -0
- data/vendor/ember/apple-touch-icon-precomposed.png +0 -0
- data/vendor/ember/apple-touch-icon.png +0 -0
- data/vendor/ember/ember-0.9.js +14745 -0
- data/vendor/ember/favicon.ico +0 -0
- data/vendor/ember/style.css +141 -0
- data/vendor/ember/templates/index.html +57 -0
- data/vendor/jquerymobile/ajax-loader.png +0 -0
- data/vendor/jquerymobile/icons-18-black.png +0 -0
- data/vendor/jquerymobile/icons-18-white.png +0 -0
- data/vendor/jquerymobile/icons-36-black.png +0 -0
- data/vendor/jquerymobile/icons-36-white.png +0 -0
- data/vendor/jquerymobile/{jquery.mobile-1.0rc2.css → jquery.mobile-1.0.css} +250 -295
- data/vendor/jquerymobile/{jquery.mobile-1.0rc2.js → jquery.mobile-1.0.js} +456 -319
- metadata +19 -13
- data/lib/qedproject/libraries/jquerytmpl.rb +0 -10
- data/vendor/jquerytmpl/VERSION +0 -1
- data/vendor/jquerytmpl/jquery.tmpl.min.js +0 -10
data/bin/qedproject
CHANGED
File without changes
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module QEDProject
|
2
|
+
module Libraries
|
3
|
+
class Ember < QEDProject::Libraries::Base
|
4
|
+
library :ember
|
5
|
+
depends_on [:jquery]
|
6
|
+
set_js_files ["ember-0.9.js", "app.js"]
|
7
|
+
set_css_files ["style.css" ]
|
8
|
+
set_image_files [
|
9
|
+
"apple-touch-icon-114x114-precomposed.png",
|
10
|
+
"apple-touch-icon-57x57-precomposed.png",
|
11
|
+
"apple-touch-icon-72x72-precomposed.png",
|
12
|
+
"apple-touch-icon-precomposed.png",
|
13
|
+
"apple-touch-icon.png",
|
14
|
+
"favicon.ico"
|
15
|
+
]
|
16
|
+
|
17
|
+
def generate!
|
18
|
+
super
|
19
|
+
return true if self.project.skip_index
|
20
|
+
index_file = File.join(self.project.path, self.project.public_dir, "index.html")
|
21
|
+
FileUtils.rm_rf index_file if File.exist?(index_file)
|
22
|
+
render_template "index.html", index_file
|
23
|
+
end
|
24
|
+
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -3,8 +3,8 @@ module QEDProject
|
|
3
3
|
class Jquerymobile < QEDProject::Libraries::Base
|
4
4
|
library :jquerymobile
|
5
5
|
depends_on [:jquery]
|
6
|
-
set_js_files ["jquery.mobile-1.
|
7
|
-
set_css_files ["jquery.mobile-1.
|
6
|
+
set_js_files ["jquery.mobile-1.0.js"]
|
7
|
+
set_css_files ["jquery.mobile-1.0.css" ]
|
8
8
|
set_image_files [
|
9
9
|
"ajax-loader.png",
|
10
10
|
"icons-18-black.png",
|
data/lib/qedproject/version.rb
CHANGED
data/lib/qedproject.rb
CHANGED
@@ -4,10 +4,10 @@ require "qedproject/libraries/base"
|
|
4
4
|
require "qedproject/libraries/jquery"
|
5
5
|
require "qedproject/libraries/backbone"
|
6
6
|
require "qedproject/libraries/knockout"
|
7
|
-
require "qedproject/libraries/jquerytmpl"
|
8
7
|
require "qedproject/libraries/jquerymobile"
|
9
8
|
require "qedproject/libraries/skeleton"
|
10
9
|
require "qedproject/libraries/mustache"
|
10
|
+
require "qedproject/libraries/ember"
|
11
11
|
|
12
12
|
require "qedproject/project"
|
13
13
|
require "qedproject/plugins"
|
@@ -17,4 +17,4 @@ module QEDProject
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
QEDProject::Plugins::load_plugins
|
20
|
+
QEDProject::Plugins::load_plugins
|
data/templates/suite.html
CHANGED
@@ -7,7 +7,14 @@
|
|
7
7
|
<script type="text/javascript" src="lib/jasmine-1.0.2/jasmine-html.js"></script>
|
8
8
|
|
9
9
|
<!-- include source files here... -->
|
10
|
-
|
10
|
+
<% if @project.jammit -%>
|
11
|
+
<script src="../public/assets/app.js"></script>
|
12
|
+
<% else -%>
|
13
|
+
<% @project.js_assets.each do |js| -%>
|
14
|
+
<script src="../public/javascripts/<%=js %>"></script>
|
15
|
+
<% end -%>
|
16
|
+
<script src="../public/javascripts/app.js"></script>
|
17
|
+
<% end -%>
|
11
18
|
<!-- include spec files here... -->
|
12
19
|
<script type="text/javascript" src="sampleSpec.js"></script>
|
13
20
|
|
data/vendor/ember/app.js
ADDED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|