This file contains hidden or 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
➜ ~ rvm install 1.9.3 | |
Installing Ruby from source to: /Users/evan/.rvm/rubies/ruby-1.9.3-p0, this may take a while depending on your cpu(s)... | |
ruby-1.9.3-p0 - #fetching | |
ruby-1.9.3-p0 - #extracted to /Users/evan/.rvm/src/ruby-1.9.3-p0 (already extracted) | |
Fetching yaml-0.1.4.tar.gz to /Users/evan/.rvm/archives | |
Extracting yaml-0.1.4.tar.gz to /Users/evan/.rvm/src | |
Configuring yaml in /Users/evan/.rvm/src/yaml-0.1.4. | |
Compiling yaml in /Users/evan/.rvm/src/yaml-0.1.4. | |
Installing yaml to /Users/evan/.rvm/usr |
This file contains hidden or 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
case args[:event] | |
when :created_like then score_delta | |
when :destroyed_like then score_delta * -1 | |
end |
This file contains hidden or 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
➜ top-kycks git:(master) ✗ ls | |
Gemfile Gemfile.lock Procfile README.md application.rb config docs lib spec | |
➜ top-kycks git:(master) ✗ ruby application.rb | |
<internal:lib/rubygems/custom_require>:29:in `require': no such file to load -- goliath (LoadError) | |
from <internal:lib/rubygems/custom_require>:29:in `require' | |
from application.rb:3:in `<main>' | |
➜ top-kycks git:(master) ✗ |
This file contains hidden or 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
➜ top-kycks git:(master) ✗ bundle exec rspec spec/integration/trending_kycks_spec.rb | |
/Users/evan/.rvm/gems/ruby-1.9.2-p290@top_kycks/bundler/gems/goliath-8a1476e0fc22/lib/goliath/test_helper.rb:3:in `require': no such file to load -- em-websocket-client (LoadError) | |
from /Users/evan/.rvm/gems/ruby-1.9.2-p290@top_kycks/bundler/gems/goliath-8a1476e0fc22/lib/goliath/test_helper.rb:3:in `<top (required)>' | |
from /Users/evan/work/tdd/top-kycks/spec/spec_helper.rb:3:in `require' | |
from /Users/evan/work/tdd/top-kycks/spec/spec_helper.rb:3:in `<top (required)>' | |
from /Users/evan/work/tdd/top-kycks/spec/integration/trending_kycks_spec.rb:1:in `require' | |
from /Users/evan/work/tdd/top-kycks/spec/integration/trending_kycks_spec.rb:1:in `<top (required)>' | |
from /Users/evan/.rvm/gems/ruby-1.9.2-p290@top_kycks/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `load' | |
from /Users/evan/.rvm/gems/ruby-1.9.2-p290@top_kycks/gems/rspec-core-2.7.1/lib/rspec/core/configuration.rb:459:in `block in load_spec_files' | |
from / |
This file contains hidden or 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
..dyld: Library not loaded: /System/Library/Frameworks/OpenCL.framework/Versions/A/Libraries/libclparser.dylib | |
Referenced from: /usr/local/bin/identify | |
Reason: image not found | |
Applying jhead -autorot | |
/Users/evan/.rvm/gems/ruby-1.9.2-p290@KYCK/gems/rake-0.9.2/lib/rake/rake_test_loader.rb: No such file or directory - jhead -autorot /Users/evan/work/tdd/kyck-web/tmp/carrierwave/20120117-1500-2577-7540/duck.jpg | |
sh: line 1: 2593 Trace/BPT trap: 5 identify -ping /var/folders/_4/t7h5w9qd5kj2w5lvb89sfk340000gp/T/mini_magick20120117-2577-1akuj8c.jpg 2>&1 | |
E..... | |
Finished in 7.608011 seconds. | |
1) Error: |
This file contains hidden or 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
➜ web git:(master) ✗ ruby test/unit/redis_store_test.rb | |
Loaded suite test/unit/redis_store_test | |
Started | |
....................... | |
Finished in 0.010417 seconds. |
This file contains hidden or 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
=> ["Barcelona", "FC Basel", "FC Bayern München", "FC Copenhagen", "FC Copenhagen", "FC Copenhagen", "FC Dallas", "FC Metalist Kharkiz", "FC Metalist Kharkiz", "FC Metalist Kharkiz", "FC Metalist Kharkiz", "FC Porto", "FC Sion", "FC Sion", "FC Sion", "FC Sion", "FC Twente", "FC Twente", "FC Twente", "FC Twente", "FC Vaslui", "FC Vaslui", "FC Vaslui", "FC Vaslui", "FC Zurich", "FC Zurich", "FC Zurich", "FC Zurich", "FC Zurich", "FC Zurich", "Porto", "Seattle", "Seattle Sounders FC", "Sevilla", "Toronto FC"] | |
1.9.2p290 :009 > ap Team.search("FC Sion").map(&:name) | |
Team Load (3.4ms) SELECT "teams".*, ts_rank(to_tsvector('english', "teams"."name"::text), to_tsquery('english', 'FC\ Sion'::text)) + ts_rank(to_tsvector('english', "teams"."description"::text), to_tsquery('english', 'FC\ Sion'::text)) + ts_rank(to_tsvector('english', "teams"."icon"::text), to_tsquery('english', 'FC\ Sion'::text)) + ts_rank(to_tsvector('english', "teams"."url"::text), to_tsquery('english', 'FC\ Sion'::text)) + ts_rank(to_tsvector('e |
This file contains hidden or 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
1.9.2p290 :015 > ap Team.search("Manchester").map(&:name) | |
Team Load (3.5ms) SELECT "teams".*, ts_rank(to_tsvector('english', "teams"."name"::text), to_tsquery('english', 'Manchester'::text)) + ts_rank(to_tsvector('english', "teams"."description"::text), to_tsquery('english', 'Manchester'::text)) + ts_rank(to_tsvector('english', "teams"."icon"::text), to_tsquery('english', 'Manchester'::text)) + ts_rank(to_tsvector('english', "teams"."url"::text), to_tsquery('english', 'Manchester'::text)) + ts_rank(to_tsvector('english', "teams"."stadium"::text), to_tsquery('english', 'Manchester'::text)) AS "rank0.9075883588015157" FROM "teams" WHERE (to_tsvector('english', "teams"."name"::text) @@ to_tsquery('english', 'Manchester'::text) OR to_tsvector('english', "teams"."description"::text) @@ to_tsquery('english', 'Manchester'::text) OR to_tsvector('english', "teams"."icon"::text) @@ to_tsquery('english', 'Manchester'::text) OR to_tsvector('english', "teams"."url"::text) @@ to_tsquery('english', 'Manchester'::text) OR |
This file contains hidden or 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
1.9.2p290 :019 > ap Team.search("Manchester United").second | |
Team Load (3.5ms) SELECT "teams".*, ts_rank(to_tsvector('english', "teams"."name"::text), to_tsquery('english', 'Manchester\ United'::text)) + ts_rank(to_tsvector('english', "teams"."description"::text), to_tsquery('english', 'Manchester\ United'::text)) + ts_rank(to_tsvector('english', "teams"."icon"::text), to_tsquery('english', 'Manchester\ United'::text)) + ts_rank(to_tsvector('english', "teams"."url"::text), to_tsquery('english', 'Manchester\ United'::text)) + ts_rank(to_tsvector('english', "teams"."stadium"::text), to_tsquery('english', 'Manchester\ United'::text)) AS "rank0.14952106945761412" FROM "teams" WHERE (to_tsvector('english', "teams"."name"::text) @@ to_tsquery('english', 'Manchester\ United'::text) OR to_tsvector('english', "teams"."description"::text) @@ to_tsquery('english', 'Manchester\ United'::text) OR to_tsvector('english', "teams"."icon"::text) @@ to_tsquery('english', 'Manchester\ United'::text) OR to_tsvector('english', " |