facter 1.5.5 → 1.5.6

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of facter might be problematic. Click here for more details.

data/CHANGELOG CHANGED
@@ -1,3 +1,8 @@
1
+ 1.5.6:
2
+ Bug #2303: Add executable facter in spec
3
+
4
+ Bug #2307: undefined local variable or method `zone'
5
+
1
6
  1.5.5:
2
7
  Bug #2291 (Closed): Fix operatingsystemrelease for CentOS < 5
3
8
 
data/Rakefile CHANGED
@@ -21,6 +21,7 @@ spec = Gem::Specification.new do |spec|
21
21
  spec.platform = Gem::Platform::RUBY
22
22
  spec.name = 'facter'
23
23
  spec.files = FILES.to_a
24
+ spec.executables = %w{facter}
24
25
  spec.version = Facter::FACTERVERSION
25
26
  spec.summary = 'Facter, a system inventory tool'
26
27
  spec.author = 'Reductive Labs'
@@ -88,7 +89,7 @@ task :mail_patches do
88
89
  type, parent, name = $1, $2, $3
89
90
 
90
91
  # Create all of the patches
91
- sh "git format-patch -C -M -s -n #{parent}..HEAD"
92
+ sh "git format-patch -C -M -s -n --subject-prefix='PATCH/facter' #{parent}..HEAD"
92
93
 
93
94
  # And then mail them out.
94
95
 
@@ -100,7 +101,7 @@ task :mail_patches do
100
101
  end
101
102
 
102
103
  # Now send the mail.
103
- sh "git send-email #{compose} --no-chain-reply-to --no-signed-off-by-cc --suppress-from --no-thread --to puppet-dev@googlegroups.com 00*.patch"
104
+ sh "git send-email #{compose} --no-signed-off-by-cc --suppress-from --to puppet-dev@googlegroups.com 00*.patch"
104
105
 
105
106
  # Finally, clean up the patches
106
107
  sh "rm 00*.patch"
@@ -5,12 +5,12 @@
5
5
 
6
6
  Summary: Ruby module for collecting simple facts about a host operating system
7
7
  Name: facter
8
- Version: 1.5.2
8
+ Version: 1.5.5
9
9
  Release: 1%{?dist}
10
10
  License: GPLv2+
11
11
  Group: System Environment/Base
12
12
  URL: http://reductivelabs.com/projects/facter
13
- Source0: http://reductivelabs.com/downloads/facter/%{name}-%{version}.tgz
13
+ Source0: http://reductivelabs.com/downloads/facter/%{name}-%{version}.tar.gz
14
14
  BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
15
15
  %if %has_ruby_noarch
16
16
  BuildArch: noarch
@@ -32,24 +32,10 @@ operating system. Additional facts can be added through simple Ruby scripts
32
32
  %setup -q
33
33
 
34
34
  %build
35
- sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' bin/facter
36
35
 
37
36
  %install
38
37
  rm -rf %{buildroot}
39
- mkdir -p %{buildroot}
40
-
41
- %{__install} -d -m0755 %{buildroot}%{ruby_sitelibdir}
42
- %{__install} -d -m0755 %{buildroot}%{ruby_sitelibdir}/facter
43
- %{__install} -d -m0755 %{buildroot}%{ruby_sitelibdir}/facter/util
44
- %{__install} -d -m0755 %{buildroot}%{ruby_sitelibdir}/facter/util/plist
45
- %{__install} -d -m0755 %{buildroot}%{_bindir}
46
- %{__install} -d -m0755 %{buildroot}%{_docdir}/%{name}-%{version}
47
-
48
- %{__install} -p -m0644 lib/*.rb %{buildroot}%{ruby_sitelibdir}
49
- %{__install} -p -m0644 lib/facter/*.rb %{buildroot}%{ruby_sitelibdir}/facter
50
- %{__install} -p -m0644 lib/facter/util/*.rb %{buildroot}%{ruby_sitelibdir}/facter/util
51
- %{__install} -p -m0644 lib/facter/util/plist/*.rb %{buildroot}%{ruby_sitelibdir}/facter/util/plist
52
- %{__install} -p -m0755 bin/facter %{buildroot}%{_bindir}
38
+ ruby install.rb --destdir=%{buildroot} --quick --no-rdoc
53
39
 
54
40
  %clean
55
41
  rm -rf %{buildroot}
@@ -64,6 +50,14 @@ rm -rf %{buildroot}
64
50
 
65
51
 
66
52
  %changelog
53
+ * Fri May 22 2009 Todd Zullinger <tmz@pobox.com> - 1.5.5-1
54
+ - Update to 1.5.5
55
+ - Drop upstreamed libperms patch
56
+
57
+ * Sat Feb 28 2009 Todd Zullinger <tmz@pobox.com> - 1.5.4-1
58
+ - New version
59
+ - Use upstream install script
60
+
67
61
  * Tue Sep 09 2008 Todd Zullinger <tmz@pobox.com> - 1.5.2-1
68
62
  - New version
69
63
  - Simplify spec file checking for Fedora and RHEL versions
data/lib/facter.rb CHANGED
@@ -27,7 +27,7 @@ module Facter
27
27
  include Comparable
28
28
  include Enumerable
29
29
 
30
- FACTERVERSION = '1.5.5'
30
+ FACTERVERSION = '1.5.6'
31
31
  # = Facter
32
32
  # Functions as a hash of 'facts' you might care about about your
33
33
  # system, such as mac address, IP address, Video card, etc.
@@ -9,7 +9,7 @@ Facter.add("virtual") do
9
9
  if FileTest.exists?("/sbin/zonename")
10
10
  z = %x{"/sbin/zonename"}.chomp
11
11
  if z != 'global'
12
- result = zone
12
+ result = 'zone'
13
13
  end
14
14
  end
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: facter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.5
4
+ version: 1.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reductive Labs
@@ -9,14 +9,14 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-22 00:00:00 +00:00
12
+ date: 2009-06-04 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
16
16
  description:
17
17
  email: puppet@reductivelabs.com
18
- executables: []
19
-
18
+ executables:
19
+ - facter
20
20
  extensions: []
21
21
 
22
22
  extra_rdoc_files: []