cielo24 0.0.1 → 0.0.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
  SHA1:
3
- metadata.gz: 9e4dc072024de29bb1c0ae47f5c405b3540ea703
4
- data.tar.gz: bf4e0476af267ce414663ccf50f4a8b353dab131
3
+ metadata.gz: 34c8bd4e8d0e69f444549855053d3586842451d7
4
+ data.tar.gz: 221e505a00b96f4bf4e5b3c51976c570592c629e
5
5
  SHA512:
6
- metadata.gz: 970bf712df6d087537ae83db28563e8bd1d109427adc42fdff141c99ff0ea407b3e12af1fe07bbf95120944b57752f6bfc01f02ea0d268a26792bf4aea1b538e
7
- data.tar.gz: dfa41a39b01104ee353f6627835442e9a3e25d7ab386493d9996c4a841888a52a77adbc81cc8a18e1ed9e15dfd42a174ae44c4ca4d3d471fe2846e0de5b6072d
6
+ metadata.gz: 90ebd99c577803c2fca0d3a7ef5c8fd88d397928a940533e93f76cf9465ce540b1e1f11bb05099b8eeb9f5db6289d9fb7ccd2bde8b666914ac2793763bd93550
7
+ data.tar.gz: 416d31cb27851b07f55f278d2b27bb952ae42e499458d65ef5959e730030a77d92bbb21e16cf746c4548ca7a88c5e2ddedac3eec7f95e3c427ecb0688080ebfc
data/README.md CHANGED
@@ -31,7 +31,7 @@ Cielo24::Client.configure(username: "user", password: "somepass")
31
31
  You may also authenticate through the Cielo24 sandbox with the following settings (use your own sandbox username and password):
32
32
 
33
33
  ```
34
- Cielo24::Client.configure(username: "treehouse", password: "p@ssw0rd",
34
+ Cielo24::Client.configure(username: "username", password: "password",
35
35
  uri: "https://sandbox.cogi.com", verify_mode: OpenSSL::SSL::VERIFY_NONE)
36
36
  ```
37
37
 
@@ -66,4 +66,4 @@ data = client.get_caption(job_id)
66
66
  2. Create your feature branch (`git checkout -b my-new-feature`)
67
67
  3. Commit your changes (`git commit -am 'Add some feature'`)
68
68
  4. Push to the branch (`git push origin my-new-feature`)
69
- 5. Create new Pull Request
69
+ 5. Create new Pull Request
data/lib/cielo24/jobs.rb CHANGED
@@ -54,7 +54,7 @@ module Cielo24
54
54
  #
55
55
  # Returns true if the task is complete, false otherwise.
56
56
  def task_complete?(task_id)
57
- get_json("/api/job/task_status", {task_id: task_id})["TaskStatus"] == "COMPLETED"
57
+ get_json("/api/job/task_status", {task_id: task_id})["TaskStatus"] == "COMPLETE"
58
58
  end
59
59
 
60
60
  # Public: Gets the caption results from a job.
@@ -1,3 +1,3 @@
1
1
  module Cielo24
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/spec/jobs_spec.rb CHANGED
@@ -50,7 +50,7 @@ describe "Cielo24::Jobs" do
50
50
  it "returns true if the task has completed" do
51
51
  pending("CANNOT GUARANTEE COMPLETED JOB IN SANDBOX") if test_sandbox?
52
52
 
53
- stub_get_json("/api/job/task_status", {"TaskStatus" => "COMPLETED"})
53
+ stub_get_json("/api/job/task_status", {"TaskStatus" => "COMPLETE"})
54
54
  expect(client.task_complete?("TASK123")).to be_true
55
55
  end
56
56
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cielo24
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alan Johnson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-05 00:00:00.000000000 Z
11
+ date: 2014-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler