Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bitbucket_rest_api seems to be required #558

Closed
tmaier opened this issue Sep 16, 2013 · 3 comments
Closed

bitbucket_rest_api seems to be required #558

tmaier opened this issue Sep 16, 2013 · 3 comments
Labels
Milestone

Comments

@tmaier
Copy link
Contributor

tmaier commented Sep 16, 2013

I always disable all unnecessary issue tracker gems.
(as described in the Gemfile)

I also commented out bitbucket_rest_api.
But when pushing my application to heroku, I got the following error message when compiling the assets. I get the same message when the server tries to start.

-----> Writing config/database.yml to read from DATABASE_URL

       Running: rake assets:precompile
       DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_86yhgg2oax97/Rakefile:8)
       DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_86yhgg2oax97/Rakefile:8)
       Please copy 'config/config.example.yml' to 'config/config.yml' and configure your settings. Using default settings.
       rake aborted!
       No such file to load -- bitbucket_rest_api
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:317:in `rescue in depend_on'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:312:in `depend_on'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:73:in `load_model'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:48:in `block (2 levels) in load_models'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:47:in `each'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:47:in `block in load_models'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:46:in `each'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/rails/mongoid.rb:46:in `load_models'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/mongoid-2.7.1/lib/mongoid/railtie.rb:120:in `block (2 levels) in <class:Railtie>'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:429:in `_run__2071607666718982995__prepare__105112628621388333__callbacks'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:405:in `__run_callback'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:385:in `_run_prepare_callbacks'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/callbacks.rb:81:in `run_callbacks'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/reloader.rb:74:in `prepare!'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/middleware/reloader.rb:48:in `prepare!'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:47:in `block in <module:Finisher>'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/lib/rails/initializable.rb:54:in `each'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
       /tmp/build_86yhgg2oax97/config/environment.rb:10:in `<top (required)>'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
ailties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/turbo-sprockets-rails3-0.3.6/lib/turbo-sprockets/tasks/assets.rake:184:in `block (2 levels) in <top (required)>'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/turbo-sprockets-rails3-0.3.6/lib/turbo-sprockets/tasks/assets.rake:35:in `invoke_or_reboot_rake_task'
       /tmp/build_86yhgg2oax97/vendor/bundle/ruby/1.9.1/gems/turbo-sprockets-rails3-0.3.6/lib/turbo-sprockets/tasks/assets.rake:50:in `block (2 levels) in <top (required)>'
       Tasks: TOP => environment
       (See full trace by running task with --trace)
       Precompiling assets failed, enabling runtime asset compilation
       Please see this article for troubleshooting help:
       http://devcenter.heroku.com/articles/rails31_heroku_cedar#troubleshooting
-----> WARNINGS:
       Injecting plugin 'rails_log_stdout'
       Injecting plugin 'rails3_serve_static_assets'
       Add 'rails_12factor' gem to your Gemfile to skip plugin injection
       You have not declared a Ruby version in your Gemfile.
       To set your Ruby version add this line to your Gemfile:
       ruby '1.9.2'
       # See https://devcenter.heroku.com/articles/ruby-versions for more information."
-----> DEPRECATIONS:
       Runtime asset compilation is being removed on Sep. 18, 2013.
       Builds will soon fail if assets fail to compile.

@tmaier
Copy link
Contributor Author

tmaier commented Sep 16, 2013

It seems like all issue trackers with dependencies check if required class is definded.
For example if defined? Fogbugz

IssueTrackers::BitbucketIssuesTracker does not check for this and additionally, it requires bitbucket_rest_api in the first line. At the same time, it is not requiring bitbucket_rest_api in the Gemfile.

IssueTrackers::UnfuddleTracker does also not check if taskmapper-unfuddle is defined.

The dependency for IssueTrackers::MingleTracker seems to be missing in the Gemfile. As well as the defined? check is missing.

The same is true for NotificationServices::GtalkService, NotificationServices::HoiioService, NotificationServices::HubotService, NotificationServices::PushoverService and NotificationServices::WebhookService

@shingara
Copy link
Member

You right and I agree with all of your comment.

About Mingle, there are no dependencies needed because it's directly in the errbit codebase see lib/issue_trackers/apis/mingle.rb

@tmaier
Copy link
Contributor Author

tmaier commented Sep 16, 2013

Cool! Thank you for your fast response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants