twitchus 0.0.2 → 0.0.3
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.
- data/lib/twitchus/checker.rb +4 -1
- data/lib/twitchus/version.rb +1 -1
- metadata +3 -8
data/lib/twitchus/checker.rb
CHANGED
@@ -17,7 +17,10 @@ module Twitchus
|
|
17
17
|
raise ArgumentError, "Channel is required." unless channel
|
18
18
|
response = JSON.parse(RestClient.get(base_url + channel))
|
19
19
|
|
20
|
-
|
20
|
+
response.first
|
21
|
+
rescue RestClient::BadRequest => e
|
22
|
+
$stderr.puts "RestClient::BadRequest for #{channel}"
|
23
|
+
nil
|
21
24
|
end
|
22
25
|
|
23
26
|
def online?(channel)
|
data/lib/twitchus/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitchus
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-10-03 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -201,18 +201,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- - ! '>='
|
202
202
|
- !ruby/object:Gem::Version
|
203
203
|
version: '0'
|
204
|
-
segments:
|
205
|
-
- 0
|
206
|
-
hash: -4568344585535927602
|
207
204
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
208
205
|
none: false
|
209
206
|
requirements:
|
210
207
|
- - ! '>='
|
211
208
|
- !ruby/object:Gem::Version
|
212
209
|
version: '0'
|
213
|
-
segments:
|
214
|
-
- 0
|
215
|
-
hash: -4568344585535927602
|
216
210
|
requirements: []
|
217
211
|
rubyforge_project:
|
218
212
|
rubygems_version: 1.8.24
|
@@ -229,3 +223,4 @@ test_files:
|
|
229
223
|
- spec/twitchus/config_spec.rb
|
230
224
|
- spec/twitchus/storage_spec.rb
|
231
225
|
- spec/twitchus_spec.rb
|
226
|
+
has_rdoc:
|