depo 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -7,6 +7,7 @@ Is attempt to automate many tasks and practices in building RIA using Dojo and R
7
7
  1. sudo gem install depo
8
8
  or in config/environment.rb:
9
9
  ...
10
+ config.gem 'dojo_src',:version=>'[DOJO_GEM_VERSION]'
10
11
  config.gem 'depo'
11
12
  ...
12
13
  >> sudo rake gems:install
@@ -26,7 +27,6 @@ Is attempt to automate many tasks and practices in building RIA using Dojo and R
26
27
  author 'niquola'
27
28
  themes ['basic']
28
29
  default_theme 'basic'
29
- dojo_version '1.4.1'
30
30
  base_webpath '/myapplication'
31
31
 
32
32
  build_options {
@@ -45,6 +45,10 @@ Is attempt to automate many tasks and practices in building RIA using Dojo and R
45
45
  }
46
46
 
47
47
 
48
+ == CHANGE LOG:
49
+
50
+ * 0.0.5 remove dependency from dojo_src, to extenrnalize control over it
51
+
48
52
  == LICENSE:
49
53
 
50
54
  (The MIT License)
data/Rakefile CHANGED
@@ -36,7 +36,7 @@ spec = Gem::Specification.new do |s|
36
36
  #s.homepage = ""
37
37
  s.platform = Gem::Platform::RUBY
38
38
  s.summary = "Rails & Dojo integration"
39
- s.add_dependency('dojo_src')
39
+ #s.add_dependency('dojo_src')
40
40
  s.add_dependency('rails', '>= 2.3.5')
41
41
  s.add_dependency('kung_figure', '0.0.2')
42
42
  s.files = PKG_FILES.to_a
@@ -15,7 +15,7 @@ dojo.require("<%= dijit_base_class %>");
15
15
  // baseClass: [protected] String
16
16
  baseClass: "<%= dijit_style_class_name %>"
17
17
  //templateString: dojo.cache("<%= dijit_package_name %>", "templates/<%= dijit_class_name %>.html"),
18
- //widgetsInTemplate: true,
18
+ widgetsInTemplate: true,
19
19
  //buildRendering: function () {
20
20
  //this.inherited(arguments);
21
21
  //},
data/lib/depo/config.rb CHANGED
@@ -8,9 +8,12 @@ module Depo
8
8
  define_prop :default_theme,'tundra'
9
9
  define_prop :profile_path,'tmp/dojo_build_profile.js'
10
10
  define_prop :default_page_lib,'app.pages'
11
- define_prop :dojo_version,'1.4.102'
12
11
  define_prop :enable_dojofy, true
13
12
 
13
+ def dojo_version(*args)
14
+ raise "dojo_version depricated."
15
+ end
16
+
14
17
  def src_path
15
18
  "#{root}/src"
16
19
  end
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.4'
7
+ VERSION = '0.0.5'
8
8
  autoload :Config, 'depo/config'
9
9
  autoload :Build, 'depo/build'
10
10
  autoload :DijitConventions, 'depo/dijit_conventions'
@@ -18,7 +18,9 @@ module Depo
18
18
  end
19
19
  def dojofy
20
20
  Dir.chdir(RAILS_ROOT) do
21
- version = Depo.config.dojo_version
21
+ require 'dojo_src'
22
+ version = DojoSrc::VERSION
23
+ #version = Depo.config.dojo_version
22
24
  system "dojofy _#{version}_ #{Depo.config.src_path}"
23
25
  end
24
26
  end
data/test/config_test.rb CHANGED
@@ -6,7 +6,6 @@ class DepoConfigureTest < GeneratorTest
6
6
  Depo.configure {
7
7
  author 'niquola@gmail.com'
8
8
  themes ['tundra','verdugo']
9
- dojo_version '1.4.2'
10
9
 
11
10
  environments {
12
11
  developmentDjConfig 'parseOnLoad:true;isDebug:true;'
@@ -37,7 +36,6 @@ class DepoConfigureTest < GeneratorTest
37
36
  }
38
37
 
39
38
  config=Depo.config
40
- assert_equal('1.4.2', config.dojo_version)
41
39
  assert_equal('public/ria', config.root)
42
40
  assert_equal('/ria', config.root_webpath)
43
41
  assert_equal('public/ria/src', config.src_path)
@@ -13,7 +13,7 @@ dojo.provide("app.my.Dijit");
13
13
  // baseClass: [protected] String
14
14
  baseClass: "AppMyDijit"
15
15
  //templateString: dojo.cache("app.my", "templates/Dijit.html"),
16
- //widgetsInTemplate: true,
16
+ widgetsInTemplate: true,
17
17
  //buildRendering: function () {
18
18
  //this.inherited(arguments);
19
19
  //},
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: depo
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 21
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 4
9
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
10
11
  platform: ruby
11
12
  authors:
12
13
  - niquola, smecsia
@@ -14,49 +15,41 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-05 00:00:00 +04:00
18
+ date: 2010-05-25 00:00:00 +04:00
18
19
  default_executable:
19
20
  dependencies:
20
- - !ruby/object:Gem::Dependency
21
- name: dojo_src
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ">="
26
- - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- version: "0"
30
- type: :runtime
31
- version_requirements: *id001
32
21
  - !ruby/object:Gem::Dependency
33
22
  name: rails
34
23
  prerelease: false
35
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
36
26
  requirements:
37
27
  - - ">="
38
28
  - !ruby/object:Gem::Version
29
+ hash: 9
39
30
  segments:
40
31
  - 2
41
32
  - 3
42
33
  - 5
43
34
  version: 2.3.5
44
35
  type: :runtime
45
- version_requirements: *id002
36
+ version_requirements: *id001
46
37
  - !ruby/object:Gem::Dependency
47
38
  name: kung_figure
48
39
  prerelease: false
49
- requirement: &id003 !ruby/object:Gem::Requirement
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
50
42
  requirements:
51
43
  - - "="
52
44
  - !ruby/object:Gem::Version
45
+ hash: 27
53
46
  segments:
54
47
  - 0
55
48
  - 0
56
49
  - 2
57
50
  version: 0.0.2
58
51
  type: :runtime
59
- version_requirements: *id003
52
+ version_requirements: *id002
60
53
  description:
61
54
  email: niquola@gmail.com
62
55
  executables: []
@@ -129,23 +122,27 @@ rdoc_options: []
129
122
  require_paths:
130
123
  - lib
131
124
  required_ruby_version: !ruby/object:Gem::Requirement
125
+ none: false
132
126
  requirements:
133
127
  - - ">="
134
128
  - !ruby/object:Gem::Version
129
+ hash: 3
135
130
  segments:
136
131
  - 0
137
132
  version: "0"
138
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
+ none: false
139
135
  requirements:
140
136
  - - ">="
141
137
  - !ruby/object:Gem::Version
138
+ hash: 3
142
139
  segments:
143
140
  - 0
144
141
  version: "0"
145
142
  requirements: []
146
143
 
147
144
  rubyforge_project:
148
- rubygems_version: 1.3.6
145
+ rubygems_version: 1.3.7
149
146
  signing_key:
150
147
  specification_version: 3
151
148
  summary: Rails & Dojo integration