fspath-xattr 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZWFiYjA4YWI0MzQ0M2Q4M2U1MTQzNjUwZDI4ZThhMzNiYWU0NmEwMw==
4
+ MDY2MWZiYzNhY2RmZTgyMmZiNGM3NWUzOWVjNzIwNmM3ZjQ3MmYwMQ==
5
5
  data.tar.gz: !binary |-
6
- OGIxMjNmMjQxYTJiODJlM2NjMTgxODdmNDQ5NGI5MWEwYjIzN2M1MQ==
7
- !binary "U0hBNTEy":
6
+ NWVkMDBmMzExNWUwZDAyNjc2N2FiMmQzYWVhOTgyMWFlZDU4MWNhMg==
7
+ SHA512:
8
8
  metadata.gz: !binary |-
9
- YWNiZWRlNTE4MTJiZDk2NTFkN2I2MDc2OGMwOGY2OTcwNjU5MzM5ZjBhYTQ5
10
- NmFkZjhmZTM0NzY3NjYyNmM3NzkxNjU4MGMwMWU2OWNiZDIxNGE5NTVlOGIy
11
- ZmZkMGY3MmYwY2E5MTY1YzcwOTAyMjE1Y2E2Mzc4ZjUxNWIyODI=
9
+ NjA2MzU0MjA0ZDM0NDk5NjJkOGI0YjdiOGRlYmNkNDZmNDExZDM2ZmEzYzgw
10
+ Njk5NTkzMDY2MDM3MDgwYjcwZjAxODQ2ODZiOGM5MGVmYjIwNjYxZWY5MDZm
11
+ ODQ1MjNkNDY5Y2QyZmQzZjM5ODJlNmRmN2E2ZGExZGFlNmI2ZWE=
12
12
  data.tar.gz: !binary |-
13
- YzY5MjdjMTQ4NTcyZWYxMDY1M2JkZjExNjEwMDUwNTlhYzlhMjBjNWZjNDg1
14
- NzY5YjVhMmI1Njc3ZTQ3NzA5NGIyMGJiMDVlYmRiNWRmNDBjNjI4ZWQ0ZGJh
15
- ZWY2NDFjOTdjN2FhNDU4MmJhNmRmODkwY2I0N2FlOTJiMTMwM2Y=
13
+ YWUwYjY5MzczYWU1MjdmYjZmNjI1MTdkZWExZTk1YzEwZmNmNDYyMTY3MTI1
14
+ ZGFkN2U4YjdiZjY2YjJlMDE2N2IzNDdmZmM4MzYyNWIxOTFjYjBhNmM1NTg1
15
+ Yjc0MjQ2OTRhYTEwMGY1MTdjNjhiNGJiOGU0MWIzOTE3ODQ3ZmE=
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ language:
2
2
  - objective-c
3
3
  - ruby
4
4
  rvm:
5
- - system
6
- - default
5
+ - 1.9.3
6
+ - '2.0'
7
+ - '2.1'
7
8
  script: "bundle exec rspec"
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2013 Ivan Kuchin
1
+ Copyright (c) 2010-2016 Ivan Kuchin
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.markdown CHANGED
@@ -20,4 +20,4 @@ Set extended attribute on symlink itself:
20
20
 
21
21
  ## Copyright
22
22
 
23
- Copyright (c) 2010-2013 Ivan Kuchin. See LICENSE.txt for details.
23
+ Copyright (c) 2010-2016 Ivan Kuchin. See LICENSE.txt for details.
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.1'
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', '~> 2.0'
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
@@ -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).should be_kind_of(Xattr)
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).should == 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'].should be_nil
35
- FSPath(link).lxattr['user.hello'].should be_nil
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'].should == 'world'
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'].should be_nil
42
- FSPath(link).lxattr['user.hello'].should == 'world'
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'].should == 'world'
45
- FSPath(link).lxattr['user.hello'].should be_nil
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.1
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: 2013-12-16 00:00:00.000000000 Z
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: '2.0'
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.0'
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.0.3
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: