actionpusher 0.0.3 → 0.0.4
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.
- data/lib/action_pusher/base.rb +1 -1
- metadata +2 -3
data/lib/action_pusher/base.rb
CHANGED
|
@@ -19,7 +19,7 @@ module ActionPusher
|
|
|
19
19
|
# - +data+ -> Custom data passed through the push notification
|
|
20
20
|
# - +badge_count+ -> Number to place in badge (default is 0)
|
|
21
21
|
def push(opts)
|
|
22
|
-
tokens = opts[:tokens] || []
|
|
22
|
+
tokens = [opts[:tokens] || opts[:token] || opts[:to]].flatten
|
|
23
23
|
message = opts[:message] || ''
|
|
24
24
|
data = opts[:data] || {}
|
|
25
25
|
badge_count = opts[:badge_count] || 0
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: actionpusher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-04-
|
|
12
|
+
date: 2014-04-25 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|
|
@@ -115,4 +115,3 @@ signing_key:
|
|
|
115
115
|
specification_version: 3
|
|
116
116
|
summary: Push notification composition and delivery framework (based on ActionMailer.)
|
|
117
117
|
test_files: []
|
|
118
|
-
has_rdoc:
|