hermitcraft 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.coveralls.yml +1 -0
- data/hermitcraft.gemspec +1 -0
- data/lib/hermitcraft/uploader.rb +9 -2
- data/lib/hermitcraft/version.rb +1 -1
- data/lib/hermitcraft/video.rb +5 -1
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 079490e179f982eb19a80bea76cd49c15d9ab8c2
|
4
|
+
data.tar.gz: 308028adacb2ff598da5e294d08b12e78668fd2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5aa2adf883c7585fa7a9c7396c499e6d19155f8a60524821ac4301c255b24b5f8f8a06c4306844c6e027f5ee2aa6388723bb3c2aa72933fd45ad4faf38c8dc96
|
7
|
+
data.tar.gz: 9240057f4da860db33eca4e7bf4144c488f03cf91d6538e050b11d4408e1e55809659bb0db18d3a51ff1528c5832620c6bbbbf2cd3b5a5c6e66a7cc1feda616d
|
data/.coveralls.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
service_name: travis-ci
|
data/hermitcraft.gemspec
CHANGED
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.require_paths = ['lib']
|
21
21
|
|
22
22
|
spec.add_development_dependency 'bundler', '~> 1.9'
|
23
|
+
spec.add_development_dependency 'coveralls', '~> 0.8.1'
|
23
24
|
spec.add_development_dependency 'minitest', '~> 5.7.0'
|
24
25
|
spec.add_development_dependency 'rake', '~> 10.0'
|
25
26
|
spec.add_development_dependency 'vcr', '~> 2.9.3'
|
data/lib/hermitcraft/uploader.rb
CHANGED
@@ -9,13 +9,20 @@ module Hermitcraft
|
|
9
9
|
# id always seems to be 0, ChannelID and UploadID are always null
|
10
10
|
def initialize(attributes)
|
11
11
|
@id = attributes['id']
|
12
|
-
@
|
12
|
+
@profile_picture = attributes['ProfilePicture']
|
13
13
|
@display_name = attributes['DisplayName']
|
14
14
|
@channel_name = attributes['ChannelName']
|
15
15
|
@google_plus_link = attributes['GooglePlusLink']
|
16
16
|
@twitter_name = attributes['TwitterName']
|
17
17
|
@twitch_name = attributes['TwitchName']
|
18
|
-
|
18
|
+
|
19
|
+
# hypno please
|
20
|
+
if attributes['WebsiteURL'] == ''
|
21
|
+
@website_url = nil
|
22
|
+
else
|
23
|
+
@website_url = attributes['WebsiteURL']
|
24
|
+
end
|
25
|
+
|
19
26
|
@active = attributes['Active']
|
20
27
|
@streaming = attributes['Streaming']
|
21
28
|
@channel_id = attributes['ChannelID']
|
data/lib/hermitcraft/version.rb
CHANGED
data/lib/hermitcraft/video.rb
CHANGED
@@ -9,7 +9,11 @@ module Hermitcraft
|
|
9
9
|
def initialize(attributes)
|
10
10
|
@id = attributes['id']
|
11
11
|
@uploaded_at = Time.parse(attributes['uploaded'])
|
12
|
-
|
12
|
+
|
13
|
+
# Sometimes, videos can show up with no uploader. I think this happens
|
14
|
+
# when a Hermit has left Hermitcraft.
|
15
|
+
@uploader = Uploader.new(attributes['uploader']) unless attributes['uploader'].nil?
|
16
|
+
|
13
17
|
@title = attributes['title']
|
14
18
|
@duration = attributes['duration']
|
15
19
|
@like_count = attributes['likeCount'].to_i # hypno wat
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hermitcraft
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Justin Kim
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.9'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: coveralls
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.8.1
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.8.1
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: minitest
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -87,6 +101,7 @@ executables: []
|
|
87
101
|
extensions: []
|
88
102
|
extra_rdoc_files: []
|
89
103
|
files:
|
104
|
+
- ".coveralls.yml"
|
90
105
|
- ".gitignore"
|
91
106
|
- ".travis.yml"
|
92
107
|
- Gemfile
|