verbalizeit 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/verbalizeit/client.rb +2 -0
- data/lib/verbalizeit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4537264a432d2b0598f8ddce8b79c56adeaab222
|
4
|
+
data.tar.gz: 5cf1b6b58ee6d06c579a8ff9534019ab73f9436f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea1415a98adfbe8cbd0eb78c1548b78550729338676b4cf7805e09d0dae3cdfd57c060afd12d25708cbd60f963f6b7041b47ba381ae9d2b5956480b55667c69e
|
7
|
+
data.tar.gz: 4896aff16c1485be9df46a332565aea96b5aa3fd70e42f9f3f1f8c7b4876e2d7c9b519b001184af63b74a32874c63e8bb330dfb4b314f21bede614a37314c350
|
data/README.md
CHANGED
@@ -30,7 +30,7 @@ The VerbalizeIt gem supports the same endpoints as the V2 API.
|
|
30
30
|
Initialize the VerbalizeIt client with your API key and the API environment. The supported API environments are `:staging` and `:production`.
|
31
31
|
|
32
32
|
```ruby
|
33
|
-
client =
|
33
|
+
client = Verbalizeit::Client.new('my_key', :staging)
|
34
34
|
```
|
35
35
|
|
36
36
|
### Languages
|
@@ -98,13 +98,13 @@ task.price_amount
|
|
98
98
|
|
99
99
|
Creates a new task in the VerbalizeIt system. Returns a `Verbalizeit::Task`.
|
100
100
|
|
101
|
-
Required parameters: `
|
101
|
+
Required parameters: `source_language`, `target_language`, `operation` at least one of `file` or `media_resource_url`.
|
102
102
|
Optional parameters: `postback_url`, `status_url`, `start`, `rush_order`
|
103
103
|
|
104
104
|
Optional parameters, as well as the `file` and `media_resource_url`, are passed in through an options hash.
|
105
105
|
|
106
106
|
```ruby
|
107
|
-
client.create_task('
|
107
|
+
client.create_task('eng-US', 'fra-FR', 'text_translation', {file: 'file.xliff', postback_url: 'https://www.postback.com'})
|
108
108
|
#=> Verbalizeit::Task
|
109
109
|
```
|
110
110
|
|
@@ -115,7 +115,7 @@ Starts a created task. Returns a status code of `200`.
|
|
115
115
|
```ruby
|
116
116
|
id = 'T2EB60C'
|
117
117
|
client.start_task(id)
|
118
|
-
#=>
|
118
|
+
#=> true
|
119
119
|
```
|
120
120
|
|
121
121
|
##### Download Completed File
|
data/lib/verbalizeit/client.rb
CHANGED
@@ -130,6 +130,8 @@ module Verbalizeit
|
|
130
130
|
"https://stagingapi.verbalizeit.com/v2/"
|
131
131
|
when :production
|
132
132
|
"https://api.verbalizeit.com/v2/"
|
133
|
+
when :local
|
134
|
+
"http://localhost.verbalizeit.com:3000/v2/"
|
133
135
|
else
|
134
136
|
raise Error::UnknownEnvironment, "you may specify :staging or :production"
|
135
137
|
end
|
data/lib/verbalizeit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: verbalizeit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathanael Burt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|