parseapi 1.10.6 → 1.11.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 638f70630afd963a04d34c4117413c25186bf767eab3e49d9a601716bd8ffded
4
- data.tar.gz: '0695255961cf73570e35460b7b3a1cd3f82b0b0a78fecba0830c88da5c37bca8'
3
+ metadata.gz: a034ca1ee804ae489e3e3cd526d91ce7b578d7e9bfe20ed74bf3c30ee73ca50e
4
+ data.tar.gz: 73539a5b7041667e30006e369015782f0543c3557d697d3af98a0335d877ea50
5
5
  SHA512:
6
- metadata.gz: eedd45a6ca614c53d98be2a951fb8655faacc507d5861f794bd578485d73a207a914dac4c195cd9064d6aa04aa0cb27a5941a5d363cda0e94f7e63efd15e2ee1
7
- data.tar.gz: c2fbbbbfc149d8a804780095ae2e4d58b0323e8741a9f26afefc621aad783fccf125303bf3779620050e3174ecc953e2da8401b9fc90e34cb9f415e5eae8410a
6
+ metadata.gz: 939b541b0a6cc257571338dffc99ab566d868144ce949712c5e58b47628860271d9bf43e1a387c6d79b1f16414e9e2df2b0df48413bc28503d018b26d808e9ee
7
+ data.tar.gz: 9a4b8d5e7104cda6fc4e39904ae6d2c52e632d95d047c725dba0a9cfb6301153f09453469020f1b57bb132678a6b4a50226579b50ae66fd53a6904ec95f6a3bd
data/README.md CHANGED
@@ -166,7 +166,7 @@ Choose display names for one request:
166
166
  parse.country('DE', lang: 'fr')
167
167
  ```
168
168
 
169
- `lang` is optional on geography lookups and their lists/searches, Language, Date, Time/Timezone, Emoji lookup/search. IP, ASN and national Company number lookups also accept it for their geographic labels. Codes, native names, quantities and response structure retain their meanings. Source coverage determines which labels are translated; unavailable labels use the API's documented fallback.
169
+ `lang` is optional on geography lookups and their lists/searches, Currency lookup, Language, Date, Time/Timezone, Emoji lookup/search. IP, ASN and national Company number lookups also accept it for their geographic labels. Codes, native names, quantities and response structure retain their meanings. Source coverage determines which labels are translated; unavailable labels use the API's documented fallback.
170
170
 
171
171
  The next call keeps its usual default unless it also supplies `lang`. Existing `deep` rules still apply. Date `format` remains an explicit input-parsing control.
172
172
 
@@ -260,6 +260,7 @@ Choose enrichment for the question you need answered.
260
260
  | Domain | Registration dates, registrar, status and DNSSEC, included with a paid plan. Use `dns` for DNS records and `mx` for mail routing. |
261
261
  | Email | A metered mailbox check with deliverability, catch-all, status, reason and address hints, using included email checks or enabled on-demand usage. |
262
262
  | Phone, Time, Date, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
263
+ | Currency | Currency metadata on paid plans; lookup and exchange-rate conversion use pooled requests. |
263
264
  | Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
264
265
  | Name, Industry | Name evidence or the industry definition profile on paid plans. |
265
266
  | Company | The complete product detail bag on paid plans. |
@@ -301,6 +301,14 @@ module ParseAPI
301
301
 
302
302
 
303
303
 
304
+ def currency(code, deep: false, lang: nil)
305
+ get("/currency/#{seg(code)}", deep: deep, lang: lang)
306
+ end
307
+
308
+ def currency_rate(base, quote, date: nil, amount: nil)
309
+ get("/currency/#{seg(base)}/#{seg(quote)}", date: date, amount: amount)
310
+ end
311
+
304
312
  def language(code, deep: false, lang: nil)
305
313
  get("/language/#{seg(code)}", deep: deep, lang: lang)
306
314
  end
@@ -1,3 +1,3 @@
1
1
  module ParseAPI
2
- VERSION = '1.10.6'.freeze
2
+ VERSION = '1.11.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parseapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.10.6
4
+ version: 1.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParseAPI