Codebase list facter / 4d25c29
Merge branch 'hide_gemspec' into stable * hide_gemspec: (maint) Make facter gemspec report correct version (maint) Move facter.gemspec to .gemspec Jeff McCune 11 years ago
2 changed file(s) with 49 addition(s) and 29 deletion(s). Raw diff Collapse all Expand all
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
+0
-29
facter.gemspec less more
0 # -*- encoding: utf-8 -*-
1
2 Gem::Specification.new do |s|
3 s.name = "facter"
4 s.version = "1.6.11"
5
6 s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7 s.authors = ["Puppet Labs"]
8 s.date = "2012-08-08"
9 s.description = "You can prove anything with facts!"
10 s.email = "info@puppetlabs.com"
11 s.executables = ["facter"]
12 s.files = ["bin/facter"]
13 s.homepage = "http://puppetlabs.com"
14 s.rdoc_options = ["--title", "Facter - System Inventory Tool", "--main", "README", "--line-numbers"]
15 s.require_paths = ["lib"]
16 s.rubyforge_project = "facter"
17 s.rubygems_version = "1.8.24"
18 s.summary = "Facter, a system inventory tool"
19
20 if s.respond_to? :specification_version then
21 s.specification_version = 3
22
23 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
24 else
25 end
26 else
27 end
28 end