Skip to content

Commit

Permalink
Merge pull request #2 from hinthealth/chore/fix-circle-ci
Browse files Browse the repository at this point in the history
Fix CircleCI
  • Loading branch information
MaicolBen authored Nov 19, 2019
2 parents 6516853 + 7a012a6 commit 5e66746
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 10 deletions.
11 changes: 9 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ jobs:
build:
docker:
# specify the version you desire here
- image: circleci/ruby:2.4.1-node-browsers
- image: circleci/ruby:2.5-stretch
environment:
BUNDLER_VERSION: 2.0.1

working_directory: ~/repo

Expand All @@ -20,11 +22,16 @@ jobs:
- v1-dependencies-{{ checksum "Gemfile.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-
- run:
name: install dependencies
command: |
gem update --system
gem install bundler
- run:
name: install dependencies
command: |
bundle install --jobs=4 --retry=3 --path vendor/bundle
bundle install
- save_cache:
paths:
- ./vendor/bundle
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
/pkg/
/spec/reports/
/tmp/
/vendor/

# rspec failure tracking
.rspec_status
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source "https://rubygems.org"
source 'https://rubygems.org'

# Specify your gem's dependencies in simple-redis-lock.gemspec
gemspec
1 change: 0 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ PLATFORMS
ruby

DEPENDENCIES
bundler (~> 2.0)
rake (~> 10.0)
rspec (~> 3.0)
simple-redis-lock!
Expand Down
11 changes: 5 additions & 6 deletions simple-redis-lock.gemspec
Original file line number Diff line number Diff line change
@@ -1,23 +1,22 @@

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'simple_redis_lock/version'

Gem::Specification.new do |spec|
spec.name = 'simple-redis-lock'
spec.version = SimpleRedisLock::VERSION
spec.authors = ['Hint']
spec.authors = ['Hint']
spec.email = ['[email protected]']

spec.summary = 'Simple redis lock'
spec.license = 'MIT'
spec.summary = 'Simple redis lock'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.4'

spec.files = Dir['lib/**/*.rb']
spec.files = Dir['lib/**/*.rb']
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency 'rspec', '~> 3.0'
end

0 comments on commit 5e66746

Please sign in to comment.