emergent-core 0.1.0 → 0.1.01
Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile
CHANGED
@@ -26,7 +26,7 @@ PROJ.summary = 'Emergent Flex Application Generator'
|
|
26
26
|
PROJ.authors = 'Lance Pollard'
|
27
27
|
PROJ.email = 'lancejpollard@gmail.com'
|
28
28
|
PROJ.url = 'http://wiki.github.com/viatropos/emergent_core'
|
29
|
-
PROJ.version =
|
29
|
+
PROJ.version = EmergentCore::VERSION
|
30
30
|
PROJ.rubyforge.name = 'emergent-core'
|
31
31
|
|
32
32
|
PROJ.executables = ['bin/emergent']
|
data/lib/emergent_core.rb
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
require '
|
2
|
-
require File.join(File.dirname(__FILE__), '..', '..', 'lib', 'restfulx') if !defined?(RestfulX)
|
1
|
+
require 'restfulx'
|
3
2
|
|
4
3
|
class EmergentConfigGenerator < Rails::Generator::NamedBase
|
5
4
|
include RestfulX::Configuration
|
@@ -188,8 +187,7 @@ class EmergentConfigGenerator < Rails::Generator::NamedBase
|
|
188
187
|
|
189
188
|
# Presentation Models
|
190
189
|
%w(AboutUsModel AccountModel AuthenticationModel ContactUsModel DocumentModel
|
191
|
-
ContentModel DocumentsModel HomeModel MainModel PagesModel ProfileModel ResourceModel
|
192
|
-
NavigationBarLeftModel NavigationBarRightModel NavigationBarTopModel NavigationBarBottomModel).each do |file|
|
190
|
+
ContentModel DocumentsModel HomeModel MainModel PagesModel ProfileModel ResourceModel).each do |file|
|
193
191
|
m.template "app/flex/application/models/presentation/#{file}.as",
|
194
192
|
"app/flex/#{base_folder}/models/presentation/#{file}.as"
|
195
193
|
end
|
@@ -224,6 +222,8 @@ class EmergentConfigGenerator < Rails::Generator::NamedBase
|
|
224
222
|
"app/flex/#{base_folder}/views/navigation/#{file.camelcase}View.mxml"
|
225
223
|
m.template "app/flex/application/views/navigation/#{file}_presenter.as",
|
226
224
|
"app/flex/#{base_folder}/views/navigation/#{file.camelcase}Presenter.as"
|
225
|
+
m.template "app/flex/application/views/navigation/#{file}_model.as",
|
226
|
+
"app/flex/#{base_folder}/models/presentation/#{file.camelcase}Model.as"
|
227
227
|
end
|
228
228
|
m.template "app/flex/application/views/navigation/navigation_bars_troparchy.mxml", "app/flex/#{base_folder}/views/navigation/NavigationBarsTroparchy.mxml"
|
229
229
|
|