Skip to content

Instantly share code, notes, and snippets.

View charlesjolley's full-sized avatar

Charles Jolley charlesjolley

View GitHub Profile
Mini-Labs:uglify-js charles$ bundle exec bpm push uglify-js-1.0.4.bpkg
RubyGems.org cannot process this gem.
Please try rebuilding it and installing it locally to make sure it's valid.
Error:
uninitialized constant LibGems
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:113:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:112:in `each'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/inflector/methods.rb:112:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.3/lib/active_support/core_ext/string/inflections.rb:43:in `constantize'
/app/.bundle/gems/ruby/1.8/gems/delayed_job-2.1.2/lib/delayed/yaml_ext.rb:22:in `yaml_tag_read_class'
--- !ruby/object:Gem::Specification
name: uglify-js
version: !ruby/object:Gem::Version
prerelease:
version: 1.0.4
platform: ruby
authors:
- Mihai Bazon
autorequire:
bindir: bin
@charlesjolley
charlesjolley / dev_view.coffee
Created August 21, 2012 03:57
Adding event locks to Ember
# example view implements a simple dragging for mouse events.
Wall.DevView = Ember.View.extend
mouseDown: (ev) ->
ev.dispatcher.lock @, 'mouseMove', 'mouseUp'
@_mouseDown = @$().offset()
@_mouseDown.pageX = ev.pageX
@_mouseDown.pageY = ev.pageY
@_mouseDown.dispatcher = ev.dispatcher
console.log 'mouseDown'