expo-server-sdk 0.1.1 → 0.1.2
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/.gitattributes +1 -1
- data/CHANGELOG.md +15 -0
- data/Gemfile.lock +4 -4
- data/README.md +16 -6
- data/lib/expo/server/sdk/version.rb +1 -1
- data/lib/push/client.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 303a59bece48ec95e3abb74a571ead0a980b352a2ae9ee2dc6cffc08fc12c0c0
|
|
4
|
+
data.tar.gz: e45f9a67efe9b4b39df36e8fbf21e0488367794e8401bcf7977f61dfbdc58986
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
expo-server-sdk (0.1.
|
|
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.
|
|
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.
|
|
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.
|
|
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
|
+
[](https://github.com/SleeplessByte/expo-server-sdk-ruby/actions/workflows/main.yml) [](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
|
-
|
|
19
|
+
```shell
|
|
20
|
+
bundle install
|
|
21
|
+
```
|
|
18
22
|
|
|
19
23
|
Or install it yourself as:
|
|
20
24
|
|
|
21
|
-
|
|
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.
|
|
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`.
|
|
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
|
|
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/
|
|
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).
|
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,
|
|
237
|
-
Receipt.new(data:
|
|
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.
|
|
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-
|
|
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
|