RR3036 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b15aec9fea0dc2dc8a66ce9b4bc952bd303ce80a
4
- data.tar.gz: 6eeb7c6c02a7e5577191ccc6d95e7ae5d3a1c6d5
3
+ metadata.gz: 31a913069dc18c06ac3179680a7262fa7ee17bfd
4
+ data.tar.gz: e1a2fa6d04e9368beccad359f1eda5cca74d3843
5
5
  SHA512:
6
- metadata.gz: 7d94b8cab1303c5550cbb09580794b693242058ba1af688338dfe80dc19dc7ae0c8669ad2e139b22c3ec1413c30390efa292eca1fe53b6267c6448ac303c1d09
7
- data.tar.gz: f1ce04ed216c361171274fce11bfde760a5f4c4d230d3e35e595754989c965bcf7ff68c46d250e506dab5128bd005990a9e1658110c8a7809c04716487c72b08
6
+ metadata.gz: d4d50361bca8ec25ec37746843140da32763ea9522a79ded281cf9a4408e95281607a6cb1912f28ddd819010c0026590901da1ed3fdbec7c90d25b05739ff91b
7
+ data.tar.gz: a703f62ad74fd1b9dec7d788c0a09fe8a1e0c6d4e54534a48e44a102e4f3bd111a7c83dc28bafce767ac428f8412a3d46bf0ada3b5b69b77f8b9ef40a3405946
@@ -109,7 +109,7 @@ module RR3036
109
109
  response[:data] = port.read(response[:len] - 4).bytes.pack('C*')
110
110
  response[:crc] = port.read(2).bytes.pack('C*')
111
111
  response[:crc_calc] = crc([response[:len], response[:addr], response[:status]] + response[:data].bytes).pack('C*')
112
- if response[:status] > 0 && !continue_on_errors.include?(response[:status])
112
+ if response[:status] > 0 && !options[:continue_on_errors].include?(response[:status])
113
113
  puts "Error: " << (ERROR_MSG[response[:status]][:msg].nil? ? 'UNKNOWN ERROR' : (ERROR_MSG[response[:status]][:msg] + ' ' + ERROR_MSG[response[:status]][:description]) + ' ' + response[:data].inspect) << (ERROR_MSG[response[:status]] && ERROR_MSG[response[:status]][:further_descriptions] && !response[:data].empty? && ERROR_MSG[response[:status]][:further_descriptions][response[:data]] ? ERROR_MSG[response[:status]][:further_descriptions][response[:data]] : '')
114
114
  end
115
115
  if response[:crc] != response[:crc_calc] && !options[:dont_report_crc_failures]
@@ -145,11 +145,11 @@ module RR3036
145
145
  tags << {:block_data => [], :block_security_flag => [], :dsfid => dsfid, :uid => uid}
146
146
  end
147
147
  if tags.empty?
148
- continue
148
+ next
149
149
  else
150
150
  puts "Please select a tag:"
151
151
  tag = tags[gets.strip.to_i]
152
- continue if tag.nil?
152
+ next if tag.nil?
153
153
  end
154
154
 
155
155
  info = iso15693_tag_info(:data => tag[:uid])
@@ -1,3 +1,3 @@
1
1
  module RR3036
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: RR3036
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Willuweit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-05 00:00:00.000000000 Z
11
+ date: 2014-05-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: serialport
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: RR3036 RFID (ISO/IEC 15693, ISO/IEC 14443A+B) connector written in Ruby.
@@ -59,7 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
- - .gitignore
62
+ - ".gitignore"
63
63
  - Gemfile
64
64
  - LICENSE.txt
65
65
  - README.md
@@ -78,17 +78,17 @@ require_paths:
78
78
  - lib
79
79
  required_ruby_version: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '>='
81
+ - - ">="
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  required_rubygems_version: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  requirements: []
90
90
  rubyforge_project:
91
- rubygems_version: 2.1.9
91
+ rubygems_version: 2.2.2
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: RR3036 RFID (ISO/IEC 15693, ISO/IEC 14443A+B) reader/writer written in Ruby.