iprog_otp_generator 0.1.5 → 0.1.7

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
  SHA256:
3
- metadata.gz: 3a91444161f7ec5fb2f68c05103f7925d65e43a9de641e935a9eadef2255af21
4
- data.tar.gz: 1a23246c085000fde153945ed5da2913c9a4f88573633bd9b04b1fd2d5a21649
3
+ metadata.gz: 917b63e25795679bdfa4746819e055d8460c00c995f48a98dcf5391ac14e6f65
4
+ data.tar.gz: d904ebab398829de90f5e51c4b57b7569185a9552de48fcc69498b8d26063b61
5
5
  SHA512:
6
- metadata.gz: f7977775e044069fc7ab5d7fc9fe44750e460aa4e58e81d1cb0776f5a8ebeba4c6d9cc65104da682fc48c9e0c6b37cac1d008c3d1fa2e72a45b5dbc7dde38cb5
7
- data.tar.gz: 2ceb3e490a9b41101c4d563c8da98ed48ad49f6c38008ffe3add62623a6a2f015b316c04c10b79401fdcdafc66fcc7d2a6d57ced94cacf26e6cec87dee5eb334
6
+ metadata.gz: 8610b95b8da7aeca0312183e08d08001448a2a1f9c841609d0c0e0bac542bdc3b0aee20d48715fd9b9df4cffb3ad854b029636ff4d7d1b0cb9d54516e0e08450
7
+ data.tar.gz: dc2ff43c8a64d0ab8ce6ea114e0c27617f67b1210e0298f7fc039f69bcd3ade1d0c2c3a63cc3e4b4283a3c08c778adf56cc95349d9363c144b623e6950a1b48d
@@ -1,4 +1,5 @@
1
1
  # frozen_string_literal: true
2
+ require 'rails/generators'
2
3
 
3
4
  module IprogOtpGenerator
4
5
  module Generators
@@ -19,7 +20,7 @@ module IprogOtpGenerator
19
20
 
20
21
  private
21
22
  def migration_version
22
- if Rails.version.start_with?("5") || Rails.version.start_with("6")
23
+ if Rails::VERSION::MAJOR >= 5
23
24
  "[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
24
25
  end
25
26
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module IprogOtpGenerator
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iprog_otp_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jayson Presto
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rails
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '5.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '5.0'
41
55
  description: This gem allows ActiveRecord models to generate, validate, and clear
42
56
  OTP codes with an expiration time.
43
57
  email: