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
diff --git a/lib/capistrano/command.rb b/lib/capistrano/command.rb | |
index 8e0c61b..87a4c41 100644 | |
--- a/lib/capistrano/command.rb | |
+++ b/lib/capistrano/command.rb | |
@@ -207,13 +207,15 @@ module Capistrano | |
if options[:shell] == false | |
shell = nil | |
+ shell, cmd = replace_environment(shell, cmd) | |
else |
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
pinned = Pin.find(:all,:conditions => [ 'user_id = ?','arika' ], :joins => 'LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid', :order => 'last_modifieds.date desc',:offset =>0,:limit => 10) | |
D,[22:31:17.510] Pin Load (0.6ms) SELECT `pins`.* FROM `pins` LEFT OUTER JOIN last_modifieds ON pins.eid = last_modifieds.eid WHERE (user_id = 'arika') ORDER BY last_modifieds.date desc LIMIT 0, 10 |
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
pinned = Pin.find(:all,:conditions => [ 'pins.eid = last_modifieds.eid AND user_id = ?','arika' ], :joins => 'LEFT OUTER JOIN last_modifieds', :order => 'last_modifieds.date desc',:offset =>0,:limit => 10) | |
D,[22:27:06.977] Pin Load (0.0ms) Mysql::Error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'WHERE (pins.eid = last_modifieds.eid AND user_id = 'arika') ORDER BY last_modif' at line 1: SELECT `pins`.* FROM `pins` LEFT OUTER JOIN last_modifieds WHERE (pins.eid = last_modifieds.eid AND user_id = 'arika') ORDER BY last_modifieds.date desc LIMIT 0, 10 |
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
module UpstreamSupport | |
module Utils | |
def initialize(config) | |
@config = config | |
end | |
def to_ary | |
to_a | |
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
# -*- coding: utf-8 -*- | |
config.plugins.auto_search.set_default(:keywords, []) | |
module Termtter::Client | |
public_storage[:auto_search] ||= { | |
:since_id => nil, | |
:keyword => {}, | |
} |
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
--- a/lib/plugins/defaults/standard_commands.rb | |
+++ b/lib/plugins/defaults/standard_commands.rb | |
@@ -179,7 +179,7 @@ module Termtter::Client | |
register_hook(:highlight_for_search_query, :point => :pre_coloring) do |text, event| | |
case event | |
when SearchEvent | |
- query = event.query.split(/\s/).map {|q|Regexp.quote(q)}.join("|") | |
+ query = event.query.split(/\s/).reject {|q|q == 'OR'}.map {|q|Regexp.quote(q)}.join("|") | |
text.gsub(/(#{query})/i, '<on_magenta><white>\1</white></on_magenta>') | |
else |
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
#!/usr/bin/ruby | |
require 'rubygems' | |
gem 'capistrano' | |
require 'capistrano/cli' | |
class Capdo < Capistrano::CLI | |
def option_parser | |
return @option_parser if @option_parser |
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
# メモ: | |
# * libmilter-client-ruby1.8_1.6.7-1を前提に作成。 | |
# * ごく簡単に動作確認をした。 | |
# * 実際には使用していない。 | |
require 'tempfile' | |
require 'milter/client' | |
load '/usr/bin/bsfilter' | |
class Bsfilter | |
attr_accessor :milter |
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
#!/usr/bin/ruby1.9.1 | |
# encoding: UTF-8 | |
=begin | |
Copyright (c) 2011, akira yamada | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions | |
are met: | |
1. Redistributions of source code must retain the above copyright |
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
#!/usr/bin/ruby | |
require 'net/pop' | |
def rc_parse(io) | |
r = [] | |
io.each {|line| | |
line.strip! | |
if /^(?:(.*)@)?(\S+)\s+(.*)$/ =~ line | |
r << if $1 | |
[$1, $2, $3] |