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

plexus / hexp / 39
100%

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

pending completion
39

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.

646 of 649 relevant lines covered (99.54%)

27.55 hits per line

Jobs
ID Job ID Ran Files Coverage
1 39.1 (1.9.2) 14 Jul 2013 01:13PM UTC 0
99.2
Travis Job 39.1
2 39.2 (1.9.3) 14 Jul 2013 01:13PM UTC 0
99.52
Travis Job 39.2
3 39.3 (2.0.0) 14 Jul 2013 01:15PM UTC 0
99.52
Travis Job 39.3
4 39.4 (jruby-19mode) 14 Jul 2013 01:12PM UTC 0
99.02
Travis Job 39.4
5 39.5 (jruby-head) 14 Jul 2013 01:12PM UTC 0
99.02
Travis Job 39.5
Source Files on build 39
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #39
  • d65cabae on github
  • Prev Build on master (#35)
  • Next Build on master (#40)
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