Spoon to track and notify about Leanpub builds.
Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/Leanpub.spoon.zip
| Signature | Leanpub.api_key |
|---|---|
| Type | Variable |
| Description | String containing the key to use for Leanpub API requests. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 43 |
| Signature | Leanpub.books_sync_to_dropbox |
|---|---|
| Type | Variable |
| Description | Boolean that specifies whether all your books are being synced to Dropbox. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 34 |
| Signature | Leanpub.check_interval |
|---|---|
| Type | Variable |
| Description | Integer containing the interval (in seconds) at which the book status is checked. Default 5. |
| Source | Source/Leanpub.spoon/init.lua line 51 |
| Signature | Leanpub.dropbox_path |
|---|---|
| Type | Variable |
| Description | String containing the base Dropbox path to which the books are synced, if the corresponding parameters are set. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 72 |
| Signature | Leanpub.dropbox_type |
|---|---|
| Type | Variable |
| Description | String containing the name of the Dropbox account type to use for determining the base path of the Dropbox directory. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 81 |
| Signature | Leanpub.fetch_leanpub_covers |
|---|---|
| Type | Variable |
| Description | Boolean indicating whether we should try to fetch book covers from Leanpub. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 56 |
| Signature | Leanpub.logger |
|---|---|
| Type | Variable |
| Description | Logger object used within the Spoon. Can be accessed to set the default log level for the messages coming from the Spoon. |
| Source | Source/Leanpub.spoon/init.lua line 18 |
| Signature | Leanpub.persistent_notification |
|---|---|
| Type | Variable |
| Description | Table specifying the Leanpub status for which notifications should not disappear automatically. |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 64 |
| Signature | Leanpub.watch_books |
|---|---|
| Type | Variable |
| Description | List of books to watch (by default an empty list). |
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 23 |
| Signature | Leanpub:displayAllBookStatus() |
|---|---|
| Type | Method |
| Description | Check and display (if needed) the status of all the books in |
| Parameters |
|
| Returns | |
| Source | Source/Leanpub.spoon/init.lua line 282 |
| Signature | Leanpub:displayBookStatus(book) |
|---|---|
| Type | Method |
| Description | Display a notification with the current build status of a book. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 144 |
| Signature | Leanpub:fetchBookCover(book) |
|---|---|
| Type | Method |
| Description | Fetch the cover of a book. |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | Source/Leanpub.spoon/init.lua line 240 |
| Signature | Leanpub:getBookStatus(slug, callback) |
|---|---|
| Type | Method |
| Description | Asynchronously get the status of a book given its slug. |
| Parameters |
|
| Returns |
|
| Source | Source/Leanpub.spoon/init.lua line 107 |
| Signature | Leanpub:start() |
|---|---|
| Type | Method |
| Description | Start periodic check for book status, checking every check_interval seconds. |
| Parameters |
|
| Returns | |
| Source | Source/Leanpub.spoon/init.lua line 296 |
| Signature | Leanpub:stop() |
|---|---|
| Type | Method |
| Description | Stops periodic check for book status, if enabled. |
| Parameters |
|
| Returns | |
| Source | Source/Leanpub.spoon/init.lua line 309 |