depo 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,4 @@
1
1
  <div class="${baseClass}">
2
- <div class="${baseClass}Container"
3
- dojoAttachPoint='containerNode'
4
- >
2
+ <div class="${baseClass}Container" dojoAttachPoint='containerNode'>
5
3
  </div>
6
4
  </div>
@@ -10,6 +10,8 @@
10
10
  <link rel="stylesheet" href="/<%= style_path %>" type="text/css" />
11
11
  </head>
12
12
  <body class="app">
13
+ <div dojoType="<%= dijit_full_name %>" jsId="<%= dijit_class_name.camelize(:lower) %>">
14
+ </div>
13
15
  </body>
14
16
  </html>
15
17
 
@@ -52,7 +52,7 @@ module Depo
52
52
  end
53
53
 
54
54
  def from_src(*args)
55
- File.join(*args.flatten.unshift(Depo.config.src_path))
55
+ File.join(*args.flatten.unshift(Depo.config.src_path).delete_if { |x| x.nil? || x.empty? })
56
56
  end
57
57
 
58
58
  def j(*args)
data/lib/depo.rb CHANGED
@@ -4,7 +4,7 @@ require 'kung_figure'
4
4
  require 'active_support'
5
5
 
6
6
  module Depo
7
- VERSION = '0.0.5'
7
+ VERSION = '0.0.6'
8
8
  autoload :Config, 'depo/config'
9
9
  autoload :Build, 'depo/build'
10
10
  autoload :DijitConventions, 'depo/dijit_conventions'
@@ -15,4 +15,9 @@ class DijitConventionsTest < GeneratorTest
15
15
 
16
16
  assert_not_nil(dijit.to_hash)
17
17
  end
18
+
19
+ def test_conventions
20
+ dijit=Depo::DijitConventions.new('app.Dijit')
21
+ assert_equal('public/ria/src/app', dijit.package_path)
22
+ end
18
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depo
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - niquola, smecsia
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-05-25 00:00:00 +04:00
18
+ date: 2010-05-27 00:00:00 +04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -59,59 +59,53 @@ extensions: []
59
59
  extra_rdoc_files:
60
60
  - README.rdoc
61
61
  files:
62
- - init.rb
62
+ - MIT-LICENSE
63
63
  - Rakefile
64
- - uninstall.rb
64
+ - init.rb
65
65
  - README.rdoc
66
66
  - install.rb
67
- - MIT-LICENSE
67
+ - uninstall.rb
68
+ - generators/depo_config/depo_config_generator.rb
69
+ - generators/depo_config/USAGE
70
+ - generators/depo_config/templates/depo.rb
71
+ - generators/dijit/USAGE
72
+ - generators/dijit/templates/test.html
73
+ - generators/dijit/templates/test.js
74
+ - generators/dijit/templates/template.html
75
+ - generators/dijit/templates/style.css
76
+ - generators/dijit/templates/class.js
77
+ - generators/dijit/dijit_generator.rb
78
+ - generators/dpage/dpage_generator.rb
79
+ - generators/dpage/USAGE
68
80
  - generators/dpage/templates/dpage.css
69
- - generators/dpage/templates/app/views.js
70
- - generators/dpage/templates/app/controllers.js
71
- - generators/dpage/templates/app/models.js
72
- - generators/dpage/templates/dpage.js
73
81
  - generators/dpage/templates/controller.rb
82
+ - generators/dpage/templates/helper.rb
74
83
  - generators/dpage/templates/helper_test.rb
75
84
  - generators/dpage/templates/view.haml
76
- - generators/dpage/templates/helper.rb
77
85
  - generators/dpage/templates/default_stylesheets/reset.css
86
+ - generators/dpage/templates/default_stylesheets/all.css
78
87
  - generators/dpage/templates/default_stylesheets/theme_override.css
79
88
  - generators/dpage/templates/default_stylesheets/common.css
80
- - generators/dpage/templates/default_stylesheets/all.css
81
- - generators/dpage/USAGE
82
- - generators/dpage/dpage_generator.rb
83
- - generators/depo_config/templates/depo.rb
84
- - generators/depo_config/USAGE
85
- - generators/depo_config/depo_config_generator.rb
86
- - generators/dijit/dijit_generator.rb
87
- - generators/dijit/templates/style.css
88
- - generators/dijit/templates/template.html
89
- - generators/dijit/templates/test.html
90
- - generators/dijit/templates/class.js
91
- - generators/dijit/templates/test.js
92
- - generators/dijit/USAGE
93
- - lib/depo/config.rb
94
- - lib/depo/build.rb
89
+ - generators/dpage/templates/dpage.js
90
+ - generators/dpage/templates/app/models.js
91
+ - generators/dpage/templates/app/views.js
92
+ - generators/dpage/templates/app/controllers.js
95
93
  - lib/depo/dijit_conventions.rb
94
+ - lib/depo/build.rb
95
+ - lib/depo/config.rb
96
96
  - lib/depo/tasks.rb
97
- - lib/depo/templates/dojo_src.tpl
98
97
  - lib/depo/templates/profile.js
98
+ - lib/depo/templates/dojo_src.tpl
99
99
  - lib/depo/view_helpers.rb
100
100
  - lib/depo.rb
101
101
  - tasks/depo.rake
102
+ - test/database.yml
103
+ - test/path_utils_test.rb
102
104
  - test/build_profile_test.rb
105
+ - test/test_helper.rb
103
106
  - test/action_pack_test.rb
104
- - test/path_utils_test.rb
105
107
  - test/generators_test.rb
106
- - test/database.yml
107
- - test/rails_root/public/ria/src/app/my/templates/Dijit.html
108
- - test/rails_root/public/ria/src/app/my/Dijit.js
109
- - test/rails_root/public/ria/src/app/themes/tundra/my/Dijit.css
110
- - test/rails_root/public/ria/src/app/tests/my/Dijit.html
111
- - test/rails_root/public/ria/src/app/tests/my/Dijit.js
112
- - test/rails_root/public/ria/src/DOJO_VERSION
113
108
  - test/config_test.rb
114
- - test/test_helper.rb
115
109
  has_rdoc: true
116
110
  homepage:
117
111
  licenses: []
@@ -1 +0,0 @@
1
- 1.4.102
@@ -1,28 +0,0 @@
1
- /**
2
- * app.my.Dijit
3
- * Created by niquola@gmail.com
4
- **/
5
- dojo.provide("app.my.Dijit");
6
-
7
- (function () {
8
- //here go private vars and functions
9
- dojo.declare("app.my.Dijit",null, {
10
- // summary:
11
- // HERE WIDGET SUMMARY
12
-
13
- // baseClass: [protected] String
14
- baseClass: "AppMyDijit"
15
- //templateString: dojo.cache("app.my", "templates/Dijit.html"),
16
- widgetsInTemplate: true,
17
- //buildRendering: function () {
18
- //this.inherited(arguments);
19
- //},
20
- //layout: function () {
21
- //var cb = this._contentBox;
22
- //dojo.marginBox(this.containerNode, cb);
23
- //},
24
- //postCreate: function () {
25
- //this.inherited(arguments);
26
- //}
27
- });
28
- })();
@@ -1,6 +0,0 @@
1
- <div class="${baseClass}">
2
- <div class="${baseClass}Container"
3
- dojoAttachPoint='containerNode'
4
- >
5
- </div>
6
- </div>
@@ -1,16 +0,0 @@
1
- <?xml version='1.0' encoding='utf-8' ?>
2
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html>
4
- <head>
5
- <title>app.my.Dijit</title>
6
-
7
- <script type="text/javascript" src="/ria/src/dojo/dojo.js" djConfig="isDebug:false,parseOnLoad:true"> </script>
8
- <script src="Dijit.js"></script>
9
- <link rel="stylesheet" href="public/ria/src/common.css" type="text/css" />
10
-
11
- <link rel="stylesheet" href="/public/ria/src/app/themes/tundra/my/Dijit.css" type="text/css" />
12
- </head>
13
- <body class="app">
14
- </body>
15
- </html>
16
-
@@ -1,11 +0,0 @@
1
- dojo.require("doh.runner");
2
- //dojo.require("dojo.robot");
3
- dojo.require("app.my.Dijit");
4
-
5
- dojo.addOnLoad(function () {
6
- doh.register("app.my.Dijit", [
7
- function test(t) {
8
- t.t(false,"not implemented");
9
- }]);
10
- doh.run();
11
- });
@@ -1,4 +0,0 @@
1
- .AppMyDijit {
2
- }
3
- .AppMyDijitContainer {
4
- }