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 = '0.1.0'#EmergentCore::VERSION
29
+ PROJ.version = EmergentCore::VERSION
30
30
  PROJ.rubyforge.name = 'emergent-core'
31
31
 
32
32
  PROJ.executables = ['bin/emergent']
@@ -1,3 +1,5 @@
1
+ require 'restfulx'
2
+
1
3
  class EmergentGenerator < RubiGen::Base
2
4
  include RestfulX::Configuration
3
5
 
data/lib/emergent_core.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module EmergentCore
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.01'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
@@ -1,5 +1,4 @@
1
- require 'open-uri'
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emergent-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.01
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lance Pollard