scoreboard_rubywarrior 0.0.6 → 0.0.7

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: 1292a3bbdcf45d7b49936c39ccf1533d46f7fb69
4
- data.tar.gz: 83746ceb1519135af47b93db78f6051d19fbb475
3
+ metadata.gz: 6483b1e4a541700a2436d4a450cf4286528b2658
4
+ data.tar.gz: b9611b9a0ef272fefe12ddc1e2df1e2d1f51015c
5
5
  SHA512:
6
- metadata.gz: 2c7dce13a3b3e499c40cb8e9d74a6a1fcc79da8543ceb20f4c53cd630e0b18ea555bf663461c2ec154239a1e0e2719af657e7900592571868385e1f0cc8f9553
7
- data.tar.gz: a89589631c132208b4c37d8cd7e301bdf4ea876dada2b3f86c64ffb01dd6d4a33e82018c27a227506e9b3f2d1cbbbca67c7450f2b70a29e76ef4dff124c55fb7
6
+ metadata.gz: 20aa3247101648381e0d8e80352ed48eb73da79248bd5ba1e7e84953424d42002bca3eea8c7e8989b8c1eaf8fa24a6f1d95c294cdec5ee5d87985f8414bfd7c3
7
+ data.tar.gz: f2f05a531632a9a417ff2770a8a0b4a83efea47c5874750416bbfdbb4b7378d6ddb28e205209bedb1168488c8b2079c779a11a7ed493dad9d53e5dbf29168f36
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 0.0.7 [Nov 30th 2014]
2
+ Bugfix: Removes pry statement
3
+ Adds the ability to post in Epic Mode
1
4
  ## 0.0.5 [Nov 30th 2014]
2
5
 
3
6
  * Adds the ability to customize the endpoint which is posted to,
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ScoreboardRubywarrior
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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-19 00:00:00.000000000 Z
11
+ date: 2014-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler