Adds a gemspec file

This commit is contained in:
Corey Osman 2018-06-12 11:44:23 -07:00
parent 65fb4c9919
commit 148f92591e
4 changed files with 44 additions and 2 deletions

1
.gitignore vendored
View file

@ -1,4 +1,5 @@
.vagrant/
results.xml
.ruby-version
Gemfile.lock
Gemfile.local

View file

@ -1,6 +1,5 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org'
gem 'json', '>= 1.8'
gem 'puma', '>= 3.6.0'
# Rack 2.x requires ruby 2.2 or above.
# As VMPooler should work in older jruby, we need to be Ruby 1.9.3 compatible.
@ -12,7 +11,7 @@ gem 'net-ldap', '>= 0.16.1'
gem 'statsd-ruby', '>= 1.3.0', :require => 'statsd'
gem 'connection_pool', '>= 2.2.1'
gem 'nokogiri', '>= 1.8.2'
gem 'vmpooler', path: './'
# Pin gems against Ruby version
# Note we can't use platform restrictions easily so use
# lowest version range any platform
@ -26,6 +25,10 @@ else
gem 'redis', '>= 3.2'
end
group :development do
gem 'pry'
end
# Test deps
group :test do
gem 'mock_redis', '>= 0.17.0'

4
lib/vmpooler/version.rb Normal file
View file

@ -0,0 +1,4 @@
module Vmpooler
VERSION = '0.0.1'.freeze
end

34
vmpooler.gemspec Normal file
View file

@ -0,0 +1,34 @@
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'vmpooler/version'
Gem::Specification.new do |spec|
spec.name = 'vmpooler'
spec.version = Vmpooler::VERSION
spec.authors = ['Puppet']
spec.email = ['support@puppet.com']
spec.summary = 'vmpooler provides configurable pools of instantly-available (running) virtual machines'
spec.description = 'vmpooler provides configurable pools of instantly-available (running) virtual machines'
spec.homepage = 'https://github.com/puppetlabs/vmpooler'
spec.license = 'MIT'
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']
spec.add_dependency 'puma', '>= 3.6.0'
spec.add_dependency 'rack', '~> 1.6'
spec.add_dependency 'rake', '>= 10.4'
spec.add_dependency 'rbvmomi', '>= 1.8'
spec.add_dependency 'sinatra', '>= 1.4'
spec.add_dependency 'net-ldap', '>= 0.16.1'
spec.add_dependency 'statsd-ruby', '>= 1.3.0'
spec.add_dependency 'connection_pool', '>= 2.2.1'
spec.add_dependency 'nokogiri', '>= 1.8.2'
# we should lock ruby support down to 2.2.2+ and update redis version 3.2
spec.add_dependency 'redis', '>= 3.0'
end