ignore some FORMAT on config command and display direct link in share function inside...
authorvunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 25 Sep 2014 03:04:41 +0000 (12:04 +0900)
committervunhat_minh <vunhat_minh@dwango.co.jp>
Thu, 25 Sep 2014 03:04:41 +0000 (12:04 +0900)
docs/conf.py
rainbowstream/config.py
rainbowstream/rainbow.py
setup.py

index 481a919..6f022e1 100644 (file)
@@ -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.
index 58f747d..1573cce 100644 (file)
@@ -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 []
index 49e3308..765ce38 100644 (file)
@@ -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():
index 4cb4e69..5d1ff93 100644 (file)
--- 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 = [