clash 2.2.3 → 2.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clash/helpers.rb +12 -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: 1a435ce87cca2eb5879556a4f41289bd98b36945
|
4
|
+
data.tar.gz: b21619963eb2a164bc32f6953630a90025de479a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0c4513e5badd32540ddc8cccec2f7397e6556ceed7ca0f751e390b60b4f9d34e9e51d3545c73a304bd67d8afc76c27c507cd619b83b25da416b468c82098065b
|
7
|
+
data.tar.gz: 440f8d9c862c3ae30baebf59e53e5b0f4a96589b81400952654a78c9e68ec9791c5018ced4e580f10d563c662a0adedda7a9dd128aa3c210bccc421ba692b614
|
data/lib/clash/helpers.rb
CHANGED
@@ -116,3 +116,15 @@ module Clash
|
|
116
116
|
end
|
117
117
|
end
|
118
118
|
end
|
119
|
+
|
120
|
+
def require_gems
|
121
|
+
if !ENV["CLASH_NO_BUNDLER_REQUIRE"] && (File.file?("Gemfile") || File.file?("../Gemfile"))
|
122
|
+
require "bundler"
|
123
|
+
Bundler.setup # puts all groups on the load path
|
124
|
+
true
|
125
|
+
else
|
126
|
+
false
|
127
|
+
end
|
128
|
+
rescue LoadError, Bundler::GemfileNotFound
|
129
|
+
false
|
130
|
+
end
|
data/lib/clash/version.rb
CHANGED