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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 921019ba2a53bc41ad9ff57d8a1cf0523bbecf69
4
- data.tar.gz: c4dda3e1b6dce631f530de45d4eed209663a0409
3
+ metadata.gz: 079490e179f982eb19a80bea76cd49c15d9ab8c2
4
+ data.tar.gz: 308028adacb2ff598da5e294d08b12e78668fd2f
5
5
  SHA512:
6
- metadata.gz: 76c24845d3814da3ea5f81023e6086aa29178a6cdc2a3fcb2f4a7b9e05c534266ab5afe94127ae49521eaca30af1cee00dba7e83e225d0213986a96e1409e36a
7
- data.tar.gz: f53bf3e8786c0ebecb665a8edc16dfe0f46510e438e7d8d9d5c5a1d4a91a2c48402fe4ebace51e8a3129007fbd6d9e3af3dcabe7a4d17cd80e0958ec4406cb49
6
+ metadata.gz: 5aa2adf883c7585fa7a9c7396c499e6d19155f8a60524821ac4301c255b24b5f8f8a06c4306844c6e027f5ee2aa6388723bb3c2aa72933fd45ad4faf38c8dc96
7
+ data.tar.gz: 9240057f4da860db33eca4e7bf4144c488f03cf91d6538e050b11d4408e1e55809659bb0db18d3a51ff1528c5832620c6bbbbf2cd3b5a5c6e66a7cc1feda616d
@@ -0,0 +1 @@
1
+ service_name: travis-ci
@@ -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'
@@ -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
- @profile_pictures = attributes['ProfilePicture']
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
- @website_url = attributes['WebsiteURL']
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']
@@ -1,3 +1,3 @@
1
1
  module Hermitcraft
2
- VERSION = "0.1.0"
2
+ VERSION = '0.1.1'
3
3
  end
@@ -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
- @uploader = Uploader.new(attributes['uploader'])
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.0
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-16 00:00:00.000000000 Z
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