smartcard 0.2.2-mswin32 → 0.2.3-mswin32

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.2.3 Fixed minor bug in error string for PCSC::Card.transmit
2
+
1
3
  v0.2.2 Fixed APDU exchange bugs on Windows
2
4
  Restructured PCSC::IoRequest to allow PCI_ consts
3
5
  Added PCI_ consts
data/LICENSE CHANGED
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
19
  LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
20
  OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
21
  THE SOFTWARE.
22
-
@@ -287,7 +287,7 @@ static VALUE PCSC_Card_transmit(VALUE self, VALUE rbSendData, VALUE rbSendIoRequ
287
287
  return Qnil;
288
288
  }
289
289
  if(_PCSC_IoRequest_lowlevel_get(rbRecvIoRequest, &recv_io_request) == 0) {
290
- rb_raise(rb_eArgError, "second argument (recv io request) is not an IoRequest instance");
290
+ rb_raise(rb_eArgError, "third argument (recv io request) is not an IoRequest instance");
291
291
  return Qnil;
292
292
  }
293
293
 
@@ -106,7 +106,7 @@ void Init_PCSC_IoRequest() {
106
106
  int _PCSC_IoRequest_lowlevel_get(VALUE rbIoRequest, SCARD_IO_REQUEST **io_request) {
107
107
  struct SCardIoRequestEx *request;
108
108
 
109
- if(TYPE(rbIoRequest) == T_NIL || TYPE(rbIoRequest) == T_FALSE) {
109
+ if(!RTEST(rbIoRequest)) {
110
110
  *io_request = NULL;
111
111
  return 1;
112
112
  }
@@ -311,7 +311,7 @@ void Init_PCSC_ReaderStates() {
311
311
  int _PCSC_ReaderStates_lowlevel_get(VALUE rbReaderStates, SCARD_READERSTATE **reader_states, size_t *reader_states_count) {
312
312
  struct PCSCReaderStates *states;
313
313
 
314
- if(TYPE(rbReaderStates) == T_NIL || TYPE(rbReaderStates) == T_FALSE) {
314
+ if(!RTEST(rbReaderStates)) {
315
315
  *reader_states = NULL;
316
316
  *reader_states_count = 0;
317
317
  return 1;
Binary file
data/smartcard.gemspec CHANGED
@@ -1,26 +1,21 @@
1
1
 
2
- # Gem::Specification for Smartcard-0.2.2
2
+ # Gem::Specification for Smartcard-0.2.3
3
3
  # Originally generated by Echoe
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = %q{smartcard}
7
- s.version = "0.2.2"
8
- s.platform = %q{mswin32}
9
-
10
- s.specification_version = 2 if s.respond_to? :specification_version=
11
-
12
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
13
- s.authors = ["Victor Costan"]
14
- s.date = %q{2007-12-03}
15
- s.description = %q{Interface with ISO 7816 smart cards.}
7
+ s.version = "0.2.3"
8
+ s.date = %q{2008-01-10}
9
+ s.summary = %q{Interface with ISO 7816 smart cards.}
10
+ s.require_paths = ["lib", "ext"]
16
11
  s.email = %q{victor@costan.us}
17
- s.files = ["CHANGELOG", "ext/smartcard_pcsc/extconf.rb", "ext/smartcard_pcsc/pcsc.h", "ext/smartcard_pcsc/pcsc_card.c", "ext/smartcard_pcsc/pcsc_constants.c", "ext/smartcard_pcsc/pcsc_context.c", "ext/smartcard_pcsc/pcsc_io_request.c", "ext/smartcard_pcsc/pcsc_main.c", "ext/smartcard_pcsc/pcsc_multi_strings.c", "ext/smartcard_pcsc/pcsc_namespace.c", "ext/smartcard_pcsc/pcsc_reader_states.c", "ext/smartcard_pcsc/pcsc_surrogate_reader.h", "ext/smartcard_pcsc/pcsc_surrogate_wintypes.h", "lib/smartcard.rb", "LICENSE", "README", "test/test_all.rb", "tests/ts_pcsc_ext.rb", "Manifest", "smartcard.gemspec", "lib/smartcard/pcsc.so"]
18
- s.has_rdoc = true
19
12
  s.homepage = %q{http://www.costan.us/smartcard}
20
- s.require_paths = ["lib", "ext"]
21
13
  s.rubyforge_project = %q{smartcard}
22
- s.rubygems_version = %q{0.9.5}
23
- s.summary = %q{Interface with ISO 7816 smart cards.}
14
+ s.description = %q{Interface with ISO 7816 smart cards.}
15
+ s.has_rdoc = true
16
+ s.platform = %q{mswin32}
17
+ s.authors = ["Victor Costan"]
18
+ s.files = ["CHANGELOG", "ext/smartcard_pcsc/extconf.rb", "ext/smartcard_pcsc/pcsc.h", "ext/smartcard_pcsc/pcsc_card.c", "ext/smartcard_pcsc/pcsc_constants.c", "ext/smartcard_pcsc/pcsc_context.c", "ext/smartcard_pcsc/pcsc_io_request.c", "ext/smartcard_pcsc/pcsc_main.c", "ext/smartcard_pcsc/pcsc_multi_strings.c", "ext/smartcard_pcsc/pcsc_namespace.c", "ext/smartcard_pcsc/pcsc_reader_states.c", "ext/smartcard_pcsc/pcsc_surrogate_reader.h", "ext/smartcard_pcsc/pcsc_surrogate_wintypes.h", "lib/smartcard.rb", "LICENSE", "README", "test/test_all.rb", "tests/ts_pcsc_ext.rb", "Manifest", "smartcard.gemspec", "lib/smartcard/pcsc.so"]
24
19
  s.test_files = ["test/test_all.rb"]
25
20
  end
26
21
 
@@ -62,4 +57,4 @@ end
62
57
  # if $0 == __FILE__
63
58
  # Rake.application = Rake::Application.new
64
59
  # Rake.application.run
65
- # end
60
+ # end
metadata CHANGED
@@ -1,26 +1,34 @@
1
1
  --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.4
3
+ specification_version: 1
2
4
  name: smartcard
3
5
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
6
+ version: 0.2.3
7
+ date: 2008-01-10 00:00:00 -05:00
8
+ summary: Interface with ISO 7816 smart cards.
9
+ require_paths:
10
+ - lib
11
+ - ext
12
+ email: victor@costan.us
13
+ homepage: http://www.costan.us/smartcard
14
+ rubyforge_project: smartcard
15
+ description: Interface with ISO 7816 smart cards.
16
+ autorequire:
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ - - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
5
26
  platform: mswin32
27
+ signing_key:
28
+ cert_chain:
29
+ post_install_message:
6
30
  authors:
7
31
  - Victor Costan
8
- autorequire:
9
- bindir: bin
10
- cert_chain: []
11
-
12
- date: 2007-12-03 00:00:00 -05:00
13
- default_executable:
14
- dependencies: []
15
-
16
- description: Interface with ISO 7816 smart cards.
17
- email: victor@costan.us
18
- executables: []
19
-
20
- extensions: []
21
-
22
- extra_rdoc_files: []
23
-
24
32
  files:
25
33
  - CHANGELOG
26
34
  - ext/smartcard_pcsc/extconf.rb
@@ -43,32 +51,17 @@ files:
43
51
  - Manifest
44
52
  - smartcard.gemspec
45
53
  - lib/smartcard/pcsc.so
46
- has_rdoc: true
47
- homepage: http://www.costan.us/smartcard
48
- post_install_message:
54
+ test_files:
55
+ - test/test_all.rb
49
56
  rdoc_options: []
50
57
 
51
- require_paths:
52
- - lib
53
- - ext
54
- required_ruby_version: !ruby/object:Gem::Requirement
55
- requirements:
56
- - - ">="
57
- - !ruby/object:Gem::Version
58
- version: "0"
59
- version:
60
- required_rubygems_version: !ruby/object:Gem::Requirement
61
- requirements:
62
- - - ">="
63
- - !ruby/object:Gem::Version
64
- version: "0"
65
- version:
58
+ extra_rdoc_files: []
59
+
60
+ executables: []
61
+
62
+ extensions: []
63
+
66
64
  requirements: []
67
65
 
68
- rubyforge_project: smartcard
69
- rubygems_version: 0.9.5
70
- signing_key:
71
- specification_version: 2
72
- summary: Interface with ISO 7816 smart cards.
73
- test_files:
74
- - test/test_all.rb
66
+ dependencies: []
67
+