killer_queen_scene_scoring 0.3.3 → 0.3.4

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
  SHA256:
3
- metadata.gz: 863fa9d297d16a12b91a6325d6973d7cf46d18b04c9b9ce7230051ba9badda07
4
- data.tar.gz: 4e17f44c2727336248ed966248ce19affc7479d051a681a81f64b950ab4e951a
3
+ metadata.gz: 252283fa49161771bd583cbb70b8f2cd07f157d9ba6aa30065c8f2be48864632
4
+ data.tar.gz: 5dc4243a562d50ca7e07bf1cd42744bd54fc7029eb0d30371a81aaf9b9cd2c5f
5
5
  SHA512:
6
- metadata.gz: d9d64f0d9af5a76d3cc9056ec698413b3887b86380eb5679e09b3d9a620ea4b5334a0d3482a2a34473e42a0b016bfb94d1bc320e265108d60529e9090f5a7db0
7
- data.tar.gz: 1ab61438eddb53147e2b231591aaaff8d931057ba10b5d59675652c99c53ef453cf7a674a3d6c73f12c3369dbe995d9053c85e39964aeb8c92fd40959e31e2f5
6
+ metadata.gz: 962486216519cc1e52c981ed434fc7feda335c97f8642d64d49de4c5766e0e9045655d831536a6ee452aa5197e8e56d3029b37e840d797774c9dc77107fe6e3f
7
+ data.tar.gz: 475094aae452fbca90d08dd56d9adef82a398ca915748cc7fa3ca640f99afe07d10b18fee2cbea9f554da4c2cff7bc924dd52c1cc474664bd501c5596c2043e0
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- killer_queen_scene_scoring (0.3.3)
4
+ killer_queen_scene_scoring (0.3.4)
5
5
  dotenv (~> 2.7)
6
6
  json (~> 2.2)
7
7
  rest-client (~> 2.0)
@@ -15,14 +15,14 @@ GEM
15
15
  safe_yaml (~> 1.0.0)
16
16
  domain_name (0.5.20180417)
17
17
  unf (>= 0.0.5, < 1.0.0)
18
- dotenv (2.7.1)
18
+ dotenv (2.7.2)
19
19
  hashdiff (0.3.8)
20
20
  http-cookie (1.0.3)
21
21
  domain_name (~> 0.5)
22
22
  json (2.2.0)
23
23
  mime-types (3.2.2)
24
24
  mime-types-data (~> 3.2015)
25
- mime-types-data (3.2018.0812)
25
+ mime-types-data (3.2019.0331)
26
26
  minitest (5.11.3)
27
27
  netrc (0.11.0)
28
28
  public_suffix (3.0.3)
data/Rakefile CHANGED
@@ -2,9 +2,9 @@ require "bundler/gem_tasks"
2
2
  require "rake/testtask"
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
7
- t.test_files = FileList["test/**/*_test.rb"]
5
+ t.libs << "test"
6
+ t.libs << "lib"
7
+ t.test_files = FileList["test/**/*_test.rb"]
8
8
  end
9
9
 
10
- task :default => :test
10
+ task default: :test
@@ -3,7 +3,7 @@
3
3
  require "killer_queen_scene_scoring"
4
4
 
5
5
  id = ARGV[0]
6
- api_key = ENV["CHALLONGE_API_KEY"] || ARGV[1]
6
+ api_key = ARGV[1] || ENV["CHALLONGE_API_KEY"]
7
7
 
8
8
  unless id && api_key
9
9
  puts <<~EOS
@@ -24,6 +24,11 @@ unless id && api_key
24
24
  end
25
25
 
26
26
  t = KillerQueenSceneScoring::Tournament.new(id: id, api_key: api_key, logger: true)
27
- t.load
28
- t.calculate_points
29
- puts t.scene_scores.sort
27
+
28
+ if t.load
29
+ t.calculate_points
30
+ puts t.scene_scores.sort
31
+ else
32
+ puts "The tournament could not be loaded."
33
+ end
34
+
@@ -1,4 +1,4 @@
1
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path("lib", __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
3
 
4
4
  require "date"
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  end
27
27
 
28
28
  # Specify which files should be added to the gem when it is released.
29
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
29
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
30
30
  `git ls-files -z`.split("\x0").reject { |f| f.match(/^(test|spec|features)\//) }
31
31
  end
32
32
 
@@ -13,7 +13,7 @@ class Bracket < Base
13
13
 
14
14
  @id = id
15
15
  @loaded = false
16
- @state == ""
16
+ @state = ""
17
17
  end
18
18
 
19
19
  def complete?
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module KillerQueenSceneScoring
2
- VERSION = "0.3.3"
4
+ VERSION = "0.3.4"
3
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: killer_queen_scene_scoring
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dunn
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-03-21 00:00:00.000000000 Z
11
+ date: 2019-04-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler