-
Notifications
You must be signed in to change notification settings - Fork 510
/
Copy pathRakefile
40 lines (31 loc) · 825 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env rake
require "bundler/gem_helper"
require "rspec/core/rake_task"
require "rake/testtask"
require "standard/rake"
namespace "dotenv" do
Bundler::GemHelper.install_tasks name: "dotenv"
end
class DotenvRailsGemHelper < Bundler::GemHelper
def guard_already_tagged
# noop
end
def tag_version
# noop
end
end
namespace "dotenv-rails" do
DotenvRailsGemHelper.install_tasks name: "dotenv-rails"
end
task build: ["dotenv:build", "dotenv-rails:build"]
task install: ["dotenv:install", "dotenv-rails:install"]
task release: ["dotenv:release", "dotenv-rails:release"]
desc "Run all specs"
RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w[--color]
t.verbose = false
end
Rake::TestTask.new do |t|
t.test_files = Dir["test/**/*_test.rb"]
end
task default: [:spec, :test, :standard]