brainsnap 0.0.4 → 0.0.5

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: 111c4bfa76188eb8811a51b250fd80cda0d7a714
4
- data.tar.gz: 03e9f90a665af8ad210386098d3b9acc5ffbc091
3
+ metadata.gz: dd138f60e8dcb0f8d0d1b356107eadf4fe070337
4
+ data.tar.gz: 101584e2fb1d755a1c804c7e11e3e1fa4432df4d
5
5
  SHA512:
6
- metadata.gz: 952346e18fcedc66bc526fb79d739cbbc6b37be3ba7e648bef0a4d398266f784a8413e3a0d9926c29d53a05bdd87711d3773acce7540d575dca576b76dd72a33
7
- data.tar.gz: c7355050a1dc7c026bf2c6e5bf8e1d23fecd116c4885e29a526c98e5dc29786b47096cd3198c3c66ad759667c890451bec2e8046ee9097bf4e2b52d09294b83b
6
+ metadata.gz: 5f14bccf61f2bc81d47910515ef39002366e772ae9c4223ad5ff3ba6ff016e4346dfd7d546d12c4b5646c2e14c8d48b086dd3853ff778aacb653612c361d901a
7
+ data.tar.gz: 1c9c4e286b41a1788cebd4906bf0c0903d6e63fe027a4b2b3b214cc8cbab2c1788c4e598f1711ab8c4350a7d8f83998e8014ef6f9d911d917d31c51bd6b9dede
@@ -0,0 +1,4 @@
1
+ require 'brainsnap'
2
+
3
+ game = BrainSnap::Game.new
4
+ game.play
@@ -0,0 +1,4 @@
1
+ require 'brainsnap'
2
+
3
+ game = BrainSnap::Game.new
4
+ game.setup
data/brainsnap.gemspec CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
8
8
  gem.homepage = "https://github.com/dshine112/BrainSpan"
9
9
 
10
10
  gem.files = `git ls-files`.split($\)
11
- gem.executables = ["brainsnap"]
11
+ gem.executables = ["brainsnap.play","brainsnap.setup"]
12
12
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
13
13
  gem.name = "brainsnap"
14
14
  gem.require_paths = ["lib"]
@@ -1,3 +1,3 @@
1
1
  module Brainsnap
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/brainsnap.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "brainspan/version"
1
+ require "brainsnap/version"
2
2
  require_relative 'model'
3
3
  require_relative 'view'
4
4
  require_relative 'highscoreparse'
@@ -116,8 +116,12 @@ module BrainSnap
116
116
  end
117
117
 
118
118
  def play
119
- system 'ruby pull.rb'
120
- self.start_menu
119
+ system 'ruby pull.rb'
120
+ self.start_menu
121
+ end
122
+
123
+ def setup
124
+ system 'ruby setup.rb'
121
125
  end
122
126
  end
123
127
  end
data/lib/setup.rb ADDED
@@ -0,0 +1,8 @@
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'
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.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Shine
@@ -14,7 +14,8 @@ description: This is a simple trivia game for the command line.
14
14
  email:
15
15
  - dylanshinenyc@gmail.com
16
16
  executables:
17
- - brainsnap
17
+ - brainsnap.play
18
+ - brainsnap.setup
18
19
  extensions: []
19
20
  extra_rdoc_files: []
20
21
  files:
@@ -23,7 +24,8 @@ files:
23
24
  - LICENSE.txt
24
25
  - README.md
25
26
  - Rakefile
26
- - bin/brainsnap
27
+ - bin/brainsnap.play
28
+ - bin/brainsnap.setup
27
29
  - brainsnap.gemspec
28
30
  - lib/brainsnap.rb
29
31
  - lib/brainsnap/version.rb
@@ -34,6 +36,7 @@ files:
34
36
  - lib/model.rb
35
37
  - lib/pull.rb
36
38
  - lib/push.rb
39
+ - lib/setup.rb
37
40
  - lib/view.rb
38
41
  homepage: https://github.com/dshine112/BrainSpan
39
42
  licenses: []
data/bin/brainsnap DELETED
@@ -1,4 +0,0 @@
1
- require 'brainsnap'
2
-
3
- game = BrainSpan::Game.new
4
- game.play