sportsflix 0.1.0.alpha.1
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.
- checksums.yaml +7 -0
- data/.gitignore +111 -0
- data/.idea/.rakeTasks +7 -0
- data/.idea/codeStyleSettings.xml +9 -0
- data/.idea/compiler.xml +15 -0
- data/.idea/encodings.xml +6 -0
- data/.idea/jsLibraryMappings.xml +7 -0
- data/.idea/misc.xml +10 -0
- data/.idea/modules.xml +8 -0
- data/.idea/play2_settings.xml +6 -0
- data/.idea/sbt.xml +7 -0
- data/.idea/vcs.xml +6 -0
- data/.rspec +3 -0
- data/.rubocop.yml +1151 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +62 -0
- data/LICENSE.md +693 -0
- data/README.md +57 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bin/sflix +5 -0
- data/circle.yml +11 -0
- data/lib/sportsflix.rb +124 -0
- data/lib/sportsflix/cli.rb +30 -0
- data/lib/sportsflix/players/proxies/acestream.rb +59 -0
- data/lib/sportsflix/players/proxies/default.rb +26 -0
- data/lib/sportsflix/players/vlc.rb +84 -0
- data/lib/sportsflix/providers/arenavision.rb +88 -0
- data/lib/sportsflix/utils/exec.rb +20 -0
- data/lib/sportsflix/version.rb +3 -0
- data/sportsflix.gemspec +47 -0
- data/sportsflix.iml +29 -0
- metadata +178 -0
@@ -0,0 +1,20 @@
|
|
1
|
+
module Sportsflix
|
2
|
+
module Utils
|
3
|
+
class Executor
|
4
|
+
|
5
|
+
def initialize(options)
|
6
|
+
@verbose = options[:verbose]
|
7
|
+
end
|
8
|
+
|
9
|
+
def run(cmd)
|
10
|
+
puts "[Running] #{cmd}" if @verbose
|
11
|
+
output = `#{cmd}`
|
12
|
+
{
|
13
|
+
:output => output,
|
14
|
+
:success? => $?.success?,
|
15
|
+
}
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/sportsflix.gemspec
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'sportsflix/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'sportsflix'
|
8
|
+
spec.version = Sportsflix::VERSION
|
9
|
+
spec.authors = ['Rodrigo Fernandes']
|
10
|
+
spec.email = ['rodrigo.fernandes@tecnico.ulisboa.pt']
|
11
|
+
spec.summary = %q{Watch the best sports stream in HD from the command line}
|
12
|
+
spec.description = %q{
|
13
|
+
Watch the best sports stream in HD from the command line.
|
14
|
+
Using arenavision streams.
|
15
|
+
}
|
16
|
+
spec.homepage = 'https://github.com/rtfpessoa/sportsflix'
|
17
|
+
spec.license = 'GPL-3.0'
|
18
|
+
|
19
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
20
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
21
|
+
if spec.respond_to?(:metadata)
|
22
|
+
# spec.metadata['allowed_push_host'] = "TODO: Set to 'http://mygemserver.com'"
|
23
|
+
else
|
24
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
25
|
+
'public gem pushes.'
|
26
|
+
end
|
27
|
+
|
28
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
29
|
+
f.match(%r{^(test|spec|features)/})
|
30
|
+
end
|
31
|
+
spec.bindir = 'bin'
|
32
|
+
spec.executables = 'sflix'
|
33
|
+
spec.require_paths = ['lib']
|
34
|
+
|
35
|
+
# 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'
|
39
|
+
|
40
|
+
# Linters
|
41
|
+
spec.add_development_dependency 'rubocop', '~> 0.47.1'
|
42
|
+
spec.add_development_dependency 'rubocop-rspec', '~> 1.10'
|
43
|
+
|
44
|
+
# Runtime
|
45
|
+
spec.add_runtime_dependency 'thor', '~> 0.19.4'
|
46
|
+
spec.add_runtime_dependency 'oga', '~> 2.8'
|
47
|
+
end
|
data/sportsflix.iml
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<module type="RUBY_MODULE" version="4">
|
3
|
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4
|
+
<exclude-output />
|
5
|
+
<content url="file://$MODULE_DIR$" />
|
6
|
+
<orderEntry type="jdk" jdkName="rbenv: 2.3.1" jdkType="RUBY_SDK" />
|
7
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
8
|
+
<orderEntry type="library" scope="PROVIDED" name="ansi (v1.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
9
|
+
<orderEntry type="library" scope="PROVIDED" name="ast (v2.3.0, rbenv: 2.3.1) [gem]" level="application" />
|
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="diff-lcs (v1.3, rbenv: 2.3.1) [gem]" level="application" />
|
12
|
+
<orderEntry type="library" scope="PROVIDED" name="oga (v2.8, rbenv: 2.3.1) [gem]" level="application" />
|
13
|
+
<orderEntry type="library" scope="PROVIDED" name="parser (v2.3.3.1, rbenv: 2.3.1) [gem]" level="application" />
|
14
|
+
<orderEntry type="library" scope="PROVIDED" name="powerpack (v0.1.1, rbenv: 2.3.1) [gem]" level="application" />
|
15
|
+
<orderEntry type="library" scope="PROVIDED" name="rainbow (v2.2.1, rbenv: 2.3.1) [gem]" level="application" />
|
16
|
+
<orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
17
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
18
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.5.4, rbenv: 2.3.1) [gem]" level="application" />
|
19
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
20
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
21
|
+
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
|
22
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop (v0.47.1, rbenv: 2.3.1) [gem]" level="application" />
|
23
|
+
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v1.10.0, rbenv: 2.3.1) [gem]" level="application" />
|
24
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-ll (v2.1.2, rbenv: 2.3.1) [gem]" level="application" />
|
25
|
+
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.8.1, rbenv: 2.3.1) [gem]" level="application" />
|
26
|
+
<orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, rbenv: 2.3.1) [gem]" level="application" />
|
27
|
+
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.1.3, rbenv: 2.3.1) [gem]" level="application" />
|
28
|
+
</component>
|
29
|
+
</module>
|
metadata
ADDED
@@ -0,0 +1,178 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: sportsflix
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.alpha.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Rodrigo Fernandes
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-02-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 0.47.1
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.47.1
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rspec
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '1.10'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '1.10'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: thor
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 0.19.4
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.19.4
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: oga
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '2.8'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '2.8'
|
111
|
+
description: "\n Watch the best sports stream in HD from the command line.\n Using
|
112
|
+
arenavision streams.\n "
|
113
|
+
email:
|
114
|
+
- rodrigo.fernandes@tecnico.ulisboa.pt
|
115
|
+
executables:
|
116
|
+
- sflix
|
117
|
+
extensions: []
|
118
|
+
extra_rdoc_files: []
|
119
|
+
files:
|
120
|
+
- ".gitignore"
|
121
|
+
- ".idea/.rakeTasks"
|
122
|
+
- ".idea/codeStyleSettings.xml"
|
123
|
+
- ".idea/compiler.xml"
|
124
|
+
- ".idea/encodings.xml"
|
125
|
+
- ".idea/jsLibraryMappings.xml"
|
126
|
+
- ".idea/misc.xml"
|
127
|
+
- ".idea/modules.xml"
|
128
|
+
- ".idea/play2_settings.xml"
|
129
|
+
- ".idea/sbt.xml"
|
130
|
+
- ".idea/vcs.xml"
|
131
|
+
- ".rspec"
|
132
|
+
- ".rubocop.yml"
|
133
|
+
- ".ruby-version"
|
134
|
+
- CODE_OF_CONDUCT.md
|
135
|
+
- Gemfile
|
136
|
+
- Gemfile.lock
|
137
|
+
- LICENSE.md
|
138
|
+
- README.md
|
139
|
+
- Rakefile
|
140
|
+
- bin/console
|
141
|
+
- bin/setup
|
142
|
+
- bin/sflix
|
143
|
+
- circle.yml
|
144
|
+
- lib/sportsflix.rb
|
145
|
+
- lib/sportsflix/cli.rb
|
146
|
+
- lib/sportsflix/players/proxies/acestream.rb
|
147
|
+
- lib/sportsflix/players/proxies/default.rb
|
148
|
+
- lib/sportsflix/players/vlc.rb
|
149
|
+
- lib/sportsflix/providers/arenavision.rb
|
150
|
+
- lib/sportsflix/utils/exec.rb
|
151
|
+
- lib/sportsflix/version.rb
|
152
|
+
- sportsflix.gemspec
|
153
|
+
- sportsflix.iml
|
154
|
+
homepage: https://github.com/rtfpessoa/sportsflix
|
155
|
+
licenses:
|
156
|
+
- GPL-3.0
|
157
|
+
metadata: {}
|
158
|
+
post_install_message:
|
159
|
+
rdoc_options: []
|
160
|
+
require_paths:
|
161
|
+
- lib
|
162
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0'
|
167
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
168
|
+
requirements:
|
169
|
+
- - ">"
|
170
|
+
- !ruby/object:Gem::Version
|
171
|
+
version: 1.3.1
|
172
|
+
requirements: []
|
173
|
+
rubyforge_project:
|
174
|
+
rubygems_version: 2.6.8
|
175
|
+
signing_key:
|
176
|
+
specification_version: 4
|
177
|
+
summary: Watch the best sports stream in HD from the command line
|
178
|
+
test_files: []
|