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

plexus / hexp / 39 / 4
100%
master: 100%

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2013 01:12PM UTC
Files 29
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

14 Jul 2013 01:12PM UTC coverage: 99.018% (+0.2%) from 98.861%
jruby-19mode

push

travis-ci

plexus
Implement Hexp::Builder

This patch introduces builder syntax, as seen in Hpricot, Builder, and Nokogiri.
A very Ruby-ish way of specifying XML/HTML trees. For basic usage Hexp::Builder
is compatible with all of the above, example usage:

```ruby
Hexp.build do
  div do
    p "Hello, World"
    ul class: 'fancy-list' do
      li "first item"
      li "second item"
    end
  end
end
```

For anything more advanced builder implementations vary, see
https://github.com/plexus/builder_spec for a comparison. Hexp::Builder
implements `tag!` as a way of specifying tags dynamically, or to prevent
name clashes. The `<<` operator used in other implementations to add HTML
strings to the output only expects objects that implement `to_hexp` in our
case. This is to stay true to the Hexp 'Snakes and Apples' philosophy. Adding
a string will cause an exception.

This commit also updates a number of dependencies, and improves test and YARD
coverage.

605 of 611 relevant lines covered (99.02%)

3.93 hits per line

Source Files on job 39.4 (jruby-19mode)
  • Tree
  • List 0
  • Changed 9
  • Source Changed 6
  • Coverage Changed 8
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 39
  • Travis Job 39.4
  • d65cabae on github
  • Prev Job for jruby-19mode on master (#35.4)
  • Next Job for jruby-19mode on master (#40.4)
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