parseapi 1.9.1 → 1.9.2

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: 1cc18f225a23e41055dcf0d229ad8db68e14226dc6f9fcacf67c61e4d9d93ee5
4
- data.tar.gz: a7e36c33cc9bdde7cff44a9d83f207486fa5dd1ad9248b671d9084e3b79ccc9f
3
+ metadata.gz: 9305f04eec9c9f1ed484906fb69244df03127edae6b7466c023e5855631ec6dd
4
+ data.tar.gz: 2adccd9a7bfc7a456b7f0b4b5bab86f3d8b30bb4fa744b2c510a14933b99b4bf
5
5
  SHA512:
6
- metadata.gz: 412f7871d1f0532c7b305f7b8622caa94e65bfec2a0cb72162ea11e563bd971ab73ca67e7dc2dd87f809b46558ecdd1136fb36d1d7ce9acb929e0672c68b56e7
7
- data.tar.gz: e10bbf88c255ee45442bd1ebc6f74a61584fd788c6a90fe696efaddd5d608c661bcb9748d5ec634d7941c0ff27e72e6b201f3b89f89c20de4b3b2821629fcf27
6
+ metadata.gz: 4f71799f8c0304a0281fd4b3e50c08d66e4123243515eb85d0077acedbd420bb753ac5a67040e73382005d88cb8f7fd891cc495af7c958c553b8206399e8bf7f
7
+ data.tar.gz: 98f12a7c2d8ef6886cd78587a9a2578c1858aa85bf33e1be6d2ba407d2185f705a0e385b1d6c1da010246b2750c9614850a8f9d7c3a1d580290aa47d8f396a4b
data/README.md CHANGED
@@ -228,6 +228,8 @@ units = parse.measure_units(unit: 'm')
228
228
 
229
229
  `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.
230
230
 
231
+ Successful HTTP JSON contains `measure`, `valid`, `type`, `amount`, and `unit`. Invalid input adds `reason`. `choices` appears only when unit alternatives are available.
232
+
231
233
  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.
232
234
 
233
235
  ## Place statistics and optional detail
@@ -433,6 +433,7 @@ module ParseAPI
433
433
 
434
434
  # Parse or convert a measurement. Amount is a decimal string. Without to, use the
435
435
  # type's canonical unit. Locale and system (us or imperial) resolve explicit ambiguity.
436
+ # Successful JSON omits reason and choices. Invalid input adds reason and alternatives add choices.
436
437
  def measure(measure, to: nil, locale: nil, system: nil)
437
438
  get("/measure/#{seg(measure)}", to: to, locale: locale, system: system)
438
439
  end
@@ -1,3 +1,3 @@
1
1
  module ParseAPI
2
- VERSION = '1.9.1'.freeze
2
+ VERSION = '1.9.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parseapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ParseAPI
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-12 00:00:00.000000000 Z
11
+ date: 2026-10-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: