|
1 |
| -Gem::Specification.new do |s| |
2 |
| - s.name = "puppet" |
3 |
| - version = "7.31.0" |
4 |
| - mdata = version.match(/(\d+\.\d+\.\d+)/) |
5 |
| - s.version = mdata ? mdata[1] : version |
6 |
| - s.license = 'Apache-2.0' |
| 1 | +Gem::Specification.new do |spec| |
| 2 | + spec.name = "puppet" |
| 3 | + spec.version = "7.31.0" |
| 4 | + spec.license = 'Apache-2.0' |
7 | 5 |
|
8 |
| - s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") |
9 |
| - s.required_ruby_version = Gem::Requirement.new(">= 2.5.0") |
10 |
| - s.authors = ["Puppet Labs"] |
11 |
| - s.date = "2012-08-17" |
12 |
| - s.description = <<~EOF |
| 6 | + spec.required_rubygems_version = Gem::Requirement.new("> 1.3.1") |
| 7 | + spec.required_ruby_version = Gem::Requirement.new(">= 2.5.0") |
| 8 | + spec.authors = ["Puppet Labs"] |
| 9 | + spec.date = "2012-08-17" |
| 10 | + spec.description = <<~EOF |
13 | 11 | Puppet, an automated administrative engine for your Linux, Unix, and Windows systems, performs administrative tasks
|
14 | 12 | (such as adding users, installing packages, and updating server configurations) based on a centralized specification.
|
15 | 13 | EOF
|
16 |
| - |
17 |
| - s.executables = ["puppet"] |
18 |
| - s.files = Dir['[A-Z]*'] + Dir['install.rb'] + Dir['bin/*'] + Dir['lib/**/*'] + Dir['conf/*'] + Dir['man/**/*'] + Dir['tasks/*'] + Dir['locales/**/*'] + Dir['ext/**/*'] + Dir['examples/**/*'] |
19 |
| - s.homepage = "https://github.com/puppetlabs/puppet" |
20 |
| - s.rdoc_options = ["--title", "Puppet - Configuration Management", "--main", "README", "--line-numbers"] |
21 |
| - s.require_paths = ["lib"] |
22 |
| - s.summary = "Puppet, an automated configuration management tool" |
23 |
| - s.specification_version = 4 |
24 |
| - s.add_runtime_dependency(%q<facter>, ["> 2.0.1", "< 5"]) |
25 |
| - s.add_runtime_dependency(%q<hiera>, [">= 3.2.1", "< 4"]) |
26 |
| - s.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0") |
27 |
| - s.add_runtime_dependency(%q<fast_gettext>, ">= 1.1", "< 3") |
28 |
| - s.add_runtime_dependency(%q<locale>, "~> 2.1") |
29 |
| - s.add_runtime_dependency(%q<multi_json>, "~> 1.10") |
30 |
| - s.add_runtime_dependency(%q<puppet-resource_api>, "~> 1.5") |
31 |
| - s.add_runtime_dependency(%q<concurrent-ruby>, "~> 1.0") |
32 |
| - s.add_runtime_dependency(%q<deep_merge>, "~> 1.0") |
33 |
| - s.add_runtime_dependency(%q<scanf>, "~> 1.0") |
| 14 | + |
| 15 | + spec.executables = ["puppet"] |
| 16 | + spec.files = Dir['[A-Z]*'] + Dir['install.rb'] + Dir['bin/*'] + Dir['lib/**/*'] + Dir['conf/*'] + Dir['man/**/*'] + Dir['tasks/*'] + Dir['locales/**/*'] + Dir['ext/**/*'] + Dir['examples/**/*'] |
| 17 | + spec.homepage = "https://github.com/puppetlabs/puppet" |
| 18 | + spec.rdoc_options = ["--title", "Puppet - Configuration Management", "--main", "README", "--line-numbers"] |
| 19 | + spec.require_paths = ["lib"] |
| 20 | + spec.summary = "Puppet, an automated configuration management tool" |
| 21 | + spec.specification_version = 4 |
| 22 | + spec.add_runtime_dependency(%q<facter>, ["> 2.0.1", "< 5"]) |
| 23 | + spec.add_runtime_dependency(%q<hiera>, [">= 3.2.1", "< 4"]) |
| 24 | + spec.add_runtime_dependency(%q<semantic_puppet>, "~> 1.0") |
| 25 | + spec.add_runtime_dependency(%q<fast_gettext>, ">= 1.1", "< 3") |
| 26 | + spec.add_runtime_dependency(%q<locale>, "~> 2.1") |
| 27 | + spec.add_runtime_dependency(%q<multi_json>, "~> 1.10") |
| 28 | + spec.add_runtime_dependency(%q<puppet-resource_api>, "~> 1.5") |
| 29 | + spec.add_runtime_dependency(%q<concurrent-ruby>, "~> 1.0") |
| 30 | + spec.add_runtime_dependency(%q<deep_merge>, "~> 1.0") |
| 31 | + spec.add_runtime_dependency(%q<scanf>, "~> 1.0") |
34 | 32 |
|
35 | 33 | # For building platform specific puppet gems...the --platform flag is only supported in newer Ruby versions
|
36 |
| - platform = s.platform.to_s |
| 34 | + platform = spec.platform.to_s |
37 | 35 | if platform == 'universal-darwin'
|
38 |
| - s.add_runtime_dependency('CFPropertyList', '~> 2.2') |
| 36 | + spec.add_runtime_dependency('CFPropertyList', '~> 2.2') |
39 | 37 | end
|
40 | 38 |
|
41 |
| - if platform == 'x64-mingw32' || platform == 'x86-mingw32' |
42 |
| - # ffi 1.16.0 - 1.16.2 are broken on Windows |
43 |
| - s.add_runtime_dependency('ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2') |
44 |
| - s.add_runtime_dependency('minitar', '~> 0.9') |
45 |
| - end |
| 39 | + if platform == 'x64-mingw32' || platform == 'x86-mingw32' |
| 40 | + # ffi 1.16.0 - 1.16.2 are broken on Windows |
| 41 | + spec.add_runtime_dependency('ffi', '>= 1.15.5', '< 1.17.0', '!= 1.16.0', '!= 1.16.1', '!= 1.16.2') |
| 42 | + spec.add_runtime_dependency('minitar', '~> 0.9') |
| 43 | + end |
46 | 44 | end
|
0 commit comments