achiurizo / consular

Terminal automation
http://rdoc.info/github/achiu/consular/master/file/README.md
MIT License
813 stars 46 forks source link

rb-appscript error with when "terminator init" is run #62

Closed JoeyButler closed 13 years ago

JoeyButler commented 13 years ago

When I attempted to run "terminator init", with Mac OS X - Terminal, I received an error with rb-appscript-0.5.3. Upon updating that gem to 0.6, everything worked fine. It seems line 20 of terminator.gemspec needs to be: s.add_dependency "rb-appscript", "~>0.6"

achiurizo commented 13 years ago

I have terminitor running with appscript 0.5.3 and it seems to be working fine. What was the error you received? Regardless, specifying a version isn't a bad idea.

Also, this library does have a gemspec file.

https://github.com/achiu/terminitor/blob/master/terminitor.gemspec

JoeyButler commented 13 years ago
/Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/_aem/aemreference.rb:36:in `new': wrong argument type String (expected Module) (TypeError)
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/_aem/aemreference.rb:36:in `pack_enum'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/_aem/aemreference.rb:214
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/_aem/codecs.rb:12
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/aem.rb:19
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/rb-appscript-0.5.3/lib/appscript.rb:21
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/terminitor-0.4.1/lib/terminitor.rb:15
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
from /Users/joeybutler/.rvm/rubies/ruby-1.8.7-p302/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/gems/terminitor-0.4.1/bin/terminitor:2
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/bin/terminitor:19:in `load'
from /Users/joeybutler/.rvm/gems/ruby-1.8.7-p302/bin/terminitor:19

Sorry I missed the gemspec at first. (Fighting insomnia atm)

achiurizo commented 13 years ago

as of commit 7a4c1da8c335b036e97fa252807bab789ec39ca1, I've updated the rb-appscript dependency to ~0.6.1 and released version 0.5.0. Let me know if this works out for you, thanks!