kanrisuru 0.8.20 → 0.8.21
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/lib/kanrisuru/mode.rb +1 -1
- data/lib/kanrisuru/version.rb +1 -1
- data/spec/unit/mode_spec.rb +25 -0
- 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: 1681e03fd41949c6519e0606a6e7138fed6bb8a75302848ad446e2c44fab3252
|
4
|
+
data.tar.gz: 2215d0f12fba2b91a9412db908975c4a82b76ab2eff8f93e095fb6acb1735d88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4477883aef70e512d5b1e91cc65154cc1381075531d35063b1ef9fc3c409e0a094b586e7c9892e121321f4642714f607d7e9333d2f46590bdfdc0101afb5787
|
7
|
+
data.tar.gz: 6b1cb465511443feeb85d4cc115bde8cb91eef4c047a037b89bc4ab33e78a3a800694c917f9366cfd151d3f3e1565d3dee2f3a22f8ca20f0e5d0369b7606455e
|
data/CHANGELOG.md
CHANGED
data/lib/kanrisuru/mode.rb
CHANGED
data/lib/kanrisuru/version.rb
CHANGED
data/spec/unit/mode_spec.rb
CHANGED
@@ -79,6 +79,31 @@ RSpec.describe Kanrisuru::Mode do
|
|
79
79
|
expect(mode.other.all?).to eq(true)
|
80
80
|
expect(mode.other.to_i).to eq(7)
|
81
81
|
expect(mode.other.symbolic).to eq('rwx')
|
82
|
+
|
83
|
+
mode = described_class.new("---x--x--x")
|
84
|
+
expect(mode.directory?).to eq(false)
|
85
|
+
expect(mode.numeric).to eq("111")
|
86
|
+
|
87
|
+
expect(mode.owner.read?).to eq(false)
|
88
|
+
expect(mode.owner.write?).to eq(false)
|
89
|
+
expect(mode.owner.execute?).to eq(true)
|
90
|
+
expect(mode.owner.all?).to eq(false)
|
91
|
+
expect(mode.owner.to_i).to eq(1)
|
92
|
+
expect(mode.owner.symbolic).to eq('--x')
|
93
|
+
|
94
|
+
expect(mode.group.read?).to eq(false)
|
95
|
+
expect(mode.group.write?).to eq(false)
|
96
|
+
expect(mode.group.execute?).to eq(true)
|
97
|
+
expect(mode.group.all?).to eq(false)
|
98
|
+
expect(mode.group.to_i).to eq(1)
|
99
|
+
expect(mode.group.symbolic).to eq('--x')
|
100
|
+
|
101
|
+
expect(mode.other.read?).to eq(false)
|
102
|
+
expect(mode.other.write?).to eq(false)
|
103
|
+
expect(mode.other.execute?).to eq(true)
|
104
|
+
expect(mode.other.all?).to eq(false)
|
105
|
+
expect(mode.other.to_i).to eq(1)
|
106
|
+
expect(mode.other.symbolic).to eq('--x')
|
82
107
|
end
|
83
108
|
|
84
109
|
it 'changes mode numerically globally' do
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kanrisuru
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Mammina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-11-
|
11
|
+
date: 2021-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|