bearcat 1.5.12 → 1.5.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bearcat/client/logins.rb +20 -0
- data/lib/bearcat/spec_helpers.rb +2 -2
- data/lib/bearcat/version.rb +1 -1
- data/lib/bearcat.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceaadb0ee11707b80ad042e4f24cce3840f3662aa6c3417c5b1e1f3996609501
|
4
|
+
data.tar.gz: 7606bfbd859a7064a4231218a91a39333aaff215fefc8c861648cf79e356c263
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 241193bf0c64e0d969be73ec139bac31bbcb59a4464cebd772ec6831e2ed2120971a91099554144df42f4a3992a9ebd53b55ff2548b40f602d7cd4c2280980a4
|
7
|
+
data.tar.gz: 33b3e7feea387353f201f61bdb3e871f959b4cb713e71c0570a52e6fcce11f2824e36b8416a8d2cca322b4ac74836096646331869a212458e4ff6b2063b5263c
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Bearcat
|
2
|
+
class Client < Footrest::Client
|
3
|
+
module Logins
|
4
|
+
extend ClientModule
|
5
|
+
|
6
|
+
post :reset_password, "/api/v1/users/reset_password"
|
7
|
+
|
8
|
+
prefix "/api/v1/accounts/:account/logins/" do
|
9
|
+
get :account_logins
|
10
|
+
post :create_login
|
11
|
+
put :update_login, ":id"
|
12
|
+
end
|
13
|
+
|
14
|
+
prefix "/api/v1/users/:user/logins/" do
|
15
|
+
get :user_logins
|
16
|
+
delete :delete_login, ":id"
|
17
|
+
end
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
data/lib/bearcat/spec_helpers.rb
CHANGED
@@ -59,7 +59,7 @@ module Bearcat::SpecHelpers
|
|
59
59
|
between = url[lend..m.begin(0)-1]
|
60
60
|
bits << between if between.present? && (m.begin(0) > lend)
|
61
61
|
lend = m.end(0)
|
62
|
-
bits << (url_context[m[:key].to_sym] ||
|
62
|
+
bits << (url_context[m[:key].to_sym] || /[\w:]+/)
|
63
63
|
end
|
64
64
|
between = url[lend..-1]
|
65
65
|
bits << between if between.present?
|
@@ -82,7 +82,7 @@ module Bearcat::SpecHelpers
|
|
82
82
|
between = url[lend..m.begin(0)-1]
|
83
83
|
bits << between if between.present? && (m.begin(0) > lend)
|
84
84
|
lend = m.end(0)
|
85
|
-
bits << (url_context[m[:key].to_sym] ||
|
85
|
+
bits << (url_context[m[:key].to_sym] || /[\w:]+/)
|
86
86
|
end
|
87
87
|
between = url[lend..-1]
|
88
88
|
bits << between if between.present?
|
data/lib/bearcat/version.rb
CHANGED
data/lib/bearcat.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'bearcat/version'
|
2
2
|
require 'bearcat/client'
|
3
|
-
require 'bearcat/redis_connection'
|
4
3
|
|
5
4
|
module Bearcat
|
6
5
|
class << self
|
@@ -41,6 +40,7 @@ module Bearcat
|
|
41
40
|
end
|
42
41
|
|
43
42
|
def redis_pool
|
43
|
+
require 'bearcat/redis_connection'
|
44
44
|
@redis_pool ||= RedisConnection.create(env_prefix: "BEARCAT")
|
45
45
|
end
|
46
46
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bearcat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Instructure CustomDev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -183,6 +183,7 @@ files:
|
|
183
183
|
- lib/bearcat/client/group_memberships.rb
|
184
184
|
- lib/bearcat/client/groups.rb
|
185
185
|
- lib/bearcat/client/learning_outcomes.rb
|
186
|
+
- lib/bearcat/client/logins.rb
|
186
187
|
- lib/bearcat/client/module_items.rb
|
187
188
|
- lib/bearcat/client/modules.rb
|
188
189
|
- lib/bearcat/client/o_auth2.rb
|