bearcat 1.3.48 → 1.3.49

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: b57723897b87e3fa4b7f13dd36b248e8057291bbdc34d2fda4c36239c105f986
4
- data.tar.gz: 55d51657b04977a727e98d256362af2dcb9557c233deee69f64db8bd7f7419e1
3
+ metadata.gz: 5570d1db50569863bfbfd3a30b1e69bf9f95802e2659738c81064be7525bf615
4
+ data.tar.gz: '0869eea17f98c4e5f367d558a955c05fb003ae6f55e201b9f50cf8a7f48fd9f3'
5
5
  SHA512:
6
- metadata.gz: ae314ea98375c5685ec644724b07b7fc90e040cd4efd92219e3545c94ca2003c14970a8f9a4dd5496ebd05bd286f62da1b11d6121a0ba5dc143bc2103de11dcf
7
- data.tar.gz: c98e3a06fe914bb0f06d9c42d3cf1472d874255456d021462162ce19be5eecd272d83cdda14b426e24166e25a7e71bf58f8e32799335ea7788acc6e196e26881
6
+ metadata.gz: 2c88f8820f87e55951822661b76664321401ab8819110c0f41a4465a0e28e1405a09dfe6fe1a0fda58faa64516d8b78d8d73c4d340c0beee56b9cdac9ab0355a
7
+ data.tar.gz: 5a264903ecf7b56e94d1a5085d6f551a93a441a50c018b126448ec3404c7236d84ebd1160d2aada62232535f071162d9e4642a3add729d1b04b4ee78c7735877
@@ -26,6 +26,10 @@ module Bearcat
26
26
  put("/api/v1/courses/#{course.to_s}/custom_gradebook_columns/#{gradebook_column}/data/#{student}", params)
27
27
  end
28
28
 
29
+ def bulk_update_gradebook_columns_data(course, params={})
30
+ put("/api/v1/courses/#{course.to_s}/custom_gradebook_column_data", params)
31
+ end
32
+
29
33
  end
30
34
  end
31
35
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.48' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.49' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -44,4 +44,23 @@ describe Bearcat::Client::CustomGradebookColumns do
44
44
  response['user_id'].should == 1
45
45
  end
46
46
  end
47
+ context 'update_gradebook_columns_data' do
48
+ it 'bulk updates gradebook columns data' do
49
+ params = {'column_data': [
50
+ {
51
+ 'column_id': 1,
52
+ 'user_id': 2,
53
+ 'content': 'user2 content'
54
+ },
55
+ {
56
+ 'column_id': 1,
57
+ 'user_id': 3,
58
+ 'content': 'user3 content'
59
+ }
60
+ ]}
61
+ stub_put(@client, '/api/v1/courses/1/custom_gradebook_column_data').to_return(json_response('custom_gradebook_columns', 'gradebook_column_progress.json'))
62
+ response = @client.bulk_update_gradebook_columns_data(1, params)
63
+ expect(response['context_id']).to eq 1
64
+ end
65
+ end
47
66
  end
@@ -0,0 +1,14 @@
1
+ {
2
+ "id": 1,
3
+ "context_id": 1,
4
+ "context_type": "Course",
5
+ "user_id": 123,
6
+ "tag": "custom_columns_submissions_update",
7
+ "completion": 100,
8
+ "workflow_state": "completed",
9
+ "created_at": "2013-01-15T15:00:00Z",
10
+ "updated_at": "2013-01-15T15:04:00Z",
11
+ "message": "",
12
+ "results": {},
13
+ "url": "https://canvas.example.edu/api/v1/progress/1"
14
+ }
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.48
4
+ version: 1.3.49
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-28 00:00:00.000000000 Z
11
+ date: 2019-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -277,6 +277,7 @@ files:
277
277
  - spec/fixtures/custom_gradebook_columns/column_data.json
278
278
  - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
279
279
  - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
280
+ - spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
280
281
  - spec/fixtures/dashboard.json
281
282
  - spec/fixtures/delete_course.json
282
283
  - spec/fixtures/delete_custom_data_scope.json
@@ -545,6 +546,7 @@ test_files:
545
546
  - spec/fixtures/created_group_membership.json
546
547
  - spec/fixtures/user_avatars.json
547
548
  - spec/fixtures/graph_ql_scores.json
549
+ - spec/fixtures/custom_gradebook_columns/gradebook_column_progress.json
548
550
  - spec/fixtures/custom_gradebook_columns/custom_gradebook_column.json
549
551
  - spec/fixtures/custom_gradebook_columns/custom_gradebook_columns.json
550
552
  - spec/fixtures/custom_gradebook_columns/column_data.json