• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

jgraichen / acfs / 262 / 5
97%
master: 97%

Build:
DEFAULT BRANCH: master
Ran 08 Feb 2014 01:34AM UTC
Files 44
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Feb 2014 01:30AM UTC coverage: 97.55% (-0.09%) from 97.638%
2.0.0, gemfiles/Gemfile.rails-3-2

push

travis-ci

jgraichen
Add support for custom per-action paths

This commit add custom per-action paths that can be configured in
the resources by giving a hash instead of a string to the `:path`
option:

    class Session < Acfs::Resource
      service UserService, path: {
          list: 'users/:user_id/sessions',
          delete: 'users/:user_id/sessions/del/:id',
          update: nil
      }

      attribute :id, :string
      attribute :user, :integer
    end

Explicit disabled paths (nil) will raise an error when requested.
This can be used for a simple operation access control as specific
operations can be disabled this way until real access control is
added.

This commit also redesign the default path handling. Resources not
longer return a hash but provide a method to compute the path. This
allows for more flexibility and power.

876 of 898 relevant lines covered (97.55%)

44.47 hits per line

Source Files on job 262.5 (2.0.0, gemfiles/Gemfile.rails-3-2)
  • Tree
  • List 0
  • Changed 11
  • Source Changed 5
  • Coverage Changed 11
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 262
  • Travis Job 262.5
  • 1078c396 on github
  • Prev Job for 2.0.0, gemfiles/Gemfile.rails-3-2 on master (#261.5)
  • Next Job for 2.0.0, gemfiles/Gemfile.rails-3-2 on master (#263.5)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc