rpush 3.0.0 → 3.0.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
- SHA1:
3
- metadata.gz: a8f2a74a02bdbe5ecf64c56bc49c902323f83909
4
- data.tar.gz: 540450b066477d270e5353effbe785869505629e
2
+ SHA256:
3
+ metadata.gz: 4d06f84b11c5dcf54b9377a2ff40a917f0b2b60d12cc9bb5f20f4e6e75eaf6ff
4
+ data.tar.gz: 67ca2b235af5afe6b76dd503c69e6fc4063bade97635cd79cbfc309ec6a78274
5
5
  SHA512:
6
- metadata.gz: 3bdbc2cb55f29f1e3b52acbb7ffa3e1235c7ed46445926ac7ff7911c302c9a3041449c1c6e2db098ab0c755bca378cfd9fb9105e9c40326d79da92ab03b3b954
7
- data.tar.gz: 119069fd3538688e302ce3a260fea35cafc15b4860fd8e9487dac567e4fee12c6d87188b9d1f29934fd2b3979192716aabe12294f0522f081499875785bd6eb4
6
+ metadata.gz: d7a87e736193a8cce907173e0b3bbd6c19c3e0b831136974da7c792b37b8623a214b5a30fece4c9a31116c8f979914206c71d242957e2230474fee4a34b30420
7
+ data.tar.gz: a4e9d0971a09443832b7ddea4ea0345dd2a87fe3a7f6f57a5db7b0698173417a745a4f7f80995085439c7a261948ad82514463c5c82f3e601e9dfb5ca37aa334
data/CHANGELOG.md CHANGED
@@ -12,6 +12,13 @@
12
12
 
13
13
  - None
14
14
 
15
+ ## 3.0.1 (2017-11-30)
16
+
17
+ #### Enhancements
18
+
19
+ * Reduce booleans to true/false, do not allow nil ([#384](https://github.com/rpush/rpush/pull/384)) by [@grosser](https://github.com/grosser)
20
+ * Better error message for error 8 in APNS ([#387](https://github.com/rpush/rpush/pull/387/files)) by [@grosser](https://github.com/grosser)
21
+
15
22
  ## 3.0.0 (2017-09-15)
16
23
 
17
24
  Same as 3.0.0.rc1 including:
@@ -43,6 +43,7 @@ class RpushMigrationGenerator < Rails::Generators::Base
43
43
  add_rpush_migration('rpush_2_6_0_updates')
44
44
  add_rpush_migration('rpush_2_7_0_updates')
45
45
  add_rpush_migration('rpush_3_0_0_updates')
46
+ add_rpush_migration('rpush_3_0_1_updates')
46
47
  end
47
48
 
48
49
  protected
@@ -0,0 +1,13 @@
1
+ class Rpush301Updates < ActiveRecord::VERSION::MAJOR >= 5 ? ActiveRecord::Migration[5.0] : ActiveRecord::Migration
2
+ def self.up
3
+ change_column_null :rpush_notifications, :mutable_content, false
4
+ change_column_null :rpush_notifications, :content_available, false
5
+ change_column_null :rapns_notifications, :alert_is_json, false
6
+ end
7
+
8
+ def self.down
9
+ change_column_null :rpush_notifications, :mutable_content, true
10
+ change_column_null :rpush_notifications, :content_available, true
11
+ change_column_null :rapns_notifications, :alert_is_json, true
12
+ end
13
+ end
@@ -15,7 +15,7 @@ module Rpush
15
15
  5 => 'Missing token size',
16
16
  6 => 'Missing topic size',
17
17
  7 => 'Missing payload size',
18
- 8 => 'Invalid token',
18
+ 8 => 'Invalid device token',
19
19
  10 => 'APNs closed connection (possible maintenance)',
20
20
  255 => 'None (unknown error)'
21
21
  }
data/lib/rpush/version.rb CHANGED
@@ -2,7 +2,7 @@ module Rpush
2
2
  module VERSION
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 0
5
+ TINY = 1
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".").freeze
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpush
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Leitch
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-15 00:00:00.000000000 Z
11
+ date: 2017-11-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: multi_json
@@ -369,6 +369,7 @@ files:
369
369
  - lib/generators/templates/rpush_2_6_0_updates.rb
370
370
  - lib/generators/templates/rpush_2_7_0_updates.rb
371
371
  - lib/generators/templates/rpush_3_0_0_updates.rb
372
+ - lib/generators/templates/rpush_3_0_1_updates.rb
372
373
  - lib/rpush.rb
373
374
  - lib/rpush/apns_feedback.rb
374
375
  - lib/rpush/cli.rb
@@ -582,7 +583,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
582
583
  version: '0'
583
584
  requirements: []
584
585
  rubyforge_project:
585
- rubygems_version: 2.6.13
586
+ rubygems_version: 2.7.3
586
587
  signing_key:
587
588
  specification_version: 4
588
589
  summary: The push notification service for Ruby.