gpgme 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,15 +18,15 @@ def build(tgz, *flags)
18
18
  sys("tar xjvf #{tgz}")
19
19
 
20
20
  Dir.chdir(File.basename(tgz, '.tar.bz2')) do
21
- sys("./configure --prefix=#{PREFIX} --disable-shared --enable-static --with-pic", *flags)
21
+ sys("./configure --prefix=#{PREFIX} --libdir=#{PREFIX}/lib --disable-shared --enable-static --with-pic", *flags)
22
22
  sys("make")
23
23
  sys("make install")
24
24
  end
25
25
  end
26
26
 
27
- libgpg_error_tgz = File.join(SRC, 'libgpg-error-1.10.tar.bz2')
28
- libassuan_tgz = File.join(SRC, 'libassuan-2.0.2.tar.bz2')
29
- gpgme_tgz = File.join(SRC, 'gpgme-1.3.1.tar.bz2')
27
+ libgpg_error_tgz = File.join(SRC, 'libgpg-error-1.11.tar.bz2')
28
+ libassuan_tgz = File.join(SRC, 'libassuan-2.1.0.tar.bz2')
29
+ gpgme_tgz = File.join(SRC, 'gpgme-1.4.0.tar.bz2')
30
30
 
31
31
  # build deps
32
32
 
@@ -51,6 +51,8 @@ module GPGME
51
51
  from_io(object.to_io)
52
52
  elsif object.respond_to? :open
53
53
  from_io(object.open)
54
+ elsif defined?(StringIO) and object.is_a?(StringIO)
55
+ from_io(object)
54
56
  end
55
57
  end
56
58
 
@@ -204,7 +204,7 @@ module GPGME
204
204
  end
205
205
 
206
206
  def ==(another_key)
207
- fingerprint == another_key.fingerprint
207
+ self.class === another_key and fingerprint == another_key.fingerprint
208
208
  end
209
209
 
210
210
  def inspect
@@ -27,6 +27,11 @@ describe GPGME::Key do
27
27
  assert_equal key1, key2
28
28
  end
29
29
 
30
+ it "can compare a key with any other object" do
31
+ key1 = GPGME::Key.find(:secret).first
32
+ refute_equal key1, nil
33
+ end
34
+
30
35
  describe :find do
31
36
  it "should return all by default" do
32
37
  keys = GPGME::Key.find :secret
metadata CHANGED
@@ -1,188 +1,173 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: gpgme
3
- version: !ruby/object:Gem::Version
4
- hash: 13
3
+ version: !ruby/object:Gem::Version
4
+ version: 2.0.2
5
5
  prerelease:
6
- segments:
7
- - 2
8
- - 0
9
- - 1
10
- version: 2.0.1
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Daiki Ueno
14
9
  - Albert Llop
15
10
  autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
-
19
- date: 2011-10-03 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
13
+ date: 2013-03-05 00:00:00.000000000 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
22
16
  name: mocha
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: !ruby/object:Gem::Requirement
25
18
  none: false
26
- requirements:
19
+ requirements:
27
20
  - - ~>
28
- - !ruby/object:Gem::Version
29
- hash: 35
30
- segments:
31
- - 0
32
- - 9
33
- - 12
21
+ - !ruby/object:Gem::Version
34
22
  version: 0.9.12
35
23
  type: :development
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: minitest
39
24
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: !ruby/object:Gem::Requirement
41
26
  none: false
42
- requirements:
27
+ requirements:
43
28
  - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 11
46
- segments:
47
- - 2
48
- - 1
49
- - 0
29
+ - !ruby/object:Gem::Version
30
+ version: 0.9.12
31
+ - !ruby/object:Gem::Dependency
32
+ name: minitest
33
+ requirement: !ruby/object:Gem::Requirement
34
+ none: false
35
+ requirements:
36
+ - - ~>
37
+ - !ruby/object:Gem::Version
50
38
  version: 2.1.0
51
39
  type: :development
52
- version_requirements: *id002
53
- - !ruby/object:Gem::Dependency
54
- name: yard
55
40
  prerelease: false
56
- requirement: &id003 !ruby/object:Gem::Requirement
41
+ version_requirements: !ruby/object:Gem::Requirement
57
42
  none: false
58
- requirements:
43
+ requirements:
59
44
  - - ~>
60
- - !ruby/object:Gem::Version
61
- hash: 9
62
- segments:
63
- - 0
64
- - 6
65
- - 7
45
+ - !ruby/object:Gem::Version
46
+ version: 2.1.0
47
+ - !ruby/object:Gem::Dependency
48
+ name: yard
49
+ requirement: !ruby/object:Gem::Requirement
50
+ none: false
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
66
54
  version: 0.6.7
67
55
  type: :development
68
- version_requirements: *id003
69
- - !ruby/object:Gem::Dependency
70
- name: rcov
71
56
  prerelease: false
72
- requirement: &id004 !ruby/object:Gem::Requirement
57
+ version_requirements: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ version: 0.6.7
63
+ - !ruby/object:Gem::Dependency
64
+ name: rcov
65
+ requirement: !ruby/object:Gem::Requirement
73
66
  none: false
74
- requirements:
67
+ requirements:
75
68
  - - ~>
76
- - !ruby/object:Gem::Version
77
- hash: 41
78
- segments:
79
- - 0
80
- - 9
81
- - 9
69
+ - !ruby/object:Gem::Version
82
70
  version: 0.9.9
83
71
  type: :development
84
- version_requirements: *id004
85
- - !ruby/object:Gem::Dependency
86
- name: ruby-debug
87
72
  prerelease: false
88
- requirement: &id005 !ruby/object:Gem::Requirement
73
+ version_requirements: !ruby/object:Gem::Requirement
89
74
  none: false
90
- requirements:
75
+ requirements:
91
76
  - - ~>
92
- - !ruby/object:Gem::Version
93
- hash: 63
94
- segments:
95
- - 0
96
- - 10
97
- - 4
98
- version: 0.10.4
77
+ - !ruby/object:Gem::Version
78
+ version: 0.9.9
79
+ - !ruby/object:Gem::Dependency
80
+ name: ruby-debug19
81
+ requirement: !ruby/object:Gem::Requirement
82
+ none: false
83
+ requirements:
84
+ - - ~>
85
+ - !ruby/object:Gem::Version
86
+ version: 0.11.6
99
87
  type: :development
100
- version_requirements: *id005
101
- description: |-
102
- Ruby-GPGME is a Ruby language binding of GPGME (GnuPG
88
+ prerelease: false
89
+ version_requirements: !ruby/object:Gem::Requirement
90
+ none: false
91
+ requirements:
92
+ - - ~>
93
+ - !ruby/object:Gem::Version
94
+ version: 0.11.6
95
+ description: ! 'Ruby-GPGME is a Ruby language binding of GPGME (GnuPG
96
+
103
97
  Made Easy). GnuPG Made Easy (GPGME) is a library designed to make access to
98
+
104
99
  GnuPG easier for applications. It provides a High-Level Crypto API for
105
- encryption, decryption, signing, signature verification and key management.
106
- email: ueno@unixuser.org
107
- executables: []
108
100
 
109
- extensions:
101
+ encryption, decryption, signing, signature verification and key management.'
102
+ email: ueno@gnu.org
103
+ executables: []
104
+ extensions:
110
105
  - ext/gpgme/extconf.rb
111
106
  extra_rdoc_files: []
112
-
113
- files:
107
+ files:
114
108
  - lib/gpgme.rb
115
- - lib/gpgme/sub_key.rb
109
+ - lib/gpgme/error.rb
116
110
  - lib/gpgme/version.rb
117
- - lib/gpgme/key.rb
118
- - lib/gpgme/key_sig.rb
119
- - lib/gpgme/engine.rb
120
- - lib/gpgme/ctx.rb
121
111
  - lib/gpgme/signature.rb
122
- - lib/gpgme/io_callbacks.rb
112
+ - lib/gpgme/engine.rb
113
+ - lib/gpgme/key.rb
123
114
  - lib/gpgme/misc.rb
124
115
  - lib/gpgme/data.rb
116
+ - lib/gpgme/io_callbacks.rb
117
+ - lib/gpgme/key_sig.rb
125
118
  - lib/gpgme/constants.rb
126
- - lib/gpgme/crypto.rb
119
+ - lib/gpgme/sub_key.rb
127
120
  - lib/gpgme/compat.rb
128
121
  - lib/gpgme/key_common.rb
122
+ - lib/gpgme/ctx.rb
123
+ - lib/gpgme/crypto.rb
129
124
  - lib/gpgme/user_id.rb
130
- - lib/gpgme/error.rb
131
- - ext/gpgme/extconf.rb
125
+ - ext/gpgme/libassuan-2.1.0.tar.bz2
132
126
  - ext/gpgme/gpgme_n.c
133
- - ext/gpgme/libgpg-error-1.10.tar.bz2
134
- - ext/gpgme/libassuan-2.0.2.tar.bz2
135
- - ext/gpgme/gpgme-1.3.1.tar.bz2
136
- - test/crypto_test.rb
137
- - test/test_helper.rb
138
- - test/gpgme_test.rb
127
+ - ext/gpgme/extconf.rb
128
+ - ext/gpgme/libgpg-error-1.11.tar.gz
129
+ - ext/gpgme/libgpg-error-1.11.tar.bz2
130
+ - ext/gpgme/gpgme-1.4.0.tar.bz2
139
131
  - test/key_test.rb
140
- - test/files/testkey_pub.gpg
141
- - test/files/testkey_sec.gpg
132
+ - test/sub_key_test.rb
133
+ - test/test_helper.rb
142
134
  - test/data_test.rb
135
+ - test/crypto_test.rb
136
+ - test/gpgme_test.rb
143
137
  - test/signature_test.rb
144
138
  - test/support/resources.rb
145
- - test/sub_key_test.rb
146
139
  - test/ctx_test.rb
140
+ - test/files/testkey_sec.gpg
141
+ - test/files/testkey_pub.gpg
142
+ - examples/sign.rb
143
+ - examples/roundtrip.rb
147
144
  - examples/verify.rb
145
+ - examples/genkey.rb
148
146
  - examples/keylist.rb
149
147
  - examples/edit.rb
150
- - examples/roundtrip.rb
151
- - examples/sign.rb
152
- - examples/genkey.rb
153
148
  homepage: http://github.com/ueno/ruby-gpgme
154
149
  licenses: []
155
-
156
150
  post_install_message:
157
151
  rdoc_options: []
158
-
159
- require_paths:
152
+ require_paths:
160
153
  - lib
161
154
  - ext
162
- required_ruby_version: !ruby/object:Gem::Requirement
155
+ required_ruby_version: !ruby/object:Gem::Requirement
163
156
  none: false
164
- requirements:
165
- - - ">="
166
- - !ruby/object:Gem::Version
167
- hash: 3
168
- segments:
169
- - 0
170
- version: "0"
171
- required_rubygems_version: !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ! '>='
159
+ - !ruby/object:Gem::Version
160
+ version: '0'
161
+ required_rubygems_version: !ruby/object:Gem::Requirement
172
162
  none: false
173
- requirements:
174
- - - ">="
175
- - !ruby/object:Gem::Version
176
- hash: 3
177
- segments:
178
- - 0
179
- version: "0"
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
180
167
  requirements: []
181
-
182
168
  rubyforge_project: ruby-gpgme
183
- rubygems_version: 1.8.11
169
+ rubygems_version: 1.8.25
184
170
  signing_key:
185
171
  specification_version: 3
186
172
  summary: Ruby binding of GPGME.
187
173
  test_files: []
188
-