-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix openwsman.gem creation to include raw SWIG files
SWIG includes its own C preprocessor, thus handling all the #if RUBY_VERSION directives. This commit drops the swig-generated files in favor of raw swig files. This makes the resulting gem independant from the host creating the gem.
- Loading branch information
Showing
3 changed files
with
16 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,26 +6,26 @@ Gem::Specification.new do |s| | |
s.platform = Gem::Platform::RUBY | ||
s.authors = ["Klaus Kämpf"] | ||
s.email = ["[email protected]"] | ||
s.license = "BSD 3-clause" | ||
s.homepage = "http://openwsman.github.io" | ||
s.summary = "Ruby client bindings for Openwsman" | ||
s.description = "The openwsman gem provides a Ruby API to manage | ||
systems using the WS-Management protocol." | ||
|
||
s.required_rubygems_version = ">= 1.3.6" | ||
s.add_development_dependency("rake-compiler", [">= 0"]) | ||
s.add_development_dependency("mocha", [">= 0.9"]) | ||
s.add_development_dependency("yard", [">= 0.5"]) | ||
s.add_development_dependency("rake-compiler", ["~> 0"]) | ||
s.add_development_dependency("mocha", ["~> 0.9"]) | ||
s.add_development_dependency("yard", ["~> 0.5"]) | ||
if RUBY_VERSION >= "2.1" | ||
# stdlib test/unit deprecated(broken) with Ruby 2.1 and Minitest 5 | ||
# adding test-unit gem fixes this | ||
s.add_development_dependency("test-unit") | ||
s.add_development_dependency("test-unit", ["~> 0"]) | ||
end | ||
s.extensions << "ext/openwsman/extconf.rb" | ||
|
||
s.files = Dir.glob("lib/*.rb") + | ||
Dir.glob("lib/**/*.rb") + | ||
Dir.glob("ext/*.{h,c}") + | ||
Dir.glob("ext/**/*.{h,c}") | ||
Dir.glob("ext/**/*.{i,h,c}") | ||
|
||
# s.require_path = '' | ||
|
||
|