Skip to content

Commit

Permalink
5.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
aleclarson committed Aug 4, 2017
1 parent e748743 commit f01c0a6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion EmitterKit-Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>5.0.1</string>
<string>5.1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
Expand Down
2 changes: 1 addition & 1 deletion EmitterKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'EmitterKit'
s.version = '5.0.1'
s.version = '5.1.0'
s.license = 'MIT'
s.summary = 'Type-safe event handling for Swift'
s.homepage = 'https://github.com/aleclarson/emitter-kit'
Expand Down
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

# emitter-kit v5.0.1
# emitter-kit v5.1.0

![stable](https://img.shields.io/badge/stability-stable-4EBA0F.svg?style=flat)
[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/EmitterKit.svg?style=flat)](https://cocoapods.org/pods/EmitterKit)
Expand Down Expand Up @@ -64,8 +64,8 @@ The `Notifier` class helps when you are forced to use `NSNotificationCenter` (fo
var event = Notifier(UIKeyboardWillShowNotification)

// Handle NSNotifications with style!
listener = event.on { (userInfo: NSDictionary) in
print(userInfo)
listener = event.on { (notif: Notification) in
print(notif.userInfo)
}
```

Expand All @@ -81,6 +81,12 @@ listener = view.on("bounds") { (change: Change<CGRect>) in
}
```

### v5.1.0 changelog

- The `NotificationListener` class now takes a `Notification` instead of an `NSDictionary`.

- A `NotificationListener` without a target will now receive every `Notification` with its name, regardless of the value of `notif.object`.

### v5.0.0 changelog

- Swift 3.0 + Xcode 8.0 beta 6 support
Expand Down

0 comments on commit f01c0a6

Please sign in to comment.