xmvc 0.1.9 → 0.1.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.9
1
+ 0.1.10
@@ -2,6 +2,7 @@ $LOAD_PATH.unshift(File.dirname(__FILE__))
2
2
 
3
3
  module Xmvc
4
4
  module Generator
5
+
5
6
  autoload :Layout, 'generators/layout'
6
7
  autoload :App, 'generators/app'
7
8
  autoload :Model, 'generators/model'
@@ -47,16 +48,16 @@ module Xmvc
47
48
  view = View.new([], options.dup)
48
49
  view.invoke("generate", [package, name])
49
50
  when "namespace"
50
- #self.namespace(name)
51
+ self.namespace(options)
51
52
  end
52
53
  end
53
54
 
54
55
  # overwrites all instances of 'MyApp' with the namespace provided
55
56
  def self.namespace(namespace)
56
- current = Xmvc.namespace
57
+ current = Xmvc.config["namespace"]
57
58
 
58
59
  configs = %w(
59
- config/settings.yml
60
+ config/environment.yml
60
61
  config/application.js
61
62
  )
62
63
  Dir["app/controllers/*.js"].each do |f|
@@ -68,6 +69,7 @@ module Xmvc
68
69
  configs.each {|f|
69
70
  write_namespace(f, current, namespace)
70
71
  }
72
+ Xmvc.config.render
71
73
  end
72
74
 
73
75
  private
data/lib/xmvc/vendor.rb CHANGED
@@ -127,7 +127,7 @@ module Xmvc
127
127
  def prepare_vendor(options)
128
128
  vendor = new([], options)
129
129
  vendor.inside(File.expand_path(options[:root])) do
130
- vendor.inside vendor_name do |root|
130
+ vendor.inside vendor_name.to_s do |root|
131
131
  vendor.destination_root = root
132
132
  yield vendor if block_given?
133
133
  configure(vendor)
data/lib/xmvc.rb CHANGED
@@ -79,7 +79,7 @@ module Xmvc
79
79
 
80
80
  ##
81
81
  # Xmvc::
82
- attr_writer :config
82
+ attr_accessor :config
83
83
 
84
84
  ##
85
85
  # @param {Symbol} type :js, :css, :image
@@ -0,0 +1 @@
1
+ alert('ValidVendor');
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 9
9
- version: 0.1.9
8
+ - 10
9
+ version: 0.1.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ed Spencer and Chris Scott
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-03-19 00:00:00 -04:00
17
+ date: 2010-03-23 00:00:00 -04:00
18
18
  default_executable: xmvc
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -194,7 +194,6 @@ files:
194
194
  - lib/xmvc/vendor.rb
195
195
  - lib/xmvc/vendor/plugin.rb
196
196
  - test/app/public/javascripts/valid_vendor/valid_vendor-all-debug.js
197
- - test/app/test/app/vendor/ext/vendor.yml
198
197
  - test/app/vendor/ext/vendor.yml
199
198
  - test/app/vendor/valid_vendor/src/ValidVendor.js
200
199
  - test/app/vendor/valid_vendor/vendor.yml
@@ -207,6 +206,7 @@ files:
207
206
  - test/lib/valid_vendor/src/ValidVendor.js
208
207
  - test/lib/valid_vendor/valid_vendor.rb
209
208
  - test/lib/valid_vendor/vendor.yml
209
+ - test/public/javascripts/valid_vendor/valid_vendor-all-debug.js
210
210
  - test/test_app_installer.rb
211
211
  - test/test_vendor_installer.rb
212
212
  has_rdoc: true
@@ -1,19 +0,0 @@
1
- # Defines the build order of Ext MVC. Comments indicated with a hash.
2
- # Each line denotes either a single file, or a directory glob. If a glob, all matching files are included
3
- # (unless they have already been defined)
4
-
5
- name: ext
6
-
7
- version: 3.1.1
8
-
9
- dependencies:
10
-
11
- host: http://extjs.cachefly.net
12
-
13
- javascripts:
14
- - adapter/ext/ext-base.js
15
- - ext-all.js
16
-
17
- stylesheets:
18
- - resources/css/ext-all.css
19
-