clash 2.2.4 → 2.2.5
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.
- checksums.yaml +4 -4
- data/lib/clash/helpers.rb +12 -11
- data/lib/clash/test.rb +1 -0
- data/lib/clash/version.rb +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: be90c028c475aa2782bbc5d85c670a8063474cf3
|
|
4
|
+
data.tar.gz: b160b85a2a5240f9f5ef97b935f5e70936e25c12
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 79ad060b484a42f03a514f9f6135a789cf24fe10d6ce899a6060facbd2311b4d9d49d6bc484e41048a52e10f6572be45811d21f53f31908e54561a500429f448
|
|
7
|
+
data.tar.gz: 315a34a0615f80ca686af9f272e0fe89192066294dac43af2fa49bd7419304e1df05b04f01687a54219839a33a55ab7479bed48f16b1ab698b760dc947467345
|
data/lib/clash/helpers.rb
CHANGED
|
@@ -114,17 +114,18 @@ module Clash
|
|
|
114
114
|
def print_pass
|
|
115
115
|
pout greenit('.')
|
|
116
116
|
end
|
|
117
|
-
end
|
|
118
|
-
end
|
|
119
117
|
|
|
120
|
-
def require_gems
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
118
|
+
def require_gems
|
|
119
|
+
if !ENV["CLASH_NO_BUNDLER_REQUIRE"] && (File.file?("Gemfile") || File.file?("../Gemfile"))
|
|
120
|
+
require "bundler"
|
|
121
|
+
Bundler.setup # puts all groups on the load path
|
|
122
|
+
true
|
|
123
|
+
else
|
|
124
|
+
false
|
|
125
|
+
end
|
|
126
|
+
rescue LoadError, Bundler::GemfileNotFound
|
|
127
|
+
false
|
|
128
|
+
end
|
|
127
129
|
end
|
|
128
|
-
rescue LoadError, Bundler::GemfileNotFound
|
|
129
|
-
false
|
|
130
130
|
end
|
|
131
|
+
|
data/lib/clash/test.rb
CHANGED
data/lib/clash/version.rb
CHANGED