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

wycats / thor / 239
100%

Build:
DEFAULT BRANCH: master
Ran 09 May 2013 12:14AM UTC
Jobs 3
Files 0
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
239

Pull #330

travis-ci

rberger
Changed spec/subcommand and spec/fixtures/script.thor to expose the
problem of when the subcommand name is different than the klass.

Fixed it by:

Updating lib/thor.rb metaprogramming magic that adds the help methods
to the subcommand klass to include a class instance variable that is
initialized to the subcommand_name and a method to access it.

Then modified command#formatted_usage to make use of that method if
its processing a subcommand and the subcommand_method exists.

Also had to "fix" the spec/register_spec.rb
   context "when $thor_runner is false"
that had a test that seemed to accecpt the fact that subcommand names
got foobar'd if the klass name is different than the subcommand name.
Or I didn't understand that test, but I changed it to what made more
sense to me.
Pull Request #330: Possible fix for the subcommand help messages using the klass name instead of command name
Jobs
ID Job ID Ran Files Coverage
2 239.2 (1.9.2) 09 May 2013 12:14AM UTC 0
Travis Job 239.2
3 239.3 (1.9.3) 09 May 2013 12:14AM UTC 0
Travis Job 239.3
4 239.4 (2.0.0) 09 May 2013 12:14AM UTC 0
Travis Job 239.4
Source Files on build 239
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #239
  • Pull Request #330
  • PR Base - master (#238)
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