smartcard 0.4.4 → 0.4.5

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.4.5. More bugfixes in JcopRemoteTransport's ATR forwarding logic.
2
+
1
3
  v0.4.4. Bugfixes in JcopRemoteTransport's ATR forwarding logic.
2
4
 
3
5
  v0.4.3. Fixed gem manifest to state dependency on rubyzip.
@@ -58,7 +58,7 @@ class JcopRemoteTransport
58
58
  # Wait for the card to be inserted.
59
59
  send_message @socket, :type => 0, :node => 0, :data => [0, 1, 0, 0]
60
60
  message = recv_message @socket
61
- @atr = message[:data]
61
+ @atr = message[:data].pack('C*')
62
62
  rescue Exception
63
63
  @socket = nil
64
64
  raise
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{smartcard}
5
- s.version = "0.4.4"
5
+ s.version = "0.4.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
@@ -68,7 +68,7 @@ class JcopRemoteTest < Test::Unit::TestCase
68
68
  Kernel.sleep 0.05 # Wait for the server to start up.
69
69
  @client.connect
70
70
  assert_equal apdu_response, @client.exchange_apdu(apdu_request)
71
- assert_equal [0x31, 0x41, 0x59], @client.card_atr
71
+ assert_equal "\x31\x41\x59", @client.card_atr
72
72
  @client.disconnect
73
73
  Kernel.sleep 0.05 # Wait for the server to process the disconnect.
74
74
  assert_equal [:start, apdu_request, :end], logic.received
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: smartcard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan