Giter Club home page Giter Club logo

learn-web's Introduction

learn-web

Handles submitting Learn.co lessons.

Installation

Install with:

$ gem install learn-web

Alternatively, add this line to your application's Gemfile:

gem 'learn-web'

And then execute:

$ bundle

Usage

In your code:

require 'learn_web'

Contributing

  1. Fork it ( https://github.com/flatiron-labs/learn-web/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

learn-web's People

Contributors

aturkewi avatar drewprice avatar loganhasson avatar notnotdrew avatar octosteve avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

learn-web's Issues

Lesson with lab gets returned with lab = false (breaking commands like `open` and `next`)

When viewing this lesson - https://github.com/learn-co-students/manipulating-hashes-web-071717 in chrome at learn.co, I tried learn next and expected to fork, clone, and open the repo, since it appears in the UI to be a lab. Similarly, after manually forking and cloning the lab, learn open opens the lab in chrome instead of the editor.

Doing a little digging led me to Learnweb::Client::Lesson and no further - I'm not sure where the code for the learn api lives, but it seems like CurrentLesson and NextLesson just save their attributes from the api response, so the logic that determines what is and is not a lab lives somewhere else!

Given that I don't know where that logic is, I'm not sure how to mark lessons as lab=true or lab=false in the lesson repo itself; it could be that this is not an issue with the learn-web client at all, but instead with the config on the lesson, or with the learn-co api that learn-web asks for the lesson.

Thanks!

Remove environment setup list

It was only being used by learn-doctor, which is now deprecated. Then endpoint is also being removed from the Learn API.

def environment_setup_list
response = get(environment_setup_list_endpoint)
LearnWeb::Client::Environment::SetupList.new(response)
end

and

def environment_setup_list_endpoint
"#{API_ROOT}/environmentalizer/steps"
end

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.