Skip to content

Commit

Permalink
Make gem releasable without bundling
Browse files Browse the repository at this point in the history
  • Loading branch information
rhruiz committed Jun 27, 2019
1 parent cab3da3 commit 069a2f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 123 deletions.
2 changes: 0 additions & 2 deletions .codeclimate.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
---
engines:
bundler-audit:
enabled: true
duplication:
enabled: true
config:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ coverage/
/spec/reports
/spec/support/last_execution_examples_result.txt
.tags_sorted_by_file
/Gemfile.lock
115 changes: 0 additions & 115 deletions Gemfile.lock

This file was deleted.

12 changes: 6 additions & 6 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/usr/bin/env rake
require 'bundler/gem_tasks'

require 'rspec/core/rake_task'

require 'cassette/version'
require 'bundler/gem_tasks'

RSpec::Core::RakeTask.new(:spec) do |task|
task.rspec_opts = '--format RspecJunitFormatter --out spec/reports/rspec.xml --format documentation --color'
if defined?(RSpec)
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |task|
task.rspec_opts = '--format RspecJunitFormatter --out spec/reports/rspec.xml --format documentation --color'
end
end
11 changes: 11 additions & 0 deletions docker-release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/usr/bin/env bash

RELEASE_ARGS="${@:-rake release}"
IMAGE=ruby:2.6

docker run -it --rm \
-w /app \
-v $(pwd):/app \
-v $HOME/.gem:/root/.gem \
$IMAGE \
$RELEASE_ARGS

0 comments on commit 069a2f4

Please sign in to comment.