From: Orakaro Date: Fri, 31 Jul 2015 02:10:36 +0000 (+0900) Subject: bumped version X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=commitdiff_plain;h=321a893a73ae8cd02000a02c9d0898b578df9560;ds=sidebyside bumped version --- diff --git a/docs/conf.py b/docs/conf.py index aad7d31..ead3ddf 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.2.7' +version = '1.2.8' # The full version, including alpha/beta/rc tags. -release = '1.2.7' +release = '1.2.8' # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index a0bdadd..163a278 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -181,7 +181,8 @@ def upgrade_center(): url = 'https://raw.githubusercontent.com/DTVD/rainbowstream/master/setup.py' readme = requests.get(url).text latest = readme.split('version = \'')[1].split('\'')[0] - if current != latest: + g['using_latest'] = current == latest + if not g['using_latest']: notice = light_magenta('RainbowStream latest version is ') notice += light_green(latest) notice += light_magenta(' while your current version is ') @@ -193,7 +194,7 @@ def upgrade_center(): notice = light_yellow('You are running latest version (') notice += light_green(current) notice += light_yellow(')') - printNicely(notice) + notice += '\n' except: pass @@ -1733,6 +1734,16 @@ def quit(): sys.exit() +def changelog_notify(): + # For v1.2.8. Hardcoded here but will improve later + notice = light_yellow('Hey! RS just ') + notice += light_green('doubled ') + notice += light_yellow('pixels for higher image resolution. Upgrade and try') + notice += light_green(' -iot ') + notice += light_yellow('and you will like it for sure :)') + printNicely(notice) + + def reset(): """ Reset prefix of line @@ -1742,6 +1753,8 @@ def reset(): printNicely(red('Your ~/.rainbow_config.json is messed up:')) printNicely(red('>>> ' + c['USER_JSON_ERROR'])) printNicely('') + if not g['using_latest']: + changelog_notify() printNicely(magenta('Need tips ? Type "h" and hit Enter key!')) g['reset'] = False try: diff --git a/setup.py b/setup.py index 93c4443..cab2f3a 100644 --- a/setup.py +++ b/setup.py @@ -3,7 +3,7 @@ import os import os.path # Bumped version -version = '1.2.7' +version = '1.2.8' # Require install_requires = [