Skip to content

Instantly share code, notes, and snippets.

View chevdor's full-sized avatar

Chevdor chevdor

View GitHub Profile
GEM
remote: http://rubygems.org/
specs:
activemessaging (0.7.1)
activesupport (>= 1.0.0)
activerecord (2.3.14)
activesupport (= 2.3.14)
activesupport (2.3.14)
acts-as-taggable-on (2.0.6)
addressable (2.2.8)
source "http://rubygems.org"
# gem "rails", "~> 2.3.5"
gem "chronic", "0.3.0"
gem "geoip", "0.8.9"
gem "daemons", "1.1.0", :require => false
gem "hoe", "2.8.0", :require => false
gem "echoe", "4.3.1", :require => false
gem "ruby-yadis", "0.3.4", :require => "yadis"
gem "ruby-openid", :require => "openid"
Bundler could not find compatible versions for gem "rack":
In Gemfile:
rails (~> 2.3.5) ruby depends on
rack (~> 1.1.0) ruby
rack (1.0.1)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
rails (~> 2.3.5) ruby depends on
source "http://rubygems.org"
gem "rails", "~> 2.3.5"
gem "chronic", "0.3.0"
gem "geoip", "0.8.9"
gem "daemons", "1.1.0", :require => false
gem "hoe", "2.8.0", :require => false
gem "echoe", "4.3.1", :require => false
gem "ruby-yadis", "0.3.4", :require => "yadis"
gem "ruby-openid", :require => "openid"
root@xxx:/var/www/git.xxx.com/gitorious# export RAILS_ENV=production && bundle exec rake db:migrate
/usr/local/rvm/gems/ruby-1.9.3-p194@rails326/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /var/www/git.xxx.com/gitorious)
rake aborted!
can't activate rack (~> 1.0.1), already activated rack-1.1.3. Make sure all dependencies are added to Gemfile.
(See full trace by running task with --trace)
root@xxx:/var/www/git.someserver.com.com/gitorious# export RAILS_ENV=production && bundle exec rake --trace db:migrate
/usr/local/rvm/gems/ruby-1.9.3-p194@rails326/gems/rake-0.8.7/lib/rake/alt_system.rb:32: Use RbConfig instead of obsolete and deprecated Config.
(in /var/www/git.someserver.com.com/gitorious)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
can't activate rack (~> 1.0.1), already activated rack-1.1.3. Make sure all dependencies are added to Gemfile.
/var/www/git.someserver.com.com/gitorious/vendor/rails/railties/lib/initializer.rb:271:in `rescue in require_frameworks'
/var/www/git.someserver.com.com/gitorious/vendor/rails/railties/lib/initializer.rb:268:in `require_frameworks'
@chevdor
chevdor / gist:8267342
Created January 5, 2014 11:42
/Users/.../nmanotifier.js:15 this.setup(); ^ TypeError: Object #<Object> has no method 'setup'
var nma = require("nma");
var _ = require('lodash');
var log = require('../core/log.js');
var util = require('../core/util.js');
var config = util.getConfig();
var nmaConfig = config.nmanotifier;
log.debug('Loading NMA notifier');
var NMA = function() {
@chevdor
chevdor / gist:8267695
Created January 5, 2014 12:37
working code
var email = require("emailjs");
var _ = require('lodash');
var log = require('../core/log.js');
var util = require('../core/util.js');
var config = util.getConfig();
var mailConfig = config.mailer;
var Mailer = function(done) {
_.bindAll(this);
var nma = require("nma");
var _ = require('lodash');
var log = require('../core/log.js');
var util = require('../core/util.js');
var config = util.getConfig();
var nmaConfig = config.nmanotifier;
log.debug('Loading NMA notifier');
var NMA = function() {
/Users/will/Projects/gekko-fork-will/actors/nmanotifier.js:15
this.setup();
^
TypeError: Object #<Object> has no method 'setup'
at NMA (/Users/will/Projects/gekko-fork-will/actors/nmanotifier.js:15:8)
at NMA.notify (/Users/will/Projects/gekko-fork-will/actors/nmanotifier.js:33:3)
at bound [as notify] (/Users/will/Projects/gekko-fork-will/node_modules/lodash/dist/lodash.js:729:21)
at NMA.setup (/Users/will/Projects/gekko-fork-will/actors/nmanotifier.js:20:12)
at bound (/Users/will/Projects/gekko-fork-will/node_modules/lodash/dist/lodash.js:729:21)
at new NMA (/Users/will/Projects/gekko-fork-will/actors/nmanotifier.js:15:8)