current_session 0.1.2 → 0.1.3

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: bc8d88a50edf84f089619f518ebcb2c0f35c1edbb12f05f346336315d4d644fc
4
- data.tar.gz: fab046b1e5004c9c535bacf964b1c8856e3638b51501e9790fcc450b7e9efa40
3
+ metadata.gz: b1b39dda8338daaeb45ccebe39f01c23931d9387685619750a65c0a1acc7f6cb
4
+ data.tar.gz: 8214ca0c3d15c9d8cb27a963ba41e5e7cd71375c1e2d24ea616972b3beeed193
5
5
  SHA512:
6
- metadata.gz: 5497b4846b959a83e4cc4307ee5dec9fc543f2d250f734df83792cc02fa7290fa24897fae4bb8f50010bab1c8f5d110a5a4a4c1f60f839f20626b379ac1c53ff
7
- data.tar.gz: e1c9db3b0bbd17629e9d35f7d2c830f3fe31f7330b6114353ccbe9d58836b0c9e9e8e0d006c7e21bc8c349f36d220baa54e01b7baf80e02ecad79e4e521dedc5
6
+ metadata.gz: 0e1e74c3e85d3806e3d8235f396f67d5132a7ff3ba49bd384d3a0bb316073ec9d17bf3f546a92754c0beceb43b08740532ec75a4a25a32c8cc9f835fcec29f7f
7
+ data.tar.gz: 3c0f7bba4344ab4be82509930173accd0b76712ee07b3dbb8018f788a22304d467c27478aa9ca7691ebecb794f7783cf835cecf8b9ed90f6bcdb005cc8e2df2e
data/Gemfile.lock CHANGED
@@ -1,18 +1,18 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- current_session (0.1.0)
5
- activesupport
4
+ current_session (0.1.3)
5
+ activesupport (>= 6.0.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
- activemodel (7.0.3.1)
11
- activesupport (= 7.0.3.1)
12
- activerecord (7.0.3.1)
13
- activemodel (= 7.0.3.1)
14
- activesupport (= 7.0.3.1)
15
- activesupport (7.0.3.1)
10
+ activemodel (7.0.4)
11
+ activesupport (= 7.0.4)
12
+ activerecord (7.0.4)
13
+ activemodel (= 7.0.4)
14
+ activesupport (= 7.0.4)
15
+ activesupport (7.0.4)
16
16
  concurrent-ruby (~> 1.0, >= 1.0.2)
17
17
  i18n (>= 1.6, < 2)
18
18
  minitest (>= 5.1)
@@ -39,12 +39,12 @@ GEM
39
39
  pry (0.14.1)
40
40
  coderay (~> 1.1)
41
41
  method_source (~> 1.0)
42
- rack (2.2.4)
43
- rack-protection (2.2.2)
42
+ rack (3.0.0)
43
+ rack-protection (3.0.1)
44
44
  rack
45
45
  rainbow (3.1.1)
46
46
  rake (13.0.6)
47
- regexp_parser (2.5.0)
47
+ regexp_parser (2.6.0)
48
48
  rexml (3.2.5)
49
49
  rspec (3.11.0)
50
50
  rspec-core (~> 3.11.0)
@@ -52,14 +52,14 @@ GEM
52
52
  rspec-mocks (~> 3.11.0)
53
53
  rspec-core (3.11.0)
54
54
  rspec-support (~> 3.11.0)
55
- rspec-expectations (3.11.0)
55
+ rspec-expectations (3.11.1)
56
56
  diff-lcs (>= 1.2.0, < 2.0)
57
57
  rspec-support (~> 3.11.0)
58
58
  rspec-mocks (3.11.1)
59
59
  diff-lcs (>= 1.2.0, < 2.0)
60
60
  rspec-support (~> 3.11.0)
61
- rspec-support (3.11.0)
62
- rubocop (1.35.1)
61
+ rspec-support (3.11.1)
62
+ rubocop (1.36.0)
63
63
  json (~> 2.3)
64
64
  parallel (~> 1.10)
65
65
  parser (>= 3.1.2.1)
@@ -78,10 +78,10 @@ GEM
78
78
  simplecov_json_formatter (~> 0.1)
79
79
  simplecov-html (0.12.3)
80
80
  simplecov_json_formatter (0.1.4)
81
- sqlite3 (1.4.4)
81
+ sqlite3 (1.5.1-arm64-darwin)
82
82
  tzinfo (2.0.5)
83
83
  concurrent-ruby (~> 1.0)
84
- unicode-display_width (2.2.0)
84
+ unicode-display_width (2.3.0)
85
85
 
86
86
  PLATFORMS
87
87
  arm64-darwin-20
@@ -27,8 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
28
28
  spec.require_paths = ["lib"]
29
29
 
30
- # Uncomment to register a new dependency of your gem
31
- spec.add_runtime_dependency "activesupport"
30
+ spec.add_runtime_dependency "activesupport", ">= 6.0.0"
32
31
 
33
32
  # For more information and examples about making a new gem, checkout our
34
33
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -21,9 +21,12 @@ module CurrentSession
21
21
  end
22
22
 
23
23
  def session_methods(&block)
24
- session_methods = Module.new(&block)
25
- const_set(:SessionMethods, session_methods)
26
- @session_repository_class = Class.new(CurrentSession::Repository) { include session_methods }
24
+ if block
25
+ session_methods = Module.new(&block)
26
+ @session_repository_class = Class.new(CurrentSession::Repository) { include session_methods }
27
+ else
28
+ @session_repository_class
29
+ end
27
30
  end
28
31
 
29
32
  def auth_methods=(auth_methods_module)
@@ -31,9 +34,12 @@ module CurrentSession
31
34
  end
32
35
 
33
36
  def auth_methods(&block)
34
- auth_methods = Module.new(&block)
35
- const_set(:AuthMethods, auth_methods)
36
- @auth_class = Class.new(CurrentSession::Auth) { include auth_methods }
37
+ if block
38
+ auth_methods = Module.new(&block)
39
+ @auth_class = Class.new(CurrentSession::Auth) { include auth_methods }
40
+ else
41
+ @auth_class
42
+ end
37
43
  end
38
44
  end
39
45
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module CurrentSession
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: current_session
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masa (Aileron inc)
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-06 00:00:00.000000000 Z
11
+ date: 2022-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: 6.0.0
20
20
  type: :runtime
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: '0'
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activerecord
29
29
  requirement: !ruby/object:Gem::Requirement