Sha256: 4e185eeb8d90c8997a050def6c54f8033886fbe45d79dfb16dd23b24d2b5d83e
Contents?: true
Size: 380 Bytes
Versions: 2
Compression:
Stored size: 380 Bytes
Contents
# frozen_string_literal: true module Gemfury module Platform def home_directory on_windows? ? ENV.fetch('USERPROFILE', nil) : Dir.home end def config_path File.expand_path('.gem/gemfury', home_directory) end def on_windows? RUBY_PLATFORM =~ /mswin32|mingw32/ end def on_mac? RUBY_PLATFORM =~ /-darwin\d/ end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gemfury-0.13.0 | lib/gemfury/platform.rb |
gemfury-0.13.0.beta1 | lib/gemfury/platform.rb |