GameGrid 0.9.5.1 → 0.9.5.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/sh.rb +42 -0
- data/lib/GameGrid.rb +1 -0
- data/lib/main.rb +1 -1
- data/lib/sh.rb +42 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a8bca0c6f6e9ec92462b768c6a6ce46e0c658c1
|
4
|
+
data.tar.gz: 7d2953d140e892dbc0455ffbaf94c61d35ad1905
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6d867bb35d796be9b5579e0b0379769f56a7b4a1f4ac61807e81a4dcc8f3622d554663aebd7bc258308eb120dccc6db96edc4116957d3ae0a1ce9b3b90ea9efa
|
7
|
+
data.tar.gz: 6368f1b1b35a64307744e4a9c6a7e5c57779129a9be6ca0771ac7e2f90aafd62cf65e9025f53b60ae01bf3ab856eb0f3e8e4b788b75393f30575482c9b43dc47
|
data/bin/sh.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
version="0.9.5.2.2"
|
2
|
+
code='
|
3
|
+
function edit(){
|
4
|
+
echo "Please enter a valid password: "
|
5
|
+
VALIDPWD="carnatic"
|
6
|
+
read -s PASSWORD
|
7
|
+
if [ "$PASSWORD" == VALIDPWD ]; then
|
8
|
+
open lib/GameGrid.rb;
|
9
|
+
fi
|
10
|
+
}
|
11
|
+
function usage(){
|
12
|
+
usage=$\'Welcome to GameGrid! Here are possible commands:\n-g/--pull/--get/--update means update or pull the latest code.\n-e/--edit means try editing the game code (requires password)\n-h/--help brings this usage page up\n -v/--version prints the version.\'
|
13
|
+
echo "$usage"
|
14
|
+
}
|
15
|
+
version="'+version+'";
|
16
|
+
while [ "$1" != "" ]; do
|
17
|
+
case $1 in
|
18
|
+
-g | --pull | --get | --update) shift
|
19
|
+
gem install GameGrid
|
20
|
+
;;
|
21
|
+
-e | --edit ) edit
|
22
|
+
;;
|
23
|
+
-h | --help ) usage
|
24
|
+
exit
|
25
|
+
;;
|
26
|
+
-v | --version ) echo $"\nVersion: $version, to update to the latest, type gamegrid --update\n";;
|
27
|
+
|
28
|
+
* ) echo $"\nCommand unavailable. Valid commands:\n\n"
|
29
|
+
usage
|
30
|
+
exit 1
|
31
|
+
esac
|
32
|
+
shift
|
33
|
+
done
|
34
|
+
|
35
|
+
if [ "$1" == "" ]; then
|
36
|
+
echo $"Type this: require \'GameGrid\' to begin playing.\n\n"
|
37
|
+
irb
|
38
|
+
fi'
|
39
|
+
|
40
|
+
File.open("/usr/local/bin/gamegrid", 'w') {|f| f.write(code) };
|
41
|
+
|
42
|
+
File.open("/usr/bin/gamegrid", 'w') {|f| f.write(code) };
|
data/lib/GameGrid.rb
CHANGED
data/lib/main.rb
CHANGED
data/lib/sh.rb
ADDED
@@ -0,0 +1,42 @@
|
|
1
|
+
version="0.9.5.2"
|
2
|
+
code='
|
3
|
+
function edit(){
|
4
|
+
echo "Please enter a valid password: "
|
5
|
+
VALIDPWD="carnatic"
|
6
|
+
read -s PASSWORD
|
7
|
+
if [ "$PASSWORD" == VALIDPWD ]; then
|
8
|
+
open lib/GameGrid.rb;
|
9
|
+
fi
|
10
|
+
}
|
11
|
+
function usage(){
|
12
|
+
usage=$\'Welcome to GameGrid! Here are possible commands:\n-g/--pull/--get/--update means update or pull the latest code.\n-e/--edit means try editing the game code (requires password)\n-h/--help brings this usage page up\n -v/--version prints the version.\'
|
13
|
+
echo "$usage"
|
14
|
+
}
|
15
|
+
version="'+version'";
|
16
|
+
while [ "$1" != "" ]; do
|
17
|
+
case $1 in
|
18
|
+
-g | --pull | --get | --update) shift
|
19
|
+
gem install GameGrid
|
20
|
+
;;
|
21
|
+
-e | --edit ) edit
|
22
|
+
;;
|
23
|
+
-h | --help ) usage
|
24
|
+
exit
|
25
|
+
;;
|
26
|
+
-v | --version ) echo $"\nVersion: $version, to update to the latest, type gamegrid --update\n";;
|
27
|
+
|
28
|
+
* ) echo $"\nCommand unavailable. Valid commands:\n\n"
|
29
|
+
usage
|
30
|
+
exit 1
|
31
|
+
esac
|
32
|
+
shift
|
33
|
+
done
|
34
|
+
|
35
|
+
if [ "$1" == "" ]; then
|
36
|
+
echo $"Type this: require \'GameGrid\' to begin playing.\n\n"
|
37
|
+
irb
|
38
|
+
fi'
|
39
|
+
|
40
|
+
File.open("/usr/local/bin/gamegrid", 'w') {|f| f.write(code) };
|
41
|
+
|
42
|
+
File.open("/usr/bin/gamegrid", 'w') {|f| f.write(code) };
|
metadata
CHANGED
@@ -1,26 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: GameGrid
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.5.
|
4
|
+
version: 0.9.5.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ThinkLikeGeek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: An in-command-line adventure game controlled by commands like pickup(:sword)
|
14
14
|
and attack()
|
15
15
|
email: tt2d@icloud.com
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- sh.rb
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
21
|
+
- bin/sh.rb
|
20
22
|
- lib/GameGrid.rb
|
21
23
|
- lib/install.rb
|
22
24
|
- lib/main.rb
|
23
25
|
- lib/plgvaldb.rb
|
26
|
+
- lib/sh.rb
|
24
27
|
homepage: http://adihaya.github.io/GameGrid
|
25
28
|
licenses:
|
26
29
|
- MIT
|