Sha256: 12beb551ddf9388ecaec2e5a023a89497dac427375cf5663c5f20939d64b589a
Contents?: true
Size: 929 Bytes
Versions: 4
Compression:
Stored size: 929 Bytes
Contents
# frozen_string_literal: true source 'https://rubygems.org' # Specify your gem's dependencies in puppet-modulebuilder.gemspec gemspec def location_for(place_or_version, fake_version = nil) git_url_regex = /\A(?<url>(https?|git)[:@][^#]*)(#(?<branch>.*))?/ file_url_regex = %r{\Afile://(?<path>.*)} if place_or_version && (git_url = place_or_version.match(git_url_regex)) [fake_version, { git: git_url[:url], branch: git_url[:branch], require: false }].compact elsif place_or_version && (file_url = place_or_version.match(file_url_regex)) ['>= 0', { path: File.expand_path(file_url[:path]), require: false }] else [place_or_version, { require: false }] end end group :development do gem 'puppet', *location_for(ENV['PUPPET_GEM_VERSION']) gem 'rake' gem 'rspec', '~> 3.1' gem 'simplecov' gem 'simplecov-console' # Required for testing on Windows gem 'ffi', platforms: [:x64_mingw] end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
puppet-modulebuilder-2.0.2 | Gemfile |
puppet-modulebuilder-2.0.1 | Gemfile |
puppet-modulebuilder-2.0.0 | Gemfile |
puppet-modulebuilder-1.1.0 | Gemfile |