Merge pull request #264 from logicminds/gemspec

Adds a gemspec file
This commit is contained in:
mattkirby 2018-07-13 09:23:11 -07:00 committed by GitHub
commit 7e5ef2f4e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 44 additions and 2 deletions

1
.gitignore vendored
View file

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

View file

@ -1,6 +1,5 @@
source ENV['GEM_SOURCE'] || 'https://rubygems.org' source ENV['GEM_SOURCE'] || 'https://rubygems.org'
gem 'json', '>= 1.8'
gem 'puma', '>= 3.6.0' gem 'puma', '>= 3.6.0'
# Rack 2.x requires ruby 2.2 or above. # 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. # 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 'statsd-ruby', '>= 1.3.0', :require => 'statsd'
gem 'connection_pool', '>= 2.2.1' gem 'connection_pool', '>= 2.2.1'
gem 'nokogiri', '>= 1.8.2' gem 'nokogiri', '>= 1.8.2'
gem 'vmpooler', path: './'
# Pin gems against Ruby version # Pin gems against Ruby version
# Note we can't use platform restrictions easily so use # Note we can't use platform restrictions easily so use
# lowest version range any platform # lowest version range any platform
@ -26,6 +25,10 @@ else
gem 'redis', '>= 3.2' gem 'redis', '>= 3.2'
end end
group :development do
gem 'pry'
end
# Test deps # Test deps
group :test do group :test do
gem 'mock_redis', '>= 0.17.0' 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