config_server_agent 0.3.7 → 0.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/config_server_agent/version.rb +1 -1
- data/lib/config_server_agent.rb +11 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76a3615bd2968fdf6a96cf2ec723df57b7c88f66aa559ac1517429b668903009
|
4
|
+
data.tar.gz: 1bbff77e71428bf4a7ab3bb6bdc567d4e0dc03c90af8b19720f0574a7b251a6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ed40e76e65941e4a50e44d25d051fad0b2c0705dd3c3946ea1072e8a0ff28db985dce68b18bd6b276c941fcba0720a34fb1258380bc717c7da810914c3b2db4
|
7
|
+
data.tar.gz: a8980371e9cf8bea67a0ae43ab0548ac9759f349ba789b768bff4831dbad6c6e14511116e916a4a2b261f9b780a5aee364033773900de544f693e9d122478f10
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
6
6
|
|
7
|
+
## 0.3.8
|
8
|
+
### Changed
|
9
|
+
- More resiliant cache file permission handling
|
10
|
+
|
7
11
|
## 0.3.7
|
8
12
|
### Changed
|
9
13
|
- Fixed content-type handling
|
data/lib/config_server_agent.rb
CHANGED
@@ -177,7 +177,17 @@ class ConfigServerAgent
|
|
177
177
|
'token' => @token,
|
178
178
|
'token_expires' => @token_expires
|
179
179
|
}.to_json)
|
180
|
-
|
180
|
+
|
181
|
+
# Check if o+wr bits are set on the cache file
|
182
|
+
if File.stat(@cache_file).mode & 06 > 0
|
183
|
+
begin
|
184
|
+
# Attempt to remove them if they are...
|
185
|
+
File.chmod 0660, @cache_file
|
186
|
+
rescue Errno::EPERM => e
|
187
|
+
# But don't raise an error if it fails because the file may have been created by another user
|
188
|
+
warn "File permissions are too open: #{@cache_file} - #{e.message}"
|
189
|
+
end
|
190
|
+
end
|
181
191
|
end
|
182
192
|
end
|
183
193
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: config_server_agent
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aidan Samuel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: lockfile
|