Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions 50 appveyor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
###############################################################################
#
# This AppVeyor config is *NOT* for running the tests on Windows.
#
# This is to ensure that the latest version of the bcrypt gem can be installed
# on Windows across all of the currently supported versions of Ruby.
#
###############################################################################

version: "{branch}-{build}"
build: off
clone_depth: 1

init:
# Install Ruby 1.8.7
- if %RUBY_VERSION%==187 (
appveyor DownloadFile https://dl.bintray.com/oneclick/rubyinstaller/rubyinstaller-1.8.7-p374.exe -FileName C:\ruby_187.exe &
C:\ruby_187.exe /verysilent /dir=C:\Ruby%RUBY_VERSION%
)

environment:
matrix:
- RUBY_VERSION: "187"
- RUBY_VERSION: "193"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are no 64-bit versions of Rubies 1.8 and 1.9.

- RUBY_VERSION: "200"
- RUBY_VERSION: "200-x64"
- RUBY_VERSION: "21"
- RUBY_VERSION: "21-x64"
- RUBY_VERSION: "22"
- RUBY_VERSION: "22-x64"
- RUBY_VERSION: "23"
- RUBY_VERSION: "23-x64"
- RUBY_VERSION: "24"
- RUBY_VERSION: "24-x64"
- RUBY_VERSION: "25"
- RUBY_VERSION: "25-x64"

install:
- set PATH=C:\Ruby%RUBY_VERSION%\bin;%PATH%
- if %RUBY_VERSION%==187 (
gem update --system 2.0.17
)

before_test:
- ruby -v
- gem -v

test_script:
- gem install bcrypt --prerelease --no-ri --no-rdoc
- ruby -e "require 'rubygems'; require 'bcrypt'"
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. The gem actually always installs fine — it's requiring the lib that blows up, hence this line.

  2. The require 'rubygems' is necessary for Ruby 1.8. For the rest, it just returns false, but causes no harm.

Morty Proxy This is a proxified and sanitized view of the page, visit original site.