guard 2.12.0 → 2.12.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/guard +11 -5
  3. data/lib/guard/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b69ff7c38770b8a29924a38a705223f786200d6
4
- data.tar.gz: 4e2ee36f5c3d9a7cab2694159a42db76c9b90cbe
3
+ metadata.gz: 542d426a2c636cd85b3743881b15d82f5e1f7f17
4
+ data.tar.gz: cdb10b37557cf465ac111d6de2af813990800810
5
5
  SHA512:
6
- metadata.gz: f41277e89d009cadea030fef8d1f30940f092e64250b6e093b1f843082ce3bf23e10c764bac7eeb3ed6c6d800af309ce03c461ff6d9fea682b4be82695c35fb8
7
- data.tar.gz: 1914c80a762e4988c07b05b4e4f53811647cfb046355cbed428be143aef11db75bc97e05572b51ead74f1a9b31ce441ef04ede888781e98a1db58c733747030b
6
+ metadata.gz: 691de8845c56ce3f7504d9dc856c08313c48f73b4d56dc67e07b6a4febf5b0431f5160aede3b85a6a557e1a29ed10f3947ab9da24d3a20c1ca6891910de6ac8f
7
+ data.tar.gz: 5dee51aa89cb0c7baf23d0816a2fac58a1c58edb24af7d2accbf8f64da239623932f2b71b81ef668054a7b17c06e334429b73d0316021d16bf2497e13a1707b1
data/bin/guard CHANGED
@@ -1,10 +1,16 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "pathname"
4
- ENV["BUNDLE_GEMFILE"] ||= (Pathname(__FILE__).realpath + "../../Gemfile").to_s
5
-
6
- require "rubygems"
7
- require "bundler/setup"
3
+ begin
4
+ require "pathname"
5
+ gemfile = Pathname(__FILE__).realpath + "../../Gemfile"
6
+ if gemfile.exist?
7
+ ENV["BUNDLE_GEMFILE"] ||= gemfile.to_s
8
+ require "rubygems"
9
+ require "bundler/setup" if File.exist?(ENV["BUNDLE_GEMFILE"])
10
+ else
11
+ require "rubygems"
12
+ end
13
+ end
8
14
 
9
15
  while !system(Gem.bin_path("guard", "_guard-core"), *ARGV) && $?.exitstatus == 2
10
16
  puts("Restarting guard...")
@@ -1,3 +1,3 @@
1
1
  module Guard
2
- VERSION = "2.12.0"
2
+ VERSION = "2.12.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thibaud Guillaume-Gentil