graphics 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/History.rdoc +7 -0
- data/README.rdoc +3 -3
- data/graphics_setup.sh +9 -25
- data/lib/graphics.rb +1 -1
- metadata +3 -3
- metadata.gz.sig +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14bae949dfda33879d99ceed119be4186210da6debdd9ea5b9c70e9cfb2597c8
|
4
|
+
data.tar.gz: 594f95ce9bb7ebe278d3809aba41fb87a67e222cd1c002e8709e583f5c8cc6cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2af7d58cd09195410f4afe52e56be541a56098e8f53ae5ebc4966b1375b33df765234bfc8dfc378ed779be3f31208417a7ed59eec8e58be6231d3d3915347e91
|
7
|
+
data.tar.gz: c901a48fa9a250c8ae16b6ea552548b646488f6d6477f04c55d2664f209a00842d08f2bddf747b21ed7acef140f2691bd36824819e3f9c4570ebc7dcf1a4bb0f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -14,7 +14,7 @@ game programming conventions. Particularly it:
|
|
14
14
|
* Right hand rule: 0 degrees is east, 90 is north, etc.
|
15
15
|
|
16
16
|
These allow simple things like Trigonometry functions to work as
|
17
|
-
expected. It means that all that stuff you were taught
|
17
|
+
expected. It means that all that stuff you were taught in grade school
|
18
18
|
still work as intended. This makes one less thing you have to adjust
|
19
19
|
when implementing your simulation.
|
20
20
|
|
@@ -76,8 +76,7 @@ See examples/*.rb for more
|
|
76
76
|
|
77
77
|
== REQUIREMENTS:
|
78
78
|
|
79
|
-
*
|
80
|
-
* libsdl & friends
|
79
|
+
* libsdl2 & friends
|
81
80
|
|
82
81
|
See and/or run graphics_setup.sh. If you're on OSX and have homebrew
|
83
82
|
installed, running this will ensure you have a working setup.
|
@@ -88,6 +87,7 @@ up-to-date versions.
|
|
88
87
|
== INSTALL:
|
89
88
|
|
90
89
|
* sudo gem install graphics
|
90
|
+
* `curl -L https://tinyurl.com/graphics-setup | bash`
|
91
91
|
|
92
92
|
== LICENSE:
|
93
93
|
|
data/graphics_setup.sh
CHANGED
@@ -1,26 +1,12 @@
|
|
1
1
|
#!/bin/sh
|
2
|
-
set -e
|
3
|
-
set -v
|
4
|
-
|
5
|
-
# if [ $(id -u) != 0 ]; then
|
6
|
-
# echo "Please run this as root or with sudo"
|
7
|
-
# exit 1
|
8
|
-
# fi
|
9
2
|
|
10
|
-
|
11
|
-
gem uninstall -ax $gem || true
|
12
|
-
done
|
3
|
+
set -v
|
13
4
|
|
14
5
|
case `uname` in
|
15
6
|
Darwin)
|
16
7
|
echo "I'm on OSX. Not using sudo"
|
17
8
|
SUDO=
|
18
9
|
|
19
|
-
brew unlink sdl
|
20
|
-
brew unlink sdl_mixer
|
21
|
-
brew unlink sdl_ttf
|
22
|
-
brew unlink sdl_image
|
23
|
-
|
24
10
|
brew install sdl2
|
25
11
|
brew install sdl2_mixer
|
26
12
|
brew install sdl2_ttf
|
@@ -31,8 +17,7 @@ case `uname` in
|
|
31
17
|
echo "I'm on linux, using sudo where needed"
|
32
18
|
SUDO=sudo
|
33
19
|
|
34
|
-
$SUDO apt-get install --no-install-recommends --no-install-suggests libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev
|
35
|
-
$SUDO apt-get install --no-install-recommends --no-install-suggests gcc g++
|
20
|
+
$SUDO apt-get install --no-install-recommends --no-install-suggests libsdl1.2-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev gcc g++
|
36
21
|
;;
|
37
22
|
*)
|
38
23
|
echo "Unknown OS $OSTYPE, aborting"
|
@@ -40,17 +25,16 @@ case `uname` in
|
|
40
25
|
;;
|
41
26
|
esac
|
42
27
|
|
43
|
-
$SUDO gem update --system -N -V
|
44
|
-
|
45
|
-
gem install hoe --conservative
|
46
|
-
$SUDO rake newb
|
47
|
-
rake test
|
48
|
-
|
49
28
|
if [ -f $0 ]; then
|
29
|
+
$SUDO gem update --system -N -V
|
30
|
+
$SUDO gem install hoe --conservative
|
31
|
+
$SUDO rake newb
|
32
|
+
rake test
|
50
33
|
rake clean package
|
51
34
|
$SUDO gem install pkg/graphics*.gem
|
52
35
|
else
|
53
|
-
$SUDO gem install graphics
|
36
|
+
$SUDO gem install graphics
|
54
37
|
fi
|
55
38
|
|
56
|
-
|
39
|
+
echo "running a test... you should see a window show up."
|
40
|
+
ruby -Ilib -rgraphics -e 'Class.new(Graphics::Simulation) { def draw n; clear :white; text "hit escape to quit", 100, 100, :black; end; }.new(500, 250, "Working!").run'
|
data/lib/graphics.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: graphics
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
29
29
|
AhXhF6Wi2GTMezlj5jlI5XV7WsJUSwTp/YiVvcmT74ZaCRvexm6EnNhkrvJJ1Xeu
|
30
30
|
V+HB+LYYhXWitInO/eXxDrFB
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date: 2018-11-
|
32
|
+
date: 2018-11-15 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rdoc
|
@@ -89,7 +89,7 @@ description: |-
|
|
89
89
|
* Right hand rule: 0 degrees is east, 90 is north, etc.
|
90
90
|
|
91
91
|
These allow simple things like Trigonometry functions to work as
|
92
|
-
expected. It means that all that stuff you were taught
|
92
|
+
expected. It means that all that stuff you were taught in grade school
|
93
93
|
still work as intended. This makes one less thing you have to adjust
|
94
94
|
when implementing your simulation.
|
95
95
|
email:
|
metadata.gz.sig
CHANGED
@@ -1 +1,2 @@
|
|
1
|
-
|
1
|
+
�t��D�@P���>휭C�ۣ�����jV��"�������n�dSH_<%�W�P�j�
|
2
|
+
}��(5cR�
|