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
# make dialog respond | |
dialog.response(dialog.get_response(button)) | |
# run events forward til non left | |
Gtk.main_iteration while Gtk.events_pending? | |
# check non are left | |
p Gtk.events_pending? | |
#=> false (good) |
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
Scenario: Prompt for save new tab and click Save As shows dialog | |
When I press "Ctrl+T" | |
And I type "new tab" | |
And I press "Ctrl+W" | |
And I click the button "Save As" in the dialog "unsaved changes" | |
And I set the "Save As" dialog's filename to "plugins/edit_tab/features/fixtures/new_file.rb" | |
And I click the button "Save" in the dialog "Save As" | |
Then there should be no dialog called "Save As" | |
And the file "plugins/edit_tab/features/fixtures/new_file.rb" should contain "new tab" |
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
$ REDCAR_DEBUG=1 ./bin/redcar ../gutkumber/ --log | |
exporting dbus service: default | |
loaded bundle preferences in 0.00666s | |
built bundle menus in 0.092249s | |
starting Gui.main (in thread #<Thread:0xb6955298>) | |
redcar_start: 1.090248 seconds | |
[App] new window | |
[Keymap] received key: "Delete" | |
[Keymap] clean key: "Delete" | |
[Keymap] 2 candidate commands |
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
Scenario: Convert current word to uppercase # plugins/edit_tab/features/editing.feature:68 | |
When I type "Some Text" # plugins/edit_tab/features/step_definitions/edit_tab_steps.rb:22 | |
And I press "Ctrl+A" # vendor/gutkumber/lib/gutkumber/steps/keypress_steps.rb:52 | |
And I press "Ctrl+U" # vendor/gutkumber/lib/gutkumber/steps/keypress_steps.rb:52 | |
Then I should see "<s>SOME<c> Text" in the EditTab # plugins/core/features/step_definitions/tab_steps.rb:14 | |
expected "<c>SOME Text" to include "<s>SOME<c> Text" (Spec::Expectations::ExpectationNotMetError) | |
./plugins/redcar/features/../../core/features/step_definitions/tab_steps.rb:17:in `/^I should see (?-mix:"((?:[^"]|\")+)") in the (\w+)(?: "([^"]+)")?$/' | |
plugins/edit_tab/features/editing.feature:72:in `Then I should see "<s>SOME<c> Text" in the EditTab' | |
Scenario: Convert selected text to lowercase # plugins/edit_tab/features/editing.fe |
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
$ /opt/ruby-1.9.1-p129/bin/ruby -Ilib test/* | |
user system total real | |
store 1000 objects 3.470000 0.720000 4.190000 ( 4.920075) | |
commit one object 0.190000 0.030000 0.220000 ( 0.225264) | |
load 1000 objects /opt/ruby-1.9.1-p129/lib/ruby/gems/1.9.1/gems/georgi-git_store-0.3/lib/git_store.rb:294:in `get_object': not a loose object: 8717b89b4e102a5eedc57ee74582f320b6e7feb4 (RuntimeError) | |
from /opt/ruby-1.9.1-p129/lib/ruby/gems/1.9.1/gems/georgi-git_store-0.3/lib/git_store.rb:270:in `get' | |
from /opt/ruby-1.9.1-p129/lib/ruby/gems/1.9.1/gems/georgi-git_store-0.3/lib/git_store.rb:149:in `load' | |
from /opt/ruby-1.9.1-p129/lib/ruby/gems/1.9.1/gems/georgi-git_store-0.3/lib/git_store.rb:69:in `initialize' | |
from test/benchmark.rb:24:in `new' | |
from test/benchmark.rb:24:in `block (2 levels) in <main>' |
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
if ARGV[0] == "rubyredis" | |
require 'rubyredis' | |
redis = RedisClient.new(:timeout => nil) | |
else | |
require 'rubygems' | |
require 'redis' | |
redis = Redis.new(:timeout => nil) | |
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
if ARGV[0] == "rubyredis" | |
require 'rubyredis' | |
def redis | |
RedisClient.new(:timeout => nil) | |
end | |
else | |
require 'rubygems' | |
require 'redis' | |
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
redis-rb: | |
25 May 17:14:14 * WARNING overcommit_memory is set to 0! Background save may fail under low condition memory. To fix this issue add 'echo 1 > /proc/sys/vm/overcommit_memory' in your init scripts. | |
25 May 17:14:14 * Warning: no config file specified, using the default config. In order to specify a config file use 'redis-server /path/to/redis.conf' | |
25 May 17:14:14 - Server started, Redis version 0.100 | |
25 May 17:14:14 - The server is now ready to accept connections on port 6379 | |
25 May 17:14:15 . 0 clients connected (0 slaves), 2517 bytes in use | |
25 May 17:14:18 . Accepted 127.0.0.1:36449 | |
25 May 17:14:18 . Client closed connection | |
25 May 17:14:20 . DB 0: 1000 keys (0 volatile) in 0 slots HT. | |
25 May 17:14:20 . 0 clients connected (0 slaves), 90429 bytes in use |
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
require 'rubygems' | |
require 'mq' | |
trap("INT") do | |
puts "int" | |
## what goes here? ## | |
end | |
module Messaging | |
def self.thread |
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
require 'rubygems' | |
require 'mq' | |
module Messaging | |
trap("INT") do | |
puts "Received interrupt" | |
EM.stop | |
end | |