scoreboard_rubywarrior 0.0.8 → 0.0.9
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 +4 -4
 - data/CHANGELOG.md +6 -3
 - data/lib/scoreboard_rubywarrior/monkeys/level.rb +7 -6
 - data/lib/scoreboard_rubywarrior/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 60b89c9e58f5ee952c8d78fecafd7958732329db
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 129f855b035ac86f6261cef52c819583600d13bc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 0458d3f6d3f7e397bbe8cec724f4466942d79fade3cb1e1dfd4fd9f3fa9fd6ac113d6fdb1c2e17024906a00776ea0b5ac05c0ea3deee330af0cdcfb56b53db2c
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 3519761d7ec452499c382f0605f823514fcfd01cd6e692adda1a4378c985fb0a73d6ebe4142f9cd22515c6bc382c0e5ee32c7cf6266517a3227d801fcb793136
         
     | 
    
        data/CHANGELOG.md
    CHANGED
    
    | 
         @@ -1,11 +1,14 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            ## 0.0. 
     | 
| 
      
 1 
     | 
    
         
            +
            ## 0.0.9 [Nov 2014]
         
     | 
| 
      
 2 
     | 
    
         
            +
              sends the tower type
         
     | 
| 
      
 3 
     | 
    
         
            +
             
     | 
| 
      
 4 
     | 
    
         
            +
            ## 0.0.8 [Nov 2014]
         
     | 
| 
       2 
5 
     | 
    
         
             
              updates endpoint to point to generic herokuapp
         
     | 
| 
       3 
6 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
            ## 0.0.7 [Nov  
     | 
| 
      
 7 
     | 
    
         
            +
            ## 0.0.7 [Nov 2014]
         
     | 
| 
       5 
8 
     | 
    
         
             
              Bugfix: Removes pry statement
         
     | 
| 
       6 
9 
     | 
    
         
             
              Adds the ability to post in Epic Mode
         
     | 
| 
       7 
10 
     | 
    
         | 
| 
       8 
     | 
    
         
            -
            ## 0.0.5 [Nov  
     | 
| 
      
 11 
     | 
    
         
            +
            ## 0.0.5 [Nov 2014]
         
     | 
| 
       9 
12 
     | 
    
         | 
| 
       10 
13 
     | 
    
         
             
            * Adds the ability to customize the endpoint which is posted to,
         
     | 
| 
       11 
14 
     | 
    
         
             
            * so you can use this to basically stop the posting if you want to
         
     | 
| 
         @@ -23,13 +23,13 @@ module RubyWarrior 
     | 
|
| 
       23 
23 
     | 
    
         
             
                    UI.puts "Total Score: " + score_calculation(@profile.current_epic_score, score)
         
     | 
| 
       24 
24 
     | 
    
         
             
                    @profile.current_epic_grades[@number] = (score / ace_score.to_f) if ace_score
         
     | 
| 
       25 
25 
     | 
    
         
             
                    @profile.current_epic_score += score
         
     | 
| 
       26 
     | 
    
         
            -
                     
     | 
| 
       27 
     | 
    
         
            -
                     
     | 
| 
       28 
     | 
    
         
            -
                     
     | 
| 
       29 
     | 
    
         
            -
                     
     | 
| 
       30 
     | 
    
         
            -
                     
     | 
| 
      
 26 
     | 
    
         
            +
                    report[:total_score] = score
         
     | 
| 
      
 27 
     | 
    
         
            +
                    report[:source_code] = ::ScoreboardRubywarrior::Concatenator.new(Dir.pwd).concatenate
         
     | 
| 
      
 28 
     | 
    
         
            +
                    report[:warrior_name] = @profile.warrior_name
         
     | 
| 
      
 29 
     | 
    
         
            +
                    report[:level_number] = @number
         
     | 
| 
      
 30 
     | 
    
         
            +
                    report[:tower] = @profile.tower.name
         
     | 
| 
       31 
31 
     | 
    
         | 
| 
       32 
     | 
    
         
            -
                    ::ScoreboardRubywarrior::Reporter.send_level_update( 
     | 
| 
      
 32 
     | 
    
         
            +
                    ::ScoreboardRubywarrior::Reporter.send_level_update(report)
         
     | 
| 
       33 
33 
     | 
    
         
             
                  else
         
     | 
| 
       34 
34 
     | 
    
         
             
                    total_score =  score_calculation(@profile.score, score)
         
     | 
| 
       35 
35 
     | 
    
         
             
                    report[:total_score] = total_score
         
     | 
| 
         @@ -39,6 +39,7 @@ module RubyWarrior 
     | 
|
| 
       39 
39 
     | 
    
         
             
                    report[:warrior_name] = @profile.warrior_name
         
     | 
| 
       40 
40 
     | 
    
         
             
                    report[:level_number] = @number
         
     | 
| 
       41 
41 
     | 
    
         
             
                    report[:source_code] = ::ScoreboardRubywarrior::Concatenator.new(Dir.pwd).concatenate
         
     | 
| 
      
 42 
     | 
    
         
            +
                    report[:tower] = @profile.tower.name
         
     | 
| 
       42 
43 
     | 
    
         | 
| 
       43 
44 
     | 
    
         
             
                    ::ScoreboardRubywarrior::Reporter.send_level_update(report)
         
     | 
| 
       44 
45 
     | 
    
         
             
                  end
         
     |