Skip to content

Commit

Permalink
release 0.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
xjsender committed Jun 7, 2015
1 parent 2f0d37b commit fa23fbe
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
8 changes: 7 additions & 1 deletion HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ Release History
---------------


0.1.9 (2015-04-20)
0.2.1 (2015-06-07)
++++++++++++++++++
* Fix bug: After update gist, refresh all lists to keep gist raw_url to newest
* Enhancement: Add token required check for ``open_gist`` command


0.2.0 (2015-05-25)
++++++++++++++++++
* Add a new command ``Open New Gist``, which is used to read gist list from server but not local cache, because you add a new gist or fork a gist in the server but not add it by this plugin, you need to reload gist cache and then open gist file from local cache, this new command combine these two steps to one.

Expand Down
11 changes: 11 additions & 0 deletions config/messages/0.2.1.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
Build 0.2.1
-----------
Release Date: 7 June 2015

* Fix bug: After update gist, refresh all lists to keep gist raw_url to newest
* Enhancement: Add token required check for ``open_gist`` command

Notes:

* You should restart your sublime after ``HaoGist`` is upgraded
-----------
2 changes: 1 addition & 1 deletion config/settings/HaoGistPackage.sublime-settings
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "HaoGist",
"version": "0.2.0",
"version": "0.2.1",
"description": "HaoGist is sublime plugin for CRUD on Github gist",
"author": "Hao Liu",
"email": "mouse.mliu@gmail.com",
Expand Down
3 changes: 3 additions & 0 deletions gist/lib/callback.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ def update_gist(res, options):
base, filename = os.path.split(file_full_name)
show_message("%s is update successfully" % filename)

# Reload gist cache
sublime.active_window().run_command('reload_gist_cache')

def rename_gist(res, options):
# Get file_full_name
old_file_full_name = options["file_full_name"]
Expand Down
5 changes: 5 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,11 @@ def __init__(self, *args, **kwargs):

def run(self, read_cache=True):
self.settings = util.get_settings()
if not self.settings["token"]:
message = "Your own token is empty, please set it by " +\
"HaoGist > Settings > User Settings in the context menu"
return Printer.get("error").write(message)

api = GistApi(self.settings["token"])

# If read_cache is false, it means read gist list from server
Expand Down

0 comments on commit fa23fbe

Please sign in to comment.