verbalizeit 1.0.0 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96a46207cd03946e6882b755dda04b6d7cacc70f
4
- data.tar.gz: 6e21afa7e84b5928c542e1e024c31a5c298a3856
3
+ metadata.gz: 4537264a432d2b0598f8ddce8b79c56adeaab222
4
+ data.tar.gz: 5cf1b6b58ee6d06c579a8ff9534019ab73f9436f
5
5
  SHA512:
6
- metadata.gz: ad3107664c67a828e43bb800f3b0d9a3d365d91fafbbf38530d4a2d73984aca3b7b197a47a2f32ab1a13e2cf9b420f1b169be40073c77dd5606fa160a69e2aa7
7
- data.tar.gz: ab7be31b5b3de30e2e5d0cd5418baaa44fb4e9737c119d44e96cab1748bac214f13ccd5a83f703a110a80efc428553f6dfac71f9b47c7bdff61abf0961e55e6f
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 = VerbalizeIt::Client.new('my_key', :staging)
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: `operation`, `source_language`, `target_language`, at least one of `file` or `media_resource_url`.
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('text_translation', 'eng-US', 'fra-FR', {file: 'file.xliff', postback_url: 'https://www.postback.com'})
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
- #=> 200
118
+ #=> true
119
119
  ```
120
120
 
121
121
  ##### Download Completed File
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Verbalizeit
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
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.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: 2014-12-29 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler