bearcat 1.3.46 → 1.3.47
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/bearcat/client/sections.rb +8 -0
- data/lib/bearcat/version.rb +1 -1
- data/spec/bearcat/client/sections_spec.rb +12 -0
- data/spec/fixtures/update_section.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 80686ce28c0fbf0d96f638ff05e1f82ab76638d782d963a8f544b0c0fab17a8f
|
|
4
|
+
data.tar.gz: cd9784f0d0e63527c13fe5f34703915e61a05030ab618fe60889ae1ec449e3f5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 980dc61ffa0dd83c74ac5307c4a9f6ac5b2e0f31af634a6f90257f8053079e512c5bb6c08ea7e77a50ebff62f39469a7aced145bc1bed59adf76ee74c3020700
|
|
7
|
+
data.tar.gz: e8147a8d1e751c533dacd061b5f7ab0094c8c6aa17c5fb0d4720b52900d84418a58679aaafb2f2500223f41e4942de978befcb5ccbe3d7850733e7165340b168
|
|
@@ -22,6 +22,14 @@ module Bearcat
|
|
|
22
22
|
delete("/api/v1/sections/#{section.to_s}")
|
|
23
23
|
end
|
|
24
24
|
|
|
25
|
+
def crosslist_section(section_id, new_course_id)
|
|
26
|
+
post("/api/v1/sections/#{section_id.to_s}/crosslist/#{new_course_id.to_s}")
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def decrosslist_section(section_id)
|
|
30
|
+
delete("/api/v1/sections/#{section_id.to_s}/crosslist")
|
|
31
|
+
end
|
|
32
|
+
|
|
25
33
|
end
|
|
26
34
|
end
|
|
27
35
|
end
|
data/lib/bearcat/version.rb
CHANGED
|
@@ -46,4 +46,16 @@ describe Bearcat::Client::Sections do
|
|
|
46
46
|
section['name'].should == 'Section003'
|
|
47
47
|
end
|
|
48
48
|
|
|
49
|
+
it "crosslist a section" do
|
|
50
|
+
stub_post(@client, "/api/v1/sections/72/crosslist/2").to_return(json_response("update_section.json"))
|
|
51
|
+
section = @client.crosslist_section(72, 2)
|
|
52
|
+
section['nonxlist_course_id'].should == 2
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
it "de-crosslist a section" do
|
|
56
|
+
stub_delete(@client, "/api/v1/sections/72/crosslist").to_return(json_response("update_section.json"))
|
|
57
|
+
section = @client.decrosslist_section(72)
|
|
58
|
+
section['nonxlist_course_id'].should == 2
|
|
59
|
+
end
|
|
60
|
+
|
|
49
61
|
end
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"course_id": 3, "end_at": null, "id": 72, "name": "Section003", "nonxlist_course_id":
|
|
1
|
+
{"course_id": 3, "end_at": null, "id": 72, "name": "Section003", "nonxlist_course_id": 2, "start_at": null, "sis_section_id": null}
|
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.3.
|
|
4
|
+
version: 1.3.47
|
|
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: 2019-06-
|
|
11
|
+
date: 2019-06-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rake
|