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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a75e3039064c441fe8524357bbbdc3d7caca4c82
4
- data.tar.gz: 07c4e7827bf5c7285c7d6dc294d11239946f8658
3
+ metadata.gz: 73555c8c6ef8f730df4791d6ee4efc0e21b900f5
4
+ data.tar.gz: e933d33225e437640c4e76679ee8e238f1c79500
5
5
  SHA512:
6
- metadata.gz: 9e74527c71109fd5e04b9b5707033bae51d1de8ae64c2499acebfe4a00e596f459409163d590a1439f50d5c4fa30124dfbaeb6be21a8be504e2310f44453b800
7
- data.tar.gz: 7cdf79275bd10df5ea9c5ca45a964aed59aca6cc62f5aaedd3e2c96e0b40df78249674a3a0afad77a8f8150e3d065e5c5b5dff8554a0816b7520192f76230747
6
+ metadata.gz: 9100d709b4460f00f1e286eb758f4f6f46ffbf180caf147e381b4860c225904c713ffe0458d421d218b7f4b73a4ef550c15a002f798f4aa55b80060e3305db85
7
+ data.tar.gz: f99bd349315a539846b5baeb4c9fe58d64f40a420c6e37138679c5a9c236264bd122ee99f79a89af9d7dc5901426552e1e59f42a5d92952adca7c129683f8f3f
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'jar-dependencies'
5
- s.version = "0.0.7"
5
+ s.version = "0.0.8"
6
6
  s.author = 'christian meier'
7
7
  s.email = [ 'mkristian@web.de' ]
8
8
  s.summary = 'manage jar dependencies for gems'
@@ -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[ SKIP ] = 'true'
161
+ ENV[ NO_REQUIRE ] = 'true'
152
162
  end
153
163
  end
154
164
 
155
165
  def require_jar( *args )
156
- return false if Jars.skip?
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.7
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-09 00:00:00.000000000 Z
11
+ date: 2014-08-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest