Skip to content

Instantly share code, notes, and snippets.

@gong023
gong023 / niconicofix.diff
Last active December 24, 2015 09:59
fix nicnonico login fix ranking parsing
diff --git a/lib/niconico.rb b/lib/niconico.rb
index da773f9..d9f8940 100644
--- a/lib/niconico.rb
+++ b/lib/niconico.rb
@@ -22,6 +22,7 @@ class Niconico
@logined = false
@agent = Mechanize.new
+ @agent.ssl_version = "SSLv3"
end
@gong023
gong023 / rspec_stub_bug.rb
Created September 13, 2013 09:32
rspec_stub_bug????
require 'yaml'
class A
def load_setting
YAML.load_file("./hoge.yaml") # hoge.yaml => setting: 1
end
end
class B
CONST = A.new.load_setting
@gong023
gong023 / gist:4136670
Created November 23, 2012 18:01
chrome extention test
### test