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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: df69a0706706bd4a9544ff79d919000c24d34fceeb038a94026621952fd630cc
4
- data.tar.gz: 1861d3ad6a6ed8d966b01cf5ba4f0d269cfe42a21cd604cb67262fbb8041da53
3
+ metadata.gz: e51e07b48b02188aa66a3efe0df5a8fcf4e40ba161e84312856ca3b90778415f
4
+ data.tar.gz: 3f8c34bd7090a737ae4130508e352f01880532f9bc237e2d5bacb4431d7b9b5f
5
5
  SHA512:
6
- metadata.gz: bc8e1408a71b230254e00df082e0e077d9888476d6d62b03a515888246c93cce72b6bdc40fdbea63412d744b266f955323f2aa742cc68b50398ad0a335f62aea
7
- data.tar.gz: 5243851ac172aa1337711b5a90cf7d71703c7d3af10f3b6514997fb2258898aff48fa572e39b999842dcb25e80fc7eab7240833ec0ab68a1a874a5867aaa1cac
6
+ metadata.gz: 51ee4fb565ff64ec16b974600f8b7805e5bb7442021674c932b1edcf3d2d3b18bc9d4604d7343b45fbe415ce0736a2bce3ff17a1316bf390673a5f2ac6c9a61d
7
+ data.tar.gz: a39afa6447e8ceb7b03dcaeaee1cdd832a400610623c4d738d1a496a0970031027cc6e9e4a21a64f7b9a83ee0b5fd6312e3178a3934ddf023d09493cc2ed8547
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Master
4
4
 
5
+ ## 0.26.1
6
+ * FIX: force file permissions in rubygems
7
+
5
8
  ## 0.26.0
6
9
 
7
10
  * FEATURE: add Cisco VPN3000 model (@baznikin)
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
- file = [gemspec.name, gemspec.version].join('-') + '.gem'
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: :version_set
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/#{file}"
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
@@ -1,6 +1,6 @@
1
1
  module Oxidized
2
- VERSION = '0.26.0'.freeze
3
- VERSION_FULL = '0.26.0'.freeze
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 ""
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0
4
+ version: 0.26.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti