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
GIT | |
remote: https://github.com/jtapia/solidus_mailchimp_sync.git | |
revision: ee766bac790d38f18b56ac33bfad73b818a0c8f9 | |
specs: | |
solidus_mailchimp_sync (1.0.0.beta06) | |
deface (~> 1.0) | |
http (~> 2.0) | |
solidus_core (>= 1.4, < 3) | |
solidus_support |
I hereby claim:
- I am rymai on github.
- I am rymai (https://keybase.io/rymai) on keybase.
- I have a public key whose fingerprint is 2056 CEB5 6891 EFA6 5BE0 DF59 46DF 07E5 CD9E 96AB
To claim this, I am signing this object:
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
# Include this in your spec_helper.rb: | |
config.expect_with :rspec do |c| | |
c.syntax = :expect | |
end | |
# Then, run: | |
find spec -name "*.rb" -exec gsed -i -e "s/\(\s\+\)\(.*\)\.should_not /\1expect(\2).not_to /g" -e "s/\(\s\+\)\(.*\)\.should /\1expect(\2).to /g" -e "s/\(\s\+\)\(.*\)\.should_receive/\1expect(\2).to receive/g" -e "s/\(\s\+\)\(.*\)\.should_not_receive/\1expect(\2).to_not receive/g" "{}" \; | |
# About RSpec's New Expectation Syntax |
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
// This code is the automatic conversion to JS of photos_carousel.js.coffee + application.js.coffee. | |
// Performed on http://coffeescript.org (click on the "TRY COFFEESCRIPT" tab). | |
var PhotosCarousel; | |
PhotosCarousel = (function() { | |
function PhotosCarousel(lightboxes) { | |
this.lightboxes = lightboxes; | |
this.currentIndex = 0; | |
this.setupObservers(); |
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
guard 'shell' do | |
watch(/.+/) { |m| puts m } | |
end |
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
a.zoomable { | |
display:block; | |
width:180px; | |
height:76px; | |
background:#000; | |
position:relative; | |
-webkit-box-shadow:rgba(0,0,0,0.4) 0 4px 10px; | |
-moz-box-shadow:rgba(0,0,0,0.4) 0 4px 10px; | |
box-shadow:rgba(0,0,0,0.4) 0 4px 10px; | |
} |
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
guard :vagrant, :cwd => '/custom/cwd' | |
guard :phpunit, :vagrant => true do | |
watch %r{^website/application/(.+)\.php} | |
watch %r{^website/tests/unit/(.+)\.php} | |
watch 'website/tests/unit/phpunit.xml' | |
end |
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
# https://github.com/ernie/squeel/issues/42 | |
NoMethodError: undefined method `with_connection' for ActiveRecord::Base:Class | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/rails-d9d78d4165d1/activerecord/lib/active_record/base.rb:1082:in `method_missing' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/gems/arel-2.2.0/lib/arel/visitors/to_sql.rb:16:in `accept' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/base.rb:85:in `quote' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/predicate_visitor.rb:342:in `quote_for_node' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/predicate_visitor.rb:101:in `visit_Squeel_Nodes_Predicate' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/base.rb:97:in `visit' | |
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/pre |
In ~/prison
, you put the Guardfile
that describe which files to watch for changes and what to execute once a file is modified.
guard 'shell' do
watch(%r{^.+\.txt$}) { |m| `echo #{File.join(::Guard.listener.directory, m[0])}` }
end
In ~/watch_from_here
, you put the Gemfile
that list the guards you want to use.
NewerOlder