Skip to content

Commit

Permalink
version 2.3.1
Browse files Browse the repository at this point in the history
removing auto updater
  • Loading branch information
giovannicoppola committed Dec 7, 2022
1 parent 967333e commit 055b6ce
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 18 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

prefs.plist
*.dist-info
.alfredversionchecked

Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ Usage
- `` — Specify number of datasets to copy to clipboard
- `⌘+L` — Show generated data in Alfred's Large Text window
- `fakeconfig [<query>]` — Edit workflow settings
- `An update is available` / `Check for update` — Check for and/or install an updated version of the workflow
- `Notifications` — Turn notifications on/off
- `` — Toggle on/off
- `Locales` — Turn locales for fake data on/off
Expand Down
Binary file added releases/Fakeum_v2.3.1.alfredworkflow
Binary file not shown.
2 changes: 1 addition & 1 deletion src/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
DOCS_URL = 'https://github.com/giovannicoppola/alfred-fakeum/blob/master/README.md'
HELP_URL = u'https://www.alfredforum.com/topic/5319-fakeum-—-generate-fake-test-datasets-in-alfred/'
ISSUE_URL = 'https://github.com/giovannicoppola/alfred-fakeum/issues'
UPDATE_SETTINGS = {'github_slug': 'giovannicoppola/alfred-fakeum'}


# Workflow icons
ICON_DOCS = 'icons/docs.png'
Expand Down
15 changes: 5 additions & 10 deletions src/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
ICON_LOCALES,
ICON_UPDATE_AVAILABLE,
ICON_UPDATE_CHECK,
UPDATE_SETTINGS,

boolvar,
)

Expand All @@ -57,14 +57,9 @@
def filter_options(query):
"""Show available options."""
options = []
if wf.update_available:
title = 'An update is available'
subtitle = u'↩ or ⇥ to install update'
icon = ICON_UPDATE_AVAILABLE
else:
title = 'Check for update'
subtitle = u'↩ or ⇥ to check for update'
icon = ICON_UPDATE_CHECK
title = ''
subtitle = ''
icon = ''

options = [
dict(title=title,
Expand Down Expand Up @@ -208,7 +203,7 @@ def main(wf):

if __name__ == '__main__':
wf = Workflow3(default_settings=DEFAULT_SETTINGS,
update_settings=UPDATE_SETTINGS,

help_url=HELP_URL,
libraries=['./libs'])
log = wf.logger
Expand Down
4 changes: 2 additions & 2 deletions src/fakeum.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
from common import (
DEFAULT_SETTINGS,
ISSUE_URL,
UPDATE_SETTINGS,

intvar,
)

Expand Down Expand Up @@ -301,7 +301,7 @@ def main(wf):

if __name__ == '__main__':
wf = Workflow3(default_settings=DEFAULT_SETTINGS,
update_settings=UPDATE_SETTINGS,

help_url=ISSUE_URL,
libraries=['./libs'])
log = wf.logger
Expand Down
9 changes: 5 additions & 4 deletions src/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -858,7 +858,8 @@ python3 config.py settings "$1"</string>
</dict>
</array>
<key>readme</key>
<string>**Generate fake test data in Alfred for testing. Based on [Faker](https://github.com/joke2k/faker).**
<string># Fakeum
**Generate fake test data in Alfred for testing. Based on [Faker](https://github.com/joke2k/faker).**
Ported to Python 3 and Alfred 5.
Original by Dean Jackson ([@deanishe](https://github.com/deanishe) )
Expand Down Expand Up @@ -1166,7 +1167,7 @@ There is also a **Snippet Trigger** (`xxfake` by default) to insert fake data di
<key>description</key>
<string></string>
<key>label</key>
<string></string>
<string>LIPSUM_SENTENCES</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
Expand All @@ -1187,7 +1188,7 @@ There is also a **Snippet Trigger** (`xxfake` by default) to insert fake data di
<key>description</key>
<string></string>
<key>label</key>
<string></string>
<string>SHOW_NOTIFICATIONS</string>
<key>type</key>
<string>textfield</string>
<key>variable</key>
Expand All @@ -1197,7 +1198,7 @@ There is also a **Snippet Trigger** (`xxfake` by default) to insert fake data di
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>2.3</string>
<string>2.3.1</string>
<key>webaddress</key>
<string>https://github.com/giovannicoppola/alfred-fakeum</string>
</dict>
Expand Down

0 comments on commit 055b6ce

Please sign in to comment.