fakefs 0.12.0 → 0.13.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
  SHA1:
3
- metadata.gz: f09643c4a4c819c9be5e231605189c97ef45cb91
4
- data.tar.gz: 284b16d9e2b824ded282f59e5063572eb7138434
3
+ metadata.gz: 0b95195ccd3ea0f144d92f88f06725e43ff0e343
4
+ data.tar.gz: cb254b71918ae91599943364e20d3de41def7105
5
5
  SHA512:
6
- metadata.gz: 97da5905b26ec724ec3be99ff03f11a4ab535c98b687e1a5ec1dc53eb9a0780127ede82c8c9920eef215d50b94e333da8907805b8dac0dfdc386a7193cbf62a7
7
- data.tar.gz: aa27617f51c8fb48be3a460c2c931fd32aa083ab5dbd2f96c24bdfc687b56345019950c5bcf70356cd3456086edac48702a097d9f4e35478438bdd354d655862
6
+ metadata.gz: 2bbd253a2ee4a44033e97abaa3b09357f7a1f7663623e4dd39b19497596ea1c086fc67aab9f7357e85bf9217da590e5e33d32de2d2ad6ccf61f425d23be56758
7
+ data.tar.gz: afc6d2fbaa08e60975c719dc4ee3c3cb73273acfec113aa429cf25970f288054139d3bee25c823ce347190c5fc3bd9ac8e1945945773d910c00b5b07a46ec358
data/README.md CHANGED
@@ -219,6 +219,5 @@ Meta
219
219
  Releasing
220
220
  ---------
221
221
 
222
- 1. Update version in lib/fakefs/version.rb
223
- 2. Commit it
224
- 3. run `bundle exec rake publish`
222
+ 1. `bundle exec rake bump:patch` or minor/major
223
+ 2. `bundle exec rake release`
data/lib/fakefs/dir.rb CHANGED
@@ -90,6 +90,17 @@ module FakeFS
90
90
  Dir.new(dirname).map { |file| File.basename(file) }
91
91
  end
92
92
 
93
+ def self.children(dirname, opts = {})
94
+ entries(dirname, opts) - %w(. ..)
95
+ end
96
+
97
+ def self.each_child(dirname, &_block)
98
+ Dir.open(dirname) do |file|
99
+ next if %w(. ..).include?(file)
100
+ yield file
101
+ end
102
+ end
103
+
93
104
  if RUBY_VERSION >= '2.4'
94
105
  def self.empty?(dirname)
95
106
  _check_for_valid_file(dirname)
@@ -1,7 +1,7 @@
1
1
  module FakeFS
2
2
  # Version module
3
3
  module Version
4
- VERSION = '0.12.0'.freeze
4
+ VERSION = '0.13.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: 0.12.0
4
+ version: 0.13.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: 2018-01-03 00:00:00.000000000 Z
15
+ date: 2018-01-14 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: bundler