• R/O
  • HTTP
  • SSH
  • HTTPS

コミット

タグ
未設定

よく使われているワード(クリックで追加)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Ruby GTK3移行後のメインリポジトリ


コミットメタ情報

リビジョンce54613902b9098a645cc89d851c866f1276e98d (tree)
日時2015-05-21 22:15:59
作者Shyouzou Sugitani <shy@user...>
コミッターShyouzou Sugitani

ログメッセージ

assorted fixes(23)

変更サマリ

差分

--- a/lib/ninix/sakura.rb
+++ b/lib/ninix/sakura.rb
@@ -2810,7 +2810,7 @@ module Sakura
28102810 elsif node[0] == Script::SCRIPT_TEXT
28112811 text = expand_meta(node[1])
28122812 if @anchor
2813- @anchor[1] = ''.join([@anchor[1], text])
2813+ @anchor[1] = [@anchor[1], text].join('')
28142814 end
28152815 script_speed = @parent.handle_request(
28162816 'GET', 'get_preference', 'script_speed')
@@ -2892,7 +2892,7 @@ module Sakura
28922892 left, top, scrn_w, scrn_h = Pix.get_workarea()
28932893 buf << scrn_h.to_s
28942894 elsif chunk[1] == '%et'
2895- buf << '{0:d}万年'.format(@current_time[5])
2895+ buf << @current_time[5].to_s[-1] + '万年'
28962896 elsif chunk[1] == '%wronghour'
28972897 wrongtime = Time.new.to_f + [-2, -1, 1, 2].sample * 3600
28982898 buf << time.localtime(wrongtime)[3].to_s
@@ -2912,12 +2912,12 @@ module Sakura
29122912
29132913 ### SEND SSTP/1.3 ###
29142914 def _send_sstp_handle(data)
2915- r, w, e = select.select([], [@sstp_handle], [], 0)
2915+ r, w, e = IO.select([], [@sstp_handle], [], 0)
29162916 if not w
29172917 return
29182918 end
29192919 begin
2920- @sstp_handle.send(''.join([data, '\n']))
2920+ @sstp_handle.send([data, '\n'].join(''))
29212921 rescue #except socket.error:
29222922 #pass
29232923 end
@@ -2927,7 +2927,7 @@ module Sakura
29272927 if @sstp_handle == nil
29282928 return
29292929 end
2930- _send_sstp_handle(''.join(['+', data]))
2930+ _send_sstp_handle(['+', data].join(''))
29312931 ##logging.debug('write_sstp_handle({0})'.format(repr(data)))
29322932 end
29332933
@@ -2976,9 +2976,9 @@ module Sakura
29762976 homeurl = getstring('homeurl')
29772977 if homeurl.empty?
29782978 start_script(
2979- ''.join(['\t\h\s[0]',
2980- _("I'm afraid I don't have Network Update yet."),
2981- '\e']))
2979+ ['\t\h\s[0]',
2980+ _("I'm afraid I don't have Network Update yet."),
2981+ '\e'].join(''))
29822982 @balloon.hide_sstp_message()
29832983 return
29842984 end