fakefs 1.2.3 → 1.3.0
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 +4 -4
- data/README.md +2 -2
- data/lib/fakefs/file.rb +2 -2
- data/lib/fakefs/version.rb +1 -1
- 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: b8bd326fd88f546556eaca2194662454a12234d2da597e8002a663e5dba757cb
|
|
4
|
+
data.tar.gz: c70378d690483115a4419f80d11a5775b0848c7fd2a2ceaec098f07b4196d6c5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf22c7d97a54dbc02f382ba3ee7feb75673e792340336446816411bbae4b04886d9b1b7587a4230aee0c0f12ff64ad42102d4e3369dad223c3d27444b63f34b6
|
|
7
|
+
data.tar.gz: 96077a4735d8a880bb8073e5abc2c8869a99b688b18082253f0eb026800c11df7dcdb139a0e22be2e6993b1caadf86b12adb76eadd2dfd20c4ea2877b1cc39db
|
data/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
FakeFS [](https://github.com/fakefs/fakefs/actions?query=branch%3Amaster)
|
|
2
2
|
======
|
|
3
3
|
|
|
4
4
|
Mocking calls to FileUtils or File means tightly coupling tests with the implementation.
|
|
@@ -202,7 +202,7 @@ Meta
|
|
|
202
202
|
* Code: `git clone git://github.com/fakefs/fakefs.git`
|
|
203
203
|
* Home: <https://github.com/fakefs/fakefs>
|
|
204
204
|
* Bugs: <https://github.com/fakefs/fakefs/issues>
|
|
205
|
-
* Test: <https://
|
|
205
|
+
* Test: <https://github.com/fakefs/fakefs/actions?query=branch%3Amaster>
|
|
206
206
|
* Gems: <https://rubygems.org/gems/fakefs>
|
|
207
207
|
|
|
208
208
|
[0]: https://help.github.com/forking/
|
data/lib/fakefs/file.rb
CHANGED
|
@@ -197,11 +197,11 @@ module FakeFS
|
|
|
197
197
|
file.read(length)
|
|
198
198
|
end
|
|
199
199
|
|
|
200
|
-
def self.readlines(path)
|
|
200
|
+
def self.readlines(path, chomp: false)
|
|
201
201
|
file = new(path)
|
|
202
202
|
if file.exists?
|
|
203
203
|
FileSystem.find(path).atime = Time.now
|
|
204
|
-
file.readlines
|
|
204
|
+
chomp ? file.readlines.map(&:chomp) : file.readlines
|
|
205
205
|
else
|
|
206
206
|
raise Errno::ENOENT
|
|
207
207
|
end
|
data/lib/fakefs/version.rb
CHANGED
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: 1.
|
|
4
|
+
version: 1.3.0
|
|
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: 2020-12-
|
|
15
|
+
date: 2020-12-10 00:00:00.000000000 Z
|
|
16
16
|
dependencies:
|
|
17
17
|
- !ruby/object:Gem::Dependency
|
|
18
18
|
name: bump
|