ProMotion-push 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -3
- data/lib/ProMotion-push.rb +0 -1
- metadata +5 -5
- data/lib/ProMotion/delegate_module.rb +0 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fca32b0571fedd939d0505d38d0d32599760b7a7
|
4
|
+
data.tar.gz: 23fc748989671e1399a29c13b920255a501c2271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58ea6f5f69e0d07a3f9a44b49021d474cc7f050637bd116f27c553e4c50cb1d8705310bf742bdb793a5284540e6218b6261dd8488576ccef8111366e29815a4f
|
7
|
+
data.tar.gz: 3c47702ba3543e765429e176ab1c404c64f7ca95521b7965556dc9aa36a403bb10621d0e57aadacf22b5bd4621d28ebceb2aaddb778ded18cf33282555761459
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# ProMotion-push
|
2
2
|
|
3
|
-
ProMotion-push is push notification support, extracted from the
|
3
|
+
ProMotion-push is push notification support, extracted from the
|
4
4
|
popular RubyMotion gem [ProMotion](https://github.com/clearsightstudio/ProMotion).
|
5
5
|
|
6
6
|
## Installation
|
@@ -13,11 +13,12 @@ gem 'ProMotion-push'
|
|
13
13
|
|
14
14
|
### AppDelegate
|
15
15
|
|
16
|
-
|
16
|
+
Include PM::DelegateNotifications to add a few methods to PM::Delegate.
|
17
17
|
|
18
18
|
```ruby
|
19
19
|
# app/app_delegate.rb
|
20
20
|
class AppDelegate < PM::Delegate
|
21
|
+
include PM::DelegateNotifications
|
21
22
|
|
22
23
|
def on_load(app, options)
|
23
24
|
register_for_push_notifications :badge, :sound, :alert, :newsstand
|
@@ -128,7 +129,7 @@ def on_push_notification(notification, launched)
|
|
128
129
|
end
|
129
130
|
```
|
130
131
|
|
131
|
-
The best way to test push notifications is on a device, but it's often useful to test
|
132
|
+
The best way to test push notifications is on a device, but it's often useful to test
|
132
133
|
them in the simulator. We provide a way to do that from the REPL or in code.
|
133
134
|
|
134
135
|
```ruby
|
data/lib/ProMotion-push.rb
CHANGED
@@ -8,5 +8,4 @@ Motion::Project::App.setup do |app|
|
|
8
8
|
lib_dir_path = File.dirname(File.expand_path(__FILE__))
|
9
9
|
app.files << File.join(lib_dir_path, "ProMotion/push_notification.rb")
|
10
10
|
app.files << File.join(lib_dir_path, "ProMotion/delegate_notifications.rb")
|
11
|
-
app.files << File.join(lib_dir_path, "ProMotion/delegate_module.rb")
|
12
11
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ProMotion-push
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jamon Holmgren
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ProMotion
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0
|
19
|
+
version: '2.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 2.0
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: motion-stump
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,7 +75,6 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- README.md
|
77
77
|
- lib/ProMotion-push.rb
|
78
|
-
- lib/ProMotion/delegate_module.rb
|
79
78
|
- lib/ProMotion/delegate_notifications.rb
|
80
79
|
- lib/ProMotion/push_notification.rb
|
81
80
|
homepage: https://github.com/clearsightstudio/ProMotion-push
|
@@ -103,3 +102,4 @@ signing_key:
|
|
103
102
|
specification_version: 4
|
104
103
|
summary: Adds push notification support to ProMotion. Extracted from ProMotion.
|
105
104
|
test_files: []
|
105
|
+
has_rdoc:
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# Re-open ProMotion's DelegateModule and Delegate to include our module
|
2
|
-
module ProMotion
|
3
|
-
module DelegateModule
|
4
|
-
include ProMotion::DelegateNotifications
|
5
|
-
end
|
6
|
-
|
7
|
-
class Delegate < ProMotion::DelegateParent
|
8
|
-
include ProMotion::DelegateNotifications
|
9
|
-
end
|
10
|
-
end
|