parseapi 1.10.3 → 1.10.4

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: f5d77aa0696ab480d22cfd25418d327958794636f2ccbfa0e3ef49caf1b4adfc
4
- data.tar.gz: 90937689e56a2b1657c255b206817058650d1462823b8b3d0a8825e0f791ef98
3
+ metadata.gz: e60e76c6a3cc7d73c003834943e3a82e40dacbf35046cff0ab8324d2647c3c11
4
+ data.tar.gz: f4205823641fad0fdef005f84b640d70b639a003377afefca61aa97be6ce180f
5
5
  SHA512:
6
- metadata.gz: ca73d21823c8bc5e0a9c9c1b493e9960527dff057a7e1e5a6e9fa1c46398c33d6cfa30075dcd5d4fbf2aa2a69be84989f699d782e160600e2e8cd0d0e6726f2f
7
- data.tar.gz: ff49b8c7f444731da4d4160a2882fd1c7c791b77fb52c233b0f6d776aa35c9afe6cebb04acf72bc0e807c2693fd737de568134df772d4d86fc57c5f23ad9748d
6
+ metadata.gz: df92607a58c76e1b43908d7f5f07e102d229067947b152678c88a479a7660081810a31489ca2e7ff50dad73f26852d4236643a5ea3fad3c8bfc11aab80166588
7
+ data.tar.gz: 8818947877264264ba94320b12eff88fc3f3f8bd84bed95b27544fef6e6064d7ca563bf6b76ddfa9140cc5330c3bcea1f3631319f9c99bf15f93ad47269bd3e9
data/README.md CHANGED
@@ -111,8 +111,6 @@ parse.state_districts('NC', country: 'US')
111
111
  parse.district('37081')
112
112
  parse.continent('NA')
113
113
  parse.continent_countries('NA')
114
- parse.currency('USD')
115
- parse.currency_rate('USD', 'EUR')
116
114
  parse.language('en')
117
115
  parse.name('BILLY OSHALL')
118
116
  parse.name('Andrea', country: 'IT', deep: true)
@@ -131,7 +129,6 @@ parse.weather(40.7128, -74.006)
131
129
  parse.weather(40.7128, -74.006, deep: true, date: '2026-09-01')
132
130
  parse.domain('example.com')
133
131
  parse.asn('AS13335')
134
- parse.mac('00:1B:63:84:45:E6')
135
132
  parse.mx('example.com')
136
133
  parse.dns('example.com')
137
134
  parse.dns('_dmarc.example.com', type: 'TXT')
@@ -160,9 +157,9 @@ Choose display names for one request:
160
157
  parse.country('DE', lang: 'fr')
161
158
  ```
162
159
 
163
- `lang` is optional on geography lookups and their lists/searches, Currency lookup, Language, Date, Time/Timezone, Emoji lookup/search, and unit discovery. 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.
160
+ `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.
164
161
 
165
- The next call keeps its usual default unless it also supplies `lang`. Existing `deep` rules still apply. Date `format` and measurement `locale` remain explicit input-parsing controls.
162
+ 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.
166
163
 
167
164
  ## Time
168
165
 
@@ -211,19 +208,6 @@ Timezone discovery accepts country, IANA area, exact signed offset, abbreviation
211
208
 
212
209
  Source deep adds `standard_offset`, `standard_offset_seconds`, signed `dst_offset_seconds` and `season`. Seasonal adjustments can be negative. `season` describes the current DST-flag interval, or the next within 400 days, with actual before/after transition facts and signed `change_seconds`. Unknown boundaries remain null. These fields are optional and nullable, and destination deep stays compact.
213
210
 
214
- ## Measurements
215
-
216
- ```ruby
217
- result = parse.measure('5 ft 11 in', to: 'cm')
218
- units = parse.measure_units(unit: 'm')
219
- ```
220
-
221
- `amount` is a decimal string, such as `"180.34"`. Without `to`, the API returns the canonical unit for the measurement type. Pass `locale` for number formatting and `system` (`us` or `imperial`) when a customary unit needs context. Ambiguous input returns `valid: false`, a `reason`, and available `choices`. Invalid or incompatible target units use the normal API error.
222
-
223
- Successful HTTP JSON contains `measure`, `valid`, `type`, `amount`, and `unit`. Invalid input adds `reason`. `choices` appears only when unit alternatives are available.
224
-
225
- Unit discovery accepts optional `query`, `type`, and `unit` filters. `unit` selects compatible targets. Omit the filters for the reviewed catalog. Both operations use pooled requests.
226
-
227
211
  ## Place statistics and optional detail
228
212
 
229
213
  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).
@@ -264,7 +248,7 @@ Choose enrichment for the question you need answered.
264
248
  | IP | Richer IP fields included with a paid plan. No separate check meter. |
265
249
  | Domain | Registration dates, registrar, status and DNSSEC, included with a paid plan. Use `dns` for DNS records and `mx` for mail routing. |
266
250
  | Email | A metered mailbox check with deliverability, catch-all, status, reason and address hints, using included email checks or enabled on-demand usage. |
267
- | Phone, Time, Date, Currency, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
251
+ | Phone, Time, Date, Language, Emoji, Point | Optional detail in the same pooled request on every plan. |
268
252
  | Country, State, District, City, Postal | The place profile on paid plans, including demographic and tax facts where held. |
269
253
  | Name, Industry | Name evidence or the industry definition profile on paid plans. |
270
254
  | Company | The complete product detail bag on paid plans. |
@@ -227,13 +227,7 @@ module ParseAPI
227
227
  def card(bin, deep: false)
228
228
  raise ArgumentError, 'parseapi: Card requires a 2-11 digit prefix string.' unless bin.is_a?(String) && bin.length <= 64 && /\A[0-9]{2,11}\z/.match?(bin.delete(" \t\r\n-"))
229
229
  get("/card/#{seg(bin)}", deep: deep)
230
- end
231
-
232
-
233
-
234
-
235
-
236
- # Parse a phone number and its formats. Pass country for national numbers when needed. Deep
230
+ end # Parse a phone number and its formats. Pass country for national numbers when needed. Deep
237
231
  # adds numbering-plan geography on every plan. Carrier, caller, and HLR are separate metered lookups.
238
232
  def phone(number, country: nil, deep: false)
239
233
  get("/phone/#{seg(number)}", country: country, deep: deep)
@@ -272,10 +266,6 @@ module ParseAPI
272
266
  get("/asn/#{seg(asn)}", lang: lang)
273
267
  end
274
268
 
275
- def mac(mac)
276
- get("/mac/#{seg(mac)}")
277
- end
278
-
279
269
  # Published DNS records with TTLs. Omit type to check all supported types.
280
270
  # Type selects the question, including its CNAME chain. Pooled on every plan.
281
271
  def dns(domain, type: nil)
@@ -311,14 +301,6 @@ module ParseAPI
311
301
 
312
302
 
313
303
 
314
- def currency(code, deep: false, lang: nil)
315
- get("/currency/#{seg(code)}", deep: deep, lang: lang)
316
- end
317
-
318
- def currency_rate(base, quote, date: nil, amount: nil)
319
- get("/currency/#{seg(base)}/#{seg(quote)}", date: date, amount: amount)
320
- end
321
-
322
304
  def language(code, deep: false, lang: nil)
323
305
  get("/language/#{seg(code)}", deep: deep, lang: lang)
324
306
  end
@@ -420,20 +402,6 @@ module ParseAPI
420
402
  end
421
403
 
422
404
 
423
-
424
-
425
- # Parse or convert a measurement. Amount is a decimal string. Without to, use the
426
- # type's canonical unit. Locale and system (us or imperial) resolve explicit ambiguity.
427
- # Successful JSON omits reason and choices. Invalid input adds reason and alternatives add choices.
428
- def measure(measure, to: nil, locale: nil, system: nil)
429
- get("/measure/#{seg(measure)}", to: to, locale: locale, system: system)
430
- end
431
-
432
- # Discover reviewed units. unit filters compatible conversion targets.
433
- def measure_units(query: nil, type: nil, unit: nil, lang: nil)
434
- get('/measure/units', q: query, type: type, unit: unit, lang: lang)
435
- end
436
-
437
405
  private
438
406
 
439
407
  def time_source(timezone, **values)
@@ -1,3 +1,3 @@
1
1
  module ParseAPI
2
- VERSION = '1.10.3'.freeze
2
+ VERSION = '1.10.4'.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.3
4
+ version: 1.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParseAPI