diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..19ef269 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,12 @@ +language: ruby +cache: bundler + +rvm: + - 2.0.0 + - 2.1 + - 2.2 + - ruby-head + +bundler_args: --without development --retry=3 --jobs=3 + +script: bundle exec rake diff --git a/Gemfile b/Gemfile index 9f10e6f..0ccdc01 100644 --- a/Gemfile +++ b/Gemfile @@ -1,11 +1,12 @@ source "https://rubygems.org" -gem 'pry' +gem 'pry', '>= 0.10.3' group :test do gem 'rspec', '>= 3.0' gem 'nyan-cat-formatter' gem 'webmock' + gem 'rake' end gemspec diff --git a/Gemfile.lock b/Gemfile.lock index 6fb0457..79bc089 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -32,10 +32,11 @@ GEM mini_portile2 (~> 2.0.0.rc2) nyan-cat-formatter (0.11) rspec (>= 2.99, >= 2.14.2, < 4) - pry (0.10.1) + pry (0.10.3) coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) + rake (10.5.0) rspec (3.4.0) rspec-core (~> 3.4.0) rspec-expectations (~> 3.4.0) @@ -66,6 +67,7 @@ DEPENDENCIES bundler (~> 1.3) goldfinger! nyan-cat-formatter - pry + pry (>= 0.10.3) + rake rspec (>= 3.0) webmock diff --git a/README.md b/README.md index e2d644f..7a1c26e 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,12 @@ Goldfinger, a Webfinger client for Ruby ======================================= [![Gem Version](http://img.shields.io/gem/v/goldfinger.svg)][gem] +[![Build Status](http://img.shields.io/travis/gargron/goldfinger.svg)][travis] +[![Dependency Status](http://img.shields.io/gemnasium/gargron/goldfinger.svg)][gemnasium] [gem]: https://rubygems.org/gems/goldfinger +[travis]: https://travis-ci.org/gargron/goldfinger +[gemnasium]: https://gemnasium.com/gargron/goldfinger A Webfinger client for Ruby. Supports `application/xrd+xml` and `application/jrd+json` responses. Raises `Goldfinger::NotFoundError` on failure to fetch the Webfinger or XRD data, or `Goldfinger::SSLError` if something is wrong with the HTTPS connection it uses. diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..c18edd8 --- /dev/null +++ b/Rakefile @@ -0,0 +1,8 @@ +require 'rspec/core/rake_task' +require 'bundler/gem_tasks' + +RSpec::Core::RakeTask.new(:spec) do |task| + task.rspec_opts = ['--color', '--format', 'documentation'] +end + +task :default => :spec