-
Notifications
You must be signed in to change notification settings - Fork 15
/
Gemfile
32 lines (28 loc) · 886 Bytes
/
Gemfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
source "https://rubygems.org"
gemspec
group :test do
gem "chefstyle", "2.2.0"
gem "rspec", "~> 3.0"
gem "rake"
gem "test-unit"
gem "ffi"
end
group :debug do
gem "pry"
gem "pry-byebug"
gem "rb-readline"
end
# These lines added for Windows (x64) development only.
# For ffi-libarchive to function during development on Windows we need the
# binaries in the RbConfig::CONFIG["bindir"]
#
# We copy (and overwrite) these files every time "bundle <exec|install>" is
# executed, just in case they have changed.
if RUBY_PLATFORM =~ /mswin|mingw|windows/
instance_eval do
ruby_exe_dir = RbConfig::CONFIG["bindir"]
assemblies = Dir.glob(File.expand_path("distro/ruby_bin_folder", Dir.pwd) + "/*.dll")
FileUtils.cp_r assemblies, ruby_exe_dir, verbose: false unless ENV["_BUNDLER_LIBARCHIVE_DLLS_COPIED"]
ENV["_BUNDLER_LIBARCHIVE_DLLS_COPIED"] = "1"
end
end