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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1ec838f45344a5baa221fdd8269eb9c1405916b8c380b9f6f5d7cd7ca01c3740
4
- data.tar.gz: d03331e0767f7019ef6cbbb0b0cc7e44209184419ecf09072f96f19bbee3d21d
3
+ metadata.gz: e00c11cef1a74df9d857668f55757142f23769398db63415aba5f0fb13dba005
4
+ data.tar.gz: 3d9393d1d5051a944dc9df64009ab92028fab0239eb7bcae90f99ed1ad01b14b
5
5
  SHA512:
6
- metadata.gz: 906786dea4252483a97dc04c5ecd4684c0ef2800e9a33e3b10a8ac4982912806e4053f18517c6b7577b2206349435f2f8aea61465da27d4c608d13d087a99579
7
- data.tar.gz: c0482ac88b6f62cc022619a4045ed96392c4834ebc6e4e177e95574d4dbfaec55e8b2f40881d7b9d3d5a04a70678d33203b55886254714843f2a83c121cff0b0
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]
@@ -1,3 +1,3 @@
1
1
  class GithubToCanvas
2
- VERSION = "0.1.12"
2
+ VERSION = "0.1.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github-to-canvas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.12
4
+ version: 0.1.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - maxwellbenton