bearcat 1.3.46 → 1.3.47

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: 4f8427c22b2c92e0626a4d6cfdc6f764052edcc317b7885dca3c0832ae613554
4
- data.tar.gz: 7adca4f4e97f0cebed4afc960342659bfe4259f2f5850ed6fcf736b30a0d13f3
3
+ metadata.gz: 80686ce28c0fbf0d96f638ff05e1f82ab76638d782d963a8f544b0c0fab17a8f
4
+ data.tar.gz: cd9784f0d0e63527c13fe5f34703915e61a05030ab618fe60889ae1ec449e3f5
5
5
  SHA512:
6
- metadata.gz: d5c2d1a9c080a8df8309b03ea19cec2836d98c820686fa503f9bfb02f001d43d669bd02ae869fe128c77f027b48351256fa18b10998585b1e49c16dcf6b3ac48
7
- data.tar.gz: 88fa1dbc8a34a6dfe75e6557fc85b1c997116ad8f453e2c177d1a188b8e16eb64f8857426e741323d2c2f72eaeb9c161e12a97c3fe08e09fcc950d778e0cd255
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
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.46' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.47' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -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": null, "start_at": null, "sis_section_id": null}
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.46
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-18 00:00:00.000000000 Z
11
+ date: 2019-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake