esirb 0.4.0 → 0.4.1
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/README.md +1 -10
- data/lib/esirb/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8ce48c08648ca791988ec0b8cde48e0b3ef0677f557208815e3b3628830f3250
|
|
4
|
+
data.tar.gz: d4552bc5f740a0ba703b086d3bf6903332fdc483fd894390c205406529d8ecc4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fde4d8b19c399d10ba17a598a779a018be455352dcf3f2a4812e99c4b02973ef7d96a20c59ed99d650d8d2991064c518ab631a45ca5ff66b5c9b1422a68115d8
|
|
7
|
+
data.tar.gz: 8034a3eedc0035b127c155441eea04efc326df12b07fe8922862433d410c54bedd4d1e7924305a9cd9938eeda0522795db5108ae0b0b81a373248441b08404fd
|
data/README.md
CHANGED
|
@@ -68,15 +68,6 @@ client = Esirb::Client.new(token: -> { character.access_token_refreshing_if_expi
|
|
|
68
68
|
|
|
69
69
|
esirb doesn't refresh tokens itself: your app keeps the refresh token and does the refresh, and esirb only asks for the access token. If the callable returns `nil` or a blank string, the request raises `Esirb::Error` instead of being sent.
|
|
70
70
|
|
|
71
|
-
#### Identify your app
|
|
72
|
-
|
|
73
|
-
CCP asks every ESI client to send a User-Agent with the app's name and a way to contact you. Pass yours as `user_agent:`, and esirb adds its own name after it:
|
|
74
|
-
|
|
75
|
-
```ruby
|
|
76
|
-
client = Esirb::Client.new(user_agent: "mappy/1.2 (admin@example.com)")
|
|
77
|
-
client.user_agent # => "mappy/1.2 (admin@example.com) esirb/0.4.0 (+https://github.com/sicks/esirb)"
|
|
78
|
-
```
|
|
79
|
-
|
|
80
71
|
### Build the path
|
|
81
72
|
|
|
82
73
|
Treat ESI's static path segments as method names, and path parameters as the arguments for those methods. Chain these methods to build the path to the desired ESI route.
|
|
@@ -312,7 +303,7 @@ Options passed to `Esirb::Client.new` override these for that client:
|
|
|
312
303
|
| `compatibility_date` | `"2026-08-18"` | Sent as `X-Compatibility-Date`, as a `"YYYY-MM-DD"` string or a `Date`. A newer date can change response shapes, so check your code against it before switching. Any date up to today works (ESI's day starts at 11:00 UTC), and ESI uses the latest published date on or before it. It can't be in the future, or `nil`: without a date, ESI uses its oldest behavior. |
|
|
313
304
|
| `tenant` | `"tranquility"` | Sent as `X-Tenant`. |
|
|
314
305
|
| `language` | `"en"` | Sent as `Accept-Language`. |
|
|
315
|
-
| `user_agent` | `nil` | Your app's name and contact info,
|
|
306
|
+
| `user_agent` | `nil` | Your app's name and contact info, which CCP asks every app to send. esirb adds its own after it: `"mappy/1.2 (admin@example.com) esirb/0.4.0 (+https://github.com/sicks/esirb)"`. |
|
|
316
307
|
| `cache_store` | `nil` | Where to cache responses. `nil` turns caching off; see [Caching](#caching). |
|
|
317
308
|
| `timeout` | `30` | Seconds to wait for a response. `nil` leaves it to the adapter. |
|
|
318
309
|
| `open_timeout` | `5` | Seconds to wait to open the connection. `nil` leaves it to the adapter. |
|
data/lib/esirb/version.rb
CHANGED