Skip to content

Commit a50bbe9

Browse files
author
Timothy van Zadelhoff
committed
Merge pull request #136 from bheuvel/issue/improve_gem_build
Improve gem build
2 parents 5cd429f + 610294b commit a50bbe9

File tree

2 files changed

+22
-22
lines changed

2 files changed

+22
-22
lines changed

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ Gemfile.lock
1212
.vagrant
1313
Vagrantfile
1414
!example_box/Vagrantfile
15-
coverage/
16-
vendor/
15+
coverage/*
16+
vendor/*

vagrant-cloudstack.gemspec

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
1-
$:.unshift File.expand_path("../lib", __FILE__)
2-
require "vagrant-cloudstack/version"
1+
$:.unshift File.expand_path('../lib', __FILE__)
2+
require 'vagrant-cloudstack/version'
33

44
Gem::Specification.new do |s|
5-
s.name = "vagrant-cloudstack"
5+
s.name = 'vagrant-cloudstack'
66
s.version = VagrantPlugins::Cloudstack::VERSION
77
s.platform = Gem::Platform::RUBY
8-
s.license = "MIT"
9-
s.authors = ["Mitchell Hashimoto", "Carl Loa Odin", "Tor-Åke Fransson", "Olle Lundberg", "Roeland Kuipers", "Yuichi Uemura", "Atsushi Sasaki", "Nicolas Brechet", "Peter Jönsson", "Christophe Roux", "Andrei Chiriaev", "Miguel Ferreira", "Timothy van Zadelhoff", "Geurt Schimmel"]
10-
s.email = "[email protected]"
11-
s.homepage = "https://github.com/schubergphilis/vagrant-cloudstack/"
12-
s.summary = "Enables Vagrant to manage machines in Cloudstack."
13-
s.description = "Enables Vagrant to manage machines in Cloudstack."
8+
s.license = 'MIT'
9+
s.authors = ['Mitchell Hashimoto', 'Carl Loa Odin', 'Tor-Åke Fransson', 'Olle Lundberg', 'Roeland Kuipers', 'Yuichi Uemura', 'Atsushi Sasaki', 'Nicolas Brechet', 'Peter Jönsson', 'Christophe Roux', 'Andrei Chiriaev', 'Miguel Ferreira', 'Timothy van Zadelhoff', 'Geurt Schimmel']
10+
s.email = '[email protected]'
11+
s.homepage = 'https://github.com/schubergphilis/vagrant-cloudstack/'
12+
s.summary = 'Enables Vagrant to manage machines in Cloudstack.'
13+
s.description = 'Provides a cloudstack provider in Vagrant via which Vagrant can manage machines in CloudStack.'
1414

15-
s.required_rubygems_version = ">= 1.3.6"
16-
s.rubyforge_project = "vagrant-cloudstack"
15+
s.required_rubygems_version = '>= 1.3.6'
16+
s.rubyforge_project = 'vagrant-cloudstack'
1717

18-
s.add_runtime_dependency "fog", "~> 1.32.0"
18+
s.add_runtime_dependency 'fog', '~> 1.32', '>= 1.32.0'
1919

20-
s.add_development_dependency "rake"
21-
s.add_development_dependency "rspec-core", "~> 2.14.7"
22-
s.add_development_dependency "rspec-expectations", "~> 2.14.4"
23-
s.add_development_dependency "rspec-mocks", "~> 2.14.4"
20+
s.add_development_dependency 'rake', '>= 10.4', '~> 10.5'
21+
s.add_development_dependency 'rspec-core', '~> 2.14', '>= 2.14.7'
22+
s.add_development_dependency 'rspec-expectations', '~> 2.14', '>= 2.14.4'
23+
s.add_development_dependency 'rspec-mocks', '~> 2.14', '>= 2.14.4'
2424

2525
# The following block of code determines the files that should be included
2626
# in the gem. It does this by reading all the files in the directory where
2727
# this gemspec is, and parsing out the ignored files from the gitignore.
2828
# Note that the entire gitignore(5) syntax is not supported, specifically
2929
# the "!" syntax, but it should mostly work correctly.
3030
root_path = File.dirname(__FILE__)
31-
all_files = Dir.chdir(root_path) { Dir.glob("**/{*,.*}") }
32-
all_files.reject! { |file| [".", ".."].include?(File.basename(file)) }
33-
gitignore_path = File.join(root_path, ".gitignore")
31+
all_files = Dir.chdir(root_path) { Dir.glob('**/{*,.*}') }
32+
all_files.reject! { |file| ['.', '..'].include?(File.basename(file)) }
33+
gitignore_path = File.join(root_path, '.gitignore')
3434
gitignore = File.readlines(gitignore_path)
3535
gitignore.map! { |line| line.chomp.strip }
3636
gitignore.reject! { |line| line.empty? || line =~ /^(#|!)/ }
@@ -48,7 +48,7 @@ Gem::Specification.new do |s|
4848
# as git).
4949
#
5050
gitignore.any? do |ignore|
51-
File.fnmatch(ignore, file, File::FNM_PATHNAME) ||
51+
File.fnmatch(ignore, file) ||
5252
File.fnmatch(ignore, File.basename(file), File::FNM_PATHNAME)
5353
end
5454
end

0 commit comments

Comments
 (0)