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

YorickPeterse / ruby-lint / 288

Build:
DEFAULT BRANCH: master
Ran 19 Dec 2013 12:32AM UTC
Jobs 4
Files 59
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

pending completion
288

push

travis-ci

YorickPeterse
Define `self` as methods/instance methods.

Instead of defining `self` as a keyword ruby-lint now defines it as a class and
instance method, both returning the corresponding definitions for their
instance types.

This ensures that if `self` is referenced either on class or instance level
that it returns the right definitions. Previously it would always return the
definition as a class.

Although this solution works I can't help but wonder what bugs it might
introduce and in general it smells a bit. Sadly the current definitions setup
doesn't really follow the way how Ruby organizes methods (using
singletons/eigen classes) but changing this would take quite some work. As a
result I'll just have to deal with this for the time being.

This fixes #80.

1925 of 1958 relevant lines covered (98.31%)

1157.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 288.1 (1.9.3) 19 Dec 2013 12:33AM UTC 0
98.58
Travis Job 288.1
2 288.2 (2.0.0) 19 Dec 2013 12:32AM UTC 0
98.58
Travis Job 288.2
3 288.3 (rbx-2.2.1) 19 Dec 2013 12:41AM UTC 0
98.71
Travis Job 288.3
4 288.4 (jruby-19mode) 19 Dec 2013 12:35AM UTC 0
97.77
Travis Job 288.4
Source Files on build 288
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #288
  • 28f604de on github
  • Prev Build on master (#287)
  • Next Build on master (#289)
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