expo-push 1.0.3 → 1.0.4

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: cc14e8aab346fa0e3a0f4c9d70ad1d33b555ba2c98eac5d564e49798c494506f
4
- data.tar.gz: f2117ab9127755e7e86b51de569a54778b3b9c2c9f473e3e65711b116f581448
3
+ metadata.gz: 926899af0486552a8a8ee17b545d656e994c4767175932e4f0c5d3d325a65ca0
4
+ data.tar.gz: 19ba2ac29c3d5f54cbe9a7d08f94c34f5af57adbae7c451401287bf8ee4a8ed7
5
5
  SHA512:
6
- metadata.gz: bcaf8fd5b75dc98c92116eba48a1ed4d1ecdda4ba2f26382446856af0f9545e56c223504e8c4423a7a94ce10e22421732ae2c7ed73253a6e17e0849cff7d014a
7
- data.tar.gz: 16e0dad398db32079054f5bd163d9e8e044c3b190d11b8359cf12870a50dee9650f9f55366e47819a4bc58c648c08be753c744e612214e0fd695b60f78eda6b8
6
+ metadata.gz: 2f1676fed4bbc5fa23ee154ebd50b40076c0f8cca80811bb8067cc6a21b237500740fcb4b0cabdb5c9bae55bb7d11f5cd5c1a72b2d2d82854179ed1495022f23
7
+ data.tar.gz: 45dd3c0985917a43d0522ccf68d1fe88dd39ab5961cb2e6eed0dbd8f0737e1342ffa0e871bcd4bc1e0e76590119d44fd6dff875e73860014a2c319e45c3af543
@@ -1,3 +1,3 @@
1
1
  module Exponent
2
- VERSION = '1.0.3'.freeze
2
+ VERSION = '1.0.4'.freeze
3
3
  end
data/lib/expo-push.rb CHANGED
@@ -38,6 +38,7 @@ module Exponent
38
38
  class Client
39
39
  def initialize(**args)
40
40
  @http_client = args[:http_client] || Typhoeus
41
+ @params = args[:params].presence || {}
41
42
  @error_builder = ErrorBuilder.new
42
43
  # future versions will deprecate this
43
44
  @response_handler = args[:response_handler] || ResponseHandler.new
@@ -70,6 +71,7 @@ module Exponent
70
71
  @http_client.post(
71
72
  push_url,
72
73
  body: messages.to_json,
74
+ params: @params,
73
75
  headers: headers,
74
76
  accept_encoding: @gzip
75
77
  )
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expo-push
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jesse Ruder
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2022-11-01 00:00:00.000000000 Z
13
+ date: 2024-04-02 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: typhoeus