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
checking sys/mman.h usability... yes | |
checking sys/mman.h presence... yes | |
checking for sys/mman.h... yes | |
checking for mmap... yes | |
checking for sys/mman.h... (cached) yes | |
checking for mmap... (cached) yes | |
checking whether read-only mmap of a plain file works... yes | |
checking whether mmap from /dev/zero works... no | |
checking for MAP_ANON(YMOUS)... yes | |
checking whether mmap with MAP_ANON(YMOUS) works... yes |
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
/usr/include/c++/4.0.0/tr1/hashtable: In copy constructor ‘std::tr1::hashtable<Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, mutable_iterators, unique_keys>::hashtable(const std::tr1::hashtable<Key, Value, Allocator, ExtractKey, Equal, H1, H2, H, RehashPolicy, cache_hash_code, mutable_iterators, unique_keys>&) [with Key = rubinius::InlineCache*, Value = rubinius::InlineCache*, Allocator = std::allocator<rubinius::InlineCache*>, ExtractKey = Internal::identity<rubinius::InlineCache*>, Equal = std::equal_to<rubinius::InlineCache*>, H1 = std::tr1::hash<rubinius::InlineCache*>, H2 = Internal::mod_range_hashing, H = Internal::default_ranged_hash, RehashPolicy = Internal::prime_rehash_policy, bool cache_hash_code = false, bool mutable_iterators = false, bool unique_keys = true]’: | |
/usr/include/c++/4.0.0/tr1/unordered_set:56: instantiated from ‘typename Pair::second_type& Internal::map_base<K, Pair, Internal::extract1st<Pair>, true, Hashtable>::operator[](const K&) [with K = ru |
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
$ rake 2>&1 |tee o_rake | |
/Users/whitemac/.rvm/rubies/ruby-1.9.3-p194/bin/ruby -S rspec ./spec/controllers/abouts_controller_spec.rb ./spec/controllers/admin/config/accounts_controller_spec.rb ./spec/controllers/admin/config/overviews_controller_spec.rb ./spec/controllers/admin/config/shipping_categories_controller_spec.rb ./spec/controllers/admin/config/shipping_methods_controller_spec.rb ./spec/controllers/admin/config/shipping_rates_controller_spec.rb ./spec/controllers/admin/config/shipping_zones_controller_spec.rb ./spec/controllers/admin/config/tax_categories_controller_spec.rb ./spec/controllers/admin/config/tax_rates_controller_spec.rb ./spec/controllers/admin/document/invoices_controller_spec.rb ./spec/controllers/admin/fulfillment/comments_controller_spec.rb ./spec/controllers/admin/generic/coupons_controller_spec.rb ./spec/controllers/admin/generic/deals_controller_spec.rb ./spec/controllers/admin/help_controller_spec.rb ./spec/controllers/admin/history/addresses_controller_spec.rb ./spec/controllers |
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
1. Add this line to Gemfile: | |
* gem "database_cleaner", :git => 'git://github.com/bmabey/database_cleaner.git' | |
2. Add these lines to spec/spec_helper.rb. | |
config.before(:suite) do | |
DatabaseCleaner.strategy = :transaction | |
DatabaseCleaner.clean_with(:truncation) | |
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
==> day5_nethttp1.rb <== | |
# nethttp1.rb | |
require 'net/http' | |
url = URI.parse('http://ruby-metaprogramming.rubylearning.com/html/ruby_metaprogramming_1.html') | |
Net::HTTP.start(url.host, url.port) do |http| | |
req = Net::HTTP::Get.new(url.path) | |
puts http.request(req).body.split(/\W+/).count('the') | |
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
my_rack_proc = lambda { |env| [200, {"Content-Type" => "text/plain"}, ["Command line argument you typed was: #{ARGV[0]}"]] } | |
puts my_rack_proc.call({}) |
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
#Headless browser option | |
browser: | |
webkit: "phantomjs" | |
# gecko: "./slimerjs" | |
#If you want to have multiple snapping files, set the file name here | |
snap_file: "snap.js" | |
# Type the name of the directory that shots will be stored in | |
directory: |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0-rc1/css/bootstrap.min.css"> | |
<style type="text/css"> | |
.short-screenshot { | |
height: 200px; | |
width: 200px; | |
} | |
</style> |
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
527 Al Snow | |
247 James Dabbs | |
60 Clint Lee | |
59 Patrick Stoica | |
59 Gordon Macie | |
48 Diane Deseta | |
39 Jonathan Howard | |
34 Chenheli Hua | |
27 Jake Swanson | |
9 Gerry Pass |
This file has been truncated, but you can view the full file.
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
===== rspec spec/controllers/gifts_controller_spec.rb ========== | |
./home/dell/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.2/lib/active_record/inheritance.rb:27: [BUG] Segmentation fault at 0x00000c | |
ruby 2.1.0p0 (2013-12-25 revision 44422) [i686-linux] | |
-- Control frame information ----------------------------------------------- | |
c:0061 p:0109 s:0284 e:000281 METHOD /home/dell/.rvm/gems/ruby-2.1.0/gems/activerecord-4.0.2/lib/active_record/inheritance.rb:27 [FINISH] | |
c:0060 p:---- s:0275 e:000274 CFUNC :call | |
c:0059 p:0017 s:0271 e:000270 METHOD /home/dell/Projects/24pullrequests/app/models/user.rb:171 | |
c:0058 p:0020 s:0266 e:000263 METHOD /home/dell/Projects/24pullrequests/app/controllers/gifts_controller.rb:11 | |
c:0057 p:0014 s:0260 e:000259 METHOD /home/dell/.rvm/gems/ruby-2.1.0/gems/actionpack-4.0.2/lib/action_controller/metal/implicit_render.rb:4 |