Sha256: 9f7f7bcbe66dc55e5bd2b972e90705b9dca1157edb23eeb910cb13cb801a831c

Contents?: true

Size: 756 Bytes

Versions: 27

Compression:

Stored size: 756 Bytes

Contents

# Checks for Ruby version 1.8.7 or higher before Bookshop is actually run
if RUBY_VERSION < '1.8.7'
  desc = defined?(RUBY_DESCRIPTION) ? RUBY_DESCRIPTION : "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE})"
  abort <<-end_message

    Bookshop requires Ruby 1.8.7 or higher.

    You're running
      #{desc}

    Please upgrade to continue.

  end_message
end

# Add the following code block if need to check for other versions of 1.9.*
# 
# elsif RUBY_VERSION > '1.9' and RUBY_VERSION < '1.9.2'
#   $stderr.puts <<-end_message
# 
#     Bookshop doesn't officially support Ruby 1.9.1 since recent stable
#     releases have segfaulted the test suite. Please upgrade to Ruby 1.9.2.
# 
#     You're running
#       #{RUBY_DESCRIPTION}
# 
#   end_message
# end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
bookshop-0.1.8 lib/bookshop/ruby_version_check.rb
bookshop-0.1.7 lib/bookshop/ruby_version_check.rb
bookshop-0.1.6 lib/bookshop/ruby_version_check.rb
bookshop-0.1.5 lib/bookshop/ruby_version_check.rb
bookshop-0.1.4 lib/bookshop/ruby_version_check.rb
bookshop-0.1.3 lib/bookshop/ruby_version_check.rb
bookshop-0.1.2 lib/bookshop/ruby_version_check.rb
bookshop-0.1.1 lib/bookshop/ruby_version_check.rb
bookshop-0.1.0 lib/bookshop/ruby_version_check.rb
bookshop-0.0.22 lib/bookshop/ruby_version_check.rb
bookshop-0.0.21 lib/bookshop/ruby_version_check.rb
bookshop-0.0.19 lib/bookshop/ruby_version_check.rb
bookshop-0.0.18 lib/bookshop/ruby_version_check.rb
bookshop-0.0.17 lib/bookshop/ruby_version_check.rb
bookshop-0.0.16 lib/bookshop/ruby_version_check.rb
bookshop-0.0.15 lib/bookshop/ruby_version_check.rb
bookshop-0.0.14 lib/bookshop/ruby_version_check.rb
bookshop-0.0.13 lib/bookshop/ruby_version_check.rb
bookshop-0.0.12 lib/bookshop/ruby_version_check.rb
bookshop-0.0.11 lib/bookshop/ruby_version_check.rb