Skip to content

Instantly share code, notes, and snippets.

diff -ruN router-anymoose/.shipit router-caf/.shipit
--- router-anymoose/.shipit 2010-02-23 16:13:48.000000000 +0900
+++ router-caf/.shipit 2010-02-23 16:15:20.000000000 +0900
@@ -1,7 +1,3 @@
-steps = FindVersion, ChangeVersion, CheckChangeLog, Manifest, DistTest, Commit, Tag, MakeDist, UploadCPAN, Twitter, DistClean
-
+steps = FindVersion, ChangeVersion, CheckChangeLog, Manifest, DistTest, Commit, Tag, MakeDist, UploadCPAN, DistClean
git.tagpattern = %v
git.push_to = origin
-
#!/usr/bin/perl
package Options;
use Mouse;
with 'MouseX::Getopt';
has 'help' => (
is => 'rw',
isa => 'Bool',
default => 0,
Spork.each_run do
require 'cucumber/rails/world'
require 'rr'
Cucumber::Rails::World.send(:include, RR::Adapters::RRMethods)
Before do
RR.reset
end
After do
@masaki
masaki / gist:157123
Created July 28, 2009 11:03
configatron
# -*- coding: utf-8 -*-
# config/initializers/configatron.rb
configatron.configure_from_yaml("#{RAILS_ROOT}/config/configatron.yml", :hash => Rails.env)
@masaki
masaki / rubygems-remote_fetcher-no_proxy.patch
Created July 28, 2009 10:29
RubyGems with HTTP_PROXY/NO_PROXY
--- rubygems/remote_fetcher.rb.orig 2009-07-28 19:01:30.000000000 +0900
+++ rubygems/remote_fetcher.rb 2009-07-28 19:05:47.000000000 +0900
@@ -4,6 +4,7 @@
require 'uri'
require 'rubygems'
+require 'http_configuration'
##
# RemoteFetcher handles the details of fetching gems and gem information from
@masaki
masaki / gist:155854
Created July 26, 2009 16:26
authentication w/ ActiveLdap
#!/usr/bin/env ruby
require 'rubygems'
require 'active_ldap'
ActiveLdap::Base.setup_connection(
:host => 'ldap.example.com',
:base => 'dc=example,dc=com',
)
@masaki
masaki / gist:155454
Created July 26, 2009 07:22
rewrite selenium-server.jar enable browser version
gem install webrat -v=0.4.4
# webrat-0.4.4 is not compatible with selenium-client-1.2.15 or higher.
gem install selenium-client -v=1.2.14
cd $GEM_HOME/gems/webrat-0.4.4/vendor
jar xf selenium-server.jar \
customProfileDirCUSTFFCHROME/extensions/readystate\@openqa.org/install.rdf
jar xf selenium-server.jar \
customProfileDirCUSTFFCHROME/extensions/\{538F0036-F358-4f84-A764-89FB437166B4\}/install.rdf
--colour
--format specdoc
--format html:spec/spec_report.html
--loadby mtime
--reverse
--drb
Autotest.add_hook :initialize do |at|
# Version Control
%w[ .svn .git .hg ].each { |exception| at.add_exception(exception) }
# Temporary files
%w[ \.DS_Store #$ ].each { |exception| at.add_exception(%r%#{exception}%) }
# Rails
%w[ log tmp vendor db ].each { |exception| at.add_exception(exception) }
# Reporting
%w[ coverage ].each { |exception| at.add_exception(exception) }
%w[ spec/.+\.opts spec/.+\.html ].each { |exception| at.add_exception(%r%#{exception}%) }
@masaki
masaki / python-urllib-noproxy.patch
Created May 21, 2009 12:31
yum enable NO_PROXY (proxy=_none_)
diff --git a/urllib.py b/urllib.py
index 802d9b7..d13ddb7 100644
--- a/urllib.py
+++ b/urllib.py
@@ -35,7 +35,7 @@ __all__ = ["urlopen", "URLopener", "FancyURLopener", "urlretrieve",
"localhost", "thishost", "ftperrors", "basejoin", "unwrap",
"splittype", "splithost", "splituser", "splitpasswd", "splitport",
"splitnport", "splitquery", "splitattr", "splitvalue",
- "splitgophertype", "getproxies"]
+ "splitgophertype", "getproxies", "getnoproxies"]