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
def predicate_nominative_pronoun | |
case gender | |
when 'm' | |
return 'him' | |
when 'M' | |
return 'him' | |
when 'f' | |
return 'her' | |
when 'F' | |
return 'her' |
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
irb(main):005:0> satisfaction = Satisfaction.new | |
=> #<Satisfaction:0x180dff8 @identity_map=#<Sfn::IdentityMap:0x180df30 @pages={}, @records={}>, @options={:root=>"http://api.getsatisfaction.com", :autoload=>false, :authorize_url=>"http://getsatisfaction.com/api/authorize", :request_token_url=>"http://getsatisfaction.com/api/request_token", :access_token_url=>"http://getsatisfaction.com/api/access_token"}, @loader=#<Sfn::Loader:0x180df58 @cache=#<Sfn::Loader::HashCache:0x180decc @cached_responses={}>, @options={:cache=>:hash}>> | |
irb(main):006:0> satisfaction.set_consumer REDACTED, REDACTED | |
=> #<OAuth::Consumer:0x1808788 @options={:oauth_version=>"1.0", :request_token_path=>"/oauth/request_token", :authorize_path=>"/oauth/authorize", :access_token_path=>"/oauth/access_token", :signature_method=>"HMAC-SHA1", :scheme=>:header, :http_method=>:post, :proxy=>nil}, @secret=REDACTED, @key=REDACTED> | |
irb(main):007:0> request_token = satisfaction.request_token | |
=> #<OAuth::Token:0x18014c4 @secret=[REDACTED], @token=[REDACT |
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
irb(main):012:0> @satisfaction.request_token | |
=> #<OAuth::Token:0x180ed40 @secret=[REDACTED], @token=[REDACTED]> | |
irb(main):013:0> @satisfaction.companies.post(:name => REDACTED, :url => REDACTED, :description => REDACTED) | |
NoMethodError: undefined method `<=>' for nil:NilClass | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/helper.rb:35:in `<=>' | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/helper.rb:35:in `sort' | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/helper.rb:35:in `normalize' | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/request_proxy/base.rb:89:in `normalized_parameters' | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/request_proxy/base.rb:104:in `signature_base_string' | |
from /Library/Ruby/Gems/1.8/gems/oauth-0.3.4/lib/oauth/signature/base.rb:66:in `signature_base_string' |
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
>> fn = Satisfaction.new | |
=> #<Satisfaction:0x2417498 @identity_map=#<Satisfaction::IdentityMap:0x24173bc @records={}, @pages={}>, @loader=#<Satisfaction::Loader:0x24173f8 @options={:cache=>:hash}, @cache=#<Satisfaction::Loader::HashCache:0x2417358 @cached_responses={}>>, @options={:access_token_url=>"http://getsatisfaction.com/api/access_token", :root=>"http://api.getsatisfaction.com", :autoload=>false, :request_token_url=>"http://getsatisfaction.com/api/request_token", :authorize_url=>"http://getsatisfaction.com/api/authorize"}> | |
>> fn.set_consumer("REDACTED","REDACTED") | |
=> #<OAuth::Consumer:0x2412600 @secret="REDACTED", @key="REDACTED", @options={:request_token_path=>"/oauth/request_token", :scheme=>:header, :authorize_path=>"/oauth/authorize", :access_token_path=>"/oauth/access_token", :http_method=>:post, :oauth_version=>"1.0", :signature_method=>"HMAC-SHA1"}> | |
>> fn.companies.post(:name => "REDACTED", :url => "REDACTED", :description => "A REDACTED Spinoff") | |
=> [:unauthorized, "Access Denied"] | |
>> fn.req |
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
[22:29][me@phoenix-2:~/cutting/k]$ thin start -R config.ru | |
>> Thin web server (v1.0.0 codename That's What She Said) | |
>> Maximum connections set to 1024 | |
>> Listening on 0.0.0.0:3000, CTRL+C to stop | |
!! Unexpected error while processing request: Could not load sqlite adapter: | |
no such file to load -- sqlite3 | |
****MEANWHILE, IN ANOTHER TERMINAL WINDOW**** | |
[22:30][me@phoenix-2:~]$ curl -i http://localhost:3000/cloudkit-meta |
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
Warning: please use bin/merb to load merb-core-1.0.6.1 from ./gems | |
Loading init file from /Users/pius/q/myapp/config/init.rb | |
Loading /Users/pius/q/myapp/config/environments/development.rb | |
~ Connecting to database... | |
~ Loaded slice 'MerbAuthSlicePassword' ... | |
~ Loaded slice 'MerbPhotos' ... | |
~ Loaded slice 'MerbUi' ... | |
~ Loaded slice 'OohAuth' ... | |
~ Parent pid: 28557 | |
You have specified Story.has(:involved_people) with :class_name => "Person". You probably also want to specify the :child_key option. |
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
~ Connecting to database... | |
~ Loaded slice 'MerbAuthSlicePassword' ... | |
~ Loaded slice 'MerbPhotos' ... | |
~ Loaded slice 'MerbUi' ... | |
~ Loaded slice 'OohAuth' ... | |
~ Parent pid: 27616 | |
You have specified Story.has(:involved_people) with :class_name => "Person". You probably also want to specify the :child_key option. | |
~ Compiling routes... | |
~ Could not find resource model AuthenticatingClient | |
~ Could not find resource model Token |
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
Loading init file from /Users/pius/q/myapp/config/init.rb | |
Loading /Users/pius/q/myapp/config/environments/development.rb | |
/Users/pius/q/myapp/gems/gems/danski-ooh-auth-0.1.10/lib/ooh-auth.rb:5:in `load_dependency': wrong number of arguments (1 for 2) (ArgumentError) | |
from /Users/pius/q/myapp/gems/gems/danski-ooh-auth-0.1.10/lib/ooh-auth.rb:5 | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/core_ext/kernel.rb:149:in `require' | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/core_ext/kernel.rb:149:in `load_dependency' | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/bootloader.rb:405:in `load_dependencies' | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/bootloader.rb:405:in `each' | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/bootloader.rb:405:in `load_dependencies' | |
from /Users/pius/q/myapp/gems/gems/merb-core-1.0.6.1/lib/merb-core/bootloader.rb:393:in `run' |
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
[12:49][pius@phoenix-2:~/q/y]$ gem list | grep dm-is-list | |
dm-is-list (0.9.6) |
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
foo |