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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8f7728b4afce3475b8450f396dfafd1bb9bdf24e
4
- data.tar.gz: 0196945e29f37f3f40b2701f0e581e578276a0a5
3
+ metadata.gz: e7fe1687af38e5b074584b6996cf6faa2d5d0bd7
4
+ data.tar.gz: ac1fadeb043e887fa72bb1ff569c77c3c161e40b
5
5
  SHA512:
6
- metadata.gz: 2ca89ff390317b117dff54b6d8374f88d17c1f8bf1599f77b5b2d0d7efdcd7ebdeeaa3f61f9c9ce55274d01f9b305ff33047b4012cb76264f49e1fbda538fcb0
7
- data.tar.gz: f15a6403ffa728232470524e05ff692b566301db64c4a3925726e0601f0bb77ec4b4e6377ec7127a414f9b1cd4ed07dfd3311bd90d3fc49b2e36c7a03d5c737b
6
+ metadata.gz: ceb3a41063d2244cbd4dd3f717ddbbc73580fd7f8a9cc28ee5b59fc6d06ad09ca945755967a70a1f76af89e18de791a662434d2d32f23d3ddce9c626c5ae02c1
7
+ data.tar.gz: 65bff559994227f026fdfe85b66774d4e29752cc28579a8ec7702d902a45bd486e7932d8fb9f7618d6c8c6a8e5d6d448284a5b107190c14450c31a7cedd9264f
data/README.md CHANGED
@@ -13,4 +13,4 @@ gem "spring-commands-rescue"
13
13
 
14
14
  ## Credits
15
15
 
16
- This gem was inspired by Jon Leighton's spring-commands-cucumber gem
16
+ This gem was inspired by jvanbaarsen's [spring-commands-spinach](https://github.com/jvanbaarsen/spring-commands-spinach) gem
@@ -1,8 +1,12 @@
1
1
  module Spring
2
2
  module Commands
3
3
  class PryRescue
4
- def env(*)
5
- "test"
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.1"
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spring-commands-rescue
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stan Luo