Skip to content

Commit 0636812

Browse files
committed
Simplify Rakefile - remove unnecessary build task
The build task was not needed: - gem release command handles building the gem - We don't need a separate build step - The default task can just run specs This makes the Rakefile cleaner and simpler.
1 parent be960d0 commit 0636812

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Rakefile

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,4 @@ RSpec::Core::RakeTask.new(:spec) do |t|
33
t.pattern = 'spec/cypress_on_rails/*_spec.rb'
44
end
55

6-
# Manually define build task (normally provided by bundler/gem_tasks)
7-
# We don't use bundler/gem_tasks because it conflicts with our custom release task
8-
desc "Build gem into pkg directory"
9-
task :build do
10-
require_relative 'lib/cypress_on_rails/version'
11-
sh "gem build cypress-on-rails.gemspec"
12-
sh "mkdir -p pkg"
13-
sh "mv cypress-on-rails-#{CypressOnRails::VERSION}.gem pkg/"
14-
end
15-
16-
task default: %w[spec build]
6+
task default: :spec

0 commit comments

Comments
 (0)