graphics 1.1.0 → 1.1.1
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data/History.rdoc +12 -0
- data/README.rdoc +3 -3
- data/ext/sdl/sge/sge_surface.cpp +1 -1
- data/graphics_setup.sh +30 -21
- data/lib/graphics.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +15 -15
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ce1c375e7fe1c41126f6ef3b87becdb997368618ab2a9bfab749edd488c8377
|
4
|
+
data.tar.gz: 2e05e558f38241be80074f7f7ac0f2518efddcde1cd333d3cf772980bab825cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ebf2dbe2d78397410bfb00769266c797a3b5da1d14c667eefc8b3396c81142c68c20fdabdbe776c85f843f8f020374f5015faa1b72f6dee9b483ea4c3dd8610
|
7
|
+
data.tar.gz: 0faaf2725fa511e98d2ee3f02b7e1d52d157ba626b6e16404dc6b872f2b4793c55ae1f965bf2779108bc3a72b25a8bc95b0081d42cd65246d11ade89dee9a9c5
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/History.rdoc
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 1.1.1 / 2024-08-27
|
2
|
+
|
3
|
+
* 1 minor enhancement:
|
4
|
+
|
5
|
+
* Add basic package manager detection to deps script. (havenwood)
|
6
|
+
|
7
|
+
* 3 bug fixes:
|
8
|
+
|
9
|
+
* Fixed home link in readme/gemspec.
|
10
|
+
* Minor fix in ext/sdl/sge/sge_surface.cpp.
|
11
|
+
* Reorder installation instructions & format as code. (havenwood)
|
12
|
+
|
1
13
|
=== 1.1.0 / 2023-07-26
|
2
14
|
|
3
15
|
* 3 minor enhancements:
|
data/README.rdoc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
= graphics
|
2
2
|
|
3
|
-
home :: https://github.com/
|
3
|
+
home :: https://github.com/seattlerb/graphics
|
4
4
|
rdoc :: http://docs.seattlerb.org/graphics
|
5
5
|
|
6
6
|
== DESCRIPTION:
|
@@ -86,8 +86,8 @@ up-to-date versions.
|
|
86
86
|
|
87
87
|
== INSTALL:
|
88
88
|
|
89
|
-
|
90
|
-
|
89
|
+
curl -L https://tinyurl.com/graphics-setup | bash
|
90
|
+
sudo gem install graphics
|
91
91
|
|
92
92
|
== LICENSE:
|
93
93
|
|
data/ext/sdl/sge/sge_surface.cpp
CHANGED
data/graphics_setup.sh
CHANGED
@@ -2,39 +2,48 @@
|
|
2
2
|
|
3
3
|
set -v
|
4
4
|
|
5
|
-
case
|
5
|
+
case "$(uname -s)" in
|
6
6
|
Darwin)
|
7
|
-
|
8
|
-
|
7
|
+
if command -v brew >/dev/null; then
|
8
|
+
echo "Detected macOS. Installing dependencies with brew."
|
9
|
+
sudo=""
|
9
10
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
brew install sdl2
|
12
|
+
brew install sdl2_mixer
|
13
|
+
brew install sdl2_ttf
|
14
|
+
brew install sdl2_image
|
15
|
+
brew install sdl2_gfx
|
16
|
+
else
|
17
|
+
echo "Detected macOS but not brew. Install Homebrew and try again."
|
18
|
+
exit 1
|
19
|
+
fi
|
15
20
|
;;
|
16
21
|
Linux)
|
17
|
-
|
18
|
-
|
22
|
+
if command -v apt >/dev/null; then
|
23
|
+
echo "Detected Linux. Installing dependencies with apt."
|
24
|
+
sudo="sudo"
|
19
25
|
|
20
|
-
|
21
|
-
|
26
|
+
$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++
|
27
|
+
else
|
28
|
+
echo "Detected macOS but not apt. Install sdl2 with your package manager."
|
29
|
+
exit 1
|
30
|
+
fi
|
31
|
+
;;
|
22
32
|
*)
|
23
|
-
|
24
|
-
|
33
|
+
echo "Dependency installation not supported for your OS. Install sdl2 with your package manager."
|
34
|
+
exit 1
|
25
35
|
;;
|
26
36
|
esac
|
27
37
|
|
28
|
-
if [ -f $0 ]; then
|
29
|
-
$
|
30
|
-
$
|
31
|
-
$SUDO rake newb
|
38
|
+
if [ -f "$0" ]; then
|
39
|
+
$sudo gem install hoe --conservative
|
40
|
+
$sudo rake newb
|
32
41
|
rake test
|
33
42
|
rake clean package
|
34
|
-
$
|
43
|
+
$sudo gem install pkg/graphics*.gem
|
35
44
|
else
|
36
|
-
$
|
45
|
+
$sudo gem install graphics
|
37
46
|
fi
|
38
47
|
|
39
|
-
echo "
|
48
|
+
echo "Running a graphics test... You should see a window appear."
|
40
49
|
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
data.tar.gz.sig
CHANGED
Binary file
|
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.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Davis
|
@@ -10,9 +10,9 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
13
|
+
MIIDPjCCAiagAwIBAgIBCDANBgkqhkiG9w0BAQsFADBFMRMwEQYDVQQDDApyeWFu
|
14
14
|
ZC1ydWJ5MRkwFwYKCZImiZPyLGQBGRYJemVuc3BpZGVyMRMwEQYKCZImiZPyLGQB
|
15
|
-
|
15
|
+
GRYDY29tMB4XDTI0MDEwMjIxMjEyM1oXDTI1MDEwMTIxMjEyM1owRTETMBEGA1UE
|
16
16
|
AwwKcnlhbmQtcnVieTEZMBcGCgmSJomT8ixkARkWCXplbnNwaWRlcjETMBEGCgmS
|
17
17
|
JomT8ixkARkWA2NvbTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALda
|
18
18
|
b9DCgK+627gPJkB6XfjZ1itoOQvpqH1EXScSaba9/S2VF22VYQbXU1xQXL/WzCkx
|
@@ -22,14 +22,14 @@ cert_chain:
|
|
22
22
|
qhtV7HJxNKuPj/JFH0D2cswvzznE/a5FOYO68g+YCuFi5L8wZuuM8zzdwjrWHqSV
|
23
23
|
gBEfoTEGr7Zii72cx+sCAwEAAaM5MDcwCQYDVR0TBAIwADALBgNVHQ8EBAMCBLAw
|
24
24
|
HQYDVR0OBBYEFEfFe9md/r/tj/Wmwpy+MI8d9k/hMA0GCSqGSIb3DQEBCwUAA4IB
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
AQCygvpmncmkiSs9r/Kceo4bBPDszhTv6iBi4LwMReqnFrpNLMOWJw7xi8x+3eL2
|
26
|
+
XS09ZPNOt2zm70KmFouBMgOysnDY4k2dE8uF6B8JbZOO8QfalW+CoNBliefOTcn2
|
27
|
+
bg5IOP7UoGM5lC174/cbDJrJnRG9bzig5FAP0mvsgA8zgTRXQzIUAZEo92D5K7p4
|
28
|
+
B4/O998ho6BSOgYBI9Yk1ttdCtti6Y+8N9+fZESsjtWMykA+WXWeGUScHqiU+gH8
|
29
|
+
S7043fq9EbQdBr2AXdj92+CDwuTfHI6/Hj5FVBDULufrJaan4xUgL70Hvc6pTTeW
|
30
|
+
deKfBjgVAq7EYHu1AczzlUly
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2024-08-27 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
34
|
- !ruby/object:Gem::Dependency
|
35
35
|
name: rdoc
|
@@ -71,14 +71,14 @@ dependencies:
|
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '4.
|
74
|
+
version: '4.2'
|
75
75
|
type: :development
|
76
76
|
prerelease: false
|
77
77
|
version_requirements: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '4.
|
81
|
+
version: '4.2'
|
82
82
|
description: |-
|
83
83
|
Graphics provides a simple framework to implement games and/or
|
84
84
|
simulations and is designed to follow mathematical conventions, NOT
|
@@ -179,11 +179,11 @@ files:
|
|
179
179
|
- test/test_graphics.rb
|
180
180
|
- test/test_rainbows.rb
|
181
181
|
- test/test_sdl.rb
|
182
|
-
homepage: https://github.com/
|
182
|
+
homepage: https://github.com/seattlerb/graphics
|
183
183
|
licenses:
|
184
184
|
- MIT
|
185
185
|
metadata:
|
186
|
-
homepage_uri: https://github.com/
|
186
|
+
homepage_uri: https://github.com/seattlerb/graphics
|
187
187
|
post_install_message:
|
188
188
|
rdoc_options:
|
189
189
|
- "--main"
|
@@ -201,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
- !ruby/object:Gem::Version
|
202
202
|
version: '0'
|
203
203
|
requirements: []
|
204
|
-
rubygems_version: 3.
|
204
|
+
rubygems_version: 3.5.15
|
205
205
|
signing_key:
|
206
206
|
specification_version: 4
|
207
207
|
summary: Graphics provides a simple framework to implement games and/or simulations
|
metadata.gz.sig
CHANGED
Binary file
|