nfclib 0.0.142 → 0.0.143

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/nfc.rb +3 -0
  3. data/nfclib.gemspec +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 110443dc50330b12a5bd6ea870dcba6361da0680
4
- data.tar.gz: 9ed2bc53e894d3665e00feb0bf7bc3e1476fafdf
3
+ metadata.gz: e5bdbe0a99ff94ab8ea636e1f49821b136346df3
4
+ data.tar.gz: 2c3c70aac9fea5839f3f287952eddefb3b965891
5
5
  SHA512:
6
- metadata.gz: 926a76795af1f5185d2034eae5b589a14d7aef788055c8bcfe093bdd3730b2efa31c17fd90432bbbacf79fb768951fa99b57341e42a33f23f4a2980274c5ec2a
7
- data.tar.gz: 0c1825ce1c006f06680b070302c3a2b6891657fb7c6fe8fbf7a5d03f4dd943cc335590a9b46fd58fcf1cfa591735d977f9bade35cd4e2d82f0c343315d6da1b1
6
+ metadata.gz: 26823e331be72e177df933fac81f106f7b49d44d59c384da613267d6c7e9a94e639b1eb34c78e7ecd6ac8d5d8d57b2a9106204b2989294f870c27c2e29cf21b9
7
+ data.tar.gz: 27e4dd173efd2fa975e41b1a4f127f93ec7aa24bddc311e79db700be4abdca579f9d3163ac5f5e470ec613767abbbfbfe0f0d08524682f4a0503073e7a65105a
data/lib/nfc.rb CHANGED
@@ -42,6 +42,9 @@ module NFC
42
42
  @res = res.unpack("C*")
43
43
  end
44
44
 
45
+ def char
46
+ @res.map{|e| e.chr}.join(' ')
47
+ end
45
48
  def hex
46
49
  # @res.map{|e| e.to_s(16) }
47
50
  @res.map{|e| "%02x" % e }.join(' ')
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'nfclib'
3
- s.version = '0.0.142'
3
+ s.version = '0.0.143'
4
4
  s.date = '2014-08-05'
5
5
  s.summary ="NFC-Reader Library."
6
6
  s.description ="Executes command and gets results in c, everthing else ruby-yo"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nfclib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.142
4
+ version: 0.0.143
5
5
  platform: ruby
6
6
  authors:
7
7
  - Florian Stertz