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

fxpio / composer-asset-plugin / 331 / 1
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 03 Jun 2015 12:16PM UTC
Files 52
Run time 51s
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

03 Jun 2015 12:01PM UTC coverage: 100.0%. Remained the same
331.1

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

1579 of 1579 relevant lines covered (100.0%)

24.46 hits per line

Source Files on job 331.1
  • Tree
  • List 0
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 331
  • Travis Job 331.1
  • aafa846c on github
  • Prev Job for on master (#329.1)
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