language: ruby
cache: bundler
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - 2.2.0
  - 2.2.2
git:
  depth: 1
before_install: gem install bundler -v 1.10.6
script:
  - bundle exec yard
  - bundle exec rubocop
  - bundle exec rspec
deploy:
  provider: rubygems
  api_key: 4672b2d03693ff646f79dfb823e02a60

language: ruby
cache: bundler
rvm:
  - 1.9.3
  - 2.0.0
  - 2.1.0
  - 2.2.0
  - 2.2.2
git:
  depth: 1
before_install: gem install bundler -v 1.10.6
script:
  - bundle exec yard
  - bundle exec rubocop
  - bundle exec rspec
deploy:
  provider: rubygems
  api_key: 4672b2d03693ff646f79dfb823e02a60
  on:
    tags: true

Configure ruby gems for just deploy when new tag
Configure ruby gems for just deploy when new tag