parseapi 1.10.6 → 1.11.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 638f70630afd963a04d34c4117413c25186bf767eab3e49d9a601716bd8ffded
4
- data.tar.gz: '0695255961cf73570e35460b7b3a1cd3f82b0b0a78fecba0830c88da5c37bca8'
3
+ metadata.gz: 3384ee9a83e401ea40a58d471bade55ef932024c51f58b935d70785d664dac2c
4
+ data.tar.gz: 8df395268a16299cb0e65620230ef17d07bda4306543bb682720095c960e0573
5
5
  SHA512:
6
- metadata.gz: eedd45a6ca614c53d98be2a951fb8655faacc507d5861f794bd578485d73a207a914dac4c195cd9064d6aa04aa0cb27a5941a5d363cda0e94f7e63efd15e2ee1
7
- data.tar.gz: c2fbbbbfc149d8a804780095ae2e4d58b0323e8741a9f26afefc621aad783fccf125303bf3779620050e3174ecc953e2da8401b9fc90e34cb9f415e5eae8410a
6
+ metadata.gz: e2e2bd7eb183e1da673adb5ed9ee0754206883593e802e459bba893648f6b3b5468996fa8523e8ecb923044437cc64a5b5350bbd8bf166b05ab6a6782d2e50f9
7
+ data.tar.gz: 62d3781a67e6a8db75f97916862dacfe116d9118638577b0fb8363d66abb2ae81857eb3ec26e9443ab3ab98d052ea643a5ccf220e9591042bf453f3d496f237b
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
 
@@ -219,7 +219,7 @@ Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offse
219
219
 
220
220
  ## Place statistics and optional detail
221
221
 
222
- Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym, `iso_alpha3` and `iso_numeric` country identifiers, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, lat, lon }`. Paid Deep adds specialist detail, including population, total area and national statistics. `gdp_usd` and `gdp_per_capita_usd` are current US dollars; `population_growth_percent`, `urban_population_percent` and `internet_users_percent` use a 0–100 percent scale (growth can be negative or exceed 100). GDP per person and these three percentages round once to two decimals in the API response. `elevation_average` is average terrain elevation in meters; `lowest_point.elevation` and `highest_point.elevation` keep their point-specific meaning. Unknown stays null and a known zero stays zero. Country tax references are grouped once as `deep.tax: { name, rate }`; the rate remains a percentage. Read capital from the Core object and read the tax name and rate from the Deep tax object.
222
+ Country Core contains the everyday reference: `name`, `name_full`, `name_local`, demonym, `iso_alpha3` and `iso_numeric` country identifiers, continent, region and subregion, currency, calling code, `flag`, language and timezone codes, borders, bloc memberships and `capital: { name, latitude, longitude }`. Paid Deep adds specialist detail, including population, total area and national statistics. `gdp_usd` and `gdp_per_capita_usd` are current US dollars; `population_growth_percent`, `urban_population_percent` and `internet_users_percent` use a 0–100 percent scale (growth can be negative or exceed 100). GDP per person and these three percentages round once to two decimals in the API response. `elevation_average` is average terrain elevation in meters; `lowest_point.elevation` and `highest_point.elevation` keep their point-specific meaning. Unknown stays null and a known zero stays zero. Country tax references are grouped once as `deep.tax: { name, rate }`; the rate remains a percentage. Read capital from the Core object and read the tax name and rate from the Deep tax object.
223
223
 
224
224
  Australian postal lookups include core `localities` with suburb choices (`city`, `state`, `state_name`) on every plan. Null or an omitted field means unknown, while `[]` means the reviewed reference has no eligible choices. `city` stays null when the source is ambiguous, even if there is only one eligible choice. Let the user select their suburb and keep manual entry available. These are geographic choices, not mailing-address verification. [G-NAF source, adaptations and licence](https://parseapi.com/legal/attribution#postal-au).
225
225
 
@@ -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. |
@@ -448,3 +449,9 @@ Coverage by country and available fields is described at https://parseapi.com/ci
448
449
 
449
450
 
450
451
  Conditional `If-None-Match` reads and GeoJSON currently use HTTP directly. A matching City ETag returns 304 without a body; ordinary billing and rate limits apply. These JSON client methods do not supply conditional-cache handling.
452
+
453
+ ## Capital coordinate migration
454
+
455
+ Country and State capital coordinates use `latitude` and `longitude`. Update
456
+ `capital.lat` and `capital.lon` reads to `capital.latitude` and
457
+ `capital.longitude` when adopting this release.
@@ -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.1'.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.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParseAPI