ruby-gpgme 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/Makefile +95 -66
- data/README +23 -20
- data/THANKS +1 -0
- data/gpgme_n.c +17 -16
- metadata +6 -4
data/Makefile
CHANGED
@@ -4,67 +4,84 @@ SHELL = /bin/sh
|
|
4
4
|
#### Start of system configuration section. ####
|
5
5
|
|
6
6
|
srcdir = .
|
7
|
-
topdir = /usr/
|
8
|
-
hdrdir =
|
9
|
-
|
7
|
+
topdir = /usr/local/include/ruby-1.9.1
|
8
|
+
hdrdir = /usr/local/include/ruby-1.9.1
|
9
|
+
arch_hdrdir = /usr/local/include/ruby-1.9.1/$(arch)
|
10
|
+
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
11
|
+
prefix = $(DESTDIR)/usr/local
|
12
|
+
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
10
13
|
exec_prefix = $(prefix)
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
14
|
+
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
15
|
+
sitehdrdir = $(rubyhdrdir)/site_ruby
|
16
|
+
rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
|
17
|
+
vendordir = $(rubylibprefix)/vendor_ruby
|
18
|
+
sitedir = $(rubylibprefix)/site_ruby
|
19
|
+
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
20
|
+
mandir = $(datarootdir)/man
|
16
21
|
localedir = $(datarootdir)/locale
|
17
|
-
bindir = $(exec_prefix)/bin
|
18
|
-
libexecdir = $(prefix)/lib/ruby1.8
|
19
|
-
sitedir = $(DESTDIR)/usr/local/lib/site_ruby
|
20
|
-
htmldir = $(docdir)
|
21
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
22
|
-
includedir = $(prefix)/include
|
23
|
-
infodir = $(prefix)/share/info
|
24
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
25
|
-
sysconfdir = $(DESTDIR)/etc
|
26
22
|
libdir = $(exec_prefix)/lib
|
27
|
-
|
28
|
-
|
29
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
23
|
+
psdir = $(docdir)
|
24
|
+
pdfdir = $(docdir)
|
30
25
|
dvidir = $(docdir)
|
31
|
-
|
26
|
+
htmldir = $(docdir)
|
27
|
+
infodir = $(datarootdir)/info
|
28
|
+
docdir = $(datarootdir)/doc/$(PACKAGE)
|
29
|
+
oldincludedir = $(DESTDIR)/usr/include
|
30
|
+
includedir = $(prefix)/include
|
31
|
+
localstatedir = $(prefix)/var
|
32
|
+
sharedstatedir = $(prefix)/com
|
33
|
+
sysconfdir = $(prefix)/etc
|
34
|
+
datadir = $(datarootdir)
|
32
35
|
datarootdir = $(prefix)/share
|
33
|
-
|
36
|
+
libexecdir = $(exec_prefix)/libexec
|
37
|
+
sbindir = $(exec_prefix)/sbin
|
38
|
+
bindir = $(exec_prefix)/bin
|
39
|
+
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
34
40
|
archdir = $(rubylibdir)/$(arch)
|
35
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
36
|
-
datadir = $(datarootdir)
|
37
|
-
localstatedir = $(DESTDIR)/var
|
38
41
|
sitelibdir = $(sitedir)/$(ruby_version)
|
42
|
+
sitearchdir = $(sitelibdir)/$(sitearch)
|
43
|
+
vendorlibdir = $(vendordir)/$(ruby_version)
|
44
|
+
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
39
45
|
|
40
|
-
CC =
|
41
|
-
|
46
|
+
CC = gcc
|
47
|
+
CXX = g++
|
48
|
+
LIBRUBY = $(LIBRUBY_A)
|
42
49
|
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
43
|
-
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
44
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
50
|
+
LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)
|
51
|
+
LIBRUBYARG_STATIC = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
|
52
|
+
OUTFLAG = -o
|
53
|
+
COUTFLAG = -o
|
45
54
|
|
46
55
|
RUBY_EXTCONF_H =
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
56
|
+
cflags = $(optflags) $(debugflags) $(warnflags)
|
57
|
+
optflags = -O3
|
58
|
+
debugflags = -g
|
59
|
+
warnflags = -Wall -Wno-unused-parameter -Wno-parentheses -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings
|
60
|
+
CFLAGS = -fPIC $(cflags)
|
61
|
+
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
62
|
+
DEFS =
|
63
|
+
CPPFLAGS = $(DEFS) $(cppflags)
|
64
|
+
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
52
65
|
ldflags = -L. -rdynamic -Wl,-export-dynamic
|
53
66
|
dldflags =
|
54
67
|
archflag =
|
55
68
|
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
|
56
69
|
LDSHARED = $(CC) -shared
|
70
|
+
LDSHAREDXX = $(CXX) -shared
|
57
71
|
AR = ar
|
58
72
|
EXEEXT =
|
59
73
|
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
74
|
+
RUBY_BASE_NAME = ruby
|
75
|
+
RUBY_INSTALL_NAME = ruby
|
76
|
+
RUBY_SO_NAME = ruby
|
77
|
+
arch = x86_64-linux
|
78
|
+
sitearch = $(arch)
|
79
|
+
ruby_version = 1.9.1
|
80
|
+
ruby = /usr/local/bin/ruby
|
66
81
|
RUBY = $(ruby)
|
67
82
|
RM = rm -f
|
83
|
+
RM_RF = $(RUBY) -run -e rm -- -rf
|
84
|
+
RMDIRS = $(RUBY) -run -e rmdir -- -p
|
68
85
|
MAKEDIRS = mkdir -p
|
69
86
|
INSTALL = /usr/bin/install -c
|
70
87
|
INSTALL_PROG = $(INSTALL) -m 0755
|
@@ -76,17 +93,18 @@ COPY = cp
|
|
76
93
|
preload =
|
77
94
|
|
78
95
|
libpath = . $(libdir)
|
79
|
-
LIBPATH = -L. -L$(libdir)
|
96
|
+
LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
|
80
97
|
DEFFILE =
|
81
98
|
|
82
99
|
CLEANFILES = mkmf.log
|
83
100
|
DISTCLEANFILES =
|
101
|
+
DISTCLEANDIRS =
|
84
102
|
|
85
103
|
extout =
|
86
104
|
extout_prefix =
|
87
105
|
target_prefix =
|
88
106
|
LOCAL_LIBS =
|
89
|
-
LIBS =
|
107
|
+
LIBS = -lgpgme -lgpg-error -lpthread -lrt -ldl -lcrypt -lm -lc
|
90
108
|
SRCS = gpgme_n.c
|
91
109
|
OBJS = gpgme_n.o
|
92
110
|
TARGET = gpgme_n
|
@@ -98,32 +116,47 @@ BINDIR = $(bindir)
|
|
98
116
|
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
99
117
|
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
100
118
|
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
119
|
+
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
120
|
+
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
101
121
|
|
102
122
|
TARGET_SO = $(DLLIB)
|
103
|
-
CLEANLIBS = $(TARGET).so
|
104
|
-
CLEANOBJS = *.o
|
105
|
-
|
106
|
-
all:
|
107
|
-
static:
|
108
|
-
|
109
|
-
clean
|
123
|
+
CLEANLIBS = $(TARGET).so
|
124
|
+
CLEANOBJS = *.o *.bak
|
125
|
+
|
126
|
+
all: $(DLLIB)
|
127
|
+
static: $(STATIC_LIB)
|
128
|
+
.PHONY: all install static install-so install-rb
|
129
|
+
.PHONY: clean clean-so clean-rb
|
130
|
+
|
131
|
+
clean-rb-default::
|
132
|
+
clean-rb::
|
133
|
+
clean-so::
|
134
|
+
clean: clean-so clean-rb-default clean-rb
|
110
135
|
@-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
|
111
136
|
|
112
|
-
distclean
|
137
|
+
distclean-rb-default::
|
138
|
+
distclean-rb::
|
139
|
+
distclean-so::
|
140
|
+
distclean: clean distclean-so distclean-rb-default distclean-rb
|
113
141
|
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
114
142
|
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
143
|
+
@-$(RMDIRS) $(DISTCLEANDIRS)
|
115
144
|
|
116
|
-
realclean:
|
145
|
+
realclean: distclean
|
117
146
|
install: install-so install-rb
|
118
147
|
|
119
148
|
install-so: $(RUBYARCHDIR)
|
120
149
|
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
121
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
150
|
+
$(RUBYARCHDIR)/$(DLLIB): $(RUBYARCHDIR) $(DLLIB)
|
122
151
|
$(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
|
123
152
|
install-rb: pre-install-rb install-rb-default
|
124
153
|
install-rb-default: pre-install-rb-default
|
125
154
|
pre-install-rb: Makefile
|
126
155
|
pre-install-rb-default: Makefile
|
156
|
+
pre-install-rb-default: $(RUBYLIBDIR)
|
157
|
+
install-rb-default: $(RUBYLIBDIR)/gpgme.rb
|
158
|
+
$(RUBYLIBDIR)/gpgme.rb: $(srcdir)/lib/gpgme.rb $(RUBYLIBDIR)
|
159
|
+
$(INSTALL_DATA) $(srcdir)/lib/gpgme.rb $(@D)
|
127
160
|
pre-install-rb-default: $(RUBYLIBDIR)/gpgme
|
128
161
|
install-rb-default: $(RUBYLIBDIR)/gpgme/compat.rb
|
129
162
|
$(RUBYLIBDIR)/gpgme/compat.rb: $(srcdir)/lib/gpgme/compat.rb $(RUBYLIBDIR)/gpgme
|
@@ -131,16 +164,12 @@ $(RUBYLIBDIR)/gpgme/compat.rb: $(srcdir)/lib/gpgme/compat.rb $(RUBYLIBDIR)/gpgme
|
|
131
164
|
install-rb-default: $(RUBYLIBDIR)/gpgme/constants.rb
|
132
165
|
$(RUBYLIBDIR)/gpgme/constants.rb: $(srcdir)/lib/gpgme/constants.rb $(RUBYLIBDIR)/gpgme
|
133
166
|
$(INSTALL_DATA) $(srcdir)/lib/gpgme/constants.rb $(@D)
|
134
|
-
pre-install-rb-default: $(RUBYLIBDIR)
|
135
|
-
install-rb-default: $(RUBYLIBDIR)/gpgme.rb
|
136
|
-
$(RUBYLIBDIR)/gpgme.rb: $(srcdir)/lib/gpgme.rb $(RUBYLIBDIR)
|
137
|
-
$(INSTALL_DATA) $(srcdir)/lib/gpgme.rb $(@D)
|
138
167
|
$(RUBYARCHDIR):
|
139
168
|
$(MAKEDIRS) $@
|
140
|
-
$(RUBYLIBDIR)/gpgme:
|
141
|
-
$(MAKEDIRS) $@
|
142
169
|
$(RUBYLIBDIR):
|
143
170
|
$(MAKEDIRS) $@
|
171
|
+
$(RUBYLIBDIR)/gpgme:
|
172
|
+
$(MAKEDIRS) $@
|
144
173
|
|
145
174
|
site-install: site-install-so site-install-rb
|
146
175
|
site-install-so: install-so
|
@@ -149,24 +178,24 @@ site-install-rb: install-rb
|
|
149
178
|
.SUFFIXES: .c .m .cc .cxx .cpp .C .o
|
150
179
|
|
151
180
|
.cc.o:
|
152
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
181
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
153
182
|
|
154
183
|
.cxx.o:
|
155
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
184
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
156
185
|
|
157
186
|
.cpp.o:
|
158
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
187
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
159
188
|
|
160
189
|
.C.o:
|
161
|
-
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
|
190
|
+
$(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
162
191
|
|
163
192
|
.c.o:
|
164
|
-
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
|
193
|
+
$(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
165
194
|
|
166
|
-
$(DLLIB): $(OBJS)
|
167
|
-
@-$(RM)
|
195
|
+
$(DLLIB): $(OBJS) Makefile
|
196
|
+
@-$(RM) $(@)
|
168
197
|
$(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
169
198
|
|
170
199
|
|
171
200
|
|
172
|
-
$(OBJS): ruby.h defines.h
|
201
|
+
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/README
CHANGED
@@ -10,6 +10,10 @@ Ruby-GPGME is a Ruby language binding of GPGME (GnuPG Made Easy).
|
|
10
10
|
|
11
11
|
* Installation
|
12
12
|
|
13
|
+
$ gem install ruby-gpgme
|
14
|
+
|
15
|
+
or
|
16
|
+
|
13
17
|
$ ruby extconf.rb
|
14
18
|
$ make
|
15
19
|
$ make install
|
@@ -24,17 +28,29 @@ Ruby-GPGME is a Ruby language binding of GPGME (GnuPG Made Easy).
|
|
24
28
|
|
25
29
|
* API
|
26
30
|
|
27
|
-
Ruby-GPGME provides
|
28
|
-
to the command line interface of GnuPG. The
|
29
|
-
to the C
|
31
|
+
Ruby-GPGME provides three levels of API. The highest level API is
|
32
|
+
close to the command line interface of GnuPG. The mid level API looks
|
33
|
+
object-oriented (or rubyish). The lowest level API is close to the C
|
34
|
+
interface of GPGME.
|
30
35
|
|
31
36
|
** The highest level API
|
32
37
|
|
33
|
-
For example, to create a cleartext signature of the plaintext from
|
34
|
-
can be written as follows.
|
38
|
+
For example, to create a cleartext signature of the plaintext from
|
39
|
+
stdin and write the result to stdout can be written as follows.
|
35
40
|
|
36
41
|
$ ruby -rgpgme -e 'GPGME.clearsign($stdin, $stdout)'
|
37
42
|
|
43
|
+
** The mid level API
|
44
|
+
|
45
|
+
The same example can be rewritten in the mid level API as follows.
|
46
|
+
|
47
|
+
$ ruby -rgpgme -e <<End
|
48
|
+
ctx = GPGME::Ctx.new
|
49
|
+
plain = GPGME::Data.from_io($stdin)
|
50
|
+
sig = GPGME::Data.from_io($stdout)
|
51
|
+
ctx.sign(plain, sig, GPGME::SIG_MODE_CLEAR)
|
52
|
+
End
|
53
|
+
|
38
54
|
** The lowest level API
|
39
55
|
|
40
56
|
The same example can be rewritten in the lowest level API as follows.
|
@@ -52,21 +68,8 @@ The same example can be rewritten in the lowest level API as follows.
|
|
52
68
|
|
53
69
|
As you see, it's much harder to write a program in this API than the
|
54
70
|
highest level API. However, if you are already familier with the C
|
55
|
-
interface of GPGME and
|
56
|
-
|
57
|
-
|
58
|
-
** The mid level API
|
59
|
-
|
60
|
-
There is another API which looks object-oriented. It's easier to use
|
61
|
-
than the lowest level API though, you should first consult the highest
|
62
|
-
level API.
|
63
|
-
|
64
|
-
$ ruby -rgpgme -e <<End
|
65
|
-
ctx = GPGME::Ctx.new
|
66
|
-
plain = GPGME::Data.from_io($stdin)
|
67
|
-
sig = GPGME::Data.from_io($stdout)
|
68
|
-
ctx.sign(plain, sig, GPGME::SIG_MODE_CLEAR)
|
69
|
-
End
|
71
|
+
interface of GPGME and want to control detailed behavior of GPGME, it
|
72
|
+
might be useful.
|
70
73
|
|
71
74
|
* License
|
72
75
|
|
data/THANKS
CHANGED
data/gpgme_n.c
CHANGED
@@ -266,8 +266,8 @@ read_cb (void *handle, void *buffer, size_t size)
|
|
266
266
|
{
|
267
267
|
VALUE vcb = (VALUE)handle, vcbs, vhook_value, vbuffer;
|
268
268
|
|
269
|
-
vcbs =
|
270
|
-
vhook_value =
|
269
|
+
vcbs = RARRAY_PTR(vcb)[0];
|
270
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
271
271
|
|
272
272
|
vbuffer = rb_funcall (vcbs, rb_intern ("read"), 2, vhook_value,
|
273
273
|
LONG2NUM(size));
|
@@ -282,8 +282,8 @@ write_cb (void *handle, const void *buffer, size_t size)
|
|
282
282
|
{
|
283
283
|
VALUE vcb = (VALUE)handle, vcbs, vhook_value, vbuffer, vnwrite;
|
284
284
|
|
285
|
-
vcbs =
|
286
|
-
vhook_value =
|
285
|
+
vcbs = RARRAY_PTR(vcb)[0];
|
286
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
287
287
|
vbuffer = rb_str_new (buffer, size);
|
288
288
|
|
289
289
|
vnwrite = rb_funcall (vcbs, rb_intern ("write"), 3,
|
@@ -297,8 +297,8 @@ seek_cb (void *handle, off_t offset, int whence)
|
|
297
297
|
VALUE vcb = (VALUE)handle, vcbs, vhook_value, vpos;
|
298
298
|
ID id_seek = rb_intern ("seek");
|
299
299
|
|
300
|
-
vcbs =
|
301
|
-
vhook_value =
|
300
|
+
vcbs = RARRAY_PTR(vcb)[0];
|
301
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
302
302
|
|
303
303
|
if (rb_respond_to (vcbs, id_seek))
|
304
304
|
{
|
@@ -566,8 +566,8 @@ passphrase_cb (void *hook, const char *uid_hint, const char *passphrase_info,
|
|
566
566
|
{
|
567
567
|
VALUE vcb = (VALUE)hook, vpassfunc, vhook_value;
|
568
568
|
|
569
|
-
vpassfunc =
|
570
|
-
vhook_value =
|
569
|
+
vpassfunc = RARRAY_PTR(vcb)[0];
|
570
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
571
571
|
|
572
572
|
rb_funcall (vpassfunc, rb_intern ("call"), 5,
|
573
573
|
vhook_value,
|
@@ -604,8 +604,8 @@ rb_s_gpgme_get_passphrase_cb (VALUE dummy, VALUE vctx, VALUE rpassfunc,
|
|
604
604
|
VALUE vcb = rb_iv_get (vctx, "@passphrase_cb");
|
605
605
|
|
606
606
|
/* No need to call gpgme_get_passphrase_cb. */
|
607
|
-
rb_ary_store (rpassfunc, 0,
|
608
|
-
rb_ary_store (rhook_value, 0,
|
607
|
+
rb_ary_store (rpassfunc, 0, RARRAY_PTR(vcb)[0]);
|
608
|
+
rb_ary_store (rhook_value, 0, RARRAY_PTR(vcb)[1]);
|
609
609
|
return Qnil;
|
610
610
|
}
|
611
611
|
|
@@ -614,8 +614,8 @@ progress_cb (void *hook, const char *what, int type, int current, int total)
|
|
614
614
|
{
|
615
615
|
VALUE vcb = (VALUE)hook, vprogfunc, vhook_value;
|
616
616
|
|
617
|
-
vprogfunc =
|
618
|
-
vhook_value =
|
617
|
+
vprogfunc = RARRAY_PTR(vcb)[0];
|
618
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
619
619
|
|
620
620
|
rb_funcall (vprogfunc, rb_intern ("call"), 5, vhook_value,
|
621
621
|
rb_str_new2 (what), INT2NUM(type), INT2NUM(current),
|
@@ -647,8 +647,8 @@ rb_s_gpgme_get_progress_cb (VALUE dummy, VALUE vctx, VALUE rprogfunc,
|
|
647
647
|
VALUE rhook_value)
|
648
648
|
{
|
649
649
|
VALUE vcb = rb_iv_get (vctx, "@progress_cb");
|
650
|
-
rb_ary_store (rprogfunc, 0,
|
651
|
-
rb_ary_store (rhook_value, 0,
|
650
|
+
rb_ary_store (rprogfunc, 0, RARRAY_PTR(vcb)[0]);
|
651
|
+
rb_ary_store (rhook_value, 0, RARRAY_PTR(vcb)[1]);
|
652
652
|
return Qnil;
|
653
653
|
}
|
654
654
|
|
@@ -1067,8 +1067,9 @@ edit_cb (void *hook, gpgme_status_code_t status, const char *args, int fd)
|
|
1067
1067
|
{
|
1068
1068
|
VALUE vcb = (VALUE)hook, veditfunc, vhook_value;
|
1069
1069
|
|
1070
|
-
|
1071
|
-
|
1070
|
+
|
1071
|
+
veditfunc = RARRAY_PTR(vcb)[0];
|
1072
|
+
vhook_value = RARRAY_PTR(vcb)[1];
|
1072
1073
|
|
1073
1074
|
rb_funcall (veditfunc, rb_intern ("call"), 4, vhook_value, INT2FIX(status),
|
1074
1075
|
rb_str_new2 (args), INT2NUM(fd));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-gpgme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daiki Ueno
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-07-25 00:00:00 +09:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -41,6 +41,8 @@ files:
|
|
41
41
|
- examples/edit.rb
|
42
42
|
has_rdoc: true
|
43
43
|
homepage: http://rubyforge.org/projects/ruby-gpgme/
|
44
|
+
licenses: []
|
45
|
+
|
44
46
|
post_install_message:
|
45
47
|
rdoc_options: []
|
46
48
|
|
@@ -61,9 +63,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
61
63
|
requirements: []
|
62
64
|
|
63
65
|
rubyforge_project: ruby-gpgme
|
64
|
-
rubygems_version: 1.3.
|
66
|
+
rubygems_version: 1.3.4
|
65
67
|
signing_key:
|
66
|
-
specification_version:
|
68
|
+
specification_version: 3
|
67
69
|
summary: Ruby binding of GPGME.
|
68
70
|
test_files: []
|
69
71
|
|