Git Product home page Git Product logo

verso's People

Contributors

jlcapps avatar

Stargazers

 avatar

Watchers

 avatar  avatar

verso's Issues

Dependency on ActiveSupport::Inflector

There are remaining dependencies on String#parameterize from ActiveSupport::Inflector left over form the extraction from a Rails application. This affects OccupationData.find_by_slugs and Cluster#courses.

Add #slug to Cluster, Pathway, and Occupation as in ProgramArea. Add spec for OccupationData.find_by_slugs.

Add many, many specs

Some of the test coverage from the integration level of the Web site needs to be ported to the gem, now that it needs to stand alone.

Add run time check for API version

First we'll need support for checking the API version resource. Then we need to check it and issue a warning if the API version has bumped since the gem was released.

Calling expected attribute on missing resource raises unhelpful error

To wit:

ruby-1.9.3-p0 :004 > c = Verso::Credential.new(:id => 9999999999999999, :slug => "slug")
 => #<Verso::Credential:0x007fd0fd6ab938 @attrs={:id=>9999999999999999, :slug=>"slug"}>
ruby-1.9.3-p0 :005 > c.title
TypeError: can't convert nil into Hash
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/bundler/gems/verso-c4ec6b48d429/lib/verso/http_gettable.rb:16:in `merge!'
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/bundler/gems/verso-c4ec6b48d429/lib/verso/http_gettable.rb:16:in `get_attr'
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/bundler/gems/verso-c4ec6b48d429/lib/verso/base.rb:32:in `block (3 levels) in attr_reader'
        from (irb):5
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/gems/railties-3.2.3/lib/rails/commands/console.rb:47:in `start'
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/gems/railties-3.2.3/lib/rails/commands/console.rb:8:in `start'
        from /Users/jlcapps/.rvm/gems/ruby-1.9.3-p0@face/gems/railties-3.2.3/lib/rails/commands.rb:41:in `<top (required)>'
        from script/rails:6:in `require'
        from script/rails:6:in `<main>'

Add duty area id attribute

Duty areas in the Web API's task list resource now expose an ID just as the tasks do. Add this to the DutyArea class; to specs for DutyArea and TaskList; and to the documentation.

Objects should provide access to date info

Some nested resources in the API provide a version_date property. All resources set Last-Modified and Expires in headers. version_date and Last-Modified are equivalent.

Providing access to these would be useful for caching in the client.

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.