bearcat 1.4.6 → 1.4.7

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: 5e4c430ee7965a0641d99df75b036d1d86359a12af3a198b2096ae14dfebdeda
4
- data.tar.gz: 3dbd1ce2b2413cc413f1e0d057b0f2b393275cee9f76377c1c7284fc62ec978c
3
+ metadata.gz: 26f3da3100ee0be6de377cacd161d35963655f84c582e5b17131839f85b7c988
4
+ data.tar.gz: b2cf09c1bac28e424b95847f8192f5caaee3b2fdd5c081e533faad1d26e3b3e1
5
5
  SHA512:
6
- metadata.gz: 62a034fde4753be6b3686b7dff692fdd84c9c69d9e5fe7bdf7e7cf59fd490d0213d20c81a54d7f5e9151e64abb702dc0b94c0cbb5b27d01cb83e6cfd1deed7c4
7
- data.tar.gz: 3c202a71e4f20170d98baa07a34f73bb62050170417786b7f13a89ae1feade4b9636e0b65a6a352e3a48f098f2c34f15b4eb7f7b45296af3027b24ff44b74b8d
6
+ metadata.gz: ba140921ff97107a1b0990c6e00f05fd0eae8880068dd14f29eb278df9cba896dd39b295d9ca7c7e17ff0efd62113190537d3620f4a02706cfe23929d1c87e14
7
+ data.tar.gz: 035ff67542b1546d7f279c6438cc36680a76a4818f878285361f7d94acb543c5bd5b76a5cdddc90c9b4d2ae09997bf1db7bc93b4bf0edc6ea7b440296a5f2bf5
@@ -10,11 +10,15 @@ module Bearcat
10
10
  get("/api/v1/courses/#{course}/folders", params)
11
11
  end
12
12
 
13
+ def resolve_path_for_course(course, full_path = nil, params)
14
+ get("/api/v1/courses/#{course}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
15
+ end
16
+
13
17
  def create_course_folder(course, params = {})
14
18
  post("/api/v1/courses/#{course}/folders", params)
15
19
  end
16
20
 
17
- def get_user_folder(user, folder, params)
21
+ def get_user_folder(user, folder, params = {})
18
22
  get("/api/v1/users/#{user}/folders/#{folder}", params)
19
23
  end
20
24
 
@@ -22,11 +26,15 @@ module Bearcat
22
26
  get("/api/v1/users/#{user}/folders", params)
23
27
  end
24
28
 
29
+ def resolve_path_for_user(user, full_path = nil, params = {})
30
+ get("/api/v1/users/#{user}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
31
+ end
32
+
25
33
  def create_user_folder(user, params = {})
26
34
  post("/api/v1/users/#{user}/folders", params)
27
35
  end
28
36
 
29
- def get_group_folder(group, folder, params)
37
+ def get_group_folder(group, folder, params = {})
30
38
  get("/api/v1/groups/#{group}/folders/#{folder}", params)
31
39
  end
32
40
 
@@ -34,9 +42,29 @@ module Bearcat
34
42
  get("/api/v1/groups/#{group}/folders", params)
35
43
  end
36
44
 
45
+ def resolve_path_for_group(group, full_path = nil, params = {})
46
+ get("/api/v1/groups/#{group}/folders/by_path#{full_path == nil ? "" : "/#{full_path}"}", params)
47
+ end
48
+
37
49
  def create_group_folder(group, params = {})
38
50
  post("/api/v1/groups/#{group}/folders", params)
39
51
  end
52
+
53
+ def update_folder(folder, params = {})
54
+ put("/api/v1/folders/#{folder}", params)
55
+ end
56
+
57
+ def delete_folder(folder, params = {})
58
+ delete("/api/v1/folders/#{folder}", params)
59
+ end
60
+
61
+ def copy_folder(destination_folder, params = {})
62
+ post("/api/v1/folders/#{destination_folder}/copy_folder", params)
63
+ end
64
+
65
+ def copy_file_to_folder(destination_folder, params = {})
66
+ post("/api/v1/folders/#{destination_folder}/copy_file", params)
67
+ end
40
68
  end
41
69
  end
42
70
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.4.6' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.4.7' unless defined?(Bearcat::VERSION)
3
3
  end
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.4.6
4
+ version: 1.4.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Mills, Jake Sorce
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-20 00:00:00.000000000 Z
11
+ date: 2021-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake