github-to-canvas 0.1.12 → 0.1.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/github-to-canvas/canvas_interface.rb +3 -3
- data/lib/github-to-canvas/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e00c11cef1a74df9d857668f55757142f23769398db63415aba5f0fb13dba005
|
4
|
+
data.tar.gz: 3d9393d1d5051a944dc9df64009ab92028fab0239eb7bcae90f99ed1ad01b14b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fd74299fd8e4cc882a3bddb8e670fb09aea8641a0b79e97f1f0da4db50e514921eaca22bd49a16531da7b45d04fb41fd94de383f016c62b77853ec754ecada4f
|
7
|
+
data.tar.gz: fe082b1a81263e4984757d26bbcbede2c97498011b1b1c3ad1a2b9dd65dedcb2758f205bb2e897501e5a0176f0299768e362d699542205b1dd295c34bcba19c6
|
@@ -98,7 +98,9 @@ class CanvasInterface
|
|
98
98
|
lesson_info = lesson_info[0] if lesson_info.kind_of?(Array)
|
99
99
|
url = url.sub(/[^\/]+$/, lesson_info["page_id"].to_s)
|
100
100
|
end
|
101
|
-
|
101
|
+
puts url
|
102
|
+
puts payload
|
103
|
+
puts headers
|
102
104
|
response = RestClient.put(url, payload, headers)
|
103
105
|
rescue Exception => e
|
104
106
|
puts "Something went wrong while pushing lesson #{options[:id]} to course #{options[:course_id]}"
|
@@ -114,8 +116,6 @@ class CanvasInterface
|
|
114
116
|
if !options[:id]
|
115
117
|
canvas_data = CanvasDotfile.read_canvas_data
|
116
118
|
response = nil
|
117
|
-
puts canvas_data
|
118
|
-
puts options
|
119
119
|
canvas_data[:lessons] = canvas_data[:lessons].map { |lesson|
|
120
120
|
response = self.update_existing_lesson(lesson, name, html)
|
121
121
|
options[:id] = lesson[:id]
|