brainsnap 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 46493609657b9560a96554b16fd03eb0bcbba9e4
4
- data.tar.gz: 615b6302a7fd905148ed6bf088b5933a669e64a4
3
+ metadata.gz: 1e7658ef0abf02afae77198c77a91f974482d647
4
+ data.tar.gz: 18a8c9783f03621a54b90cdaf8dec51e4fdac428
5
5
  SHA512:
6
- metadata.gz: cf990b0ff23e5ac597597bf5e7aa9256f5fb7980b9ed3b0f64f0fdcb186d084675dc3be4f66844649899454c5d5562d2a3ebc95f62bd8c286f1697a4a88c1c83
7
- data.tar.gz: 9f645991c20934865c014bee954ad6e1287a2218f81020797c821400f15aa4974ff2f1a3c84431e9a25a17e89557a790d24727bf7177dee0db5548585a7a6808
6
+ metadata.gz: 0dbe193e889ccb150ac2ee15a155c4694e3e093acb569d2df0de299f16bda938cc75fc1d0970c656f49aec62fb5188437235ecf6229b5cd8c28ae8e52399ab74
7
+ data.tar.gz: 557a73912a18c743d8a5caef1c03c1c8afc69f533e70181718e93d8446e7b8cdf940840e0cc9a2645fb935d86813e56eca003c576e0b464c91b33b8118414656
@@ -1,3 +1,3 @@
1
1
  module Brainsnap
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/brainsnap.rb CHANGED
@@ -104,7 +104,7 @@ module BrainSnap
104
104
  highscore.players
105
105
  highscore.changeScore
106
106
  View.show_scores(highscore.sort_players)
107
- system 'ruby push.rb'
107
+ `ruby push.rb`
108
108
  exit
109
109
  end
110
110
 
@@ -117,7 +117,6 @@ module BrainSnap
117
117
  end
118
118
 
119
119
  def play
120
- system 'ruby pull.rb'
121
120
  self.start_menu
122
121
  end
123
122
 
@@ -17,7 +17,7 @@ class HighScores
17
17
  def initialize(user, score)
18
18
  @user = user
19
19
  @final_score = score
20
- @file = "highscores.csv"
20
+ @file = '/Users/dylanshine/Desktop/BrainSpan/brainsnap/lib/highscores.csv'
21
21
  @players = nil
22
22
  end
23
23
 
@@ -34,7 +34,7 @@ class HighScores
34
34
  def save
35
35
  players_as_hashes = @players.map(&:instance_variables)
36
36
  config_path = File.expand_path("../highscores.csv", __FILE__)
37
- export(config_path, players_as_hashes)
37
+ export('/Users/dylanshine/Desktop/BrainSpan/brainsnap/lib/highscores.csv', players_as_hashes)
38
38
  end
39
39
 
40
40
  def changeScore
data/lib/highscores.csv CHANGED
@@ -1,4 +1,3 @@
1
1
  user,score
2
- John,15
3
- Dylan,12
4
- Jim,1
2
+ Monkey,100
3
+ Dylan,0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brainsnap
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Shine
@@ -32,9 +32,6 @@ files:
32
32
  - lib/highscoreparse.rb
33
33
  - lib/highscores.csv
34
34
  - lib/model.rb
35
- - lib/pull.rb
36
- - lib/push.rb
37
- - lib/setup.rb
38
35
  - lib/view.rb
39
36
  homepage: https://github.com/dshine112/BrainSpan
40
37
  licenses: []
data/lib/pull.rb DELETED
@@ -1 +0,0 @@
1
- system 'git pull origin online_updater'
data/lib/push.rb DELETED
@@ -1,9 +0,0 @@
1
- percent = 0
2
- time = rand(0.01..0.1)
3
- (1..100).each{|x| sleep(time); print "Submitting your score...#{percent+=1}%\r"}
4
- puts
5
- print "Score successfully submitted."
6
- puts
7
- system 'git add -A > /dev/null 2>&1'
8
- system 'git commit -m "Updated High Scores" > /dev/null 2>&1'
9
- system 'git push origin online_updater > /dev/null 2>&1'
data/lib/setup.rb DELETED
@@ -1,8 +0,0 @@
1
- system 'cd 2>&1'
2
- system 'cd Desktop/ 2>&1'
3
- system 'mkdir Brainsnap_Cache 2>&1'
4
- system 'cd Desktop/Brainsnap_Cache 2>&1'
5
- system 'git clone https://github.com/rock-doves-2014/The-Shiney-Dylans.git 2>&1'
6
- system 'cd Desktop/Brainsnap_Cache/The-Shiney-Dylans/source 2>&1'
7
- system 'git checkout -b online_updater 2>&1'
8
- system 'git pull origin online_updater 2>&1'