urbanairship 5.5.0 → 5.5.1
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/CHANGELOG +5 -0
- data/docs/create_and_send.rst +1 -1
- data/docs/examples.rst +8 -8
- data/docs/index.rst +4 -0
- data/lib/urbanairship/devices/mms_notification.rb +1 -1
- data/lib/urbanairship/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b69d5dcd7102160071266e66723dce74d1752386a4ebbda9e12cff07b3ddeb33
|
|
4
|
+
data.tar.gz: d579b09d0d59cc728f445dc51793051745431000631ff74f00b2f8be46386fb1
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 739853d57c2b626679a5175ad4282766e2165d16279d27dd25746f5853ca38720e3b9f70c7627294fe15ce18d3c95c4147ddfba853111e5650c3711d34852d5e
|
|
7
|
+
data.tar.gz: e6bb28f136bb85d7429f3368ce2909a5d8e97fb7cff680a632cf969ef87fdbdd3be83195d48319c824cdf2388032a899a57ebbfc9c8ee40fb88c878ae9f5d99b
|
data/CHANGELOG
CHANGED
data/docs/create_and_send.rst
CHANGED
|
@@ -449,7 +449,7 @@ shown in the line of code here:
|
|
|
449
449
|
Should return a 202 Accepted HTTP response.
|
|
450
450
|
|
|
451
451
|
Create and Send to MMS with Inline Template
|
|
452
|
-
|
|
452
|
+
-------------------------------------------
|
|
453
453
|
|
|
454
454
|
The first few lines of code are creating a MmsNotification object, and assigning
|
|
455
455
|
instance variables to that object. The line of code here:
|
data/docs/examples.rst
CHANGED
|
@@ -37,12 +37,12 @@ Complex audience with platform specifics
|
|
|
37
37
|
)
|
|
38
38
|
push.notification = UA.notification(
|
|
39
39
|
ios: UA.ios(
|
|
40
|
-
alert: "
|
|
40
|
+
alert: "Serena Williams wins U.S. Open",
|
|
41
41
|
badge: "+1",
|
|
42
42
|
extra: {"articleid" => "123456"}
|
|
43
43
|
),
|
|
44
44
|
android: UA.android(
|
|
45
|
-
alert: "Breaking Android News!
|
|
45
|
+
alert: "Breaking Android News! Serena Williams wins U.S. Open!",
|
|
46
46
|
extra: {"articleid" => "http://m.example.com/123456"}
|
|
47
47
|
),
|
|
48
48
|
amazon: UA.amazon(
|
|
@@ -64,7 +64,7 @@ Single iOS push
|
|
|
64
64
|
push = airship.create_push
|
|
65
65
|
push.audience = UA.ios_channel('channel-id')
|
|
66
66
|
push.notification = UA.notification(
|
|
67
|
-
ios: UA.ios(alert="
|
|
67
|
+
ios: UA.ios(alert="Your package is on its way!")
|
|
68
68
|
)
|
|
69
69
|
push.device_types = UA.device_types(['ios'])
|
|
70
70
|
push.send_push
|
|
@@ -78,10 +78,10 @@ Single iOS Rich Push with notification
|
|
|
78
78
|
push = airship.create_push
|
|
79
79
|
push.audience = UA.ios_channel('channel-id')
|
|
80
80
|
push.notification = UA.notification(
|
|
81
|
-
ios: UA.ios(alert="
|
|
81
|
+
ios: UA.ios(alert="Your package is on its way!")
|
|
82
82
|
)
|
|
83
83
|
push.device_types = UA.device_types(['ios'])
|
|
84
|
-
push.message = UA.message(title: "
|
|
84
|
+
push.message = UA.message(title: "Your package is on the way!", body: "<h1>Please complete our survey</h1>")
|
|
85
85
|
push.send_push
|
|
86
86
|
|
|
87
87
|
|
|
@@ -94,8 +94,8 @@ Rich Push with extra and without notification
|
|
|
94
94
|
push.audience = UA.all
|
|
95
95
|
push.device_types = UA.all
|
|
96
96
|
push.message = UA.message(
|
|
97
|
-
title: "
|
|
98
|
-
body: "<h1>
|
|
97
|
+
title: "Your package is on its way!",
|
|
98
|
+
body: "<h1>Would you please complete our customer survey?</h1>",
|
|
99
99
|
extra: {"articleid" => "http://m.example.com/123456"}
|
|
100
100
|
)
|
|
101
101
|
push.send_push
|
|
@@ -112,7 +112,7 @@ Scheduled iOS Push
|
|
|
112
112
|
sched.push = airship.create_push
|
|
113
113
|
sched.push.audience = UA.ios_channel('channel-id')
|
|
114
114
|
sched.push.notification = UA.notification(
|
|
115
|
-
ios: UA.ios(alert: "
|
|
115
|
+
ios: UA.ios(alert: "Your package is on its way!"))
|
|
116
116
|
sched.push.device_types = UA.device_types(['ios'])
|
|
117
117
|
|
|
118
118
|
sched.send_push
|
data/docs/index.rst
CHANGED
|
@@ -30,7 +30,7 @@ module Urbanairship
|
|
|
30
30
|
end
|
|
31
31
|
|
|
32
32
|
def validate_url
|
|
33
|
-
unless
|
|
33
|
+
unless ['.jpg', '.gif', '.png', 'jpeg'].include?(@url[-4..-1])
|
|
34
34
|
fail ArgumentError, 'url must end in .gif, .jpg, .png, or .jpeg'
|
|
35
35
|
end
|
|
36
36
|
end
|
data/lib/urbanairship/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: urbanairship
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 5.5.
|
|
4
|
+
version: 5.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Airship
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-
|
|
11
|
+
date: 2020-04-14 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rest-client
|