diff --git a/.circleci/config.yml b/.circleci/config.yml index 246fcf4..be8b167 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,40 +13,24 @@ jobs: steps: - cit/bundler-preamble - run: bundle exec rake test - tag: - <<: *defaults - steps: - - checkout - - cit/install-ghr - - run: - name: Package - command: gem build sidekiq-cron-web-admin.gemspec - - run: - name: "Tag & Publish" - command: | - PACKAGE=$(ls *.gem) - VERSION=$(echo $PACKAGE | sed "s/.*-\(.*\)\.gem/\1/") - - if [ $(git tag -l $VERSION) ]; then echo "Pre-existing Tag $VERSION"; exit 1; fi - - git config --global user.email "chime@users.noreply.github.com" - git config --global user.name "Chime Bot" - git tag -a $VERSION -m "Version $VERSION" - - git push https://${GITHUB_TOKEN}@github.com/${CIRCLE_PROJECT_USERNAME}/${CIRCLE_PROJECT_REPONAME}.git $VERSION - ghr -soft -t ${GITHUB_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${VERSION} ${PACKAGE} - curl -F package=@${PACKAGE} https://${GEMFURY_TOKEN}@push.fury.io/chime/ workflows: version: 2 build_test_publish: jobs: - - test - - tag: - context: ruby-build + - test: + filters: + tags: + only: + - /^pre-.*/ + - cit/gem-publish: + context: gem-publish requires: - test filters: branches: only: - master + tags: + only: + - /^pre-.*/ diff --git a/Gemfile.lock b/Gemfile.lock index c45c866..642ff82 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,27 +1,27 @@ PATH remote: . specs: - sidekiq-cron-web-admin (0.2.2) + sidekiq-cron-web-admin (0.2.7) sidekiq-cron (= 1.1.0) GEM remote: https://gem-proxy.chime.com/ specs: - concurrent-ruby (1.1.5) - connection_pool (2.2.2) - et-orbi (1.2.2) + concurrent-ruby (1.1.8) + connection_pool (2.2.5) + et-orbi (1.2.4) tzinfo - fugit (1.3.3) + fugit (1.4.5) et-orbi (~> 1.1, >= 1.1.8) - raabro (~> 1.1) + raabro (~> 1.4) metaclass (0.0.4) minitest (5.12.2) mocha (1.9.0) metaclass (~> 0.0.1) power_assert (1.1.5) - raabro (1.1.6) + raabro (1.4.0) rack (2.0.7) - rack-protection (2.0.7) + rack-protection (2.1.0) rack rack-test (1.1.0) rack (>= 1.0, < 3) @@ -30,17 +30,17 @@ GEM redis-namespace (1.6.0) redis (>= 3.0.4) shoulda-context (1.2.2) - sidekiq (5.2.7) - connection_pool (~> 2.2, >= 2.2.2) - rack (>= 1.5.0) - rack-protection (>= 1.5.0) - redis (>= 3.3.5, < 5) + sidekiq (6.0.7) + connection_pool (>= 2.2.2) + rack (~> 2.0) + rack-protection (>= 2.0.0) + redis (>= 4.1.0) sidekiq-cron (1.1.0) fugit (~> 1.1) sidekiq (>= 4.2.1) test-unit (3.3.4) power_assert - tzinfo (2.0.0) + tzinfo (2.0.4) concurrent-ruby (~> 1.0) PLATFORMS @@ -59,4 +59,4 @@ DEPENDENCIES test-unit BUNDLED WITH - 1.17.1 + 1.17.3 diff --git a/lib/sidekiq/cron/web/admin/version.rb b/lib/sidekiq/cron/web/admin/version.rb index 1195093..e2ccaeb 100644 --- a/lib/sidekiq/cron/web/admin/version.rb +++ b/lib/sidekiq/cron/web/admin/version.rb @@ -2,7 +2,7 @@ module Sidekiq module Cron module Web module Admin - VERSION = '0.2.6'.freeze + VERSION = '0.2.7'.freeze end end end diff --git a/sidekiq-cron-web-admin.gemspec b/sidekiq-cron-web-admin.gemspec index 3848547..9920938 100644 --- a/sidekiq-cron-web-admin.gemspec +++ b/sidekiq-cron-web-admin.gemspec @@ -13,13 +13,6 @@ Gem::Specification.new do |spec| spec.homepage = 'https://github.com/1debit/sidekiq-cron-web-admin' spec.license = 'MIT' - if spec.respond_to?(:metadata) - spec.metadata['allowed_push_host'] = "https://gemfury.com'" - else - raise 'RubyGems 2.0 or newer is required to protect against ' \ - 'public gem pushes.' - end - spec.files = Dir.chdir(File.expand_path(__dir__)) do `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } end