oxidized 0.26.0 → 0.26.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Rakefile +25 -3
- data/lib/oxidized/version.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e51e07b48b02188aa66a3efe0df5a8fcf4e40ba161e84312856ca3b90778415f
|
4
|
+
data.tar.gz: 3f8c34bd7090a737ae4130508e352f01880532f9bc237e2d5bacb4431d7b9b5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 51ee4fb565ff64ec16b974600f8b7805e5bb7442021674c932b1edcf3d2d3b18bc9d4604d7343b45fbe415ce0736a2bce3ff17a1316bf390673a5f2ac6c9a61d
|
7
|
+
data.tar.gz: a39afa6447e8ceb7b03dcaeaee1cdd832a400610623c4d738d1a496a0970031027cc6e9e4a21a64f7b9a83ee0b5fd6312e3178a3934ddf023d09493cc2ed8547
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -3,7 +3,7 @@ require 'rake/testtask'
|
|
3
3
|
require_relative 'lib/oxidized/version'
|
4
4
|
|
5
5
|
gemspec = eval(File.read(Dir['*.gemspec'].first))
|
6
|
-
|
6
|
+
gemfile = [gemspec.name, gemspec.version].join('-') + '.gem'
|
7
7
|
|
8
8
|
# Integrate Rubocop if available
|
9
9
|
begin
|
@@ -32,7 +32,7 @@ task :test do
|
|
32
32
|
end
|
33
33
|
end
|
34
34
|
|
35
|
-
task build:
|
35
|
+
task build: %i[chmod version_set]
|
36
36
|
task :version_set do
|
37
37
|
Oxidized.version_set
|
38
38
|
Bundler::GemHelper.instance.gemspec.version = Oxidized::VERSION
|
@@ -55,7 +55,29 @@ end
|
|
55
55
|
|
56
56
|
desc 'Push to rubygems'
|
57
57
|
task push: :tag do
|
58
|
-
system "gem push pkg/#{
|
58
|
+
system "gem push pkg/#{gemfile}"
|
59
|
+
end
|
60
|
+
|
61
|
+
desc 'Normalise file permissions'
|
62
|
+
task :chmod do
|
63
|
+
xbit = %w[
|
64
|
+
bin/oxidized
|
65
|
+
bin/console
|
66
|
+
extra/auto-reload-config.runit
|
67
|
+
extra/nagios_check_failing_nodes.rb
|
68
|
+
extra/oxidized-report-git-commits
|
69
|
+
extra/oxidized.init
|
70
|
+
extra/oxidized.init.d
|
71
|
+
extra/oxidized.runit
|
72
|
+
extra/syslog.rb
|
73
|
+
extra/update-ca-certificates.runit
|
74
|
+
]
|
75
|
+
dirs = []
|
76
|
+
%x(git ls-files -z).split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }.each do |file|
|
77
|
+
dirs.push(File.dirname(file))
|
78
|
+
xbit.include?(file) ? File.chmod(0o0755, file) : File.chmod(0o0644, file)
|
79
|
+
end
|
80
|
+
dirs.sort.uniq.each { |dir| File.chmod(0o0755, dir) }
|
59
81
|
end
|
60
82
|
|
61
83
|
task default: :test
|
data/lib/oxidized/version.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Oxidized
|
2
|
-
VERSION = '0.26.
|
3
|
-
VERSION_FULL = '0.26.
|
2
|
+
VERSION = '0.26.1'.freeze
|
3
|
+
VERSION_FULL = '0.26.1'.freeze
|
4
4
|
def self.version_set
|
5
5
|
version_full = %x(git describe --tags).chop rescue ""
|
6
6
|
version = %x(git describe --tags --abbrev=0).chop rescue ""
|