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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 98adfee41773a5d279e290d2a14008a10bb5cb6027f18057e7c33a2d67de42ed
4
- data.tar.gz: 3a3abba018676e340119a0ad2c973d38f3e580de26b97a9580604a024656432a
3
+ metadata.gz: ceaadb0ee11707b80ad042e4f24cce3840f3662aa6c3417c5b1e1f3996609501
4
+ data.tar.gz: 7606bfbd859a7064a4231218a91a39333aaff215fefc8c861648cf79e356c263
5
5
  SHA512:
6
- metadata.gz: 349914e8cee0d596cb27d05be332d1ccd13eb644019e5f69511c5daae99b3007d8e87001f8bbe6a40bab26d27083da692a1f5b0ab961af1338cee93bd06c4312
7
- data.tar.gz: 94c1e1dc0072eb9d2b642b6d362b10bc17d78fac82cbbfd59b54d7c5155dd6686e8fe42b7a92d3a60c964a2d2b50d8a65f9a3f6859e30a4a5970e9a8e4efed3b
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
@@ -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] || /\w+/)
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] || /\w+/)
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?
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.5.12' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.5.14' unless defined?(Bearcat::VERSION)
3
3
  end
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.12
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-29 00:00:00.000000000 Z
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