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
current directory: /home/aaron/.rvm/gems/truffleruby-1.0.0-rc2/gems/nokogiri-1.8.3/ext/nokogiri | |
/home/aaron/.rvm/rubies/truffleruby-1.0.0-rc2/bin/truffleruby -r ./siteconf20180627-20269-1369s86.rb extconf.rb | |
checking if the C compiler accepts ... yes | |
Building nokogiri using packaged libraries. | |
Using mini_portile version 2.3.0 | |
checking for gzdopen() in -lz... yes | |
checking for iconv... yes | |
************************************************************************ | |
IMPORTANT NOTICE: |
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
#!/usr/bin/env ruby | |
require 'set' | |
require 'json' | |
if ARGV.length != 3 | |
puts "Usage: detect_leaks [FIRST.json] [SECOND.json] [THIRD.json]" | |
exit 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
Take the following log for example: | |
Completed 204 No Content in 280ms | |
Started GET "/some/url?..." | |
Processing by MythicalContentController#index as HTML | |
Parameters: {...} | |
Doing some stuff | |
Completed 204 No Content in 41ms | |
Doing some more stuff | |
Started GET "/some/url?..." | |
Processing by MythicalContentController#index as HTML |
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
Take the following log for example: | |
Completed 204 No Content in 280ms | |
Started GET "/some/url?..." | |
Processing by MythicalContentController#index as HTML | |
Parameters: {...} | |
Doing some stuff | |
Completed 204 No Content in 41ms | |
Doing some more stuff | |
Started GET "/some/url?..." | |
Processing by MythicalContentController#index as HTML |
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
# see http://linux.die.net/man/8/vmstat | |
r b swpd free buff cache si so bi bo in cs us sy id wa | |
Thu Oct 11 17:42:25 2012: 11 0 0 9617072 13156 168244 0 0 0 41828 16175 17291 11 3 77 8 | |
Thu Oct 11 17:42:26 2012: 2 1 0 9548672 13156 170124 0 0 0 25492 11297 11707 17 10 66 7 | |
Thu Oct 11 17:42:27 2012: 1 7 0 9514320 13164 170576 0 0 0 7413 6212 6348 22 9 15 54 | |
Thu Oct 11 17:42:28 2012: 1 1 0 9493192 13164 170596 0 0 0 109 4339 4114 22 12 50 16 | |
Thu Oct 11 17:42:29 2012: 2 12 0 9483008 13164 170892 0 0 0 505 6746 6331 29 5 13 53 | |
Thu Oct 11 17:42:30 2012: 2 6 0 9414176 13164 170816 0 0 0 8 9120 9462 17 9 22 51 | |
Thu Oct 11 17:42:31 2012: 2 2 0 9483776 13164 171692 0 0 0 1801 4152 3614 23 8 32 37 |
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
diff --git a/lib/state_machine/condition_proxy.rb b/lib/state_machine/condition_proxy.rb | |
index a738d02..53ae3c1 100644 | |
--- a/lib/state_machine/condition_proxy.rb | |
+++ b/lib/state_machine/condition_proxy.rb | |
@@ -51,9 +51,18 @@ module StateMachine | |
include EvalHelpers | |
# Creates a new proxy to the given class, merging in the given condition | |
- def initialize(klass, condition) | |
- @klass = klass |
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
state_machine :checkout_state, :initial => :address, :use_transactions => false do | |
state :delivery | |
state :payment | |
state :confirm | |
state :complete | |
event :next do | |
transition :from => :address, :to => :delivery | |
transition :from => :delivery, :to => :payment | |
transition :from => :payment, :to => :confirm |
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
class Vehicle | |
attr_accessor :running | |
state_machine :initial => :parked do | |
after_transition {|object, transition| object.send(transition.event)} | |
event :ignite do | |
transition :parked => :idling | |
end | |
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
class User < ActiveRecord::Base | |
state_machine :initial => :pending do | |
# Event to call each time user proceeds to the next step | |
event :proceed do | |
transition :pending => :personal_info_registered | |
transition :personal_info_registered => :payment_info_registered | |
transition :payment_info_registered => :activated | |
end | |
# Attributes that must be present in at least Step 1 |
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
# Solution in 0.9.2 | |
state_machine :integration => nil do | |
... | |
end |
NewerOlder