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

lotus / assets / 54
97%
master: 97%

Build:
Build:
LAST BUILD BRANCH: v0.1.0
DEFAULT BRANCH: master
Ran 24 Oct 2015 02:43PM UTC
Jobs 16
Files 11
Run time 10min
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
54

push

travis-ci

jodosha
Unified asset sources.

On before each asset type (javascript, stylesheet) used to have its own
definition of sources. That was repetitive to configure and didn't
matched real use cases.

We went from:

  Lotus::Assets.configure do
    # ...
    define(:javascript) do
      sources << [
        'assets',
        'vendor/assets/bootstrap/javascripts'
      ]
    end

    define(:stylesheet) do
      sources << [
        'assets',
        'vendor/assets/bootstrap/stylesheets'
      ]
    end
  end

To this:

  Lotus::Assets.configure do
    sources << [
      'assets',
      'vendor/assets/bootstrap'
    ]
  end

This DRY configuration has another win: it lets devs to load all the
files defined under a source, without worrying about the asset type.
For instance Bootstrap ships with fonts and images that we want to
serve without the need of manually configure this kind of assets.

312 of 324 relevant lines covered (96.3%)

404.04 hits per line

Jobs
ID Job ID Ran Files Coverage
1 54.1 (2.0.0) 24 Oct 2015 02:43PM UTC 0
99.0
Travis Job 54.1
2 54.2 (2.1.0) 24 Oct 2015 02:43PM UTC 0
99.0
Travis Job 54.2
3 54.3 (2.1.1) 24 Oct 2015 02:44PM UTC 0
99.0
Travis Job 54.3
4 54.4 (2.1.2) 24 Oct 2015 02:43PM UTC 0
99.0
Travis Job 54.4
5 54.5 (2.1.3) 24 Oct 2015 02:43PM UTC 0
99.0
Travis Job 54.5
6 54.6 (2.1.4) 24 Oct 2015 02:45PM UTC 0
99.0
Travis Job 54.6
7 54.7 (2.1.5) 24 Oct 2015 02:45PM UTC 0
99.0
Travis Job 54.7
8 54.8 (2.1.6) 24 Oct 2015 02:45PM UTC 0
99.0
Travis Job 54.8
9 54.9 (2.1.7) 24 Oct 2015 02:45PM UTC 0
99.0
Travis Job 54.9
10 54.10 (2.2.0) 24 Oct 2015 02:45PM UTC 0
99.0
Travis Job 54.10
11 54.11 (2.2.1) 24 Oct 2015 02:46PM UTC 0
99.0
Travis Job 54.11
12 54.12 (2.2.2) 24 Oct 2015 02:47PM UTC 0
99.0
Travis Job 54.12
13 54.13 (2.2.3) 24 Oct 2015 02:47PM UTC 0
99.0
Travis Job 54.13
14 54.14 (rbx-2) 24 Oct 2015 02:48PM UTC 0
99.05
Travis Job 54.14
15 54.15 (jruby, JRUBY_OPTS="--2.0") 24 Oct 2015 02:49PM UTC 0
99.01
Travis Job 54.15
16 54.16 (jruby-head, JRUBY_OPTS="--2.1") 24 Oct 2015 02:53PM UTC 0
0.0
Travis Job 54.16
Source Files on build 54
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #54
  • f08fb5e4 on github
  • Prev Build on deployment (#53)
  • Next Build on deployment (#55)
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

© 2025 Coveralls, Inc