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
MBP:~ kamal$ rvm debug | |
rvm 0.0.18 (2009.08.25) [http://github.com/wayneeseguin/rvm] | |
ruby: | |
interpreter: "ruby" | |
version: "1.8.6" | |
date: "2008-08-11" | |
platform: "universal-darwin9.0" | |
patchlevel: "2008-08-11 patchlevel 287" | |
full_version: "ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0]" |
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
MBP:~ kamal$ ruby -v | |
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] | |
MBP:~ kamal$ rvm -v | |
rvm 0.0.17 (2009.08.25) [http://github.com/wayneeseguin/rvm] | |
MBP:~ kamal$ rvm info | |
ruby: | |
interpreter: "ruby" | |
version: "1.8.6" | |
date: "2008-08-11" |
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
MBP:~ kamal$ ruby -v | |
ruby 1.8.6 (2008-08-11 patchlevel 287) [universal-darwin9.0] | |
MBP:~ kamal$ rvm default | |
<i> Switching to default ... | |
MBP:~ kamal$ ruby -v | |
ruby 1.8.6 (2009-06-08 patchlevel 369) [i686-darwin9.8.0] |
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
Then /^I should see "(.*)"$/ do |text| | |
response.body.should =~ /#{text}/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
MacBook-Pro:webrat(jruby-nokogiri) kamal$ rake spec:jruby | |
(in /Users/kamal/src/webrat) | |
(in /Users/kamal/src/webrat) | |
.............................................................*..........................................*......********..........................................**......**...........................................................................................................................F............................................................. | |
Pending: | |
click_button should properly handle HTML entities in textarea default values (needs bug fix) | |
spec/public/click_button_spec.rb:333 |
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 "sequel" | |
DB = Sequel.sqlite("#{File.dirname(__FILE__)}/db/penguin.sqlite3") unless defined?(DB) | |
unless DB.table_exists?(:waitlists) | |
DB.create_table :waitlists do | |
column :email, :text | |
column :app, :text | |
column :created_at, :timestamp |
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
sig = @@pkey.sign(OpenSSL::Digest::SHA1.new, data) | |
sig = [sig].pack("m").gsub(/\n/, "") #Base64 encode |
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
digest = OpenSSL::Digest::SHA1.new(data).hexdigest | |
sig = [@@pkey.private_encrypt(digest)].pack("m") #Base64 encode |
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
Authorization: AuthSub token="COy2q9qdGRDWm7iMAm" sigalg="rsa-sha1" data="GET http://www.google.com/m8/feeds/contacts/default/thin?max-results=200 1237370831 18094396511823580603" sig="XOQNfKpQ8VPCN2Yp+Zt=" |
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
Authorization: AuthSub token="COy2q9qdGRDWm7iMAm" |