urbanairship 5.5.0 → 5.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 473e83567cb51164c9ed471d2e5ecbd73902624f231fd6463a07d2626d6233a6
4
- data.tar.gz: dd676b778158ed24687223009942bdff1ec105bfc485987767c27f10c6de0344
3
+ metadata.gz: b69d5dcd7102160071266e66723dce74d1752386a4ebbda9e12cff07b3ddeb33
4
+ data.tar.gz: d579b09d0d59cc728f445dc51793051745431000631ff74f00b2f8be46386fb1
5
5
  SHA512:
6
- metadata.gz: e0ca4c22e57d83a0d89fa0e32ecb19db0f3ffa3b3ff5913b6f4df38df3dd73dc862b5d526cbb9654ff9fa92535dbad29b50cb516a8772ccdcbc50f416cca6068
7
- data.tar.gz: 1ce0f4984b438dd40df90ccc29eeb0e4f10c99ef8a9e2f85a5af601f6ad241aa47586f78c4c2b089e989b0e01f5a595414faae82c1b6643271daf213a7b9a92a
6
+ metadata.gz: 739853d57c2b626679a5175ad4282766e2165d16279d27dd25746f5853ca38720e3b9f70c7627294fe15ce18d3c95c4147ddfba853111e5650c3711d34852d5e
7
+ data.tar.gz: e6bb28f136bb85d7429f3368ce2909a5d8e97fb7cff680a632cf969ef87fdbdd3be83195d48319c824cdf2388032a899a57ebbfc9c8ee40fb88c878ae9f5d99b
data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ --------------------
2
+ 5.5.1
3
+ --------------------
4
+ - Updates validate_url method
5
+
1
6
  --------------------
2
7
  5.5.0
3
8
  --------------------
@@ -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:
@@ -37,12 +37,12 @@ Complex audience with platform specifics
37
37
  )
38
38
  push.notification = UA.notification(
39
39
  ios: UA.ios(
40
- alert: "Kim Jong-Un wins U.S. Open",
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! Glorious Leader Kim Jong-Un wins U.S. Open!",
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="Kim Jong-Un is following you on Twitter")
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="Kim Jong-Un is following you on Twitter")
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: "New follower", body: "<h1>OMG It's Kim Jong-Un</h1>")
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: "New follower",
98
- body: "<h1>OMG It's Kim Jong-Un</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: "Kim Jong-Un is following you on Twitter"))
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
@@ -69,6 +69,10 @@ Contents:
69
69
  location.rst
70
70
  exceptions.rst
71
71
  examples.rst
72
+ create_and_send.rst
73
+ email.rst
74
+ open_channels.rst
75
+ sms.rst
72
76
 
73
77
 
74
78
  Indices and tables
@@ -30,7 +30,7 @@ module Urbanairship
30
30
  end
31
31
 
32
32
  def validate_url
33
- unless @url[-4..-1] == '.jpg' || '.gif' || '.png' || 'jpeg'
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
@@ -1,3 +1,3 @@
1
1
  module Urbanairship
2
- VERSION = '5.5.0'
2
+ VERSION = '5.5.1'
3
3
  end
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.0
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-03-02 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client