dir_model 0.3.1 → 0.3.2

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: 32c8c722a8b0c90ae93ee5cebb654227ee188652
4
- data.tar.gz: dec22a3e621cee606b3876ade2bbf1080b9ff52f
3
+ metadata.gz: 3457eea8b9306da3a81637ac55ac464683c6dcee
4
+ data.tar.gz: 1121b93cc2b1a3791ab0bb75dbb8ccf82531b4d5
5
5
  SHA512:
6
- metadata.gz: 6ac58fc2cb229093204a0adf789362eba762c752bc09a71f4beac51fd3e69f6b47ee90c272cef7816e5ec54e599933267f50aacfb400305eb82ad038d5d8480d
7
- data.tar.gz: a52e040adc41f966f7d09ca8f75339c2587099aa6617bc41ade4f369fb9d7f8e14909ff6ca9838c02ca79c206ab37ccdb088b401b07fdf47d7d5289bc59eb11e
6
+ metadata.gz: 421f2618c92f77c29db391c6098b4fa13f9e4f0850bacdc23c0ba425308976cc9604cd85f742ceaa928596f5f7b13cff115b903b7f08380cac00d9f3660282c7
7
+ data.tar.gz: 8ad40a970fbfd4f73272da07da7f48b85fe55434cc649c91f1a06c3b2d09a87d99b717c1bb050666c3595049a8eba4fdf45c714a987e240284fd253e7f4eac49
@@ -28,6 +28,10 @@ module DirModel
28
28
  self
29
29
  end
30
30
 
31
+ def files
32
+ Dir["#{@dir_path}/**/*"].select { |f| File.file?(f) }
33
+ end
34
+
31
35
  end
32
36
  end
33
37
  end
@@ -16,7 +16,7 @@ module DirModel
16
16
  file_infos[:options][:match]
17
17
  end
18
18
 
19
- def image
19
+ def document
20
20
  File.open(source_path)
21
21
  end
22
22
 
@@ -1,3 +1,3 @@
1
1
  module DirModel
2
- VERSION = '0.3.1'
2
+ VERSION = '0.3.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dir_model
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Chung
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-12-02 00:00:00.000000000 Z
11
+ date: 2015-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport