ruby-libgd 0.1.3 → 0.1.4

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
  SHA256:
3
- metadata.gz: f3842326bd6413b4f2e29d338600edeaf860def862c1aa6c9f55cfb57769ca5e
4
- data.tar.gz: 9dc0b760f12eb9ecb69268362a043d15b8b585615727832c0899133685ae1261
3
+ metadata.gz: 3b6cf8d1607c8305b9baba3d94a36342d57543c5efb89bcac12a3887ea8a589d
4
+ data.tar.gz: 59620a7dbd30ec7c875c0ea69839170e7d76505dc7a8283514e83b7203e2e495
5
5
  SHA512:
6
- metadata.gz: 91565c334782c8abe36121c9ff4443f4f0768472a5f034e52ddfea3dfd7710e9fc987747ed192bc43c2b2d73bb49d4448cdbaff7c92905e3d07c6ccbd0b83932
7
- data.tar.gz: 83b5786eba8197bd0e4e6d8a07856aaaa679ae398a6ba06a1dde40e38221787ef169dd9ae00c7ae5efc9b4266c72d2d9c56cebebe62635b0cda94427fcdc30a0
6
+ metadata.gz: 50e8dac738245acb26f3b4e95d35d2a2f79f319e15dbd056fd4dc0492b12d6ae29b0393407d4e01bc62a447ac5ed19501a8660ec3b16721a37d026fd6b08a63f
7
+ data.tar.gz: 3c3d1ef951a980be572ea48c5ec02804f40510421e03599ad3297836fc35927f4ede3c19392129b2d18b2c5208e61b9de33766977672357ac742fc3af31c150a
data/ext/gd/gd.so CHANGED
Binary file
data/ext/gd/image.c CHANGED
@@ -196,7 +196,7 @@ static VALUE gd_image_height(VALUE self) {
196
196
  return INT2NUM(gdImageSY(wrap->img));
197
197
  }
198
198
 
199
- static VALUE gd_image_copy(
199
+ static VALUE gd_image_copy (
200
200
  VALUE self, VALUE src,
201
201
  VALUE dx, VALUE dy,
202
202
  VALUE sx, VALUE sy,
@@ -219,7 +219,6 @@ static VALUE gd_image_copy(
219
219
  return Qnil;
220
220
  }
221
221
 
222
-
223
222
  void gd_define_image(VALUE mGD) {
224
223
  VALUE cGDImage = rb_define_class_under(mGD, "Image", rb_cObject);
225
224
 
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-libgd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Germán Alberto Giménez Silva
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2026-01-03 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies: []
13
12
  description: High-performance native Ruby bindings to libgd for image generation,
14
13
  drawing, filters, alpha blending, and transformations.
@@ -20,61 +19,39 @@ extensions:
20
19
  extra_rdoc_files: []
21
20
  files:
22
21
  - README.md
23
- - ext/gd/Makefile
24
22
  - ext/gd/arc.c
25
- - ext/gd/arc.o
26
23
  - ext/gd/blit.c
27
- - ext/gd/blit.o
28
24
  - ext/gd/char.c
29
- - ext/gd/char.o
30
25
  - ext/gd/circle.c
31
- - ext/gd/circle.o
32
26
  - ext/gd/clip.c
33
27
  - ext/gd/clip.h
34
- - ext/gd/clip.o
35
28
  - ext/gd/color.c
36
- - ext/gd/color.o
37
29
  - ext/gd/draw_line.c
38
- - ext/gd/draw_line.o
39
30
  - ext/gd/ellipse.c
40
- - ext/gd/ellipse.o
41
31
  - ext/gd/encode.c
42
- - ext/gd/encode.o
43
32
  - ext/gd/extconf.rb
44
33
  - ext/gd/fill.c
45
- - ext/gd/fill.o
46
34
  - ext/gd/filter.c
47
- - ext/gd/filter.o
48
35
  - ext/gd/gd.c
49
- - ext/gd/gd.o
50
36
  - ext/gd/gd.so
51
37
  - ext/gd/image.c
52
- - ext/gd/image.o
53
- - ext/gd/join.sh
54
38
  - ext/gd/mkmf.log
55
39
  - ext/gd/pixel.c
56
- - ext/gd/pixel.o
57
40
  - ext/gd/polygon.c
58
- - ext/gd/polygon.o
59
41
  - ext/gd/rectangle.c
60
- - ext/gd/rectangle.o
61
42
  - ext/gd/ruby_gd.h
62
43
  - ext/gd/text.c
63
- - ext/gd/text.o
64
44
  - ext/gd/transform.c
65
- - ext/gd/transform.o
66
45
  - ext/gd/version.c
67
- - ext/gd/version.o
68
46
  - lib/gd.rb
69
- - lib/gd/gd.so
70
47
  homepage: https://github.com/ggerman/ruby-libgd
71
48
  licenses:
72
49
  - MIT
73
50
  metadata: {}
74
- post_install_message:
75
51
  rdoc_options: []
76
52
  require_paths:
77
53
  - lib
54
+ - ext
78
55
  required_ruby_version: !ruby/object:Gem::Requirement
79
56
  requirements:
80
57
  - - ">="
@@ -86,8 +63,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
86
63
  - !ruby/object:Gem::Version
87
64
  version: '0'
88
65
  requirements: []
89
- rubygems_version: 3.5.22
90
- signing_key:
66
+ rubygems_version: 4.0.3
91
67
  specification_version: 4
92
68
  summary: Native Ruby bindings for libgd
93
69
  test_files: []
data/ext/gd/Makefile DELETED
@@ -1,269 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- V0 = $(V:0=)
7
- Q1 = $(V:1=)
8
- Q = $(Q1:0=@)
9
- ECHO1 = $(V:1=@ :)
10
- ECHO = $(ECHO1:0=@ echo)
11
- NULLCMD = :
12
-
13
- #### Start of system configuration section. ####
14
-
15
- srcdir = .
16
- topdir = /usr/local/include/ruby-3.3.0
17
- hdrdir = $(topdir)
18
- arch_hdrdir = /usr/local/include/ruby-3.3.0/x86_64-linux
19
- PATH_SEPARATOR = :
20
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
21
- prefix = $(DESTDIR)/usr/local
22
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
23
- rubyarchprefix = $(rubylibprefix)/$(arch)
24
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
25
- exec_prefix = $(prefix)
26
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
27
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
28
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
29
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
30
- sitehdrdir = $(rubyhdrdir)/site_ruby
31
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
32
- vendorarchdir = $(vendorlibdir)/$(sitearch)
33
- vendorlibdir = $(vendordir)/$(ruby_version)
34
- vendordir = $(rubylibprefix)/vendor_ruby
35
- sitearchdir = $(sitelibdir)/$(sitearch)
36
- sitelibdir = $(sitedir)/$(ruby_version)
37
- sitedir = $(rubylibprefix)/site_ruby
38
- rubyarchdir = $(rubylibdir)/$(arch)
39
- rubylibdir = $(rubylibprefix)/$(ruby_version)
40
- sitearchincludedir = $(includedir)/$(sitearch)
41
- archincludedir = $(includedir)/$(arch)
42
- sitearchlibdir = $(libdir)/$(sitearch)
43
- archlibdir = $(libdir)/$(arch)
44
- ridir = $(datarootdir)/$(RI_BASE_NAME)
45
- mandir = $(datarootdir)/man
46
- localedir = $(datarootdir)/locale
47
- libdir = $(exec_prefix)/lib
48
- psdir = $(docdir)
49
- pdfdir = $(docdir)
50
- dvidir = $(docdir)
51
- htmldir = $(docdir)
52
- infodir = $(datarootdir)/info
53
- docdir = $(datarootdir)/doc/$(PACKAGE)
54
- oldincludedir = $(DESTDIR)/usr/include
55
- includedir = $(prefix)/include
56
- runstatedir = $(localstatedir)/run
57
- localstatedir = $(prefix)/var
58
- sharedstatedir = $(prefix)/com
59
- sysconfdir = $(prefix)/etc
60
- datadir = $(datarootdir)
61
- datarootdir = $(prefix)/share
62
- libexecdir = $(exec_prefix)/libexec
63
- sbindir = $(exec_prefix)/sbin
64
- bindir = $(exec_prefix)/bin
65
- archdir = $(rubyarchdir)
66
-
67
-
68
- CC_WRAPPER =
69
- CC = gcc
70
- CXX = g++
71
- LIBRUBY = $(LIBRUBY_SO)
72
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
73
- LIBRUBYARG_SHARED = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
74
- LIBRUBYARG_STATIC = -Wl,-rpath,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static $(MAINLIBS)
75
- empty =
76
- OUTFLAG = -o $(empty)
77
- COUTFLAG = -o $(empty)
78
- CSRCFLAG = $(empty)
79
-
80
- RUBY_EXTCONF_H =
81
- cflags = $(optflags) $(debugflags) $(warnflags)
82
- cxxflags =
83
- optflags = -O3 -fno-fast-math
84
- debugflags = -ggdb3
85
- warnflags = -Wall -Wextra -Wdeprecated-declarations -Wdiv-by-zero -Wduplicated-cond -Wimplicit-function-declaration -Wimplicit-int -Wpointer-arith -Wwrite-strings -Wold-style-definition -Wimplicit-fallthrough=0 -Wmissing-noreturn -Wno-cast-function-type -Wno-constant-logical-operand -Wno-long-long -Wno-missing-field-initializers -Wno-overlength-strings -Wno-packed-bitfield-compat -Wno-parentheses-equality -Wno-self-assign -Wno-tautological-compare -Wno-unused-parameter -Wno-unused-value -Wsuggest-attribute=format -Wsuggest-attribute=noreturn -Wunused-variable -Wmisleading-indentation -Wundef
86
- cppflags =
87
- CCDLFLAGS = -fPIC
88
- CFLAGS = $(CCDLFLAGS) $(cflags) -fPIC $(ARCH_FLAG)
89
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
90
- DEFS =
91
- CPPFLAGS = $(DEFS) $(cppflags)
92
- CXXFLAGS = $(CCDLFLAGS) $(ARCH_FLAG)
93
- ldflags = -L. -fstack-protector-strong -rdynamic -Wl,-export-dynamic -Wl,--no-as-needed
94
- dldflags = -Wl,--compress-debug-sections=zlib
95
- ARCH_FLAG =
96
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
97
- LDSHARED = $(CC) -shared
98
- LDSHAREDXX = $(CXX) -shared
99
- AR = gcc-ar
100
- EXEEXT =
101
-
102
- RUBY_INSTALL_NAME = $(RUBY_BASE_NAME)
103
- RUBY_SO_NAME = ruby
104
- RUBYW_INSTALL_NAME =
105
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
106
- RUBYW_BASE_NAME = rubyw
107
- RUBY_BASE_NAME = ruby
108
-
109
- arch = x86_64-linux
110
- sitearch = $(arch)
111
- ruby_version = 3.3.0
112
- ruby = $(bindir)/$(RUBY_BASE_NAME)
113
- RUBY = $(ruby)
114
- BUILTRUBY = $(bindir)/$(RUBY_BASE_NAME)
115
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/backward.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
116
-
117
- RM = rm -f
118
- RM_RF = rm -fr
119
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
120
- MAKEDIRS = /usr/bin/mkdir -p
121
- INSTALL = /usr/bin/install -c
122
- INSTALL_PROG = $(INSTALL) -m 0755
123
- INSTALL_DATA = $(INSTALL) -m 644
124
- COPY = cp
125
- TOUCH = exit >
126
-
127
- #### End of system configuration section. ####
128
-
129
- preload =
130
- libpath = . $(libdir)
131
- LIBPATH = -L. -L$(libdir) -Wl,-rpath,$(libdir)
132
- DEFFILE =
133
-
134
- CLEANFILES = mkmf.log
135
- DISTCLEANFILES =
136
- DISTCLEANDIRS =
137
-
138
- extout =
139
- extout_prefix =
140
- target_prefix = /gd
141
- LOCAL_LIBS =
142
- LIBS = $(LIBRUBYARG_SHARED) -lm -lgd -lm -lpthread -lc
143
- ORIG_SRCS = arc.c blit.c char.c circle.c clip.c color.c draw_line.c ellipse.c encode.c fill.c filter.c gd.c image.c pixel.c polygon.c rectangle.c text.c transform.c version.c
144
- SRCS = $(ORIG_SRCS)
145
- OBJS = arc.o blit.o char.o circle.o clip.o color.o draw_line.o ellipse.o encode.o fill.o filter.o gd.o image.o pixel.o polygon.o rectangle.o text.o transform.o version.o
146
- HDRS = $(srcdir)/clip.h $(srcdir)/ruby_gd.h
147
- LOCAL_HDRS =
148
- TARGET = gd
149
- TARGET_NAME = gd
150
- TARGET_ENTRY = Init_$(TARGET_NAME)
151
- DLLIB = $(TARGET).so
152
- EXTSTATIC =
153
- STATIC_LIB =
154
-
155
- TIMESTAMP_DIR = .
156
- BINDIR = $(bindir)
157
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
158
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
159
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
160
- HDRDIR = $(sitehdrdir)$(target_prefix)
161
- ARCHHDRDIR = $(sitearchhdrdir)$(target_prefix)
162
- TARGET_SO_DIR =
163
- TARGET_SO = $(TARGET_SO_DIR)$(DLLIB)
164
- CLEANLIBS = $(TARGET_SO) false
165
- CLEANOBJS = $(OBJS) *.bak
166
- TARGET_SO_DIR_TIMESTAMP = $(TIMESTAMP_DIR)/.sitearchdir.-.gd.time
167
-
168
- all: $(DLLIB)
169
- static: $(STATIC_LIB)
170
- .PHONY: all install static install-so install-rb
171
- .PHONY: clean clean-so clean-static clean-rb
172
-
173
- clean-static::
174
- clean-rb-default::
175
- clean-rb::
176
- clean-so::
177
- clean: clean-so clean-static clean-rb-default clean-rb
178
- -$(Q)$(RM_RF) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
179
-
180
- distclean-rb-default::
181
- distclean-rb::
182
- distclean-so::
183
- distclean-static::
184
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
185
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
186
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
187
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
188
-
189
- realclean: distclean
190
- install: install-so install-rb
191
-
192
- install-so: $(DLLIB) $(TARGET_SO_DIR_TIMESTAMP)
193
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
194
- clean-static::
195
- -$(Q)$(RM) $(STATIC_LIB)
196
- install-rb: pre-install-rb do-install-rb install-rb-default
197
- install-rb-default: pre-install-rb-default do-install-rb-default
198
- pre-install-rb: Makefile
199
- pre-install-rb-default: Makefile
200
- do-install-rb:
201
- do-install-rb-default:
202
- pre-install-rb-default:
203
- @$(NULLCMD)
204
- $(TARGET_SO_DIR_TIMESTAMP):
205
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
206
- $(Q) $(TOUCH) $@
207
-
208
- site-install: site-install-so site-install-rb
209
- site-install-so: install-so
210
- site-install-rb: install-rb
211
-
212
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .o .S
213
-
214
- .cc.o:
215
- $(ECHO) compiling $(<)
216
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
217
-
218
- .cc.S:
219
- $(ECHO) translating $(<)
220
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
221
-
222
- .mm.o:
223
- $(ECHO) compiling $(<)
224
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
225
-
226
- .mm.S:
227
- $(ECHO) translating $(<)
228
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
229
-
230
- .cxx.o:
231
- $(ECHO) compiling $(<)
232
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
233
-
234
- .cxx.S:
235
- $(ECHO) translating $(<)
236
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
237
-
238
- .cpp.o:
239
- $(ECHO) compiling $(<)
240
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
241
-
242
- .cpp.S:
243
- $(ECHO) translating $(<)
244
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
245
-
246
- .c.o:
247
- $(ECHO) compiling $(<)
248
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
249
-
250
- .c.S:
251
- $(ECHO) translating $(<)
252
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
253
-
254
- .m.o:
255
- $(ECHO) compiling $(<)
256
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $(CSRCFLAG)$<
257
-
258
- .m.S:
259
- $(ECHO) translating $(<)
260
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -S $(CSRCFLAG)$<
261
-
262
- $(TARGET_SO): $(OBJS) Makefile
263
- $(ECHO) linking shared-object gd/$(DLLIB)
264
- -$(Q)$(RM) $(@)
265
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
266
-
267
-
268
-
269
- $(OBJS): $(HDRS) $(ruby_headers)
data/ext/gd/arc.o DELETED
Binary file
data/ext/gd/blit.o DELETED
Binary file
data/ext/gd/char.o DELETED
Binary file
data/ext/gd/circle.o DELETED
Binary file
data/ext/gd/clip.o DELETED
Binary file
data/ext/gd/color.o DELETED
Binary file
data/ext/gd/draw_line.o DELETED
Binary file
data/ext/gd/ellipse.o DELETED
Binary file
data/ext/gd/encode.o DELETED
Binary file
data/ext/gd/fill.o DELETED
Binary file
data/ext/gd/filter.o DELETED
Binary file
data/ext/gd/gd.o DELETED
Binary file
data/ext/gd/image.o DELETED
Binary file
data/ext/gd/join.sh DELETED
@@ -1,24 +0,0 @@
1
- #!/usr/bin/env bash
2
- set -euo pipefail
3
-
4
- OUT="c_sources_dump.txt"
5
-
6
- echo "Generating $OUT ..."
7
- echo "======================" > "$OUT"
8
- echo "Generated on $(date)" >> "$OUT"
9
- echo "" >> "$OUT"
10
-
11
- find . -name "*.c" -type f | sort | while read -r file; do
12
- echo "----------------------------------------" >> "$OUT"
13
- echo "FILE: $file" >> "$OUT"
14
- echo "----------------------------------------" >> "$OUT"
15
- echo "" >> "$OUT"
16
-
17
- sed 's/\t/ /g' "$file" >> "$OUT"
18
-
19
- echo "" >> "$OUT"
20
- echo "" >> "$OUT"
21
- done
22
-
23
- echo "Done."
24
- echo "Output written to: $OUT"
data/ext/gd/pixel.o DELETED
Binary file
data/ext/gd/polygon.o DELETED
Binary file
data/ext/gd/rectangle.o DELETED
Binary file
data/ext/gd/text.o DELETED
Binary file
data/ext/gd/transform.o DELETED
Binary file
data/ext/gd/version.o DELETED
Binary file
data/lib/gd/gd.so DELETED
Binary file