tech-angels / annotator

Keep model fields commented in your rails apps.
MIT License
64 stars 5 forks source link

Support for non-rails apps. #3

Closed lucasefe closed 12 years ago

lucasefe commented 12 years ago

Hey, great work. I just added some coded to make it work without Rails.

In order to make it work in my case, I just added this lines to my rakefile.

task :annotate do
  require 'annotator'
  Annotator.run(File.join(Dir.pwd, "lib", "models"))
end

I'm using Sinatra, but this could work with anything.

With this change, you could also avoid requiring rails on the gemspec, just saying :-)

Thanks

comboy commented 12 years ago

Hello :)

Thanks for your contribution, it sounds good

So you are using activerecord with sinatra, right? I guess we could change dependency from rails > 3.0 to activerecord > 3.0.

lucasefe commented 12 years ago

That would be good enough, I think.

:-) Glad to help.

lucasefe commented 12 years ago

@comboy should I change the dependency myself? (just wanna know the ball is not waiting on my side).

comboy commented 12 years ago

Sorry for long response. Dependency changed, it's merged and released.

Thanks for your contribution!

lucasefe commented 12 years ago

It's nice to contribute!