From: vunhat_minh Date: Thu, 25 Sep 2014 03:04:41 +0000 (+0900) Subject: ignore some FORMAT on config command and display direct link in share function inside... X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=eb9b6273dc3f382b20ee055dc7ed4d3116532874;p=rainbowstream.git ignore some FORMAT on config command and display direct link in share function inside Linux --- diff --git a/docs/conf.py b/docs/conf.py index 481a919..6f022e1 100644 --- a/docs/conf.py +++ b/docs/conf.py @@ -48,9 +48,9 @@ copyright = u'2014, Vu Nhat Minh' # built documents. # # The short X.Y version. -version = '1.0.9' +version = '1.1.0' # The full version, including alpha/beta/rc tags. -release = '1.0.9' +release = '1.1.0' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/rainbowstream/config.py b/rainbowstream/config.py index 58f747d..1573cce 100644 --- a/rainbowstream/config.py +++ b/rainbowstream/config.py @@ -49,6 +49,8 @@ def get_all_config(): data.pop('ONLY_LIST', None) data.pop('IGNORE_LIST', None) data.pop('FORMAT', None) + data.pop('QUOTE_FORMAT', None) + data.pop('NOTIFY_FORMAT', None) return data except: return [] diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 49e3308..765ce38 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -496,8 +496,12 @@ def share(): tweet = t.statuses.show(id=tid) url = 'https://twitter.com/' + \ tweet['user']['screen_name'] + '/status/' + str(tid) - os.system("echo '%s' | pbcopy" % url) - printNicely(green('Copied tweet\'s url to clipboard.')) + import platform + if platform.system().lower() == 'darwin': + os.system("echo '%s' | pbcopy" % url) + printNicely(green('Copied tweet\'s url to clipboard.')) + else: + printNicely('Direct link: ' + yellow(url)) def delete(): diff --git a/setup.py b/setup.py index 4cb4e69..5d1ff93 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os import os.path # Bumped version -version = '1.0.9' +version = '1.1.0' # Require install_requires = [