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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -10
  3. data/lib/esirb/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94f6c3136baf9fdac67f6e0a354a5272bdbca9e3e7b5674442257b3ecb39cd36
4
- data.tar.gz: ecfad5873e07d063ed5c3c27e214f2e4533aedcb5a7113a8258bc153b043fe9f
3
+ metadata.gz: 8ce48c08648ca791988ec0b8cde48e0b3ef0677f557208815e3b3628830f3250
4
+ data.tar.gz: d4552bc5f740a0ba703b086d3bf6903332fdc483fd894390c205406529d8ecc4
5
5
  SHA512:
6
- metadata.gz: 69d2bc63875011b320e4c7488d1ca9b5c394fa33ceb1dbb24ecdd3929317cd90ee664d681ff0fa2bb2b973ff9fa2c66de67c870e0f75ac159da0f197ea514b4f
7
- data.tar.gz: 89f8b30dd0e1daae91b4d5bf91fbc79d34965fa67dd4efa4e513882a7a4f9903f9cb4674a7fa800c6d8574a23d61275b2ef6f847f66190a582f8b08041afd6a7
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, sent before esirb's own User-Agent. |
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Esirb
4
- VERSION = "0.4.0"
4
+ VERSION = "0.4.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: esirb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - sicks