README.md in trav3-0.0.5 vs README.md in trav3-0.1.0
- old
+ new
@@ -1,7 +1,8 @@
[![Gem Version](https://badge.fury.io/rb/trav3.svg)](http://badge.fury.io/rb/trav3)
-[![Build Status](https://travis-ci.org/danielpclark/trav3.svg)](https://travis-ci.org/danielpclark/trav3)
+[![Build Status](https://travis-ci.org/danielpclark/trav3.svg?branch=master)](https://travis-ci.org/danielpclark/trav3)
+[![Inline docs](http://inch-ci.org/github/danielpclark/trav3.svg?branch=master)](http://inch-ci.org/github/danielpclark/trav3)
[![SayThanks.io](https://img.shields.io/badge/SayThanks.io-%E2%98%BC-1EAEDB.svg)](https://saythanks.io/to/danielpclark)
# Trav3
A simple abstraction layer for Travis CI API v3. The results from queries return either `Success`
@@ -25,38 +26,35 @@
$ gem install trav3
## Usage
-```ruby
-require 'trav3'
-project = Trav3::Travis.new("name/example")
-project.owner
-project.owner("owner")
-project.repositories
-project.repositories("owner")
-project.repository
-project.repository("owner/repo")
-project.builds
-project.build(12345)
-project.build_jobs(12345)
-project.job(1234)
-project.log(1234)
-project.text_log(1234)
-
-# API Request Options
-project.defaults(limit: 25)
-
-# Pagination
-builds = project.builds
-builds.page.next
-builds.page.first
-builds.page.last
-
-# Recommended inspection
-builds.keys
-builds.dig("some_key")
-```
+ require 'trav3'
+ project = Trav3::Travis.new("name/example")
+ project.owner
+ project.owner("owner")
+ project.repositories
+ project.repositories("owner")
+ project.repository
+ project.repository("owner/repo")
+ project.builds
+ project.build(12345)
+ project.build_jobs(12345)
+ project.job(1234)
+ project.log(1234)
+
+ # API Request Options
+ project.defaults(limit: 25)
+
+ # Pagination
+ builds = project.builds
+ builds.page.next
+ builds.page.first
+ builds.page.last
+
+ # Recommended inspection
+ builds.keys
+ builds.dig("some_key")
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.