sportsflix 0.1.0.alpha.1 → 0.1.0.alpha.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +13 -2
- data/README.md +14 -2
- data/lib/sportsflix/cli.rb +2 -0
- data/lib/sportsflix/players/vlc.rb +3 -1
- data/lib/sportsflix/version.rb +1 -1
- data/sportsflix.gemspec +12 -9
- data/sportsflix.iml +6 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7a369f4b9efff8ef54954f6ca8d5ced447182338
|
4
|
+
data.tar.gz: 1c12ab840d982dcaa07ec516faf42b940eb844a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a633547f0a9ccd8cc2c988a5d64641b2268cc28e2415173c2676002c2cc9fb5cf57e4f05cdd560605d3e71f8d754076dc68549f7302fa8e0d64a989c1213fe6
|
7
|
+
data.tar.gz: ecee06f6f634184f215774a16181439c85134a08c59eb59cd9686cdf756dc6ceea6ffbb7c888d70f8d7ee91052f47c78e11aa5dab3867a09636ea9305d883edb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
sportsflix (0.1.0.alpha.
|
4
|
+
sportsflix (0.1.0.alpha.2)
|
5
5
|
oga (~> 2.8)
|
6
6
|
thor (~> 0.19.4)
|
7
7
|
|
@@ -10,8 +10,12 @@ GEM
|
|
10
10
|
specs:
|
11
11
|
ansi (1.5.0)
|
12
12
|
ast (2.3.0)
|
13
|
+
codacy-coverage (1.1.6)
|
14
|
+
simplecov
|
13
15
|
diff-lcs (1.3)
|
14
|
-
|
16
|
+
docile (1.1.5)
|
17
|
+
json (2.0.3)
|
18
|
+
oga (2.9)
|
15
19
|
ast
|
16
20
|
ruby-ll (~> 2.1)
|
17
21
|
parser (2.3.3.1)
|
@@ -44,6 +48,11 @@ GEM
|
|
44
48
|
ansi
|
45
49
|
ast
|
46
50
|
ruby-progressbar (1.8.1)
|
51
|
+
simplecov (0.13.0)
|
52
|
+
docile (~> 1.1.0)
|
53
|
+
json (>= 1.8, < 3)
|
54
|
+
simplecov-html (~> 0.10.0)
|
55
|
+
simplecov-html (0.10.0)
|
47
56
|
thor (0.19.4)
|
48
57
|
unicode-display_width (1.1.3)
|
49
58
|
|
@@ -52,10 +61,12 @@ PLATFORMS
|
|
52
61
|
|
53
62
|
DEPENDENCIES
|
54
63
|
bundler (~> 1.14)
|
64
|
+
codacy-coverage
|
55
65
|
rake (~> 10.0)
|
56
66
|
rspec (~> 3.0)
|
57
67
|
rubocop (~> 0.47.1)
|
58
68
|
rubocop-rspec (~> 1.10)
|
69
|
+
simplecov
|
59
70
|
sportsflix!
|
60
71
|
|
61
72
|
BUNDLED WITH
|
data/README.md
CHANGED
@@ -1,13 +1,25 @@
|
|
1
1
|
# sportsflix
|
2
2
|
|
3
|
+
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/076d315d3b5443918eb89841f265019d)](https://www.codacy.com/app/rtfpessoa/sportsflix?utm_source=github.com&utm_medium=referral&utm_content=rtfpessoa/sportsflix&utm_campaign=Badge_Grade)
|
4
|
+
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/076d315d3b5443918eb89841f265019d)](https://www.codacy.com/app/rtfpessoa/sportsflix?utm_source=github.com&utm_medium=referral&utm_content=rtfpessoa/sportsflix&utm_campaign=Badge_Coverage)
|
5
|
+
[![CircleCI](https://circleci.com/gh/rtfpessoa/sportsflix.svg?style=svg)](https://circleci.com/gh/rtfpessoa/sportsflix)
|
6
|
+
|
3
7
|
Watch the best sports stream in HD from the command line
|
4
8
|
|
9
|
+
## Prerequisite
|
10
|
+
|
11
|
+
* Docker
|
12
|
+
* Ruby 1.9.3 or newer
|
13
|
+
* VLC player
|
14
|
+
|
5
15
|
## Installation
|
6
16
|
|
7
17
|
```sh
|
8
|
-
gem install sportsflix
|
18
|
+
gem install sportsflix --pre
|
9
19
|
```
|
10
20
|
|
21
|
+
> Notice the `--pre` in the end
|
22
|
+
|
11
23
|
## Usage
|
12
24
|
|
13
25
|
### Examples
|
@@ -44,7 +56,7 @@ sflix watch --video-player-path="/Applications/VLC.app/Contents/MacOS/VLC"
|
|
44
56
|
|
45
57
|
## Development
|
46
58
|
|
47
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
59
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
48
60
|
|
49
61
|
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
50
62
|
|
data/lib/sportsflix/cli.rb
CHANGED
@@ -11,6 +11,7 @@ module Sportsflix
|
|
11
11
|
DEFAULT_VIDEO_FORMAT = 'mp4'
|
12
12
|
DEFAULT_VIDEO_PLAYER = 'vlc'
|
13
13
|
DEFAULT_VIDEO_PLAYER_PATH = DEFAULT_VIDEO_PLAYER
|
14
|
+
DEFAULT_PROXY_DELAY = 10
|
14
15
|
|
15
16
|
class_option('verbose', { :aliases => :vvv, :type => :boolean, :default => false })
|
16
17
|
class_option('offset', { :aliases => :o, :type => :numeric, :default => DEFAULT_OFFSET })
|
@@ -20,6 +21,7 @@ module Sportsflix
|
|
20
21
|
class_option('video-player-path', { :aliases => :pp, :type => :string, :default => DEFAULT_VIDEO_PLAYER_PATH })
|
21
22
|
class_option('no-interactive', { :aliases => :ni, :type => :boolean, :default => false })
|
22
23
|
class_option('server-only', { :aliases => :s, :type => :boolean, :default => false })
|
24
|
+
class_option('proxy-delay', { :aliases => :pd, :type => :number, :default => DEFAULT_PROXY_DELAY })
|
23
25
|
|
24
26
|
desc('watch', 'watch stream in the chosen player')
|
25
27
|
def watch
|
@@ -18,6 +18,7 @@ module Sportsflix
|
|
18
18
|
@verbose = options[:verbose]
|
19
19
|
@server_only = options['server-only']
|
20
20
|
@video_player_path = options['video-player-path']
|
21
|
+
@proxy_delay = options['proxy-delay']
|
21
22
|
|
22
23
|
@executor = Sportsflix::Utils::Executor.new(options)
|
23
24
|
@stream_proxies = {
|
@@ -33,7 +34,8 @@ module Sportsflix
|
|
33
34
|
proxy.start
|
34
35
|
|
35
36
|
# Waiting for proxy to start
|
36
|
-
|
37
|
+
puts "Waiting for proxy to start (#{@proxy_delay})..."
|
38
|
+
sleep(@proxy_delay)
|
37
39
|
|
38
40
|
unless @server_only
|
39
41
|
video_player = find_video_player
|
data/lib/sportsflix/version.rb
CHANGED
data/sportsflix.gemspec
CHANGED
@@ -21,10 +21,11 @@ Gem::Specification.new do |spec|
|
|
21
21
|
if spec.respond_to?(:metadata)
|
22
22
|
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
23
23
|
else
|
24
|
-
raise 'RubyGems 2.0 or newer is required to protect against '
|
25
|
-
'public gem pushes.'
|
24
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
26
25
|
end
|
27
26
|
|
27
|
+
spec.required_ruby_version = '>= 1.9.3'
|
28
|
+
|
28
29
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
30
|
f.match(%r{^(test|spec|features)/})
|
30
31
|
end
|
@@ -33,15 +34,17 @@ Gem::Specification.new do |spec|
|
|
33
34
|
spec.require_paths = ['lib']
|
34
35
|
|
35
36
|
# Development
|
36
|
-
spec.add_development_dependency 'bundler', '~> 1.14'
|
37
|
-
spec.add_development_dependency 'rake', '~> 10.0'
|
38
|
-
spec.add_development_dependency 'rspec', '~> 3.0'
|
37
|
+
spec.add_development_dependency 'bundler', ['~> 1.14']
|
38
|
+
spec.add_development_dependency 'rake', ['~> 10.0']
|
39
|
+
spec.add_development_dependency 'rspec', ['~> 3.0']
|
40
|
+
spec.add_development_dependency 'simplecov'
|
41
|
+
spec.add_development_dependency 'codacy-coverage'
|
39
42
|
|
40
43
|
# Linters
|
41
|
-
spec.add_development_dependency 'rubocop', '~> 0.47.1'
|
42
|
-
spec.add_development_dependency 'rubocop-rspec', '~> 1.10'
|
44
|
+
spec.add_development_dependency 'rubocop', ['~> 0.47.1']
|
45
|
+
spec.add_development_dependency 'rubocop-rspec', ['~> 1.10']
|
43
46
|
|
44
47
|
# Runtime
|
45
|
-
spec.add_runtime_dependency 'thor', '~> 0.19.4'
|
46
|
-
spec.add_runtime_dependency 'oga', '~> 2.8'
|
48
|
+
spec.add_runtime_dependency 'thor', ['~> 0.19.4']
|
49
|
+
spec.add_runtime_dependency 'oga', ['~> 2.8']
|
47
50
|
end
|
data/sportsflix.iml
CHANGED
@@ -8,8 +8,11 @@
|
|
8
8
|
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
9
9
|
<orderEntry type="library" scope="PROVIDED" name="ast (v2.3.0, rbenv: 2.3.1) [gem]" level="application" />
|
10
10
|
<orderEntry type="library" scope="PROVIDED" name="bundler (v1.14.3, rbenv: 2.3.1) [gem]" level="application" />
|
11
|
+
<orderEntry type="library" scope="PROVIDED" name="codacy-coverage (v1.1.6, rbenv: 2.3.1) [gem]" level="application" />
|
11
12
|
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.3.1) [gem]" level="application" />
|
12
|
-
<orderEntry type="library" scope="PROVIDED" name="
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="docile (v1.1.5, rbenv: 2.3.1) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="json (v2.0.3, rbenv: 2.3.1) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="oga (v2.9, rbenv: 2.3.1) [gem]" level="application" />
|
13
16
|
<orderEntry type="library" scope="PROVIDED" name="parser (v2.3.3.1, rbenv: 2.3.1) [gem]" level="application" />
|
14
17
|
<orderEntry type="library" scope="PROVIDED" name="powerpack (v0.1.1, rbenv: 2.3.1) [gem]" level="application" />
|
15
18
|
<orderEntry type="library" scope="PROVIDED" name="rainbow (v2.2.1, rbenv: 2.3.1) [gem]" level="application" />
|
@@ -23,6 +26,8 @@
|
|
23
26
|
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v1.10.0, rbenv: 2.3.1) [gem]" level="application" />
|
24
27
|
<orderEntry type="library" scope="PROVIDED" name="ruby-ll (v2.1.2, rbenv: 2.3.1) [gem]" level="application" />
|
25
28
|
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.8.1, rbenv: 2.3.1) [gem]" level="application" />
|
29
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.13.0, rbenv: 2.3.1) [gem]" level="application" />
|
30
|
+
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.10.0, rbenv: 2.3.1) [gem]" level="application" />
|
26
31
|
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, rbenv: 2.3.1) [gem]" level="application" />
|
27
32
|
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.1.3, rbenv: 2.3.1) [gem]" level="application" />
|
28
33
|
</component>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sportsflix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.alpha.
|
4
|
+
version: 0.1.0.alpha.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rodrigo Fernandes
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -52,6 +52,34 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: simplecov
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: codacy-coverage
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: rubocop
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
163
191
|
requirements:
|
164
192
|
- - ">="
|
165
193
|
- !ruby/object:Gem::Version
|
166
|
-
version:
|
194
|
+
version: 1.9.3
|
167
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
196
|
requirements:
|
169
197
|
- - ">"
|
@@ -171,7 +199,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
199
|
version: 1.3.1
|
172
200
|
requirements: []
|
173
201
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
202
|
+
rubygems_version: 2.5.1
|
175
203
|
signing_key:
|
176
204
|
specification_version: 4
|
177
205
|
summary: Watch the best sports stream in HD from the command line
|