bearcat 1.5.12 → 1.5.13
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
- 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: f2a7b22542969559af4be8d31fb93a89a71f3276033556837fb1a260db339045
|
4
|
+
data.tar.gz: cb509029dafd72f8dac67f8824326fc42fc788f4eb7177ac4fab5ff9ba5e3292
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d3936c82995990b417cec404e05cb4033e2693921a0ff61616f526cd23010aaf520c0ff2a3ab5a7bea96e620bf29aecdcdcb563854898961efd51f4afcd5de99
|
7
|
+
data.tar.gz: f29c2b969ae44a7cb406d6b01b18ddc68bca5047ceba4502e56a09e2f60466e899180854501b61ff969ea2f74918f4cab5aaa50aa3a8980ed4600f2c2f8479a8
|
@@ -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
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.13
|
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-
|
11
|
+
date: 2023-11-30 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
|