working 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/working/guard.rb +19 -0
- data/lib/working/version.rb +1 -1
- metadata +3 -2
@@ -0,0 +1,19 @@
|
|
1
|
+
Guard::Dsl.new.instance_eval do
|
2
|
+
# Rerun bundler, if needed
|
3
|
+
guard 'bundler' do watch /^(Gemfile|.*\.gemspec)$/ end
|
4
|
+
# These reboot spork completely
|
5
|
+
guard 'spork', minitest: true, test_unit: false do
|
6
|
+
watch /Gemfile\.lock/
|
7
|
+
end
|
8
|
+
guard 'sporkminitest' do
|
9
|
+
# Minitest::Unit style test files
|
10
|
+
watch %r|^test/.*_test\.rb|
|
11
|
+
watch %r|^lib/(.*)\.rb| do |m| "test/#{m[1]}_test.rb" end
|
12
|
+
# Rerun all on test_helper change
|
13
|
+
watch %r|^test/test_helper\.rb| do 'test' end
|
14
|
+
# Rails app/ dir mapping directly parallel to test/* dirs.
|
15
|
+
# Assumes all test/* dir names are the same as the dirs in app/*
|
16
|
+
# Will need adjustment if you use app/controllers ⇒ test/functional, etc.
|
17
|
+
watch %r|^app/(.*)\.rb| do |m| "test/#{m[1]}_test.rb" end
|
18
|
+
end
|
19
|
+
end
|
data/lib/working/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: working
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-01-
|
12
|
+
date: 2013-01-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: pry-de
|
@@ -139,6 +139,7 @@ files:
|
|
139
139
|
- Rakefile
|
140
140
|
- bin/working-init
|
141
141
|
- lib/working.rb
|
142
|
+
- lib/working/guard.rb
|
142
143
|
- lib/working/rake_tasks.rb
|
143
144
|
- lib/working/test_helper.rb
|
144
145
|
- lib/working/version.rb
|