0.01
Low commit activity in last 3 years
There's a lot of open issues
No release in over a year
Foundation classes for Aptible resource server gems
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 2.0
~> 2.3.2
< 11.0

Runtime

 Project Readme

Aptible::Resource

Gem Version Dependency Status

Foundation classes for Aptible resource server gems.

Usage

To build a new resource server gem on top of aptible-resource, create a top-level class for your resource server. For example:

module Example
  module Api
    class Resource < Aptible::Resource::Base
      def namespace
        'Example::Api'
      end

      def root_url
        'https://api.example.com'
      end
    end
  end
end

Then add the gem to your gemspec:

spec.add_dependency 'aptible-resource'

Development

This gem depends on a vendored version of HyperResource, which can be updated from a local checkout of HyperResource as follows:

cp -rp /path/to/hyperresource/lib/hyper_resource* lib/

Contributing

  1. Fork the project.
  2. Commit your changes, with specs.
  3. Ensure that your code passes specs (rake spec) and meets Aptible's Ruby style guide (rake rubocop).
  4. Create a new pull request on GitHub.

Copyright and License

MIT License, see LICENSE for details.

Copyright (c) 2019 Aptible and contributors.