bearcat 1.3.12 → 1.3.13

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
  SHA1:
3
- metadata.gz: b5b5f7a9d11d99b46ef1b1965c3b6afd82431522
4
- data.tar.gz: fd23d4e219b7e0d4e63a80f693c499e15e3db0de
3
+ metadata.gz: 4017848830f53fece7f85a94a62e421f7d1ec1bd
4
+ data.tar.gz: 5d9eaa1f2a20f86d8645b4eb3c11dd4503b00fb4
5
5
  SHA512:
6
- metadata.gz: 0b7f07d44fd47770f1d5fd058c1f6446294e850b82ddc3c08cec85c8232eceb731ec7dc950b99977d730cd161e82262fdd00110928985bb2e89b2a12107f68f1
7
- data.tar.gz: a5c8ed68c528143779983985dab5e05b5ed751566415e33ca18ac5408ab74970aff95640e91348f48bb98c8707f38b40f48dcdc20521a1139f509ddc42d7ee44
6
+ metadata.gz: 926b53ae82f7772736c6f97365791652eca27e6be3b224436c75a0737ee6351c27013187c056b28b038d0a248f0d249e00471ee206d8a3aa643e30d87337106c
7
+ data.tar.gz: 190b3f22ec84e138dc389a5bb6d406d8e1356f00c7e018d1770af780b3d0b2fd29e3bb78c5f87925c5130ffecc0e2b2276f6d81090aa3fffbad3a0c70bb0333b
@@ -41,6 +41,10 @@ module Bearcat
41
41
  def account_grading_standards(account, params={})
42
42
  get("/api/v1/accounts/#{account}/grading_standards", params)
43
43
  end
44
+
45
+ def account_sis_imports(account, params={})
46
+ get("/api/v1/accounts/#{account}/sis_imports", params)
47
+ end
44
48
  end
45
49
  end
46
50
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.12' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.13' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -74,6 +74,12 @@ describe Bearcat::Client::Accounts do
74
74
  account_admin = @client.delete_account_admin(1, "sis_user_id:user1_sis_id", {role_id:1})
75
75
  expect(account_admin['id']).to eq 99
76
76
  expect(account_admin['status']).to eq 'deleted'
77
+
78
+ it 'returns a list of sis_imports' do
79
+ stub_get(@client, "/api/v1/accounts/1/sis_imports").to_return(json_response("account_sis_imports.json"))
80
+ sis_imports = @client.account_sis_imports(1)
81
+ expect(sis_imports.first['id']).to eq 30
82
+ expect(sis_imports.first['workflow_state']).to eq 'imported'
77
83
  end
78
84
 
79
85
  end
@@ -0,0 +1,38 @@
1
+ [
2
+ {
3
+ "created_at": "2017-03-22T03:01:18Z",
4
+ "started_at": "2017-03-22T03:01:18Z",
5
+ "ended_at": "2017-03-22T03:01:19Z",
6
+ "updated_at": "2017-03-22T03:01:19Z",
7
+ "progress": 100,
8
+ "id": 30,
9
+ "workflow_state": "imported",
10
+ "data": {
11
+ "import_type": "instructure_csv",
12
+ "supplied_batches": [
13
+ "course"
14
+ ],
15
+ "counts": {
16
+ "accounts": 0,
17
+ "terms": 0,
18
+ "abstract_courses": 0,
19
+ "courses": 1,
20
+ "sections": 0,
21
+ "xlists": 0,
22
+ "users": 0,
23
+ "user_observers": 0,
24
+ "enrollments": 0,
25
+ "groups": 0,
26
+ "group_memberships": 0,
27
+ "grade_publishing_results": 0
28
+ }
29
+ },
30
+ "batch_mode": null,
31
+ "batch_mode_term_id": null,
32
+ "override_sis_stickiness": null,
33
+ "add_sis_stickiness": null,
34
+ "clear_sis_stickiness": null,
35
+ "diffing_data_set_identifier": null,
36
+ "diffed_against_import_id": null
37
+ }
38
+ ]
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.12
4
+ version: 1.3.13
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: 2017-03-15 00:00:00.000000000 Z
11
+ date: 2017-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -187,6 +187,7 @@ files:
187
187
  - spec/fixtures/account_reports_result_success.json
188
188
  - spec/fixtures/account_reports_start_result.json
189
189
  - spec/fixtures/account_roles.json
190
+ - spec/fixtures/account_sis_imports.json
190
191
  - spec/fixtures/account_user.json
191
192
  - spec/fixtures/account_users.json
192
193
  - spec/fixtures/accounts.json
@@ -368,6 +369,7 @@ test_files:
368
369
  - spec/fixtures/account_reports_result_success.json
369
370
  - spec/fixtures/account_reports_start_result.json
370
371
  - spec/fixtures/account_roles.json
372
+ - spec/fixtures/account_sis_imports.json
371
373
  - spec/fixtures/account_user.json
372
374
  - spec/fixtures/account_users.json
373
375
  - spec/fixtures/accounts.json