parseapi 1.13.0 → 1.13.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 +4 -4
- data/README.md +1 -1
- data/lib/parseapi/client.rb +12 -3
- data/lib/parseapi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 236cc7aa6c8454d15e1b4a2a8841d51fcc052365f2b400d79e86a27d838a631a
|
|
4
|
+
data.tar.gz: fc96b7613354a75e28afb2ec19c56078f34a20aaa0fa6d8d3d2a7f760a5267cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a4d692e52ae113e6083ad824ddee30bbc4003a548670867456ee66e7199198a1dbe8c65d666e3269827047a038bcfbe91712f0e0d8c3a495cc71f12f5babdd71
|
|
7
|
+
data.tar.gz: b13b12f73e790124160d0f13c634799afecab20082e08781a9d46a9c75978b19c28c18704c7bfba563047532cabe5d20b564f787ee0552f10038ed041d41381e
|
data/README.md
CHANGED
|
@@ -472,7 +472,7 @@ API 2.1 Time returns the clock first and the matched place in `location`. Read t
|
|
|
472
472
|
|
|
473
473
|
This client targets ParseAPI 2.1.0. Upgrading requires response-reader changes: optional detail now lives on its resource. Read `population` instead of `deep.population`. Deep remains an explicit request for optional detail. Without the request or access, optional fields are absent. A returned null still means unknown. User-Agent device, OS and browser are objects in every mode. Postal tax is one `tax` object. Specialist Weather measurements live in `current`. Metered Carrier and HLR return the complete purchased result without a Deep switch.
|
|
474
474
|
|
|
475
|
-
Use `parse.email_verify(email)` for mailbox verification. It
|
|
475
|
+
Use `parse.email_verify(email)` for mailbox verification. It uses GET `/email/verify?email=person%40example.com` by default, with no automatic retries. The SDK chooses POST before dispatch for inputs that cannot safely fit in a URL; existing POST requests remain supported. The earlier Email deep argument is accepted only as a migration alias for that same operation. App keys receive `permission_denied`. Bulk exports retain their existing column names and saved-job recovery.
|
|
476
476
|
|
|
477
477
|
The 2.0 API is a temporary migration bridge for older installed clients. There is one maintained SDK line using the 2.1 structure.
|
|
478
478
|
|
data/lib/parseapi/client.rb
CHANGED
|
@@ -221,7 +221,7 @@ module ParseAPI
|
|
|
221
221
|
|
|
222
222
|
# Run one explicit metered mailbox check, without automatic retries.
|
|
223
223
|
def email_verify(email)
|
|
224
|
-
get('/email/verify', {
|
|
224
|
+
get('/email/verify', { email: email })
|
|
225
225
|
end
|
|
226
226
|
|
|
227
227
|
|
|
@@ -405,11 +405,11 @@ module ParseAPI
|
|
|
405
405
|
|
|
406
406
|
# Positions are UTF-16 code units; end is exclusive.
|
|
407
407
|
def emoji_parse(text, deep: false, lang: nil)
|
|
408
|
-
get('/emoji/parse', { deep: deep, lang: lang }
|
|
408
|
+
get('/emoji/parse', { text: text, deep: deep, lang: lang })
|
|
409
409
|
end
|
|
410
410
|
|
|
411
411
|
def emoji_convert(text, direction:, shortcode_source:)
|
|
412
|
-
get('/emoji/convert', {direction: direction, shortcode_source: shortcode_source}
|
|
412
|
+
get('/emoji/convert', {text: text, direction: direction, shortcode_source: shortcode_source})
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
|
|
@@ -445,9 +445,18 @@ module ParseAPI
|
|
|
445
445
|
def get(path, params = {}, headers = {}, json = nil)
|
|
446
446
|
retries = retries_for(path, params)
|
|
447
447
|
query = params.reject { |_name, value| value.nil? || value == false }
|
|
448
|
+
field = path == '/email/verify' ? :email : ['/emoji/parse', '/emoji/convert'].include?(path) ? :text : nil
|
|
449
|
+
value = field ? params[field] : nil
|
|
450
|
+
if json.nil? && field && (!value.is_a?(String) || !value.valid_encoding?)
|
|
451
|
+
json = { field => value }; query.delete(field)
|
|
452
|
+
end
|
|
448
453
|
uri = @base_url.dup
|
|
449
454
|
uri.path = path
|
|
450
455
|
uri.query = URI.encode_www_form(query) unless query.empty?
|
|
456
|
+
if json.nil? && field && uri.to_s.bytesize > 8000
|
|
457
|
+
json = { field => value }; query.delete(field)
|
|
458
|
+
uri.query = query.empty? ? nil : URI.encode_www_form(query)
|
|
459
|
+
end
|
|
451
460
|
|
|
452
461
|
encoded = json.nil? ? nil : JSON.generate(json)
|
|
453
462
|
attempt = 0
|
data/lib/parseapi/version.rb
CHANGED
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.13.
|
|
4
|
+
version: 1.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- ParseAPI
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-11-
|
|
11
|
+
date: 2026-11-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description:
|
|
14
14
|
email:
|