sportsflix 1.0.0.alpha.1 → 1.0.0.alpha.2

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: f9458fde80d3315ecd42c9aa0889f30d2ece2bd4
4
- data.tar.gz: d76acfc8428dc5f93e650c91d7fc38ce688ffb6f
3
+ metadata.gz: 3b54699654a6cd3e7dbc4c051ef5f995f96cfaa4
4
+ data.tar.gz: 064edc25988d0e946a51513de3ae9757c9084f6d
5
5
  SHA512:
6
- metadata.gz: b20c5ffea19c3f0aec319a232b16c3341d0b24fc7f1be15964cae6c9b9be918602f8543bc1576ebdc805b3a88233f466a559bd7e4633d9e3c151602878885830
7
- data.tar.gz: f16821a7cbb1c98f081726a462361538b9c0faab4e19aa6911ed18593db260acb43198ba1d4b3593dc7b99df768dd8c94dfae739ed0fc4b5721d55cd73eff44a
6
+ metadata.gz: 40f137b0cd6a95806544770d5fe4d6569d638fb7b0453c1b6506352577f67c62d7e4a47888018534be1b6f2c76b42177f0759eded783ae7e2fe094b8efb4a945
7
+ data.tar.gz: 3c4f38db0d4e552bb427395a078f89674e7442a2a8d0c46b09844c9354ce818165f54164f691440af0be1cc5ada6f95589495c04abd4e790a3f6c42ecd50d175
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sportsflix (1.0.0.alpha.1)
4
+ sportsflix (1.0.0.alpha.2)
5
5
  oga (~> 2.8)
6
6
  thor (~> 0.19.4)
7
7
 
@@ -8,11 +8,11 @@ module Sportsflix
8
8
  class API
9
9
 
10
10
  def initialize(options)
11
- @verbose = options[:verbose]
12
- @stream_offset = options[:offset]
13
- @club_name = options[:club]
14
- @no_interactive = options['no-interactive']
15
- @video_player = options['video-player'].to_sym
11
+ @verbose = options[:verbose]
12
+ @stream_offset = options[:offset]
13
+ @club_name = options[:club]
14
+ @interactive = options['interactive']
15
+ @video_player = options['video-player'].to_sym
16
16
 
17
17
  @arenavision_client = Providers::Arenavision::Client.new(options)
18
18
  @executor = Sportsflix::Utils::Executor.new(options)
@@ -68,7 +68,7 @@ module Sportsflix
68
68
  if streams.empty?
69
69
  puts "There are no streams matching your query #{@club_name}"
70
70
  exit(1)
71
- elsif streams.length > 1 && !@no_interactive
71
+ elsif streams.length > 1 && @interactive
72
72
  streams.each_with_index do |stream, idx|
73
73
  puts "#{idx}) #{stream[:game]}"
74
74
  end
@@ -82,7 +82,7 @@ module Sportsflix
82
82
 
83
83
  def ask_language(stream_channels)
84
84
  channel_selection = 0
85
- if stream_channels.length > 1 && !@no_interactive
85
+ if stream_channels.length > 1 && @interactive
86
86
  stream_channels.each_with_index do |channel, idx|
87
87
  puts "#{idx}) #{channel[:language]}"
88
88
  end
@@ -96,7 +96,7 @@ module Sportsflix
96
96
 
97
97
  def ask_channel(stream_channels)
98
98
  stream_channel_nr = stream_channels[:start]
99
- if stream_channels[:start] != stream_channels[:end] && !@no_interactive
99
+ if stream_channels[:start] != stream_channels[:end] && @interactive
100
100
  possible_channels = (stream_channels[:start]..stream_channels[:end]).to_a
101
101
  possible_channels.each_with_index do |nr, idx|
102
102
  if @stream_offset == idx
@@ -1,3 +1,3 @@
1
1
  module Sportsflix
2
- VERSION = '1.0.0.alpha.1'
2
+ VERSION = '1.0.0.alpha.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sportsflix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.alpha.1
4
+ version: 1.0.0.alpha.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rodrigo Fernandes