cielo24 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/cielo24/jobs.rb +1 -1
- data/lib/cielo24/version.rb +1 -1
- data/spec/jobs_spec.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: 34c8bd4e8d0e69f444549855053d3586842451d7
|
4
|
+
data.tar.gz: 221e505a00b96f4bf4e5b3c51976c570592c629e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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: "
|
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"] == "
|
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.
|
data/lib/cielo24/version.rb
CHANGED
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" => "
|
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.
|
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-
|
11
|
+
date: 2014-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|