devboy / gator

gator - the friendly code-generator
MIT License
9 stars 1 forks source link

Gator with AS3 generators not working anymore #6

Closed weyert closed 13 years ago

weyert commented 13 years ago

I am having the following gator.rb file in my project;

 require "gator/as3/generators"
 require "gator/as3/generators/test/asunit4"

 project Gator::Project::ProjectBase.new

 project.layout[:source,:main,:as3] = "flash/src"
 project.layout[:source,:test,:as3] = "tdd/flash/src"

Now if I call gator in my project I am getting the following error:

C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators/klass.rb:3:i n <module:AS3>': uninitialized constant Gator::AS3::Task (NameError) from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators /klass.rb:2:inmodule:Gator' from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators /klass.rb:1:in <top (required)>' from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators /collection.rb:1:inrequire' from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators /collection.rb:1:in <top (required)>' from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators .rb:1:inrequire' from C:/Users/x/Ruby191/lib/ruby/gems/1.9.1/gems/gator-as3-0.0.7.pre/lib/gator/as3/generators .rb:1:in <top (required)>' from E:/y/workspace/gator.rb:1:inrequire' from E:/y/workspace/gator.rb:1:in `

'

What am I doing wrong?

My gems list:

gator (0.0.21.pre, 0.0.20.pre) gator-as3 (0.0.7.pre) gator-as3-robotlegs (0.0.3.pre)

My gator output:

E:>gator version 0.0.21.pre

devboy commented 13 years ago

Hey Weyert,

Problem is that repositories of gator, gator-as3 and gator-as3-robotlegs are out of sync. So while gator-as3 might already be on rubygems it links against a development version of gator which is not on rubygems yet. We are currently changing our development and deployment style so we can always ship prereleases and releases that are in sync. Sorry for the inconvinience!

weyert commented 13 years ago

Aah, okidoki.

weyert commented 12 years ago

It's working now. Be note that you need to use gator instead of gator.rb to avoid confusing under Windows. I used the latest prerelease versions of gator and gator-as3