Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
Oblongmana committed Jun 30, 2017
2 parents 04ff0a2 + 160c095 commit f8e3eaa
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
4 changes: 2 additions & 2 deletions SalesforceReference.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""SublimeSalesforceReference: Quick access to Salesforce Documentation from Sublime Text"""
__version__ = "2.1.0"
__version__ = "2.1.1"
__author__ = "James Hill <[email protected]>"
__copyright__ = "SublimeSalesforceReference: (C) 2014-2015 James Hill. GNU GPL 3."
__copyright__ = "SublimeSalesforceReference: (C) 2014-2017 James Hill. GNU GPL 3."
__credits__ = ["All Salesforce Documentation is © Copyright 2000–2015 salesforce.com, inc.", "ThreadProgress.py is under the MIT License, Will Bond <[email protected]>, and SalesforceReference.py's RetrieveIndexThread method is a derives in part from code under the same license"]

import sublime, sublime_plugin
Expand Down
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@
"2.0.0": "messages/2.0.0.txt",
"2.0.1": "messages/2.0.1.txt",
"2.0.2": "messages/2.0.2.txt",
"2.1.0": "messages/2.1.0.txt"
"2.1.0": "messages/2.1.0.txt",
"2.1.1": "messages/2.1.1.txt"
}
4 changes: 4 additions & 0 deletions messages/2.1.1.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Sublime Salesforce Reference 2.1.1 Release Notes:

Bug Fixes:
- Updated Apex retrieval to handle Salesforce's new Apex ToC format (as at 2017-06-30)
3 changes: 2 additions & 1 deletion salesforce_reference/retrieve.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ def run(self):
sf_document = urllib.request.urlopen(urllib.request.Request(DocTypeEnum.APEX.toc_url,None,{"User-Agent": "Mozilla/5.0"})).read().decode("utf-8")
sf_json = json.loads(sf_document)
sf_toc = sf_json["toc"]
reference_toc = filter(lambda x: "id" in x and x["id"] == "apex_reference", sf_toc)
dev_guide_toc = next(filter(lambda x: "id" in x and x["id"] == "apex_dev_guide", sf_toc))
reference_toc = filter(lambda x: "id" in x and x["id"] == "apex_reference", dev_guide_toc["children"])
for toc_entry in getAllTocLeafParents(next(reference_toc),None):
with self.cache_lock:
self.cache.append(
Expand Down

0 comments on commit f8e3eaa

Please sign in to comment.