scoreboard_rubywarrior 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/scoreboard_rubywarrior/monkeys/level.rb +7 -1
- data/lib/scoreboard_rubywarrior/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6483b1e4a541700a2436d4a450cf4286528b2658
|
4
|
+
data.tar.gz: b9611b9a0ef272fefe12ddc1e2df1e2d1f51015c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20aa3247101648381e0d8e80352ed48eb73da79248bd5ba1e7e84953424d42002bca3eea8c7e8989b8c1eaf8fa24a6f1d95c294cdec5ee5d87985f8414bfd7c3
|
7
|
+
data.tar.gz: f2f05a531632a9a417ff2770a8a0b4a83efea47c5874750416bbfdbb4b7378d6ddb28e205209bedb1168488c8b2079c779a11a7ed493dad9d53e5dbf29168f36
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'pry'
|
2
1
|
# here we patch the level.rb class to add our reporting
|
3
2
|
module RubyWarrior
|
4
3
|
class Level
|
@@ -24,6 +23,13 @@ module RubyWarrior
|
|
24
23
|
UI.puts "Total Score: " + score_calculation(@profile.current_epic_score, score)
|
25
24
|
@profile.current_epic_grades[@number] = (score / ace_score.to_f) if ace_score
|
26
25
|
@profile.current_epic_score += score
|
26
|
+
heroku_report = report
|
27
|
+
heroku_report[:total_score] = score
|
28
|
+
heroku_report[:source_code] = ::ScoreboardRubywarrior::Concatenator.new(Dir.pwd).concatenate
|
29
|
+
heroku_report[:warrior_name] = @profile.warrior_name
|
30
|
+
heroku_report[:level_number] = @number
|
31
|
+
|
32
|
+
::ScoreboardRubywarrior::Reporter.send_level_update(heroku_report)
|
27
33
|
else
|
28
34
|
total_score = score_calculation(@profile.score, score)
|
29
35
|
report[:total_score] = total_score
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: scoreboard_rubywarrior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Patrick Davey
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|