Sha256: 28db8d935d4437abe773f8a2bfef12a2337e2d28402d58452a9daae540cbce01

Contents?: true

Size: 390 Bytes

Versions: 15

Compression:

Stored size: 390 Bytes

Contents

module LockJar
  # If Bundler constant is defined, assume we are running in a bundled environment and
  # register all Jarfiles
  def self.register_bundled_jarfiles
    if defined? Bundler
      Gem::Specification.
        map { |s| File.join(s.full_gem_path, 'Jarfile') }.
        select { |f| File.exists? f }.
        each { |f| LockJar.register_jarfile f }
      true
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
pacer-2.0.24-java lib/pacer/support/lock_jar.rb
pacer-2.0.22-java lib/pacer/support/lock_jar.rb
pacer-2.0.20-java lib/pacer/support/lock_jar.rb
pacer-2.0.19-java lib/pacer/support/lock_jar.rb
pacer-2.0.18-java lib/pacer/support/lock_jar.rb
pacer-2.0.17-java lib/pacer/support/lock_jar.rb
pacer-2.0.16-java lib/pacer/support/lock_jar.rb
pacer-2.0.15-java lib/pacer/support/lock_jar.rb
pacer-2.0.14-java lib/pacer/support/lock_jar.rb
pacer-2.0.13-java lib/pacer/support/lock_jar.rb
pacer-2.0.12-java lib/pacer/support/lock_jar.rb
pacer-2.0.10-java lib/pacer/support/lock_jar.rb
pacer-2.0.10.pre-java lib/pacer/support/lock_jar.rb
pacer-2.0.8-java lib/pacer/support/lock_jar.rb
pacer-2.0.6-java lib/pacer/support/lock_jar.rb