Sha256: e07f3c1a37f6dd9bfff0ca49859f7ada308e39ff8e9229b02ce5c521f0ac6d71

Contents?: true

Size: 813 Bytes

Versions: 31

Compression:

Stored size: 813 Bytes

Contents

# Note: This is handled toplevel (in the file
# structure) to not confuse compilers.
#
failed = 0

begin
  require ::File.expand_path '../performant', __FILE__
rescue LoadError => e
  failed += 1
  
  # Have Makefile built.
  #
  require ::File.expand_path '../extconf', __FILE__
  
  # Run make in the right gem directory.
  #
  Dir.chdir(::File.expand_path '..', __FILE__) do
    puts %x(make)
  end
  
  # Try again.
  #
  retry if failed < 2
  
  # Give up and inform the user.
  #
  puts <<-NOTE

Picky tried to compile its source on your system but failed.
Please add an issue: https://github.com/floere/picky/issues/
and copy anything into it that you think is helpful. Thanks!

See related issue: https://github.com/floere/picky/issues/81

The problem reported by the compiler was:
#{e}

NOTE
  exit 1
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
picky-4.14.0 lib/maybe_compile.rb
picky-4.13.1 lib/maybe_compile.rb
picky-4.13.0 lib/maybe_compile.rb
picky-4.12.13 lib/maybe_compile.rb
picky-4.12.12 lib/maybe_compile.rb
picky-4.12.11 lib/maybe_compile.rb
picky-4.12.10 lib/maybe_compile.rb
picky-4.12.8 lib/maybe_compile.rb
picky-4.12.7 lib/maybe_compile.rb
picky-4.12.6 lib/maybe_compile.rb
picky-4.12.5 lib/maybe_compile.rb
picky-4.12.4 lib/maybe_compile.rb
picky-4.12.3 lib/maybe_compile.rb
picky-4.12.2 lib/maybe_compile.rb
picky-4.12.1 lib/maybe_compile.rb
picky-4.12.0 lib/maybe_compile.rb
picky-4.11.3 lib/maybe_compile.rb
picky-4.11.2 lib/maybe_compile.rb
picky-4.11.1 lib/maybe_compile.rb
picky-4.11.0 lib/maybe_compile.rb