yubioath 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/yubioath/list.rb +2 -2
- data/lib/yubioath/put.rb +2 -2
- data/yubioath.gemspec +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: efd4ffddc4c56f959d564beee5edd26f0626cc74
|
4
|
+
data.tar.gz: 4b1d78112650b78e268d2ccd5e0135709ff2afab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 97fa0ef0ad99603a97224e1cf818795b309885052eaa89a9cfc52094f38540112e3535b4bef4432e3d14118ec4dc02ad48a6df56ac702188933b58ae50985e15
|
7
|
+
data.tar.gz: 7c93596822a0a89e8b4dd1232d29676d1fdbd42b751e9cc489fe71e1385630929480a665667d3dcdb9b0ef43bda6c8ce5b39f0fe8b0d2cca758fd2319804e346
|
data/lib/yubioath/list.rb
CHANGED
@@ -15,7 +15,7 @@ class YubiOATH
|
|
15
15
|
|
16
16
|
response[:codes].map do |code|
|
17
17
|
[code.name, {
|
18
|
-
type: TYPES.key(code.
|
18
|
+
type: TYPES.key(code.oath_type),
|
19
19
|
algorithm: ALGORITHMS.key(code.algorithm),
|
20
20
|
}]
|
21
21
|
end.to_h
|
@@ -32,7 +32,7 @@ class YubiOATH
|
|
32
32
|
array :codes, read_until: :eof do
|
33
33
|
uint8 :name_tag
|
34
34
|
uint8 :name_length
|
35
|
-
bit4 :
|
35
|
+
bit4 :oath_type
|
36
36
|
bit4 :algorithm
|
37
37
|
string :name, read_length: -> { name_length - 1 }
|
38
38
|
end
|
data/lib/yubioath/put.rb
CHANGED
@@ -12,7 +12,7 @@ class YubiOATH
|
|
12
12
|
def call(name:, secret:, algorithm:, type:, digits:)
|
13
13
|
data = Request::Data.new(
|
14
14
|
name: name,
|
15
|
-
|
15
|
+
oath_type: TYPES.fetch(type),
|
16
16
|
algorithm: ALGORITHMS.fetch(algorithm),
|
17
17
|
digits: digits,
|
18
18
|
secret: secret,
|
@@ -37,7 +37,7 @@ class YubiOATH
|
|
37
37
|
|
38
38
|
uint8 :key_tag, value: 0x73
|
39
39
|
uint8 :key_length, value: -> { secret.length + 2 }
|
40
|
-
bit4 :
|
40
|
+
bit4 :oath_type
|
41
41
|
bit4 :algorithm
|
42
42
|
uint8 :digits
|
43
43
|
string :secret
|
data/yubioath.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = 'yubioath'
|
7
|
-
spec.version = '1.2.
|
7
|
+
spec.version = '1.2.1'
|
8
8
|
spec.authors = ['James Ottaway']
|
9
9
|
spec.email = ['yubioath@james.ottaway.io']
|
10
10
|
spec.summary = 'A mostly-complete Ruby implementation of the YubiOATH applet protocol'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yubioath
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Ottaway
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bindata
|
@@ -69,7 +69,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
69
69
|
version: '0'
|
70
70
|
requirements: []
|
71
71
|
rubyforge_project:
|
72
|
-
rubygems_version: 2.5.
|
72
|
+
rubygems_version: 2.5.2
|
73
73
|
signing_key:
|
74
74
|
specification_version: 4
|
75
75
|
summary: A mostly-complete Ruby implementation of the YubiOATH applet protocol
|