This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
`import Ember from 'ember'` | |
Select2Component = Ember.TextField.extend | |
tagName: 'div' | |
classNames: ['select2'] | |
autoFocus: false | |
source: [] | |
closeOnSelect: false | |
multiSelect: false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('div').each(function() { | |
var scale = Math.floor((Math.random() * 50) + 1); | |
$(this).css('transition', 'all 0.' + scale + 's'); | |
}); | |
$(document).on('keyup', function(e) { | |
$('div').each(function() { | |
var scale = Math.floor((Math.random() * 50) + 1); | |
$(this).css('transform', 'rotate(' + scale + 'deg)'); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--type-add=ruby=.haml,.rake,.rsel,.builder | |
--type-add=html=.html.erb,.html.haml | |
--type-add=js=.js.erb,.json | |
--type-add=css=.sass,.less,.scss | |
--type-set=cucumber=.feature | |
--ignore-dir=coverage | |
--ignore-dir=doc | |
--ignore-dir=log | |
--ignore-dir=system |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapted from rspec-rails http://github.com/rspec/rspec-rails/blob/master/spec/rspec/rails/mocks/mock_model_spec.rb | |
shared_examples_for "ActiveModel" do | |
require 'test/unit/assertions' | |
require 'active_model/lint' | |
include Test::Unit::Assertions | |
include ActiveModel::Lint::Tests | |
# to_s is to support ruby-1.9 | |
ActiveModel::Lint::Tests.public_instance_methods.map{|m| m.to_s}.grep(/^test/).each do |m| |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Background: # features/item_crud.feature:3 | |
Given I am a site owner # features/step_definitions/owner_sign_in_steps.rb:1 | |
file:/Users/pairing/.rvm/gems/ree-1.8.7-2010.01@triato/bundler/gems/akephalos-05b2e3c82a3d80510cfb5d8327b364245b57b645-master/src/jruby-complete-1.5.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require': no such file to load -- set (LoadError) | |
from file:/Users/pairing/.rvm/gems/ree-1.8.7-2010.01@triato/bundler/gems/akephalos-05b2e3c82a3d80510cfb5d8327b364245b57b645-master/src/jruby-complete-1.5.0.jar!/META-INF/jruby.home/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' | |
from /Users/pairing/.rvm/gems/ree-1.8.7-2010.01@triato/gems/bundler-0.9.26/lib/bundler/resolver.rb:1 | |
from /Users/pairing/.rvm/gems/ree-1.8.7-2010.01@triato/gems/bundler-0.9.26/lib/bundler/resolver.rb:55:in `resolve' | |
from /Users/pairing/.rvm/gems/ree-1.8.7-2010.01@triato/gems/bundler-0.9.26/lib/bundler/environment.rb:59:in `resolve_locally' | |
from /U |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def all_specs | |
"spec/models/ spec/lib/ spec/integration/" | |
end | |
trap 'INT' do | |
if $interrupted | |
exit! 0 | |
else | |
puts "Interrupt a second time to quit" | |
$interrupted = true |