GameGrid 0.9.5.1 → 0.9.5.2.2

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.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/bin/sh.rb +42 -0
  3. data/lib/GameGrid.rb +1 -0
  4. data/lib/main.rb +1 -1
  5. data/lib/sh.rb +42 -0
  6. metadata +6 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a4e4b6af31c01ca6a8c69288c39c27a32c2b617
4
- data.tar.gz: 92d2620285572ff0a5140c6cdb40ddf6714cbbb9
3
+ metadata.gz: 3a8bca0c6f6e9ec92462b768c6a6ce46e0c658c1
4
+ data.tar.gz: 7d2953d140e892dbc0455ffbaf94c61d35ad1905
5
5
  SHA512:
6
- metadata.gz: c7bb8b86a12a169053e4c4c8c35bae5d648991790d946dac8df4876def8603d4e3d188a054af55e9d5afbcb7fd44f925d572cf5887ad500899bbff2b604288ed
7
- data.tar.gz: 4680dbd96221069b717b3b30494b9024f9ac9e78ed281f6102f2553cff8b40de4a9b2a8a8df73aa341e5918c340ff8577fbb104a70af685e90ce368803dd0a3d
6
+ metadata.gz: 6d867bb35d796be9b5579e0b0379769f56a7b4a1f4ac61807e81a4dcc8f3622d554663aebd7bc258308eb120dccc6db96edc4116957d3ae0a1ce9b3b90ea9efa
7
+ data.tar.gz: 6368f1b1b35a64307744e4a9c6a7e5c57779129a9be6ca0771ac7e2f90aafd62cf65e9025f53b60ae01bf3ab856eb0f3e8e4b788b75393f30575482c9b43dc47
@@ -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) };
@@ -2,6 +2,7 @@
2
2
 
3
3
 
4
4
  #DEVELOPERS: The Console Object
5
+ require "sh"
5
6
 
6
7
  $console={
7
8
  :log=>"Console/Log:",
@@ -1,5 +1,5 @@
1
1
  #=============================GameGrid, an in-console game===========================#
2
-
2
+ require "sh"
3
3
 
4
4
  #DEVELOPERS: The Console Object
5
5
 
@@ -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.1
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-09 00:00:00.000000000 Z
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