cloud_five_push 0.0.8 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_five_push/notification.rb +5 -4
- data/lib/cloud_five_push/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a637194a0cfda7d051289e641ca785594fb3cd6f
|
4
|
+
data.tar.gz: dc408ff5e8bc2d12699c745c45cefbc6dedb0ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0050e90cbf182ab1a1465ac9ec544f9bf392e01ab51cbf82cf6d2894307a2a6ceb2f01b3bcbd842aa9fbe677e182968f79d63cb2c4ee124413360504e9548526
|
7
|
+
data.tar.gz: c04c46babf1838d1e24de7b16fe0a4e8f15c2a62a9a0249ae1f69ad6d0415619cb7aed11b3f9691c26a0ae96ff940788f8c303619fa7584360c44a91cf57a820
|
@@ -6,7 +6,7 @@ module CloudFivePush
|
|
6
6
|
|
7
7
|
include HTTParty
|
8
8
|
base_uri 'https://push.cloudfiveapp.com'
|
9
|
-
|
9
|
+
debug_output $stderr
|
10
10
|
|
11
11
|
def initialize(api_key=nil)
|
12
12
|
@api_key = api_key || CloudFivePush.api_key
|
@@ -33,6 +33,7 @@ module CloudFivePush
|
|
33
33
|
def user_identifiers=(user_identifiers)
|
34
34
|
@user_identifiers = [user_identifiers].flatten
|
35
35
|
end
|
36
|
+
alias user_identifier= user_identifiers=
|
36
37
|
|
37
38
|
private
|
38
39
|
|
@@ -42,11 +43,11 @@ module CloudFivePush
|
|
42
43
|
|
43
44
|
def push_params
|
44
45
|
params = {
|
45
|
-
api_key: @api_key
|
46
|
-
alert: @alert,
|
47
|
-
badge: @badge
|
46
|
+
api_key: @api_key
|
48
47
|
}
|
49
48
|
|
49
|
+
params[:alert] = @alert if @alert
|
50
|
+
params[:badge] = @badge if @badge
|
50
51
|
params[:message] = @message if @message
|
51
52
|
params[:when] = @scheduled_at.iso8601 if @scheduled_at
|
52
53
|
params[:data] = @data.to_json if @data
|