fspath-xattr 1.0.1 → 1.0.2
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 +9 -9
- data/.travis.yml +3 -2
- data/LICENSE.txt +1 -1
- data/README.markdown +1 -1
- data/fspath-xattr.gemspec +3 -3
- data/spec/fspath/xattr_spec.rb +9 -9
- metadata +18 -11
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
MDY2MWZiYzNhY2RmZTgyMmZiNGM3NWUzOWVjNzIwNmM3ZjQ3MmYwMQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
7
|
-
|
6
|
+
NWVkMDBmMzExNWUwZDAyNjc2N2FiMmQzYWVhOTgyMWFlZDU4MWNhMg==
|
7
|
+
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjA2MzU0MjA0ZDM0NDk5NjJkOGI0YjdiOGRlYmNkNDZmNDExZDM2ZmEzYzgw
|
10
|
+
Njk5NTkzMDY2MDM3MDgwYjcwZjAxODQ2ODZiOGM5MGVmYjIwNjYxZWY5MDZm
|
11
|
+
ODQ1MjNkNDY5Y2QyZmQzZjM5ODJlNmRmN2E2ZGExZGFlNmI2ZWE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWUwYjY5MzczYWU1MjdmYjZmNjI1MTdkZWExZTk1YzEwZmNmNDYyMTY3MTI1
|
14
|
+
ZGFkN2U4YjdiZjY2YjJlMDE2N2IzNDdmZmM4MzYyNWIxOTFjYjBhNmM1NTg1
|
15
|
+
Yjc0MjQ2OTRhYTEwMGY1MTdjNjhiNGJiOGU0MWIzOTE3ODQ3ZmE=
|
data/.travis.yml
CHANGED
data/LICENSE.txt
CHANGED
data/README.markdown
CHANGED
data/fspath-xattr.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'fspath-xattr'
|
5
|
-
s.version = '1.0.
|
5
|
+
s.version = '1.0.2'
|
6
6
|
s.summary = %q{FSPath methods xattr and lxattr to work with extended attributes using ffi-xattr gem}
|
7
7
|
s.homepage = "http://github.com/toy/#{s.name}"
|
8
8
|
s.authors = ['Ivan Kuchin']
|
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
|
|
15
15
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
16
16
|
s.require_paths = %w[lib]
|
17
17
|
|
18
|
-
s.add_dependency 'fspath', '
|
18
|
+
s.add_dependency 'fspath', '>= 2', '< 4'
|
19
19
|
s.add_dependency 'ffi-xattr', '~> 0.0.4'
|
20
|
-
s.add_development_dependency 'rspec'
|
20
|
+
s.add_development_dependency 'rspec', '~> 3.0'
|
21
21
|
end
|
data/spec/fspath/xattr_spec.rb
CHANGED
@@ -23,26 +23,26 @@ describe FSPath::Xattr do
|
|
23
23
|
].each do |path, method|
|
24
24
|
describe "#{path}.#{method}" do
|
25
25
|
it "should return instance of Xattr" do
|
26
|
-
FSPath(path).send(method).
|
26
|
+
expect(FSPath(path).send(method)).to be_kind_of(Xattr)
|
27
27
|
end
|
28
28
|
|
29
29
|
it "should point to same path" do
|
30
|
-
FSPath(path).send(method).instance_variable_get(:@path).
|
30
|
+
expect(FSPath(path).send(method).instance_variable_get(:@path)).to eq(path)
|
31
31
|
end
|
32
32
|
|
33
33
|
it "should set xattr on path" do
|
34
|
-
FSPath(file).lxattr['user.hello'].
|
35
|
-
FSPath(link).lxattr['user.hello'].
|
34
|
+
expect(FSPath(file).lxattr['user.hello']).to be_nil
|
35
|
+
expect(FSPath(link).lxattr['user.hello']).to be_nil
|
36
36
|
|
37
37
|
FSPath(path).send(method)['user.hello'] = 'world'
|
38
|
-
FSPath(path).send(method)['user.hello'].
|
38
|
+
expect(FSPath(path).send(method)['user.hello']).to eq('world')
|
39
39
|
|
40
40
|
if path == link && method == :lxattr
|
41
|
-
FSPath(file).lxattr['user.hello'].
|
42
|
-
FSPath(link).lxattr['user.hello'].
|
41
|
+
expect(FSPath(file).lxattr['user.hello']).to be_nil
|
42
|
+
expect(FSPath(link).lxattr['user.hello']).to eq('world')
|
43
43
|
else
|
44
|
-
FSPath(file).lxattr['user.hello'].
|
45
|
-
FSPath(link).lxattr['user.hello'].
|
44
|
+
expect(FSPath(file).lxattr['user.hello']).to eq('world')
|
45
|
+
expect(FSPath(link).lxattr['user.hello']).to be_nil
|
46
46
|
end
|
47
47
|
end
|
48
48
|
end
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fspath-xattr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ivan Kuchin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fspath
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '2'
|
20
|
+
- - <
|
18
21
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
22
|
+
version: '4'
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- -
|
27
|
+
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version: '2
|
29
|
+
version: '2'
|
30
|
+
- - <
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '4'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: ffi-xattr
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -42,16 +48,16 @@ dependencies:
|
|
42
48
|
name: rspec
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
|
-
- -
|
51
|
+
- - ~>
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0'
|
53
|
+
version: '3.0'
|
48
54
|
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
|
-
- -
|
58
|
+
- - ~>
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0'
|
60
|
+
version: '3.0'
|
55
61
|
description:
|
56
62
|
email:
|
57
63
|
executables: []
|
@@ -87,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
87
93
|
version: '0'
|
88
94
|
requirements: []
|
89
95
|
rubyforge_project: fspath-xattr
|
90
|
-
rubygems_version: 2.
|
96
|
+
rubygems_version: 2.6.4
|
91
97
|
signing_key:
|
92
98
|
specification_version: 4
|
93
99
|
summary: FSPath methods xattr and lxattr to work with extended attributes using ffi-xattr
|
@@ -95,3 +101,4 @@ summary: FSPath methods xattr and lxattr to work with extended attributes using
|
|
95
101
|
test_files:
|
96
102
|
- spec/fspath/xattr_spec.rb
|
97
103
|
- spec/spec_helper.rb
|
104
|
+
has_rdoc:
|