Skip to content

Commit e9f089c

Browse files
committed
Add guard gem
1 parent 7987f67 commit e9f089c

7 files changed

+74
-0
lines changed

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ gemspec
66

77
gem 'appraisal', git: 'https://github.com/n-rodriguez/appraisal.git', branch: 'wip/combustion'
88

9+
gem 'guard-rspec'
910
gem 'pg'
1011
gem 'rake'
1112
gem 'rspec'

Guardfile

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# frozen_string_literal: true
2+
3+
guard :rspec, cmd: 'bin/rspec' do
4+
require 'guard/rspec/dsl'
5+
dsl = Guard::RSpec::Dsl.new(self)
6+
7+
# RSpec files
8+
rspec = dsl.rspec
9+
watch(rspec.spec_helper) { rspec.spec_dir }
10+
watch(rspec.spec_support) { rspec.spec_dir }
11+
watch(rspec.spec_files)
12+
13+
# Ruby files
14+
ruby = dsl.ruby
15+
dsl.watch_spec_files_for(ruby.lib_files)
16+
end

bin/_guard-core

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application '_guard-core' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17+
load(bundle_binstub)
18+
else
19+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21+
end
22+
end
23+
24+
require "rubygems"
25+
require "bundler/setup"
26+
27+
load Gem.bin_path("guard", "_guard-core")

bin/guard

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/usr/bin/env ruby
2+
# frozen_string_literal: true
3+
4+
#
5+
# This file was generated by Bundler.
6+
#
7+
# The application 'guard' is installed as part of a gem, and
8+
# this file is here to facilitate running it.
9+
#
10+
11+
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
12+
13+
bundle_binstub = File.expand_path("bundle", __dir__)
14+
15+
if File.file?(bundle_binstub)
16+
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
17+
load(bundle_binstub)
18+
else
19+
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20+
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
21+
end
22+
end
23+
24+
require "rubygems"
25+
require "bundler/setup"
26+
27+
load Gem.bin_path("guard", "guard")

gemfiles/activerecord_7.0.8.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
source "https://rubygems.org"
44

55
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
6+
gem "guard-rspec"
67
gem "pg"
78
gem "rake"
89
gem "rspec"

gemfiles/activerecord_7.1.3.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
source "https://rubygems.org"
44

55
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
6+
gem "guard-rspec"
67
gem "pg"
78
gem "rake"
89
gem "rspec"

gemfiles/activerecord_7.2.0.gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
source "https://rubygems.org"
44

55
gem "appraisal", git: "https://github.com/n-rodriguez/appraisal.git", branch: "wip/combustion"
6+
gem "guard-rspec"
67
gem "pg"
78
gem "rake"
89
gem "rspec"

0 commit comments

Comments
 (0)