jar-dependencies 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/jar-dependencies.gemspec +1 -1
- data/lib/jar_dependencies.rb +13 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73555c8c6ef8f730df4791d6ee4efc0e21b900f5
|
4
|
+
data.tar.gz: e933d33225e437640c4e76679ee8e238f1c79500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9100d709b4460f00f1e286eb758f4f6f46ffbf180caf147e381b4860c225904c713ffe0458d421d218b7f4b73a4ef550c15a002f798f4aa55b80060e3305db85
|
7
|
+
data.tar.gz: f99bd349315a539846b5baeb4c9fe58d64f40a420c6e37138679c5a9c236264bd122ee99f79a89af9d7dc5901426552e1e59f42a5d92952adca7c129683f8f3f
|
data/jar-dependencies.gemspec
CHANGED
data/lib/jar_dependencies.rb
CHANGED
@@ -23,6 +23,8 @@ module Jars
|
|
23
23
|
HOME = 'JARS_HOME'
|
24
24
|
MAVEN_SETTINGS = 'JARS_MAVEN_SETTINGS'
|
25
25
|
SKIP = 'JARS_SKIP'
|
26
|
+
NO_REQUIRE = 'JARS_NO_REQUIRE'
|
27
|
+
QUIET = 'JARS_QUIET'
|
26
28
|
VERBOSE = 'JARS_VERBOSE'
|
27
29
|
DEBUG = 'JARS_DEBUG'
|
28
30
|
VENDOR = 'JARS_VENDOR'
|
@@ -50,6 +52,14 @@ module Jars
|
|
50
52
|
to_boolean( SKIP )
|
51
53
|
end
|
52
54
|
|
55
|
+
def self.no_require?
|
56
|
+
to_boolean( NO_REQUIRE )
|
57
|
+
end
|
58
|
+
|
59
|
+
def self.quiet?
|
60
|
+
to_boolean( QUIET )
|
61
|
+
end
|
62
|
+
|
53
63
|
def self.verbose?
|
54
64
|
to_boolean( VERBOSE )
|
55
65
|
end
|
@@ -148,15 +158,15 @@ module Jars
|
|
148
158
|
end
|
149
159
|
|
150
160
|
def self.freeze_loading
|
151
|
-
ENV[
|
161
|
+
ENV[ NO_REQUIRE ] = 'true'
|
152
162
|
end
|
153
163
|
end
|
154
164
|
|
155
165
|
def require_jar( *args )
|
156
|
-
return false if Jars.
|
166
|
+
return false if Jars.no_require?
|
157
167
|
result = Jars.require_jar( *args )
|
158
168
|
if result.is_a? String
|
159
|
-
warn "jar coordinate #{args[0..-2].join( ':' )} already loaded with version #{result}"
|
169
|
+
warn "jar coordinate #{args[0..-2].join( ':' )} already loaded with version #{result}" unless Jars.quiet?
|
160
170
|
return false
|
161
171
|
end
|
162
172
|
result
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jar-dependencies
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- christian meier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: minitest
|