jar-dependencies 0.3.9 → 0.3.10

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: c47133d3459fa8f0accb6416d52e1ebc8185adce
4
- data.tar.gz: e7bd2ceff4c112f46f7b993d4160a86ed58f64ee
3
+ metadata.gz: 671dabcc563b0977f912ff6e3829794b3b7f5963
4
+ data.tar.gz: 0ff60b4ee885064a381b5f872470d1d79f8d5753
5
5
  SHA512:
6
- metadata.gz: a1dad941eb03582e45e2d0761e33c9723cb6ece75839833dbfcff3ffac20def284d4902673b342cadd4f2752b353e53abe40713afac687073b19e5ddb362c148
7
- data.tar.gz: 4b78e9d43b141a30c9715e16c86a1291f0437a3f48720acd932861562add4a1c84de3a67f4573fd5895d329958490837957f4360c26f196a4e32955e76665601
6
+ metadata.gz: 7760c9d4bfca4cd25ee93cdd5a8e93a92d03167fa3358557fee5fcf86ef0db3af9d3cf5ed4ad7440f3fc91342b7c7c9697e38be0b9709ac03be04d487bdf39f2
7
+ data.tar.gz: a267bd072196e0fa8a53b4efdfa877ef93bbaf7dfc5c616bff8988ef2dcda8b6c4fac3038f25d95f59769a8560731e9c8f3bb65d862d3c0c1de2e541f876c7c2
@@ -18,7 +18,7 @@
18
18
  # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19
19
  # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
20
  #
21
- require 'jars/maven_settings'
21
+
22
22
  module Jars
23
23
  unless defined? Jars::SKIP_LOCK
24
24
  MAVEN_SETTINGS = 'JARS_MAVEN_SETTINGS'.freeze
@@ -47,6 +47,8 @@ module Jars
47
47
  VENDOR = 'JARS_VENDOR'.freeze
48
48
  end
49
49
 
50
+ autoload :MavenSettings, 'jars/maven_settings'
51
+
50
52
  class << self
51
53
 
52
54
  def lock_down( debug = false, verbose = false, options = {} )
@@ -181,7 +183,7 @@ module Jars
181
183
  end
182
184
 
183
185
  def home
184
- @_jars_home_ ||= absolute(to_prop(HOME)) || local_maven_repo
186
+ absolute(to_prop(HOME)) || local_maven_repo
185
187
  end
186
188
 
187
189
  def require_jars_lock!( scope = :runtime )
@@ -208,7 +208,7 @@ module Jars
208
208
  private
209
209
 
210
210
  def do_install( vendor_dir, write_require_file )
211
- if !spec.require_paths.include?(vendor_dir)
211
+ if !spec.require_paths.include?(vendor_dir) && vendor_dir
212
212
  raise "vendor dir #{vendor_dir} not in require_paths of gemspec #{spec.require_paths}"
213
213
  end
214
214
  target_dir = File.join( @mvn.basedir, vendor_dir || spec.require_path )
@@ -1,4 +1,3 @@
1
- require 'jar_dependencies'
2
1
  require 'rubygems/request'
3
2
  require 'rubygems/uri_formatter'
4
3
  module Jars
@@ -127,7 +126,7 @@ module Jars
127
126
  raw.sub!('__HTTP_SERVER__', http.host)
128
127
  raw.sub!('__HTTP_PORT__', http.port.to_s)
129
128
  else
130
- raw.sub!('__HTTP_ACTIVE__', 'false')
129
+ raw.sub!('__HTTP_ACTIVE__', 'false')
131
130
  end
132
131
  if https
133
132
  raw.sub!('__HTTPS_ACTIVE__', 'true')
@@ -1,5 +1,5 @@
1
1
  module Jars
2
- VERSION = '0.3.9'.freeze
2
+ VERSION = '0.3.10'.freeze
3
3
  JRUBY_PLUGINS_VERSION = '1.1.3'.freeze
4
4
  DEPENDENCY_PLUGIN_VERSION = '2.8'.freeze
5
5
  end
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.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - christian meier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-01-03 00:00:00.000000000 Z
11
+ date: 2017-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement