diff --git a/.circleci/config.yml b/.circleci/config.yml new file mode 100644 index 0000000..9954a8f --- /dev/null +++ b/.circleci/config.yml @@ -0,0 +1,44 @@ +version: 2.1 + +orbs: + artifact-management: avvo/artifact-management@0.0.6 + +jobs: + test: + docker: + - image: avvo/ruby-testing + auth: + username: $DOCKERHUB_USER + password: $DOCKERHUB_PASS + + steps: + - checkout + - artifact-management/gem-test: + ruby_versions: "2.2.10,2.3.8,2.4.10,2.5.8,2.6.6" + build: + docker: + - image: circleci/ruby:2.6 + steps: + - checkout + - artifact-management/gem-build-and-push + +workflows: + version: 2.1 + build-workflow: + jobs: + - test: + context: org-global + filters: + tags: + only: /.*/ + branches: + only: /.*/ + - build: + requires: + - test + context: org-global + filters: + tags: + only: /^v[0-9]+\.[0-9]+\.[0-9]+.*/ + branches: + ignore: /.*/ diff --git a/CHANGELOG.md b/CHANGELOG.md index b35325a..6200dfd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). CHANGELOG inspiration from http://keepachangelog.com/. +## [1.0.4pre1] - Oct 22, 2020 +* Publish to both Packagecloud and Artifactory + ## [1.0.1] - Dec 1, 2016 * remove minitest/autorun dependency on retrying minitest. Fixes issue where minitest is initialized when running any rake task. diff --git a/README.md b/README.md index dbc96db..4e15318 100644 --- a/README.md +++ b/README.md @@ -16,19 +16,15 @@ https://github.com/appfolio/minitest-optional_retry ## Installation -Add this line to your application's Gemfile: +Install Intransient Capybara from the command line: -```ruby -gem 'intransient_capybara' -``` - -And then execute: + $ gem install intransient_capybara --source https://avvo-gems.public.artifactory.internetbrands.com - $ bundle +or within a Gemfile: -Or install it yourself as: - - $ gem install intransient_capybara + source 'https://avvo-gems.public.artifactory.internetbrands.com' do + gem 'intransient_capybara' + end ## Usage @@ -123,7 +119,9 @@ Register the driver After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake false` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment. -To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org). +To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version. + +When a commit is pushed to Github with a version tag, this will trigger a CircleCI job that will build the gem, run any tests, and push the new gem version to Avvo Artifactory repo. ## Contributing diff --git a/intransient_capybara.gemspec b/intransient_capybara.gemspec index d8d8dcf..f7ae9b8 100644 --- a/intransient_capybara.gemspec +++ b/intransient_capybara.gemspec @@ -26,6 +26,6 @@ Gem::Specification.new do |spec| spec.add_dependency 'atomic', '~> 1.1' spec.add_dependency 'minitest', '~> 5.8' - spec.add_development_dependency "bundler", "~> 1.10" - spec.add_development_dependency "rake", "~> 10.0" + spec.add_development_dependency "bundler", "~> 1.17.3" + spec.add_development_dependency "rake", "~> 12.3.3" end diff --git a/lib/intransient_capybara/version.rb b/lib/intransient_capybara/version.rb index 0701115..1154614 100644 --- a/lib/intransient_capybara/version.rb +++ b/lib/intransient_capybara/version.rb @@ -1,3 +1,3 @@ module IntransientCapybara - VERSION = "1.0.3" + VERSION = "1.0.4pre1" end