sauce_whisk 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +10 -0
- data/lib/sauce_whisk.rb +8 -0
- data/lib/sauce_whisk/jobs.rb +2 -0
- data/lib/sauce_whisk/version.rb +1 -1
- data/spec/lib/sauce_whisk/sauce_whisk_spec.rb +16 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGZmYWI0OTdkOGZhN2Y4MTJlOGI3NmIwZDkwODA4MTBhZmViOTlmYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
MTMzNDg5Y2Q5YjdjNjlkMWIwZDNkZTBjNDc2Y2FhYzhmODIxZmQ4MA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZmVlZjYzMDY5YjUwYzE2ZDBjMTc5OGZhN2Y1Njk3MjUyODk2NTgyZDBkM2Nk
|
10
|
+
ZjdlYTBiODc1OTFkNGVmOGYxNGYyMjBiZmE4ODVjOWFhOTMxMjE0MjQ4MGE3
|
11
|
+
MWM5YWE5MTU5NGEyOWU3ODNhZTA1NDUyNGZmYmZhYWRmNDQ3Nzc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWUwYjk5MjJjYzE0MGY4MzliODhhZGIwMGZhZThlYzNiYTEzZmY1ZTQxMjM2
|
14
|
+
OGE1MDE2MGNiZjIyYzk5NzNlMjA2OGEzMDhkYjA4NGY0YzNiZTk4Y2IwN2Y0
|
15
|
+
OTEwMDI1N2Q2MGM5ZWEyYjFjYzQzMTg3OGI1ZTU2MTU3NTVhOTU=
|
data/README.md
CHANGED
@@ -87,6 +87,16 @@ There are three types of asset for Sauce Labs jobs: screenshots, video and logs.
|
|
87
87
|
video = job.video # A single Asset, holding the video
|
88
88
|
```
|
89
89
|
|
90
|
+
### Logger
|
91
|
+
|
92
|
+
You can set a custom logger object, passing anything that responds to puts:
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
SauceWhisk.logger = my_logger
|
96
|
+
```
|
97
|
+
|
98
|
+
SauceWhisk.logger defaults to STDOUT.
|
99
|
+
|
90
100
|
## Contributing
|
91
101
|
|
92
102
|
1. Fork it
|
data/lib/sauce_whisk.rb
CHANGED
data/lib/sauce_whisk/jobs.rb
CHANGED
data/lib/sauce_whisk/version.rb
CHANGED
@@ -24,4 +24,20 @@ describe SauceWhisk do
|
|
24
24
|
SauceWhisk.pass_job job_id
|
25
25
|
end
|
26
26
|
end
|
27
|
+
|
28
|
+
describe "##logger" do
|
29
|
+
it "accepts a logger object" do
|
30
|
+
dummy_logger = Object.new do
|
31
|
+
def puts(input)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
SauceWhisk.logger = dummy_logger
|
35
|
+
SauceWhisk.logger.should be dummy_logger
|
36
|
+
end
|
37
|
+
|
38
|
+
it "defaults to STDIN" do
|
39
|
+
SauceWhisk.logger = nil
|
40
|
+
SauceWhisk.logger.should be STDOUT
|
41
|
+
end
|
42
|
+
end
|
27
43
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sauce_whisk
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Lacey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rest-client
|