lib/learn_web/client/lesson.rb in learn-web-1.0.1 vs lib/learn_web/client/lesson.rb in learn-web-1.0.2
- old
+ new
@@ -23,9 +23,10 @@
def next_lesson
response = @conn.get do |req|
req.url next_lesson_endpoint
req.headers['Authorization'] = "Bearer #{token}"
+ req.params['dir_name'] = File.basename(FileUtils.pwd)
end
LearnWeb::Client::Lesson::NextLesson.new(response)
end
end