rotp 2.1.1 → 2.1.2

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: 2725d64c9f5c1dd2c64165cced04357972e269c2
4
- data.tar.gz: 4396a34a9e33102c800cfcc7815db87fcf1c612a
3
+ metadata.gz: 249d6f491f01af9144f3e7e6573e40f5f6b33039
4
+ data.tar.gz: 21959028b9d02f4c112ef0f3a9e1573c935fcef3
5
5
  SHA512:
6
- metadata.gz: fb6e0c9f09dc0bb9a48d53dd883ad53be3ea63b1fe0abddf8370537ccd859d5826c6a95570dc4a647c4f8592ae9520e3bf5bd2f073beb3f82cc07274cc93de27
7
- data.tar.gz: 7af5f0b49b5b1de78dad69d89b4b52a4369f79304b8d48f47a9f760f46839705c6359d1af5475476d0d31b85614488f34a63ad0213134ba74f95998a8cb1f441
6
+ metadata.gz: 2b3b5ce10fb037701d5c73b1a1a095a9bd0186baf6cc29ba7e6fe20d1aabcf9b59444588969e1175da044ca1159529d1915722620101d65780c95d0a3b4bdbcd
7
+ data.tar.gz: 3f61abe5b65d0a8a180b7297c09f9654637a23a7e39446358dd7095e883ff5c65afce5f23420bfdaa29a0a6a04469013ab078b31ef4a003cf1140e697adca376
data/.dockerignore ADDED
@@ -0,0 +1 @@
1
+ Dockerfile*
data/.travis.yml CHANGED
@@ -1,7 +1,9 @@
1
1
  language: ruby
2
+ before_install: gem install bundler
2
3
  rvm:
4
+ - 2.3.0
3
5
  - 2.1.0
4
6
  - 2.0.0
5
7
  - 1.9.3
6
8
  script:
7
- - bundle exec rspec
9
+ - bundler exec rspec
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ### Changelog
2
2
 
3
+ #### 2.1.2
4
+
5
+ - Remove string literals to prepare immutable strings in Ruby 3.0
6
+
3
7
  #### 2.1.1
4
8
 
5
9
  - Reorder the params for Windows Phone Authenticator - #43
data/Dockerfile-1.9 ADDED
@@ -0,0 +1,15 @@
1
+ FROM ruby:1.9
2
+
3
+ # throw errors if Gemfile has been modified since Gemfile.lock
4
+ RUN bundle config --global frozen 1
5
+
6
+ RUN mkdir -p /usr/src/app
7
+ WORKDIR /usr/src/app
8
+
9
+ COPY Gemfile /usr/src/app/
10
+ COPY Gemfile.lock /usr/src/app/
11
+ COPY . /usr/src/app
12
+ RUN bundle install
13
+
14
+ CMD ["bundler", "exec", "rspec"]
15
+
data/Dockerfile-2.1 ADDED
@@ -0,0 +1,16 @@
1
+ FROM ruby:2.1
2
+
3
+ # throw errors if Gemfile has been modified since Gemfile.lock
4
+ RUN bundle config --global frozen 1
5
+
6
+ RUN mkdir -p /usr/src/app
7
+ WORKDIR /usr/src/app
8
+
9
+ COPY Gemfile /usr/src/app/
10
+ COPY Gemfile.lock /usr/src/app/
11
+ COPY . /usr/src/app
12
+ RUN bundle install
13
+
14
+
15
+ CMD ["bundler", "exec", "rspec"]
16
+
data/Dockerfile-2.3 ADDED
@@ -0,0 +1,16 @@
1
+ FROM ruby:2.3
2
+
3
+ # throw errors if Gemfile has been modified since Gemfile.lock
4
+ RUN bundle config --global frozen 1
5
+
6
+ RUN mkdir -p /usr/src/app
7
+ WORKDIR /usr/src/app
8
+
9
+ COPY Gemfile /usr/src/app/
10
+ COPY Gemfile.lock /usr/src/app/
11
+ COPY . /usr/src/app
12
+ RUN bundle install
13
+
14
+
15
+ CMD ["bundler", "exec", "rspec"]
16
+
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rotp (2.1.0)
4
+ rotp (2.1.2)
5
5
 
6
6
  GEM
7
7
  remote: http://rubygems.org/
@@ -68,8 +68,8 @@ PLATFORMS
68
68
  ruby
69
69
 
70
70
  DEPENDENCIES
71
- guard-rspec (~> 4.5.0)
72
- rake (~> 10.4.2)
71
+ guard-rspec (~> 4.5)
72
+ rake (~> 10.4)
73
73
  rotp!
74
- rspec (~> 3.1.0)
75
- timecop (~> 0.7.1)
74
+ rspec (~> 3.1)
75
+ timecop (~> 0.7)
data/lib/rotp/base32.rb CHANGED
@@ -14,7 +14,7 @@ module ROTP
14
14
  end
15
15
 
16
16
  def random_base32(length=16)
17
- b32 = ''
17
+ b32 = String.new
18
18
  OpenSSL::Random.random_bytes(length).each_byte do |b|
19
19
  b32 << CHARS[b % 32]
20
20
  end
data/lib/rotp/otp.rb CHANGED
@@ -67,7 +67,7 @@ module ROTP
67
67
 
68
68
  # A very simple param encoder
69
69
  def encode_params(uri, params)
70
- params_str = "?"
70
+ params_str = String.new("?")
71
71
  params.each do |k,v|
72
72
  if v
73
73
  params_str << "#{k}=#{CGI::escape(v.to_s)}&"
data/lib/rotp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module ROTP
2
- VERSION = "2.1.1"
2
+ VERSION = "2.1.2"
3
3
  end
data/rotp.gemspec CHANGED
@@ -1,6 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
- $:.push File.expand_path("../lib", __FILE__)
3
- require "rotp/version"
2
+ require "./lib/rotp/version"
4
3
 
5
4
  Gem::Specification.new do |s|
6
5
  s.name = "rotp"
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.1
4
+ version: 2.1.2
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-06-03 00:00:00.000000000 Z
11
+ date: 2016-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: guard-rspec
@@ -74,9 +74,13 @@ executables:
74
74
  extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
+ - ".dockerignore"
77
78
  - ".gitignore"
78
79
  - ".travis.yml"
79
80
  - CHANGELOG.md
81
+ - Dockerfile-1.9
82
+ - Dockerfile-2.1
83
+ - Dockerfile-2.3
80
84
  - Gemfile
81
85
  - Gemfile.lock
82
86
  - Guardfile
@@ -148,3 +152,4 @@ test_files:
148
152
  - spec/lib/rotp/hotp_spec.rb
149
153
  - spec/lib/rotp/totp_spec.rb
150
154
  - spec/spec_helper.rb
155
+ has_rdoc: