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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f65371dc5c676a809ec0481fee24ed3b044acb12
4
- data.tar.gz: b44a22b1b0e222ddd183d8dc76fbf9acaad74438
3
+ metadata.gz: efd4ffddc4c56f959d564beee5edd26f0626cc74
4
+ data.tar.gz: 4b1d78112650b78e268d2ccd5e0135709ff2afab
5
5
  SHA512:
6
- metadata.gz: ad49ada87e761639a55ae16752b476f68e636dd928409b751fdc9fe7dbe764d7f98493d56d2c149ae6e01bb0f4cb0ffe2b6d3e78210be69a678a22e78f54c580
7
- data.tar.gz: 31d59e657ca027f7c315a3ea54202378e04479759a709f049228b4b4da5e00cad62ce42293aeb4d9e6bbe971d500f642c4e1bd5bc09cc3f7bd164004c367bfa3
6
+ metadata.gz: 97fa0ef0ad99603a97224e1cf818795b309885052eaa89a9cfc52094f38540112e3535b4bef4432e3d14118ec4dc02ad48a6df56ac702188933b58ae50985e15
7
+ data.tar.gz: 7c93596822a0a89e8b4dd1232d29676d1fdbd42b751e9cc489fe71e1385630929480a665667d3dcdb9b0ef43bda6c8ce5b39f0fe8b0d2cca758fd2319804e346
@@ -15,7 +15,7 @@ class YubiOATH
15
15
 
16
16
  response[:codes].map do |code|
17
17
  [code.name, {
18
- type: TYPES.key(code.type),
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 :type
35
+ bit4 :oath_type
36
36
  bit4 :algorithm
37
37
  string :name, read_length: -> { name_length - 1 }
38
38
  end
@@ -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
- type: TYPES.fetch(type),
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 :type
40
+ bit4 :oath_type
41
41
  bit4 :algorithm
42
42
  uint8 :digits
43
43
  string :secret
@@ -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.0'
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.0
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: 2016-06-19 00:00:00.000000000 Z
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.1
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