rotp 2.1.0 → 2.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: ab533788e10594ef3290782dba5f044b4f6d259e
4
- data.tar.gz: 39f4d7d06f29f05656374b5d2edef7d05f36fdd2
3
+ metadata.gz: 2725d64c9f5c1dd2c64165cced04357972e269c2
4
+ data.tar.gz: 4396a34a9e33102c800cfcc7815db87fcf1c612a
5
5
  SHA512:
6
- metadata.gz: cfb56d25e3520f7d5875ce8d5d0a3b3d0a22cce6bb1c2b727ca5b95522b8a00cefe5ab43fe01b7d08038db675a902270662156dcffd3a0ed6d40f6bbe3375a66
7
- data.tar.gz: a755331e53a9f06eb4627d820ec39db3092795dcd139c9e05dedaab7427e1c8c0ae1ae8c8fa21b23fdbb905c733206fb9decbc9d1ee36407abab2984d5f79c9c
6
+ metadata.gz: fb6e0c9f09dc0bb9a48d53dd883ad53be3ea63b1fe0abddf8370537ccd859d5826c6a95570dc4a647c4f8592ae9520e3bf5bd2f073beb3f82cc07274cc93de27
7
+ data.tar.gz: 7af5f0b49b5b1de78dad69d89b4b52a4369f79304b8d48f47a9f760f46839705c6359d1af5475476d0d31b85614488f34a63ad0213134ba74f95998a8cb1f441
@@ -1,5 +1,9 @@
1
1
  ### Changelog
2
2
 
3
+ #### 2.1.1
4
+
5
+ - Reorder the params for Windows Phone Authenticator - #43
6
+
3
7
  #### 2.1.0
4
8
 
5
9
  - Add a CLI for generating OTP's mdp/rotp/pull/35
data/README.md CHANGED
@@ -35,6 +35,12 @@ sleep 30
35
35
  totp.verify("492039") # => false
36
36
  ```
37
37
 
38
+ Optionally, you can provide an issuer which will be used as a title in Google Authenticator.
39
+
40
+ ```ruby
41
+ totp = ROTP::TOTP.new("base32secret3232", issuer: "My Service")
42
+ ```
43
+
38
44
  ### Counter based OTP's
39
45
 
40
46
  ```ruby
@@ -77,8 +77,6 @@ module ROTP
77
77
  uri + params_str
78
78
  end
79
79
 
80
- private
81
-
82
80
  # constant-time compare the strings
83
81
  def time_constant_compare(a, b)
84
82
  return false if a.empty? || b.empty? || a.bytesize != b.bytesize
@@ -54,7 +54,7 @@ module ROTP
54
54
  # @return [String] provisioning uri
55
55
  def provisioning_uri(name)
56
56
  encode_params("otpauth://totp/#{URI.encode(name)}",
57
- :period => (interval==30 ? nil : interval), :issuer => issuer, :secret => secret)
57
+ :secret => secret, :period => (interval==30 ? nil : interval), :issuer => issuer)
58
58
  end
59
59
 
60
60
  private
@@ -1,3 +1,3 @@
1
1
  module ROTP
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.1"
3
3
  end
@@ -20,8 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
21
21
  s.require_paths = ["lib"]
22
22
 
23
- s.add_development_dependency 'guard-rspec', '~> 4.5.0'
24
- s.add_development_dependency 'rake', '~> 10.4.2'
25
- s.add_development_dependency 'rspec', '~> 3.1.0'
26
- s.add_development_dependency 'timecop', '~> 0.7.1'
23
+ s.add_development_dependency 'guard-rspec', '~> 4.5'
24
+ s.add_development_dependency 'rake', '~> 10.4'
25
+ s.add_development_dependency 'rspec', '~> 3.1'
26
+ s.add_development_dependency 'timecop', '~> 0.7'
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rotp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Percival
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-26 00:00:00.000000000 Z
11
+ date: 2015-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard-rspec
@@ -16,56 +16,56 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 4.5.0
19
+ version: '4.5'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 4.5.0
26
+ version: '4.5'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 10.4.2
33
+ version: '10.4'
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
- version: 10.4.2
40
+ version: '10.4'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.1.0
47
+ version: '3.1'
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
- version: 3.1.0
54
+ version: '3.1'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: timecop
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.7.1
61
+ version: '0.7'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.7.1
68
+ version: '0.7'
69
69
  description: Works for both HOTP and TOTP, and includes QR Code provisioning
70
70
  email:
71
71
  - mark@markpercival.us
@@ -137,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  version: '0'
138
138
  requirements: []
139
139
  rubyforge_project: rotp
140
- rubygems_version: 2.4.5
140
+ rubygems_version: 2.2.2
141
141
  signing_key:
142
142
  specification_version: 4
143
143
  summary: A Ruby library for generating and verifying one time passwords