• R/O
  • SSH
  • HTTPS

tsubuyakiticker: コミット


コミットメタ情報

リビジョン19 (tree)
日時2013-03-26 07:41:32
作者mshio

ログメッセージ

add license.txt, etc.

変更サマリ

差分

--- tsubuyakiticker/license.txt (nonexistent)
+++ tsubuyakiticker/license.txt (revision 19)
@@ -0,0 +1,25 @@
1+Copyright (c) 2010-2011, mshio <mshio@users.sourceforge.jp>
2+All rights reserved.
3+
4+Redistribution and use in source and binary forms, with or without modification,
5+are permitted provided that the following conditions are met:
6+
7+ o Redistributions of source code must retain the above copyright notice, this
8+ list of conditions and the following disclaimer.
9+ o Redistributions in binary form must reproduce the above copyright notice,
10+ this list of conditions and the following disclaimer in the documentation
11+ and/or other materials provided with the distribution.
12+ o Neither the name of the Tsubuyaki Ticker Project nor the names of its
13+ contributors may be used to endorse or promote products derived from this
14+ software without specific prior written permission.
15+
16+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
17+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18+WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
19+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
21+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
22+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
23+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
24+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
--- tsubuyakiticker/src/tsubuyakiTicker.coffee (revision 18)
+++ tsubuyakiticker/src/tsubuyakiTicker.coffee (revision 19)
@@ -1,17 +1,3 @@
1-tweets = (result, code) ->
2- d = _pub.tickerData
3- r = result.results
4- if r.length > 0
5- d.tweetList[r[0].from_user] = []
6- d.tweetNum[r[0].from_user] = r.length
7- l = d.tweetList[r[0].from_user]
8- for rec in r
9- l.push new Tweet rec.from_user, rec.text,
10- rec.id, rec.created_at,
11- rec.iso_language_code
12- else
13- d.failure[code] = true
14-
151 run = ->
162 browser = new Browser()
173
@@ -26,17 +12,7 @@
2612
2713 new ListLauncher _pub.tickerData.userList.length, _pub
2814
29-tsubuyakiTicker = (setting) ->
30- _pub.tweets = tweets
31- _pub.callbacks = {}
32- _pub.setting = new TickerSetting setting
33- _pub.tickerData = new TickerData _pub.setting
34-
15+# main --
3516 _pub = if window then (window.TsubuyakiTicker = tsubuyakiTicker) else {}
3617
37-# main --
38-if window
39- if window.addEventListener
40- window.addEventListener 'load', run, false
41- else if window.attachEvent
42- window.attachEvent 'onload', run
18+start run
\ No newline at end of file
--- tsubuyakiticker/src/tsubuyakiTickerMain.coffee (nonexistent)
+++ tsubuyakiticker/src/tsubuyakiTickerMain.coffee (revision 19)
@@ -0,0 +1,29 @@
1+VERSION = '0.1.00'
2+
3+tweets = (result, code) ->
4+ d = _pub.tickerData
5+ r = result.results
6+ if r.length > 0
7+ d.tweetList[r[0].from_user] = []
8+ d.tweetNum[r[0].from_user] = r.length
9+ l = d.tweetList[r[0].from_user]
10+ for rec in r
11+ l.push new Tweet rec.from_user, rec.text,
12+ rec.id, rec.created_at,
13+ rec.iso_language_code
14+ else
15+ d.failure[code] = true
16+
17+tsubuyakiTicker = (setting) ->
18+ _pub.version = VERSION
19+ _pub.tweets = tweets
20+ _pub.callbacks = {}
21+ _pub.setting = new TickerSetting setting
22+ _pub.tickerData = new TickerData _pub.setting
23+
24+start = (func)->
25+ if window
26+ if window.addEventListener
27+ window.addEventListener 'load', func, false
28+ else if window.attachEvent
29+ window.attachEvent 'onload', func
旧リポジトリブラウザで表示