fakefs 1.2.3 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '05218e3b531393a48c565fe787759d6e4e89c64cc89047c3685d199ef0775921'
4
- data.tar.gz: 59a65166fe4d0bc0dbc4d3fa002e0180d98a548548542447568d9e9ea45b0977
3
+ metadata.gz: b8bd326fd88f546556eaca2194662454a12234d2da597e8002a663e5dba757cb
4
+ data.tar.gz: c70378d690483115a4419f80d11a5775b0848c7fd2a2ceaec098f07b4196d6c5
5
5
  SHA512:
6
- metadata.gz: a599803b52fd91196e05878a5570218de25884e2e0e47becebb49f0006b2d909b1de86f0699e983f7f315aedb2b789abe568765b42eefa2f8dce1080e6a2dc86
7
- data.tar.gz: e6a99b4c246abbc1f2de43420b82dbc48700cdb50851c8b76906a14ed6147a4892511b7c70cbbf4a67c6d66ee9b8824db3dbc331da22f47614a6de83bf789b3b
6
+ metadata.gz: cf22c7d97a54dbc02f382ba3ee7feb75673e792340336446816411bbae4b04886d9b1b7587a4230aee0c0f12ff64ad42102d4e3369dad223c3d27444b63f34b6
7
+ data.tar.gz: 96077a4735d8a880bb8073e5abc2c8869a99b688b18082253f0eb026800c11df7dcdb139a0e22be2e6993b1caadf86b12adb76eadd2dfd20c4ea2877b1cc39db
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- FakeFS [![build status](https://travis-ci.org/fakefs/fakefs.svg?branch=master)](https://travis-ci.org/fakefs/fakefs)
1
+ FakeFS [![build status](https://github.com/fakefs/fakefs/workflows/CI/badge.svg)](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://travis-ci.org/fakefs/fakefs>
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/
@@ -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
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '1.2.3'.freeze
4
+ VERSION = '1.3.0'.freeze
5
5
 
6
6
  def self.to_s
7
7
  VERSION
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.2.3
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-06 00:00:00.000000000 Z
15
+ date: 2020-12-10 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bump