sportsflix 1.0.0.alpha.2 → 1.0.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3b54699654a6cd3e7dbc4c051ef5f995f96cfaa4
4
- data.tar.gz: 064edc25988d0e946a51513de3ae9757c9084f6d
3
+ metadata.gz: a07fea841fba3e33d6b6107da4bf6a3c6e1cc62c
4
+ data.tar.gz: c70331e47828b00fa300f22e23111759ae30cc26
5
5
  SHA512:
6
- metadata.gz: 40f137b0cd6a95806544770d5fe4d6569d638fb7b0453c1b6506352577f67c62d7e4a47888018534be1b6f2c76b42177f0759eded783ae7e2fe094b8efb4a945
7
- data.tar.gz: 3c4f38db0d4e552bb427395a078f89674e7442a2a8d0c46b09844c9354ce818165f54164f691440af0be1cc5ada6f95589495c04abd4e790a3f6c42ecd50d175
6
+ metadata.gz: a266abb9098421fac6b0a82e92fcf302fb8dca0a4ab55a9bf5977ffc9700c39d2950a9ae63b87016b83c01f52d8fa5752a55f9ca575eb97f6ccd21d22293c8bd
7
+ data.tar.gz: ae6a9e451e144e970ca5dc4c56996ff1ceeb36c3eb02d917df453b7cb3af670e470fdddce4827a21229acfc9a3832ce96d7ddfe39dff1f07e5561756ea0746f6
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportsflix (1.0.0.alpha.2)
4
+ sportsflix (1.0.0)
5
5
  oga (~> 2.8)
6
6
  thor (~> 0.19.4)
7
7
 
@@ -12,14 +12,15 @@ module Sportsflix
12
12
  @verbose = options[:verbose]
13
13
  @club_name = options[:club]
14
14
  @server_only = options['server-only']
15
-
16
- @schedule = get_page_contents("#{ARENAVISION_BASE_URL[ARENAVISION_DEFAULT_URL_IDX]}/schedule")
17
15
  end
18
16
 
19
17
  def list_streams
20
- streams = @schedule.css('table tr')
18
+ home = get_page_contents("#{ARENAVISION_BASE_URL[ARENAVISION_DEFAULT_URL_IDX]}/")
19
+ schedule_path = home.css('.menu li a').select {|item| item.text.include?('EVENTS GUIDE')}.first.get('href')
20
+ schedule = get_page_contents("#{ARENAVISION_BASE_URL[ARENAVISION_DEFAULT_URL_IDX]}#{schedule_path}")
21
+ streams = schedule.css('table tr')
21
22
  # Remove first element
22
- streams = streams.drop(1)
23
+ streams = streams.drop(1)
23
24
  # Remove last element
24
25
  streams.pop(2)
25
26
 
@@ -54,7 +55,7 @@ module Sportsflix
54
55
  url = URI.parse(raw_url)
55
56
  enum = Enumerator.new do |yielder|
56
57
  Net::HTTP.start(url.host, url.port) do |http|
57
- http.request_get(url.path, { 'Cookie' => 'beget=begetok;' }) do |response|
58
+ http.request_get(url.path, {'Cookie' => 'beget=begetok;'}) do |response|
58
59
  response.read_body do |chunk|
59
60
  yielder << chunk
60
61
  end
@@ -1,3 +1,3 @@
1
1
  module Sportsflix
2
- VERSION = '1.0.0.alpha.2'
2
+ VERSION = '1.0.0'
3
3
  end
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: 1.0.0.alpha.2
4
+ version: 1.0.0
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-03-04 00:00:00.000000000 Z
11
+ date: 2017-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -146,16 +146,6 @@ extensions: []
146
146
  extra_rdoc_files: []
147
147
  files:
148
148
  - ".gitignore"
149
- - ".idea/.rakeTasks"
150
- - ".idea/codeStyleSettings.xml"
151
- - ".idea/compiler.xml"
152
- - ".idea/encodings.xml"
153
- - ".idea/jsLibraryMappings.xml"
154
- - ".idea/misc.xml"
155
- - ".idea/modules.xml"
156
- - ".idea/play2_settings.xml"
157
- - ".idea/sbt.xml"
158
- - ".idea/vcs.xml"
159
149
  - ".rspec"
160
150
  - ".rubocop.yml"
161
151
  - ".ruby-version"
@@ -178,7 +168,6 @@ files:
178
168
  - lib/sportsflix/utils/exec.rb
179
169
  - lib/sportsflix/version.rb
180
170
  - sportsflix.gemspec
181
- - sportsflix.iml
182
171
  homepage: https://github.com/rtfpessoa/sportsflix
183
172
  licenses:
184
173
  - GPL-3.0
@@ -194,9 +183,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
183
  version: 1.9.3
195
184
  required_rubygems_version: !ruby/object:Gem::Requirement
196
185
  requirements:
197
- - - ">"
186
+ - - ">="
198
187
  - !ruby/object:Gem::Version
199
- version: 1.3.1
188
+ version: '0'
200
189
  requirements: []
201
190
  rubyforge_project:
202
191
  rubygems_version: 2.5.1
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Settings><!--This file was automatically generated by Ruby plugin.
3
- You are allowed to:
4
- 1. Remove rake task
5
- 2. Add existing rake tasks
6
- To add existing rake tasks automatically delete this file and reload the project.
7
- --><RakeGroup description="" fullCmd="" taksId="rake"><RakeTask description="Build sportsflix-0.1.0.alpha.1.gem into the pkg directory" fullCmd="build" taksId="build" /><RakeTask description="Remove any temporary products" fullCmd="clean" taksId="clean" /><RakeTask description="Remove any generated files" fullCmd="clobber" taksId="clobber" /><RakeTask description="Build and install sportsflix-0.1.0.alpha.1.gem into system gems" fullCmd="install" taksId="install" /><RakeGroup description="" fullCmd="" taksId="install"><RakeTask description="Build and install sportsflix-0.1.0.alpha.1.gem into system gems without network access" fullCmd="install:local" taksId="local" /></RakeGroup><RakeTask description="Create tag v0.1.0.alpha.1 and build and push sportsflix-0.1.0.alpha.1.gem to Rubygems" fullCmd="release[remote]" taksId="release[remote]" /><RakeTask description="Run RSpec code examples" fullCmd="spec" taksId="spec" /><RakeTask description="" fullCmd="default" taksId="default" /><RakeTask description="" fullCmd="release" taksId="release" /><RakeGroup description="" fullCmd="" taksId="release"><RakeTask description="" fullCmd="release:guard_clean" taksId="guard_clean" /><RakeTask description="" fullCmd="release:rubygem_push" taksId="rubygem_push" /><RakeTask description="" fullCmd="release:source_control_push" taksId="source_control_push" /></RakeGroup></RakeGroup></Settings>
@@ -1,9 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectCodeStyleSettingsManager">
4
- <option name="PER_PROJECT_SETTINGS">
5
- <value />
6
- </option>
7
- <option name="PREFERRED_PROJECT_CODE_STYLE" value="rtfpessoa" />
8
- </component>
9
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="CompilerConfiguration">
4
- <wildcardResourcePatterns>
5
- <entry name="!?*.java" />
6
- <entry name="!?*.form" />
7
- <entry name="!?*.class" />
8
- <entry name="!?*.groovy" />
9
- <entry name="!?*.scala" />
10
- <entry name="!?*.flex" />
11
- <entry name="!?*.kt" />
12
- <entry name="!?*.clj" />
13
- </wildcardResourcePatterns>
14
- </component>
15
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Encoding">
4
- <file url="PROJECT" charset="UTF-8" />
5
- </component>
6
- </project>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="JavaScriptLibraryMappings">
4
- <includedPredefinedLibrary name="ECMAScript 6" />
5
- <includedPredefinedLibrary name="WebGL" />
6
- </component>
7
- </project>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="IdProvider" IDEtalkID="9BDA1BDDB891E9D1BF86B1B99796C413" />
4
- <component name="JavaScriptSettings">
5
- <option name="languageLevel" value="ES6" />
6
- </component>
7
- <component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" default="false" project-jdk-name="rbenv: 2.3.1" project-jdk-type="RUBY_SDK">
8
- <output url="file://$PROJECT_DIR$/out" />
9
- </component>
10
- </project>
@@ -1,8 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ProjectModuleManager">
4
- <modules>
5
- <module fileurl="file://$PROJECT_DIR$/sportsflix.iml" filepath="$PROJECT_DIR$/sportsflix.iml" />
6
- </modules>
7
- </component>
8
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="Play2ProjectSettings">
4
- <option name="USE_AUTO_FORMATTING_IN_ROUTES" value="true" />
5
- </component>
6
- </project>
@@ -1,7 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="ScalaSbtSettings">
4
- <option name="maximumHeapSize" value="1024" />
5
- <option name="vmParameters" value="" />
6
- </component>
7
- </project>
@@ -1,6 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project version="4">
3
- <component name="VcsDirectoryMappings">
4
- <mapping directory="" vcs="Git" />
5
- </component>
6
- </project>
@@ -1,34 +0,0 @@
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="codacy-coverage (v1.1.6, rbenv: 2.3.1) [gem]" level="application" />
12
- <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.3.1) [gem]" level="application" />
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" />
16
- <orderEntry type="library" scope="PROVIDED" name="parser (v2.3.3.1, rbenv: 2.3.1) [gem]" level="application" />
17
- <orderEntry type="library" scope="PROVIDED" name="powerpack (v0.1.1, rbenv: 2.3.1) [gem]" level="application" />
18
- <orderEntry type="library" scope="PROVIDED" name="rainbow (v2.2.1, rbenv: 2.3.1) [gem]" level="application" />
19
- <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.3.1) [gem]" level="application" />
20
- <orderEntry type="library" scope="PROVIDED" name="rspec (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
21
- <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.5.4, rbenv: 2.3.1) [gem]" level="application" />
22
- <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
23
- <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
24
- <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.5.0, rbenv: 2.3.1) [gem]" level="application" />
25
- <orderEntry type="library" scope="PROVIDED" name="rubocop (v0.47.1, rbenv: 2.3.1) [gem]" level="application" />
26
- <orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v1.12.0, rbenv: 2.3.1) [gem]" level="application" />
27
- <orderEntry type="library" scope="PROVIDED" name="ruby-ll (v2.1.2, rbenv: 2.3.1) [gem]" level="application" />
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" />
31
- <orderEntry type="library" scope="PROVIDED" name="thor (v0.19.4, rbenv: 2.3.1) [gem]" level="application" />
32
- <orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v1.1.3, rbenv: 2.3.1) [gem]" level="application" />
33
- </component>
34
- </module>