gpgme 2.0.6 → 2.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/gpgme/extconf.rb +16 -4
- data/ext/gpgme/gpgme_n.c +5 -0
- data/lib/gpgme/constants.rb +3 -0
- data/ports/archives/gpgme-1.5.1.tar.bz2 +0 -0
- data/ports/archives/gpgme-1.5.1.tar.bz2.sig +0 -0
- data/ports/archives/libassuan-2.1.2.tar.bz2 +0 -0
- data/ports/archives/libassuan-2.1.2.tar.bz2.sig +0 -0
- data/test/test_helper.rb +3 -0
- metadata +11 -9
- data/ports/archives/gpgme-1.5.0.tar.bz2 +0 -0
- data/ports/archives/libassuan-2.1.1.tar.bz2 +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddad2098d7948b2270488e28182d4cb8caab2dcf
|
4
|
+
data.tar.gz: f7df6a6384be5d81de6695158a5cf1b858f9402d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddc16711b30e02461dbf3d570e88aa48b97993b7741baf5354ce79a7d1f17789cd430a68d25244e3b4f212f77c2b93a204385e26957f23c9413f4b6e6aae4629
|
7
|
+
data.tar.gz: 21112836148bf1a1f976c8b3890b27a38e69506e69b21dfd09b00c74bec3dae93f561c1ef4c70d71bbac381b3cd039cde9294e7ea95d40f6fb024f3b8d16f09a
|
data/ext/gpgme/extconf.rb
CHANGED
@@ -79,7 +79,7 @@ EOS
|
|
79
79
|
recipe.activate
|
80
80
|
end
|
81
81
|
|
82
|
-
libassuan_recipe = MiniPortile.new('libassuan', '2.1.
|
82
|
+
libassuan_recipe = MiniPortile.new('libassuan', '2.1.2').tap do |recipe|
|
83
83
|
recipe.target = File.join(ROOT, "ports")
|
84
84
|
recipe.files = ["ftp://ftp.gnupg.org/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2"]
|
85
85
|
recipe.configure_options = [
|
@@ -96,7 +96,7 @@ EOS
|
|
96
96
|
recipe.activate
|
97
97
|
end
|
98
98
|
|
99
|
-
gpgme_recipe = MiniPortile.new('gpgme', '1.5.
|
99
|
+
gpgme_recipe = MiniPortile.new('gpgme', '1.5.1').tap do |recipe|
|
100
100
|
recipe.target = File.join(ROOT, "ports")
|
101
101
|
recipe.files = ["ftp://ftp.gnupg.org/gcrypt/#{recipe.name}/#{recipe.name}-#{recipe.version}.tar.bz2"]
|
102
102
|
recipe.configure_options = [
|
@@ -133,8 +133,20 @@ EOS
|
|
133
133
|
else
|
134
134
|
$LIBPATH = $LIBPATH | [lpath]
|
135
135
|
end
|
136
|
-
when /\A-l
|
137
|
-
|
136
|
+
when /\A-l(.+)\z/
|
137
|
+
# Resolve absolute paths of local static libraries to avoid
|
138
|
+
# linking with system libraries.
|
139
|
+
libname_to_recipe = {
|
140
|
+
'gpgme' => gpgme_recipe,
|
141
|
+
'assuan' => libassuan_recipe,
|
142
|
+
'gpg-error' => libgpg_error_recipe
|
143
|
+
}
|
144
|
+
recipe = libname_to_recipe[$1]
|
145
|
+
if recipe
|
146
|
+
libs.push(File.join(recipe.path, 'lib', "lib#{$1}.#{$LIBEXT}"))
|
147
|
+
else
|
148
|
+
libs.push(arg)
|
149
|
+
end
|
138
150
|
else
|
139
151
|
$LDFLAGS << ' ' << arg.shellescape
|
140
152
|
end
|
data/ext/gpgme/gpgme_n.c
CHANGED
@@ -2816,6 +2816,11 @@ Init_gpgme_n (void)
|
|
2816
2816
|
rb_define_const (mGPGME, "GPGME_KEYLIST_MODE_EPHEMERAL",
|
2817
2817
|
INT2FIX(GPGME_KEYLIST_MODE_EPHEMERAL));
|
2818
2818
|
#endif
|
2819
|
+
/* This flag was added in 1.5.1. */
|
2820
|
+
#ifdef GPGME_KEYLIST_MODE_WITH_SECRET
|
2821
|
+
rb_define_const (mGPGME, "GPGME_KEYLIST_MODE_WITH_SECRET",
|
2822
|
+
INT2FIX(GPGME_KEYLIST_MODE_WITH_SECRET));
|
2823
|
+
#endif
|
2819
2824
|
|
2820
2825
|
/* The available flags for status field of gpgme_import_status_t. */
|
2821
2826
|
rb_define_const (mGPGME, "GPGME_IMPORT_NEW", INT2FIX(GPGME_IMPORT_NEW));
|
data/lib/gpgme/constants.rb
CHANGED
@@ -54,6 +54,9 @@ module GPGME
|
|
54
54
|
if defined?(GPGME_KEYLIST_MODE_EPHEMERAL)
|
55
55
|
KEYLIST_MODE_EPHEMERAL = GPGME_KEYLIST_MODE_EPHEMERAL
|
56
56
|
end
|
57
|
+
if defined?(GPGME_KEYLIST_MODE_WITH_SECRET)
|
58
|
+
KEYLIST_MODE_WITH_SECRET = GPGME_KEYLIST_MODE_WITH_SECRET
|
59
|
+
end
|
57
60
|
MD_CRC24_RFC2440 = GPGME_MD_CRC24_RFC2440
|
58
61
|
MD_CRC32 = GPGME_MD_CRC32
|
59
62
|
MD_CRC32_RFC1510 = GPGME_MD_CRC32_RFC1510
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/test/test_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gpgme
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daiki Ueno
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-09 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: mini_portile
|
@@ -74,19 +74,19 @@ dependencies:
|
|
74
74
|
- !ruby/object:Gem::Version
|
75
75
|
version: 0.6.7
|
76
76
|
- !ruby/object:Gem::Dependency
|
77
|
-
name:
|
77
|
+
name: coveralls
|
78
78
|
requirement: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- -
|
80
|
+
- - '>='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0
|
82
|
+
version: '0'
|
83
83
|
type: :development
|
84
84
|
prerelease: false
|
85
85
|
version_requirements: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- -
|
87
|
+
- - '>='
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 0
|
89
|
+
version: '0'
|
90
90
|
- !ruby/object:Gem::Dependency
|
91
91
|
name: debugger
|
92
92
|
requirement: !ruby/object:Gem::Requirement
|
@@ -148,9 +148,11 @@ files:
|
|
148
148
|
- examples/genkey.rb
|
149
149
|
- examples/keylist.rb
|
150
150
|
- examples/edit.rb
|
151
|
+
- ports/archives/libassuan-2.1.2.tar.bz2.sig
|
151
152
|
- ports/archives/libgpg-error-1.13.tar.bz2
|
152
|
-
- ports/archives/gpgme-1.5.
|
153
|
-
- ports/archives/libassuan-2.1.
|
153
|
+
- ports/archives/gpgme-1.5.1.tar.bz2
|
154
|
+
- ports/archives/libassuan-2.1.2.tar.bz2
|
155
|
+
- ports/archives/gpgme-1.5.1.tar.bz2.sig
|
154
156
|
homepage: http://github.com/ueno/ruby-gpgme
|
155
157
|
licenses:
|
156
158
|
- LGPL-2.1+
|
Binary file
|
Binary file
|