Skip to content

Commit b5bd1bc

Browse files
author
Ricardo Hermida Ruiz
committed
Make gem releasable without bundling
1 parent df23aa0 commit b5bd1bc

File tree

5 files changed

+18
-123
lines changed

5 files changed

+18
-123
lines changed

.codeclimate.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
---
22
engines:
3-
bundler-audit:
4-
enabled: true
53
duplication:
64
enabled: true
75
config:

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ coverage/
66
/spec/reports
77
/spec/support/last_execution_examples_result.txt
88
.tags_sorted_by_file
9+
/Gemfile.lock

Gemfile.lock

Lines changed: 0 additions & 115 deletions
This file was deleted.

Rakefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/usr/bin/env rake
2-
require 'bundler/gem_tasks'
3-
4-
require 'rspec/core/rake_task'
52

6-
require 'cassette/version'
3+
require 'bundler/gem_tasks'
74

8-
RSpec::Core::RakeTask.new(:spec) do |task|
9-
task.rspec_opts = '--format RspecJunitFormatter --out spec/reports/rspec.xml --format documentation --color'
5+
if defined?(RSpec)
6+
require 'rspec/core/rake_task'
7+
RSpec::Core::RakeTask.new(:spec) do |task|
8+
task.rspec_opts = '--format RspecJunitFormatter --out spec/reports/rspec.xml --format documentation --color'
9+
end
1010
end

docker-release.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/usr/bin/env bash
2+
3+
RELEASE_ARGS="${@:-rake release}"
4+
IMAGE=ruby:2.6
5+
6+
docker run -it --rm \
7+
-w /app \
8+
-v $(pwd):/app \
9+
-v $HOME/.gem:/root/.gem \
10+
$IMAGE \
11+
$RELEASE_ARGS

0 commit comments

Comments
 (0)