|
0 |
# -*- encoding: utf-8 -*-
|
|
1 |
#
|
|
2 |
# PLEASE NOTE
|
|
3 |
# This gemspec is not intended to be used for building the Facter gem. This
|
|
4 |
# gemspec is intended for use with bundler when Facter is a dependency of
|
|
5 |
# another project. For example, the stdlib project is able to integrate with
|
|
6 |
# the master branch of Facter by using a Gemfile path of
|
|
7 |
# git://github.com/puppetlabs/facter.git
|
|
8 |
#
|
|
9 |
# Please see the [packaging
|
|
10 |
# repository](https://github.com/puppetlabs/packaging) for information on how
|
|
11 |
# to build the Puppet gem package.
|
|
12 |
|
|
13 |
begin
|
|
14 |
require 'facter/version'
|
|
15 |
rescue LoadError
|
|
16 |
$LOAD_PATH.unshift(File.expand_path("../lib", __FILE__))
|
|
17 |
require 'facter/version'
|
|
18 |
end
|
|
19 |
|
|
20 |
Gem::Specification.new do |s|
|
|
21 |
s.name = "facter"
|
|
22 |
version = Facter.version
|
|
23 |
mdata = version.match(/(\d+\.\d+\.\d+)/)
|
|
24 |
s.version = mdata ? mdata[1] : version
|
|
25 |
|
|
26 |
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
|
27 |
s.authors = ["Puppet Labs"]
|
|
28 |
s.date = "2012-08-08"
|
|
29 |
s.description = "You can prove anything with facts!"
|
|
30 |
s.email = "info@puppetlabs.com"
|
|
31 |
s.executables = ["facter"]
|
|
32 |
s.files = ["bin/facter"]
|
|
33 |
s.homepage = "http://puppetlabs.com"
|
|
34 |
s.rdoc_options = ["--title", "Facter - System Inventory Tool", "--main", "README", "--line-numbers"]
|
|
35 |
s.require_paths = ["lib"]
|
|
36 |
s.rubyforge_project = "facter"
|
|
37 |
s.rubygems_version = "1.8.24"
|
|
38 |
s.summary = "Facter, a system inventory tool"
|
|
39 |
|
|
40 |
if s.respond_to? :specification_version then
|
|
41 |
s.specification_version = 3
|
|
42 |
|
|
43 |
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
|
44 |
else
|
|
45 |
end
|
|
46 |
else
|
|
47 |
end
|
|
48 |
end
|