Skip to content

Commit

Permalink
Fix header error by stripping version read from file
Browse files Browse the repository at this point in the history
  • Loading branch information
clarencecastillo committed Jun 21, 2020
1 parent 030054d commit e749b12
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ For other errors, please open an issue describing how you got the error and toge
There's probably a smarter way to do this, but when preparing a new release, don't forget to:

1. Bump `version` file
2. Bump the exported workflow following the format `Powerthesaurus-x.x.x.alfredworkflow`
2. Bump the exported workflow following the format `PowerThesaurus-x.x.x.alfredworkflow`
3. Bump `alfredworkflow.version` field in `metadata.json` or just re-export the entire `metadata.json` from `Alfred > Workflows`

## Licensing ##
Expand Down
4 changes: 2 additions & 2 deletions metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"readme" : "Search Powerthesaurus synonyms and antonyms from Alfred",
"createdby" : "Clarence Castillo",
"downloadurl" : "",
"version" : "2.1.2",
"version" : "2.1.3",
"bundleid" : "me.clarencecastillo.alfred-powerthesaurus",
"description" : "Search for synonyms and antonyms on powerthesaurus.org",
"name" : "Powerthesaurus",
"name" : "Power Thesaurus",
"webaddress" : ""
}
}
2 changes: 1 addition & 1 deletion src/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

class PowerThesaurus:

VERSION = open('./version').readline()
VERSION = open('./version').readline().strip()
GQL_THESAURUS_QUERY = 'thesaurus_query'
GQL_SEARCH_QUERY = 'search_query'
VERIFY_SSL = bool(os.getenv('ALFRED_PT_SSL_VERIFICATION'))
Expand Down
2 changes: 1 addition & 1 deletion src/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.1.2
2.1.3

0 comments on commit e749b12

Please sign in to comment.