funky 0.2.31 → 0.2.32

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
- SHA1:
3
- metadata.gz: 373e82d2fac5a97e061528f2eba025d91ba52471
4
- data.tar.gz: 96ba0e310787da082ff15b1693244741e94cc7a9
2
+ SHA256:
3
+ metadata.gz: 550ecccd333580ddef30e3099faafea449a099ccb958011b7bcd7dd0f6ca60aa
4
+ data.tar.gz: 9a21b4250e1c446b45d47fe1f3d996729df4a23ecf5f546c9399a2186529565b
5
5
  SHA512:
6
- metadata.gz: ef2fa550ac6d8745feae58ab983e45f092b464458cb42f48e37657a0361e1c9ab9fd65223a44f4bb17649637ae8e85547e230a383a6759e8d52517271f82d696
7
- data.tar.gz: 98fbb7ee4a9205be896d3d027b05587748e83c0970dabcc9455e351cbd5722575dcc2a673f04b178310642a50b34cad89dc2883d897c9837c0d56d5937182078
6
+ metadata.gz: '08b917c9f53ebd4681baefc92671eeea574353f635bbb5eaa4cbb489db2d036ce9bbcdb863d6c502b0893409bcbc1f028413750210034d1a670073439c113ddb'
7
+ data.tar.gz: b011abb7dab8e949234f5dd4f2572023b424af166fcb76bec69111d8d9b39b3fd43ba93be700cf58cf5f646d7198ee2648c0b846e065de5f73bf03a23ebba00e
data/.gitignore CHANGED
@@ -9,3 +9,4 @@
9
9
  /tmp/
10
10
 
11
11
  *.gem
12
+ .env
@@ -3,9 +3,3 @@ rvm:
3
3
  - 2.3.1
4
4
  before_install: gem install bundler -v 1.12.3
5
5
  script: bundle exec rspec spec
6
- # Note: environment variables are NOT accessible for PRs created from forks.
7
- # Therefore PRs from forks will fail until the following issue is closed:
8
- # https://github.com/travis-ci/travis-ci/issues/1946
9
- env:
10
- global:
11
- secure: KJhOU1PDt3t0x7m9TouRNkLOvmFBLnttODjp7yyJxiG0D2qAJQ6Calhc7X9a7Pi4e0YFsR3zUY905G11q/9lMafeu2k2EeSp6ZJCT3dmprsj08REwP6Uox1xO9Hy0gFWMHjm0apbNZzanJsW7obbjWiKdU73B8XjpBTFnpeshFPIJKiTNKBkLGdkZkQlYqI2ZMXjIPDHahPjY8u4lPfchbR6+DtxZAX05PRa5y/NUknxOndMkV60fHLO4bWEm3Cp1S0ggSKysDm/Z2r3mARy/1i1DmUkX+MAFaxKk88n++Fzw0rnb0vdIE9yyo6LtaFRHzEHnuNb7tLQf0F6qhx0jSEqC9oEm600dMkY3TZeJqB2v/bScpe5uThiMDCNABJcmKx4vi/sJp/PHxRDuG+prdhWpMItVrv/mhpwyGIUyNN5/rzAqMLyhpwz3lTV4ePaNw85++/tLB7UTqWXELlzdNE105OZE0ZRr4M36bT6HoTg+mb0DguULiYFIkz5SWK+v2eKKwgw6zI4/xSvRodH8tPhJH1QvAuseVYm07HGHshCq9uq9FLpc2ThqA/goNAknPp4Xe9097e+BrMqPYoG/S4vsigJ6ByyqZRRAIvxULEPX+SYaDtoziZ+zQM5PQgteEJG7UwKBoI0YE9GKAvQTybnG2T004Tx92SP8Ejcvnc=
@@ -6,6 +6,11 @@ For more information about changelogs, check
6
6
  [Keep a Changelog](http://keepachangelog.com) and
7
7
  [Vandamme](http://tech-angels.github.io/vandamme).
8
8
 
9
+ ## 0.2.32 - 2018/06/07
10
+
11
+ * [FEATURE] Raise Funky::CountersNotFound error when a video does not have
12
+ its view count.
13
+
9
14
  ## 0.2.31 - 2017/10/25
10
15
 
11
16
  * [BUGFIX] Revert the change of version 0.2.29 and do not use request to get app
@@ -23,6 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.add_development_dependency "rake", "~> 10.0"
24
24
  spec.add_development_dependency "rspec", "~> 3.0"
25
25
  spec.add_development_dependency "simplecov", "0.11.2"
26
- spec.add_development_dependency "yard", "0.8.7.6"
26
+ spec.add_development_dependency "yard", "0.9.12"
27
27
  spec.add_development_dependency 'coveralls', "0.8.13"
28
28
  end
@@ -1,4 +1,5 @@
1
1
  module Funky
2
2
  class ContentNotFound < StandardError; end
3
3
  class ConnectionError < StandardError; end
4
+ class CountersNotFound < StandardError; end
4
5
  end
@@ -1,3 +1,3 @@
1
1
  module Funky
2
- VERSION = "0.2.31"
2
+ VERSION = "0.2.32"
3
3
  end
@@ -115,6 +115,7 @@ module Funky
115
115
  # and encapsulated into a Funky::Video object.
116
116
  def self.find(video_id)
117
117
  counters = @@html_parser.parse html: @@html_page.get(video_id: video_id), video_id: video_id
118
+ raise CountersNotFound, "View count not found with video ID #{video_id}" unless counters[:view_count]
118
119
  new counters.merge(id: video_id)
119
120
  end
120
121
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: funky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.31
4
+ version: 0.2.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Philip Nguyen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-25 00:00:00.000000000 Z
11
+ date: 2018-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - '='
74
74
  - !ruby/object:Gem::Version
75
- version: 0.8.7.6
75
+ version: 0.9.12
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - '='
81
81
  - !ruby/object:Gem::Version
82
- version: 0.8.7.6
82
+ version: 0.9.12
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: coveralls
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -149,9 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  version: '0'
150
150
  requirements: []
151
151
  rubyforge_project:
152
- rubygems_version: 2.6.13
152
+ rubygems_version: 2.7.6
153
153
  signing_key:
154
154
  specification_version: 4
155
155
  summary: Funky is a Ruby library to fetch video data.
156
156
  test_files: []
157
- has_rdoc: