apiverve_translator 1.2.2 → 1.2.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: 304e28826c57246c65f2b07ca8cc3c0cc56ce23afe498021cf03a977ee7379c7
4
- data.tar.gz: 9f43617543f256626aa56c11de6df35db7cbd8fb34eb5d973b7fbc3eef849059
3
+ metadata.gz: 60f46561088ee26a3c6a28c36b3b5cb40699dcf8bca281d60716d5b6671bdd89
4
+ data.tar.gz: d876c5512829a69f2b81c76d2ddb0b4d7733c50a3a05d6cf52423fac546e519a
5
5
  SHA512:
6
- metadata.gz: c01007c4fb4b64b0a16f4015e2651835e50edbefcc6e30e1892bb8317aa7bbee24dafc6c8b22e3f27634460fb04753d87884a7da7a540614c15d7715860a3d87
7
- data.tar.gz: 87f23d3446154283efd5323cfbf398a449194e028a6071e7840556fda5a937051bad92751b16da59343263cd4cc94206a5b384c13df7e1b8b0c6f724f09dae30
6
+ metadata.gz: 76f6838583d37f5805bfd2c08b775642a28429f7e1a6ae92709275a0f7d1a48103a84330f43ba40fb458a342adf204f919afa09040f66fd32d191c57a313659a
7
+ data.tar.gz: 82b313c1e2ef40de9b53c2a2faac98c1a085b8baddce9e62d7906fd25b8bb350f5dc95e1ea645020b6c2c44ff05af3f3acf95ec4a81be90408915080ca67e0ac
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Translator API - Ruby Gem
2
2
 
3
- Translator is a language translation API that translates written text into target languages using standard language codes. Submit any string with a target language code to receive the translated text and the confirmed or auto-detected source language.
3
+ Translator is a language translation API that translates plain text or HTML into target languages using standard language codes. Submit any string with a target language code to receive the translated text, both language names, and the confirmed or auto-detected source language.
4
4
 
5
5
  ## Installation
6
6
 
@@ -79,7 +79,12 @@ client = APIVerve::Translator::Client.new(
79
79
  "data": {
80
80
  "sourceLang": "en",
81
81
  "targetLang": "es",
82
- "translatedText": "¡Qué emoción que mañana hará sol! ¡Qué ganas!"
82
+ "translatedText": "¡Estoy tan emocionada de que mañana vaya a hacer sol! ¡Qué ganas tengo!",
83
+ "sourceLangName": "English",
84
+ "targetLangName": "Spanish",
85
+ "sourceDetected": false,
86
+ "format": "text",
87
+ "characterCount": 62
83
88
  }
84
89
  }
85
90
  ```
@@ -19,7 +19,7 @@ module APIVerve
19
19
  DEFAULT_TIMEOUT = 30
20
20
 
21
21
  # Validation rules for parameters
22
- VALIDATION_RULES = { 'text' => { type: 'string', required: true, max_length: 50000 }, 'target' => { type: 'string', required: true, max_length: 10 }, 'source' => { type: 'string', required: false } }
22
+ VALIDATION_RULES = { 'text' => { type: 'string', required: true, max_length: 50000 }, 'target' => { type: 'string', required: true, max_length: 10 }, 'source' => { type: 'string', required: false }, 'format' => { type: 'string', required: false } }
23
23
 
24
24
  # Format validation patterns
25
25
  FORMAT_PATTERNS = {
@@ -4,6 +4,6 @@ require_relative "apiverve_translator/client"
4
4
 
5
5
  module APIVerve
6
6
  module Translator
7
- VERSION = "1.2.2"
7
+ VERSION = "1.2.4"
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: apiverve_translator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - APIVerve
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-10-21 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: faraday
@@ -58,10 +57,10 @@ dependencies:
58
57
  - - "~>"
59
58
  - !ruby/object:Gem::Version
60
59
  version: '2.0'
61
- description: Translator is a language translation API that translates written text
62
- into target languages using standard language codes. Submit any string with a target
63
- language code to receive the translated text and the confirmed or auto-detected
64
- source language.
60
+ description: Translator is a language translation API that translates plain text or
61
+ HTML into target languages using standard language codes. Submit any string with
62
+ a target language code to receive the translated text, both language names, and
63
+ the confirmed or auto-detected source language.
65
64
  email:
66
65
  - hello@apiverve.com
67
66
  executables: []
@@ -80,7 +79,6 @@ metadata:
80
79
  source_code_uri: https://github.com/apiverve/translator-API/tree/main/ruby
81
80
  changelog_uri: https://apiverve.com/changelog
82
81
  documentation_uri: https://docs.apiverve.com/ref/translator
83
- post_install_message:
84
82
  rdoc_options: []
85
83
  require_paths:
86
84
  - lib
@@ -95,8 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
93
  - !ruby/object:Gem::Version
96
94
  version: '0'
97
95
  requirements: []
98
- rubygems_version: 3.0.3.1
99
- signing_key:
96
+ rubygems_version: 4.0.23
100
97
  specification_version: 4
101
98
  summary: Translator API - Ruby Client
102
99
  test_files: []