invar 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/RELEASE_NOTES.md +14 -0
- data/lib/invar/private_file.rb +6 -1
- data/lib/invar/version.rb +1 -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: 1f8761298571a16c1752a4413d4288095301381a3a3ad323ea9e0cf75c48a5f7
|
4
|
+
data.tar.gz: b5a573c3eb0b93e3774a504fc467f9349eb242979a900d3b6ac463d609d75257
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7f52110ae1fe1580047d74b957c6da15208a82faec856d795177deb3f745778ef8f79d2a05e422e54ba06b2ea581978783e773d9eafb52e23e29ca1d2948b06
|
7
|
+
data.tar.gz: 0c35ac70036bc6c28e1444d6136fd27621d281d0ec54ba6e2c3b26a93e393eb1ce711226c081d8fba0178497fc869aea81232059746ba7afd91cddb9117cd4c1
|
data/RELEASE_NOTES.md
CHANGED
@@ -19,6 +19,20 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
19
19
|
|
20
20
|
* none
|
21
21
|
|
22
|
+
## [0.6.1] - 2023-05-22
|
23
|
+
|
24
|
+
### Major Changes
|
25
|
+
|
26
|
+
* none
|
27
|
+
|
28
|
+
### Minor Changes
|
29
|
+
|
30
|
+
* none
|
31
|
+
|
32
|
+
### Bugfixes
|
33
|
+
|
34
|
+
* Fixed minor logic error in permissions checking, improved testing
|
35
|
+
|
22
36
|
## [0.6.0] - 2023-05-21
|
23
37
|
|
24
38
|
### Major Changes
|
data/lib/invar/private_file.rb
CHANGED
@@ -11,8 +11,13 @@ module Invar
|
|
11
11
|
extend Forwardable
|
12
12
|
def_delegators :@delegate_sd_obj, :stat, :to_s, :basename, :==, :chmod
|
13
13
|
|
14
|
+
ALLOWED_USER_MODES = [0o600, 0o400].freeze
|
15
|
+
ALLOWED_GROUP_MODES = [0o060, 0o040, 0o000].freeze
|
16
|
+
|
14
17
|
# Allowed permissions modes for lockfile. Readable or read-writable by the user or group only
|
15
|
-
ALLOWED_MODES =
|
18
|
+
ALLOWED_MODES = ALLOWED_USER_MODES.product(ALLOWED_GROUP_MODES).collect do |u, g|
|
19
|
+
u | g # bitwise OR
|
20
|
+
end.freeze
|
16
21
|
|
17
22
|
def initialize(file_path)
|
18
23
|
@delegate_sd_obj = file_path
|
data/lib/invar/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: invar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robin Miller
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-05-
|
11
|
+
date: 2023-05-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-schema
|