bearcat 1.3.1 → 1.3.2

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: c062a25b931154ce8a21c595eb2b1a567214c672
4
- data.tar.gz: 2a03cc537a145e49b6bf5f0faaa5422538bdfce5
3
+ metadata.gz: 6025f318168d2b515c2e86bd4ab95210e11ad82e
4
+ data.tar.gz: 99b3c3f6ac3fe8277285549eea3f918d3a5322b1
5
5
  SHA512:
6
- metadata.gz: 69c08cbbb6c65bdafd273c167f2227884a38fe598a9fef6a1dcd447ac64803850660f4cbe0666e6b20cf5123c7b003d642df212816e85dc9bf95c548f44ea533
7
- data.tar.gz: 964fb6b75ae013c1ce0bc61999f5304ffff3c6717cd12011b68b0ddc09365886c5a483efd6638a2b4532184194009f3b8058103194adf74f58d3bf25602b136f
6
+ metadata.gz: c79145ea7bc176eff1a2fccc6160f182fff30db7f1cd1760d9c756f2965090d22c64efc063aae26b3be631cc59d49406e8716f9c5621977790d7df303615489c
7
+ data.tar.gz: a726db6b0147a51d530f2f9030e2f8a34531f449d43bdf0f7b8b4d28edff6c4c753be4c47fb966fa023e8a385df4023371a66d1a6da2e32fe2ff85141e84cb46
@@ -6,6 +6,10 @@ module Bearcat
6
6
  get("/api/v1/courses/#{course}/assignment_groups", params)
7
7
  end
8
8
 
9
+ def assignment_group(course_id, assignment_group_id, params={})
10
+ get("/api/v1/courses/#{course_id}/assignment_groups/#{assignment_group_id}", params)
11
+ end
12
+
9
13
  end
10
14
  end
11
15
  end
@@ -1,3 +1,3 @@
1
1
  module Bearcat
2
- VERSION = '1.3.1' unless defined?(Bearcat::VERSION)
2
+ VERSION = '1.3.2' unless defined?(Bearcat::VERSION)
3
3
  end
@@ -14,4 +14,12 @@ describe Bearcat::Client::AssignmentGroups do
14
14
  assignment_groups.first["name"].should == 'Quizzes'
15
15
  end
16
16
 
17
+ it 'returns a signle assignment_group' do
18
+ stub_get(@client, '/api/v1/courses/2/assignment_groups/1').to_return(json_response("assignment_group.json"))
19
+ assignment_group = @client.assignment_group(2, 1)
20
+ assignment_group["group_weight"].should == 500
21
+ assignment_group["id"].should == 2
22
+ assignment_group["name"].should == 'Quizzes'
23
+ end
24
+
17
25
  end
@@ -0,0 +1,7 @@
1
+ {
2
+ "group_weight": 500,
3
+ "id": 2,
4
+ "name": "Quizzes",
5
+ "position": 2,
6
+ "rules": {}
7
+ }
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.1
4
+ version: 1.3.2
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: 2016-09-20 00:00:00.000000000 Z
11
+ date: 2016-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -184,6 +184,7 @@ files:
184
184
  - spec/fixtures/add_custom_user_data.json
185
185
  - spec/fixtures/add_user.json
186
186
  - spec/fixtures/assignment.json
187
+ - spec/fixtures/assignment_group.json
187
188
  - spec/fixtures/assignment_groups.json
188
189
  - spec/fixtures/assignment_section_override.json
189
190
  - spec/fixtures/assignments.json
@@ -297,7 +298,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
297
298
  version: '0'
298
299
  requirements: []
299
300
  rubyforge_project:
300
- rubygems_version: 2.5.1
301
+ rubygems_version: 2.4.5.1
301
302
  signing_key:
302
303
  specification_version: 4
303
304
  summary: Canvas API
@@ -348,6 +349,7 @@ test_files:
348
349
  - spec/fixtures/add_custom_user_data.json
349
350
  - spec/fixtures/add_user.json
350
351
  - spec/fixtures/assignment.json
352
+ - spec/fixtures/assignment_group.json
351
353
  - spec/fixtures/assignment_groups.json
352
354
  - spec/fixtures/assignment_section_override.json
353
355
  - spec/fixtures/assignments.json
@@ -442,3 +444,4 @@ test_files:
442
444
  - spec/fixtures/user_page_views.json
443
445
  - spec/fixtures/user_profile.json
444
446
  - spec/helper.rb
447
+ has_rdoc: