spring-commands-rescue 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/spring/commands/rescue.rb +6 -3
- data/spring-commands-rescue.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e7fe1687af38e5b074584b6996cf6faa2d5d0bd7
|
4
|
+
data.tar.gz: ac1fadeb043e887fa72bb1ff569c77c3c161e40b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ceb3a41063d2244cbd4dd3f717ddbbc73580fd7f8a9cc28ee5b59fc6d06ad09ca945755967a70a1f76af89e18de791a662434d2d32f23d3ddce9c626c5ae02c1
|
7
|
+
data.tar.gz: 65bff559994227f026fdfe85b66774d4e29752cc28579a8ec7702d902a45bd486e7932d8fb9f7618d6c8c6a8e5d6d448284a5b107190c14450c31a7cedd9264f
|
data/README.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
module Spring
|
2
2
|
module Commands
|
3
3
|
class PryRescue
|
4
|
-
def env(
|
5
|
-
|
4
|
+
def env(args)
|
5
|
+
args.each do |arg|
|
6
|
+
return "test" if arg.match(/rspec|test/)
|
7
|
+
end
|
8
|
+
|
9
|
+
ENV['RAILS_ENV'] if ENV['RAILS_ENV']
|
6
10
|
end
|
7
11
|
|
8
12
|
def exec_name
|
@@ -11,6 +15,5 @@ module Spring
|
|
11
15
|
end
|
12
16
|
|
13
17
|
Spring.register_command "rescue", PryRescue.new
|
14
|
-
Spring::Commands::Rake.environment_matchers[/^rescue($|:)/] = "test"
|
15
18
|
end
|
16
19
|
end
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "spring-commands-rescue"
|
7
|
-
spec.version = "1.0.
|
7
|
+
spec.version = "1.0.2"
|
8
8
|
spec.authors = ["Stan Luo"]
|
9
9
|
spec.email = ["stan001212@gmail.com"]
|
10
10
|
spec.description = %q{rescue command for spring}
|