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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 881d31e6095f54b8a1167b7e06324397dcd823098fa25846a49cbe085679ee81
4
- data.tar.gz: c6c4732702207659323642ef6522c0bd4ba3b4fde7054c9f9eee7a3baa9e5cea
3
+ metadata.gz: 1f8761298571a16c1752a4413d4288095301381a3a3ad323ea9e0cf75c48a5f7
4
+ data.tar.gz: b5a573c3eb0b93e3774a504fc467f9349eb242979a900d3b6ac463d609d75257
5
5
  SHA512:
6
- metadata.gz: 167260ced258a4792560570c395a17267f5ffe4b78ffda5b40804b018a6e1ee5697b1389fa5d631048ac9c62f89a2e988b038e3d02b9b214c9682447a0d01b2c
7
- data.tar.gz: 2d49307b7c02060d112dbd8d703a21b13bc1d7b80836c24012680dd3c737c715a0784e3402cbcf341f481091584562e1e8be3fc519f503f67de6fdd41d9c7e43
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
@@ -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 = [0o600, 0o400, 0o060, 0o040].freeze
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
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Invar
4
4
  # Current version of the gem
5
- VERSION = '0.6.0'
5
+ VERSION = '0.6.1'
6
6
  end
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2023-05-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-schema