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

fxpio / composer-asset-plugin / 331
100%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2015 12:08PM UTC
Jobs 5
Files 52
Run time 8min
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
331

Pull #123

travis-ci

alexandernst
Mimic the behavior of NPM and Bower when comparing versions
constructed by 1 or 2 groups of numbers.

Versions as "1", "7.9", "v4" and "v98.2" are perfectly valid
and both Bower and NPM expand those to, accordingly, "1.*",
"7.9.*", "v4.*" and "v98.2.*". Until now this plugin
failed at doing so, which causes quite some failures when
trying to install packages that use that syntax (npmconf,
just to name one).

This commit fixes that by adding a single regex replace
that matches groups of numbers and appends a ".*". Also,
the regex keeps in mind that other type of versions,
such as "~2" or ">=4.5" don't need to be expanded.

Also note that this fix will not break current unit
tests.
Pull Request #123: Tweak the 'vV' replacing logic and mimic Bower and NPM behavior

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

1579 of 1579 relevant lines covered (100.0%)

122.32 hits per line

Jobs
ID Job ID Ran Files Coverage
1 331.1 03 Jun 2015 12:15PM UTC 0
100.0
Travis Job 331.1
2 331.2 03 Jun 2015 12:10PM UTC 0
100.0
Travis Job 331.2
3 331.3 03 Jun 2015 12:08PM UTC 0
100.0
Travis Job 331.3
4 331.4 03 Jun 2015 12:07PM UTC 0
100.0
Travis Job 331.4
5 331.5 03 Jun 2015 12:11PM UTC 0
100.0
Travis Job 331.5
Source Files on build 331
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #331
  • Pull Request #123
  • PR Base - master (#329)
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