Skip to content

Commit

Permalink
Update terminal-notifier to 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
syabruk committed Sep 23, 2014
1 parent 5e271ec commit 5e883fd
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pync
====

A simple Python wrapper around the [`terminal-notifier`][HOMEPAGE] command-line tool (version 1.5), which allows you to send User Notifications to the Notification Center on Mac OS X 10.8, or higher.
A simple Python wrapper around the [`terminal-notifier`][HOMEPAGE] command-line tool (version 1.6.1), which allows you to send User Notifications to the Notification Center on Mac OS X 10.8, or higher.

![Screenshot](http://f.cl.ly/items/1k051n3k0u0i101m1i0U/Screen%20Shot%202012-08-24%20at%2012.20.40%20PM.png)

Expand Down
10 changes: 5 additions & 5 deletions pync/TerminalNotifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@
import subprocess
from dateutil.parser import parse

LIST_FIELDS = ["group", "title", "subtitle", "message", "delivered_at", "sound"]
LIST_FIELDS = ["group", "title", "subtitle", "message", "delivered_at"]


class TerminalNotifier(object):
TERMINAL_NOTIFIER_VERSION = "1.5.0"
TERMINAL_NOTIFIER_VERSION = "1.6.1"

def __init__(self):
"""
Expand Down Expand Up @@ -122,9 +122,9 @@ def is_available():
""" Returns whether or not the current platform is Mac OS X 10.8, or higher."""
if not platform.system() == 'Darwin':
return False
major, minor = platform.mac_ver()[0].split('.', maxsplit=1)

major, minor = platform.mac_ver()[0].split('.')[:2]

return int(major) > 10 or int(minor) >= 8

Notifier = TerminalNotifier()
Expand Down
2 changes: 1 addition & 1 deletion pync/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
__version__ = "1.6"
__version__ = "1.6.1"

from .TerminalNotifier import Notifier
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>BuildMachineOSBuild</key>
<string>12E55</string>
<string>13E28</string>
<key>CFBundleDevelopmentRegion</key>
<string>en</string>
<key>CFBundleExecutable</key>
Expand All @@ -19,25 +19,25 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.5.0</string>
<string>1.6.1</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>12</string>
<key>DTCompiler</key>
<string>com.apple.compilers.llvm.clang.1_0</string>
<key>DTPlatformBuild</key>
<string>5A11365x</string>
<string>5B1008</string>
<key>DTPlatformVersion</key>
<string>GM</string>
<key>DTSDKBuild</key>
<string>13A538c</string>
<string>13C64</string>
<key>DTSDKName</key>
<string>macosx10.9</string>
<key>DTXcode</key>
<string>0500</string>
<string>0511</string>
<key>DTXcodeBuild</key>
<string>5A11365x</string>
<string>5B1008</string>
<key>LSMinimumSystemVersion</key>
<string>10.8</string>
<key>LSUIElement</key>
Expand Down
Binary file not shown.
Binary file not shown.
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@
terminal_notifier_files.append(os.path.join(root, f))

setup(name = 'pync',
version = "1.6",
version = "1.6.1",
description = 'Python Wrapper for Mac OS 10.8 Notification Center',
long_description = long_description,
author = 'Vladislav Syabruk',
author_email = '[email protected]',
url = 'https://github.com/setem/pync',
download_url = 'https://github.com/SeTeM/pync/archive/v1.5.zip',
download_url = 'https://github.com/SeTeM/pync/archive/v1.6.1.zip',
license = "MIT",
platforms = "MacOS X",
keywords = "mac notification center wrapper",
Expand Down

0 comments on commit 5e883fd

Please sign in to comment.