fakefs 0.6.3 → 0.6.4

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
- OTI3MWUyNGQ3M2Q0MWQ3YmQ5ZjIzYTM1MTcxZDE2MTI5NzYxMDBlMQ==
4
+ NjI0YTBmYzk5YzJiYzllMDgxYTRkZTY5N2M2ZGVjZmM4ZDUzMjFiNw==
5
5
  data.tar.gz: !binary |-
6
- Y2ZhNGRjYjU1N2MyZDUwN2QxNWQ0OGQ2NmZhM2M0MzgyZDZmM2VhNA==
6
+ MjBjMTVhNTk1ZjliZjFiODcxZWYxMGMxMDE0ODA3Zjk4MWRjZWUzZg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MmU5M2M0OGJjOTFjMzJjZTdlY2Q2NzI4YzI1MWE2NWU2MTI3NDI0MTZjYTJh
10
- ZDEyZjEzY2E3NmNiNmEzNDhkZGY4MzIyMzU4MDAxMTZjYjFhMjkwZGU1Njkw
11
- ZjM5ZDI0ZTE2MTMwN2Q3NTJjY2VhZjczNGQ4M2Y0OTg3MTJjNzY=
9
+ OTM1ZmFjZjkxMDQ4M2Q5ZWIxMGU1N2UwMDc4YzAzYWJmYTg1ZDdmZmUzZmVk
10
+ YTZlOWUwYmY3MWE1MWExNDE2YzI0YzM0NmM0ZTQ3MDE1OGVjYWU1OTVmMjUx
11
+ M2UzNjkxNGIzMzE2Yzc0ODU1NDZhYTE1ZTI2ZGJlNjBkNTkxOGQ=
12
12
  data.tar.gz: !binary |-
13
- NGJjODhjMjFiZmUyYTMxZjVlZGQ5NjlmY2IwNDk4NjA5NTFjZTNiYjk0Mjhl
14
- YTQ3NGYwNGVkOWM5ZTM4YTZmNzA2YjAxN2E4YTY1Zjg2MzAxMTdiNTg1OWY1
15
- NTdjMTBiNjViNzAwNDM0NWY2ZDllODQxM2ZjYmJjN2Y5YWYyOWE=
13
+ YjAzZTNiMzYyOTBjNTlkMzc5MDQ4MzZjZDIwZDdlN2I4OTJhODAzNDJkYzg0
14
+ N2UyNzA3NDY0ZjY4ZWZmYTUwMWZkZTAyYjFkZjg1ODRmODQ4MmFkMWE0N2Rk
15
+ MzM1ZDMwMzJmMTFlNWNmNjAzNGI5ZDQ2ZDJmOWM5YmNmZTAyZTI=
@@ -32,50 +32,50 @@ Maarten Hoogendoorn <maarten@moretea.nl>
32
32
  Jon Yurek <jyurek@thoughtbot.com>
33
33
  Jared Luxenberg <jared@jaredlux.com>
34
34
  DSIW <dsiw@dsiw-it.de>
35
- doc75 <github@virlet.org>
36
35
  Lars Gierth <lars.gierth@gmail.com>
37
36
  Greg Campbell <gtcampbell@gmail.com>
37
+ doc75 <github@virlet.org>
38
38
  marano <thiagomarano@gmail.com>
39
39
  Ben Mabey <ben@benmabey.com>
40
- Mark <mark@amerine.net>
41
40
  Jorge Orlando Munoz <jmunoz@altavistaed.com>
41
+ Mark <mark@amerine.net>
42
42
  Sam Goldstein <sam@aboutus.org>
43
43
  Adam Alboyadjian <adam@vistahigherlearning.com>
44
44
  Rick Salevsky <rsalevsky@suse.com>
45
45
  Scott Petersen <petersen@centtech.com>
46
- Ryan McGeary <ryan@mcgeary.org>
47
46
  Emil Soman <emil.soman@gmail.com>
47
+ Ryan McGeary <ryan@mcgeary.org>
48
48
  Matt Todd <chiology@gmail.com>
49
49
  Noah Paessel <knowuh@gmail.com>
50
50
  dmathieu <42@dmathieu.com>
51
51
  Oleg Sukhodolsky <os97673@gmail.com>
52
+ Jakub Jirutka <jakub@jirutka.cz>
52
53
  Winston Lee <lee.winston@gmail.com>
53
54
  Radek Simko <radek.simko@gmail.com>
54
55
  Grayson Wright <wright.grayson@gmail.com>
55
56
  Zequez <zequez@gmail.com>
56
57
  jameswilding <james@jameswilding.net>
57
58
  Ed Ruder <ed@squareup.com>
58
- Tymon Tobolski <i@teamon.eu>
59
59
  Benjamin Oakes <hello@benjaminoakes.com>
60
+ Tymon Tobolski <i@teamon.eu>
60
61
  Scott Barron <scott@elitists.net>
61
- Eric Daspet <eric.daspet@survol.fr>
62
62
  Andrius Chamentauskas <andrius.chamentauskas@gmail.com>
63
+ Eric Daspet <eric.daspet@survol.fr>
64
+ Matt Hoyle <matt@deployable.co>
63
65
  Xavier Shay <xavier@squareup.com>
64
66
  W. Andrew Loe III <andrew@andrewloe.com>
65
- Matt Hoyle <matt@deployable.co>
66
67
  Travis Herrick <travis@carbonfive.com>
67
68
  Keita Urashima <ursm@ursm.jp>
68
69
  rambutan <usul@usul-HP-EliteBook-8460p.(none)>
69
- msassak <msassak@gmail.com>
70
70
  andrea longhi <andrea@spaghetticode.it>
71
71
  = <gokulnath@mobme.in>
72
72
  Matthew Morgan <lytithwyn@gmail.com>
73
+ msassak <msassak@gmail.com>
73
74
  David Reese <david@whatcould.com>
74
75
  Andrius Chamentauskas <sinsiliux@gmail.com>
75
76
  timo3377 <tim.linquist@gmail.com>
76
- Michael Scherer <misc@zarb.org>
77
77
  Matt Rogers <mattrogers@sbcglobal.net>
78
- Jakub Jirutka <jakub@jirutka.cz>
78
+ Michael Scherer <misc@zarb.org>
79
79
  Paolo Gianrossi <paolino.gianrossi@gmail.com>
80
80
  Mislav Marohnić <mislav.marohnic@gmail.com>
81
81
  Rob Sanheim <rsanheim@gmail.com>
data/Rakefile CHANGED
@@ -53,6 +53,7 @@ desc 'tag'
53
53
  task :tag do
54
54
  version = FakeFS::Version::VERSION
55
55
  sh "git tag v#{version}"
56
+ sh "git push --tags"
56
57
  end
57
58
 
58
59
  desc 'Run git push'
@@ -19,6 +19,10 @@ module FakeFS
19
19
  File.size?(file_name)
20
20
  end
21
21
 
22
+ def readable?(file_name)
23
+ File.readable?(file_name)
24
+ end
25
+
22
26
  def writable?(file_name)
23
27
  File.writable?(file_name)
24
28
  end
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.6.3'
4
+ VERSION = '0.6.4'
5
5
 
6
6
  def self.to_s
7
7
  VERSION
@@ -2414,6 +2414,16 @@ class FakeFSTest < Test::Unit::TestCase
2414
2414
  assert !FileTest.file?('/path/to/somedir')
2415
2415
  end
2416
2416
 
2417
+ def test_filetest_readable_returns_correct_values
2418
+ assert !FileTest.readable?('not-here.txt'), 'missing files are not readable'
2419
+
2420
+ FileUtils.touch 'here.txt'
2421
+ assert FileTest.readable?('here.txt'), 'existing files are readable'
2422
+
2423
+ FileUtils.mkdir 'dir'
2424
+ assert FileTest.readable?('dir'), 'directories are readable'
2425
+ end
2426
+
2417
2427
  def test_filetest_writable_returns_correct_values
2418
2428
  assert !FileTest.writable?('not-here.txt'), 'missing files are not writable'
2419
2429
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fakefs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.3
4
+ version: 0.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Wanstrath
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-01-14 00:00:00.000000000 Z
15
+ date: 2015-01-15 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler