qedproject 0.2.0 → 0.2.1

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/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.0rc2.js"]
7
- set_css_files ["jquery.mobile-1.0rc2.css" ]
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",
@@ -1,3 +1,3 @@
1
1
  module QEDProject
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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
 
@@ -0,0 +1,7 @@
1
+ var App = Em.Application.create();
2
+
3
+ App.MyView = Em.View.extend({
4
+ mouseDown: function() {
5
+ window.alert("hello world!");
6
+ }
7
+ });
Binary file