octopus_auth 0.1.0.rc6 → 0.1.0

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
  SHA256:
3
- metadata.gz: d07073c693441a5791ca40ecf310e7f5d7e8b54da5ba9ae883383b9ef9fb86ce
4
- data.tar.gz: b0553dddc167558f3017e6617830120cd23088ba9158db8919a940e460e22af4
3
+ metadata.gz: 22ad32580ab09d2547713decfdbb931a19211a58a8b9459cf821fba7fac1a171
4
+ data.tar.gz: 1e92ebcbf73cfd2d1572137205a5a0159928699ca2cff07dcb74d6cb6ed0c3f4
5
5
  SHA512:
6
- metadata.gz: c7703a3b271ff4cd4d5970ab9310735bdb917dc466a9ff99ead42ca1f4d91ed01cc3bd73047ad5938e1eaee7d565190bc0637d8066cd839f92a5a04b40034da3
7
- data.tar.gz: 98ebfae099a0afb4dcebcf5bd7b6c8ce5df8164a56aadb0fffcd7db4a38b463952e81a7fd8d220b187ade8fb41c956f18a87b80e4d616052c82ee47489ebc1bc
6
+ metadata.gz: e7e83cf01853b8c1a7285a21ef17a5850f09c4127d645ce6acb63559dd8c83cc0ff5330a16d6eabce9413435e996e1767311e152bb8c77dfc78190cf5cc6e581
7
+ data.tar.gz: 994a3cb6104aa16ce17475641ed5ab65053b7fe39069d5e9a2522eb9cde5aa408725bb510019250890ad1ca1e50620f9cd5b368e750dfc4b15590f8d87d8cfb2
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- octopus_auth (0.1.0.rc6)
4
+ octopus_auth (0.1.0)
5
5
  activerecord (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -13,7 +13,7 @@ module OctopusAuth
13
13
  access_token = OctopusAuth.configuration.model_class.new
14
14
 
15
15
  # Set attributes
16
- access_token.issued_at = Time.current
16
+ access_token.issued_at = Time.now.utc
17
17
  access_token.expires_at = access_token.issued_at + OctopusAuth.configuration.token_life_time
18
18
  access_token.active = true
19
19
 
@@ -9,7 +9,7 @@ module OctopusAuth
9
9
  end
10
10
 
11
11
  def execute
12
- @access_token.expired_at = Time.current
12
+ @access_token.expired_at = Time.now.utc
13
13
  @access_token.active = false
14
14
 
15
15
  @access_token.save!
@@ -1,3 +1,5 @@
1
+ require 'securerandom'
2
+
1
3
  module OctopusAuth
2
4
  class TokenGenerator
3
5
  class << self
@@ -1,3 +1,3 @@
1
1
  module OctopusAuth
2
- VERSION = "0.1.0.rc6"
2
+ VERSION = "0.1.0"
3
3
  end
data/octopus_auth.gemspec CHANGED
@@ -39,4 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency "pry-byebug"
40
40
 
41
41
  spec.add_dependency "activerecord", ">= 3.0.0"
42
+
43
+ spec.required_ruby_version = '>= 2.0.0'
42
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: octopus_auth
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.rc6
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - TINYpulse Devops
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -129,12 +129,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  requirements:
130
130
  - - ">="
131
131
  - !ruby/object:Gem::Version
132
- version: '0'
132
+ version: 2.0.0
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  requirements:
135
- - - ">"
135
+ - - ">="
136
136
  - !ruby/object:Gem::Version
137
- version: 1.3.1
137
+ version: '0'
138
138
  requirements: []
139
139
  rubyforge_project:
140
140
  rubygems_version: 2.7.7