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

DavyJonesLocker / client_side_validations / 530
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: chore/ruby4
DEFAULT BRANCH: main
Ran 05 Dec 2016 03:52PM UTC
Jobs 12
Files 28
Run time 5min
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

pending completion
530

push

travis-ci

libc
Make conditionals more inline with guides

The Ruby on Rails guide contains the following example

```
  class Computer < ApplicationRecord
    validates :mouse, presence: true,
                      if: ["market.retail?", :desktop?],
                      unless: Proc.new { |c| c.trackpad.present? }
  end
```

Arrays and Strings were not supported before. https://github.com/rails/rails/blob/38fe5ae24/activesupport/lib/active_support/callbacks.rb#L429-L458
was used for inspiration.

Initially I handled a Symbol case, and raised an error if something
unexpected is passed, but that creates more than 100 lines in the
module, and rubocop complains. So I kept the code sending a message if
something other than a Proc or a String is passed.

10 of 10 new or added lines in 1 file covered. (100.0%)

583 of 585 relevant lines covered (99.66%)

257.39 hits per line

Jobs
ID Job ID Ran Files Coverage
1 530.1 (2.0.0, gemfiles/rails_4.0.gemfile) 05 Dec 2016 03:52PM UTC 0
99.48
Travis Job 530.1
2 530.2 (2.0.0, gemfiles/rails_4.1.gemfile) 05 Dec 2016 03:52PM UTC 0
99.48
Travis Job 530.2
3 530.3 (2.0.0, gemfiles/rails_4.2.gemfile) 05 Dec 2016 03:53PM UTC 0
99.48
Travis Job 530.3
4 530.4 (2.1.10, gemfiles/rails_4.0.gemfile) 05 Dec 2016 03:52PM UTC 0
99.48
Travis Job 530.4
5 530.5 (2.1.10, gemfiles/rails_4.1.gemfile) 05 Dec 2016 03:52PM UTC 0
99.48
Travis Job 530.5
6 530.6 (2.1.10, gemfiles/rails_4.2.gemfile) 05 Dec 2016 03:56PM UTC 0
99.48
Travis Job 530.6
7 530.7 (2.2.6, gemfiles/rails_4.0.gemfile) 05 Dec 2016 03:55PM UTC 0
99.48
Travis Job 530.7
8 530.8 (2.2.6, gemfiles/rails_4.1.gemfile) 05 Dec 2016 03:55PM UTC 0
99.48
Travis Job 530.8
9 530.9 (2.2.6, gemfiles/rails_4.2.gemfile) 05 Dec 2016 03:56PM UTC 0
99.48
Travis Job 530.9
10 530.10 (2.3.2, gemfiles/rails_4.0.gemfile) 05 Dec 2016 03:55PM UTC 0
99.49
Travis Job 530.10
11 530.11 (2.3.2, gemfiles/rails_4.1.gemfile) 05 Dec 2016 03:56PM UTC 0
99.49
Travis Job 530.11
12 530.12 (2.3.2, gemfiles/rails_4.2.gemfile) 05 Dec 2016 03:57PM UTC 0
99.49
Travis Job 530.12
Source Files on build 530
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #530
  • 7ec7854c on github
  • Next Build on fix-conditionals (#536)
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