expo-server-sdk 0.1.1 → 0.1.2

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: 455383d798813f99c1b89e47deb13b9d438bab8ebb1a4086c21174f9938c7ee7
4
- data.tar.gz: b622a54688dbd730bf69eaf7f9557bb97d5d2d006a7b8931edcd015737000904
3
+ metadata.gz: 303a59bece48ec95e3abb74a571ead0a980b352a2ae9ee2dc6cffc08fc12c0c0
4
+ data.tar.gz: e45f9a67efe9b4b39df36e8fbf21e0488367794e8401bcf7977f61dfbdc58986
5
5
  SHA512:
6
- metadata.gz: b442eb3b165ba954762d7234ddf678d200d7216c9e59364bde0171d95ae114816c0ca7a93e018070465ecde8d69c4228d7500e2adbbfe6abf7bc4d94ed24794f
7
- data.tar.gz: 6b4d4abc5fc3ee9a08fd3869deeb07d771de3864adb3dd545b5b4809a0f5b08ea1cea40f20ffa21ce2a9fd4c4a579146ec432c9c635df64ba55cb94f874cb714
6
+ metadata.gz: '03396dcfa13081af44a710bdabce7fc52cf5b74b43dd4c76e791cbcc6857c7af59034913b17d680f3b622e70de48e50b8f60ef74b31a5e29cc7761eaffbc843b'
7
+ data.tar.gz: 5794562f7e2c88738a16c92bca88f4d5053cf052deedc4d51eb37bc622984a11ee4cb3eeb36684cc04415c1c15c9b9fe841b129cb6fed43891d99b4b1123056e
data/.gitattributes CHANGED
@@ -1 +1 @@
1
- * text=auto eol=lf
1
+ * text=auto eol=lf
data/CHANGELOG.md ADDED
@@ -0,0 +1,15 @@
1
+ # Changelog
2
+
3
+ ## 0.1.2
4
+
5
+ - Add CHANGELOG.md
6
+ - Add shields to README.md
7
+ - Fix failing outdated tests
8
+
9
+ ## 0.1.1
10
+
11
+ - Fix various release issues
12
+
13
+ ## 0.1.0
14
+
15
+ Initial release
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- expo-server-sdk (0.1.0)
4
+ expo-server-sdk (0.1.2)
5
5
  connection_pool (~> 2.2)
6
6
  http (~> 5.0)
7
7
 
@@ -14,7 +14,7 @@ GEM
14
14
  connection_pool (2.2.5)
15
15
  domain_name (0.5.20190701)
16
16
  unf (>= 0.0.5, < 1.0.0)
17
- ffi (1.15.0-x64-mingw32)
17
+ ffi (1.15.4-x64-mingw32)
18
18
  ffi-compiler (1.0.1)
19
19
  ffi (>= 1.0.0)
20
20
  rake
@@ -23,7 +23,7 @@ GEM
23
23
  http-cookie (~> 1.0)
24
24
  http-form_data (~> 2.2)
25
25
  llhttp-ffi (~> 0.4.0)
26
- http-cookie (1.0.3)
26
+ http-cookie (1.0.4)
27
27
  domain_name (~> 0.5)
28
28
  http-form_data (2.3.0)
29
29
  llhttp-ffi (0.4.0)
@@ -52,7 +52,7 @@ GEM
52
52
  ruby-progressbar (1.11.0)
53
53
  unf (0.1.4)
54
54
  unf_ext
55
- unf_ext (0.0.7.7-x64-mingw32)
55
+ unf_ext (0.0.8-x64-mingw32)
56
56
  unicode-display_width (2.0.0)
57
57
 
58
58
  PLATFORMS
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Expo::Server::SDK
2
2
 
3
+ [![Build status](https://github.com/SleeplessByte/expo-server-sdk-ruby/actions/workflows/main.yml/badge.svg)](https://github.com/SleeplessByte/expo-server-sdk-ruby/actions/workflows/main.yml) [![Gem version](https://img.shields.io/gem/v/expo-server-sdk?label=gem)](https://rubygems.org/gems/expo-server-sdk)
4
+
3
5
  This gem was written because of the relatively little attention and improvement [expo-server-sdk-ruby](https://github.com/expo-community/expo-server-sdk-ruby) receives.
4
6
 
5
7
  It does **not** work in the same way, so you'll want to read the documentation carefully if you intend to migrate.
@@ -14,11 +16,15 @@ gem 'expo-server-sdk'
14
16
 
15
17
  And then execute:
16
18
 
17
- $ bundle install
19
+ ```shell
20
+ bundle install
21
+ ```
18
22
 
19
23
  Or install it yourself as:
20
24
 
21
- $ gem install expo-server-sdk
25
+ ```shell
26
+ gem install expo-server-sdk
27
+ ```
22
28
 
23
29
  ## Usage
24
30
 
@@ -227,13 +233,17 @@ client = Expo::Push::Client.new(
227
233
 
228
234
  ## Development
229
235
 
230
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
236
+ After checking out the repo, run `bin/setup` to install dependencies.
237
+ Then, run `rake test` to run the tests.
238
+ You can also run `bin/console` for an interactive prompt that will allow you to experiment.
231
239
 
232
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
240
+ To install this gem onto your local machine, run `bundle exec rake install`.
241
+ To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
233
242
 
234
243
  ## Contributing
235
244
 
236
- Bug reports and pull requests are welcome on GitHub at https://github.com/SleeplessByte/expo-server-sdk-ruby. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/SleeplessByte/expo-server-sdk-ruby/blob/main/CODE_OF_CONDUCT.md).
245
+ Bug reports and pull requests are welcome on GitHub at <https://github.com/SleeplessByte/expo-server-sdk-ruby>.
246
+ This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/SleeplessByte/expo-server-sdk-ruby/blob/main/CODE_OF_CONDUCT.md).
237
247
 
238
248
  ## License
239
249
 
@@ -241,4 +251,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
241
251
 
242
252
  ## Code of Conduct
243
253
 
244
- Everyone interacting in the `Expo::Server::SDK` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/SleeplessByte/expo-server-sdk/blob/master/CODE_OF_CONDUCT.md).
254
+ Everyone interacting in the `Expo::Server::SDK` project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/SleeplessByte/expo-server-sdk/blob/main/CODE_OF_CONDUCT.md).
@@ -3,7 +3,7 @@
3
3
  module Expo
4
4
  module Server
5
5
  module SDK
6
- VERSION = '0.1.1'
6
+ VERSION = '0.1.2'
7
7
  end
8
8
  end
9
9
 
data/lib/push/client.rb CHANGED
@@ -233,8 +233,8 @@ module Expo
233
233
  if errors&.length&.positive?
234
234
  ReceiptsWithErrors.new(data: parsed_response, errors: errors)
235
235
  else
236
- results = data.map do |receipt_id, data|
237
- Receipt.new(data: data, receipt_id: receipt_id)
236
+ results = data.map do |receipt_id, receipt_value|
237
+ Receipt.new(data: receipt_value, receipt_id: receipt_id)
238
238
  end
239
239
 
240
240
  Receipts.new(results: results, requested_ids: receipt_ids)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: expo-server-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Derk-Jan Karrenbeld
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-10-25 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool
@@ -50,6 +50,7 @@ files:
50
50
  - ".github/workflows/main.yml"
51
51
  - ".gitignore"
52
52
  - ".rubocop.yml"
53
+ - CHANGELOG.md
53
54
  - CODE_OF_CONDUCT.md
54
55
  - Gemfile
55
56
  - Gemfile.lock