sportsflix 1.2.5 → 1.2.6

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: bb9a1d07859f608240f1103490fdadda1b3264d6
4
- data.tar.gz: f4d4da2073a805ee660b4f3fa9d0cd5c5fa761c4
3
+ metadata.gz: c1bf0c526f9d02e73ef7d8df04d262130939fc0d
4
+ data.tar.gz: bffeb97fdcaf1438a468ac875b6d7a7710697d95
5
5
  SHA512:
6
- metadata.gz: 0bdd20c98fd01ad244033484b65bfca56d05b57f327d7f907fc0e6f65654ad86cab3f26f9137521587cbab03d7f4836b824084f4837aedbe5f7c8140cad02e70
7
- data.tar.gz: ffb138a5d9ed0865b7844b08f451e561b1d8169cd9372c4c48a41386fce22a40ad413765fc50144c138815cc115ea754e8b6a8ab09ae8c878f36f4cd12ed1ee3
6
+ metadata.gz: 7751da5926e4859fcf116203f68141c7ad9f0f07daeafa929b6a44fc6ea37f573cea9cc83b7c9af0120567a6980531e7338d5540b02179dfb73272a32a154824
7
+ data.tar.gz: ccca43608388ec2b20f151d0a0defa0825414dc5ed494bfd90bae56903e51169877f69b59b7f4afff70c94900642265dd666b1fcd8e94cf3df40153133901a4b
data/.gitignore CHANGED
@@ -4,6 +4,9 @@
4
4
  # Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
5
5
  # Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
6
6
 
7
+ .idea/
8
+ *.iml
9
+
7
10
  # User-specific stuff:
8
11
  .idea/workspace.xml
9
12
  .idea/tasks.xml
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportsflix (1.2.5)
4
+ sportsflix (1.2.6)
5
5
  execjs-fastnode (~> 0.2.0)
6
6
  oga (~> 2.8)
7
7
  thor (~> 0.19.4)
@@ -16,7 +16,7 @@ GEM
16
16
  diff-lcs (1.3)
17
17
  docile (1.1.5)
18
18
  execjs (2.7.0)
19
- execjs-fastnode (0.2.0)
19
+ execjs-fastnode (0.2.1)
20
20
  execjs (~> 2.0)
21
21
  json (2.0.3)
22
22
  oga (2.10)
@@ -74,4 +74,4 @@ DEPENDENCIES
74
74
  sportsflix!
75
75
 
76
76
  BUNDLED WITH
77
- 1.14.3
77
+ 1.15.3
@@ -5,7 +5,7 @@ module Sportsflix
5
5
  module Providers
6
6
  module Arenavision
7
7
  class Client
8
- BASE_URLS = ['https://arenavision.in', 'https://arenavision.ru']
8
+ BASE_URLS = ['http://arenavision.in', 'http://arenavision.ru']
9
9
  BASE_URL = BASE_URLS.sample
10
10
 
11
11
  def initialize(options)
@@ -21,7 +21,7 @@ module Sportsflix
21
21
  schedule = get_page_contents("#{BASE_URL}#{schedule_path}")
22
22
  streams = schedule.css('table tr')
23
23
  # Remove first element
24
- streams = streams.drop(1)
24
+ streams = streams.drop(1)
25
25
  # Remove last element
26
26
  streams.pop(2)
27
27
 
@@ -29,7 +29,7 @@ module Sportsflix
29
29
  streams = streams.select do |item|
30
30
  item_text = item.css('td:nth-child(1)').text
31
31
  item_text = item_text.force_encoding('UTF-8')
32
- item_text =item_text.delete(' ').strip
32
+ item_text = item_text.delete(' ').strip
33
33
  not item_text.empty?
34
34
  end
35
35
 
@@ -47,7 +47,7 @@ module Sportsflix
47
47
  end
48
48
 
49
49
  def get_stream_uri(stream_nr)
50
- stream_raw = get_page_contents("#{BASE_URL}/av#{stream_nr}")
50
+ stream_raw = get_page_contents("#{BASE_URL}/#{stream_nr}")
51
51
  stream_raw.css('p[class="auto-style1"] a').first.get('href')
52
52
  end
53
53
 
@@ -1,3 +1,3 @@
1
1
  module Sportsflix
2
- VERSION = '1.2.5'
2
+ VERSION = '1.2.6'
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.2.5
4
+ version: 1.2.6
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-06-03 00:00:00.000000000 Z
11
+ date: 2017-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler