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

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

Build:
DEFAULT BRANCH: master
Ran 14 Jul 2013 01:13PM 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.518% (+0.4%) from 99.088%
1.9.3

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.

619 of 622 relevant lines covered (99.52%)

7.05 hits per line

Source Files on job 39.2 (1.9.3)
  • Tree
  • List 0
  • Changed 11
  • Source Changed 6
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 39
  • Travis Job 39.2
  • d65cabae on github
  • Prev Job for 1.9.3 on master (#35.2)
  • Next Job for 1.9.3 on master (#40.2)
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