dir_model 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/dir_model/import/path.rb +3 -3
- data/lib/dir_model/import.rb +1 -1
- data/lib/dir_model/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3a8d350b4d8004603f0dc60aafcea63d16d093
|
4
|
+
data.tar.gz: 829174e25f6ca9217891cb4e50316f7aaf95ba40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44cef5e36645bf8a328e24cff4bb64e89fe99150f998264d34b877b8e7bfa7706c66fec48d820bf2eaa7f2194561c0e9eb21c5a0ffd11ead8d66821ca94c3528
|
7
|
+
data.tar.gz: 32dfd96f5ea816d1f3eea320e74fa9903383bd580db28b6a55c85a099a525cbad5743d5c4a228ded24a518c093dffd88534c8355cc9c428ae38ad0bf2b185389
|
data/CHANGELOG.md
CHANGED
@@ -44,11 +44,11 @@ module DirModel
|
|
44
44
|
set_end unless current_path
|
45
45
|
current_path
|
46
46
|
end
|
47
|
-
|
47
|
+
|
48
48
|
def set_position(index)
|
49
49
|
@index = index
|
50
50
|
end
|
51
|
-
|
51
|
+
|
52
52
|
def rewind
|
53
53
|
set_position(-1)
|
54
54
|
end
|
@@ -56,7 +56,7 @@ module DirModel
|
|
56
56
|
protected
|
57
57
|
|
58
58
|
def ruby_path
|
59
|
-
@ruby_path ||= ::Dir.glob("#{path}/**/*")
|
59
|
+
@ruby_path ||= ::Dir.glob("#{path}/**/*").sort
|
60
60
|
end
|
61
61
|
|
62
62
|
def set_end
|
data/lib/dir_model/import.rb
CHANGED
@@ -85,7 +85,7 @@ module DirModel
|
|
85
85
|
|
86
86
|
def get_regexp
|
87
87
|
if foreign_value
|
88
|
-
Regexp.new(self.class.options[:regex].call(foreign_value), Regexp::IGNORECASE)
|
88
|
+
Regexp.new(self.class.options[:regex].call(Regexp.quote(foreign_value)), Regexp::IGNORECASE)
|
89
89
|
else
|
90
90
|
self.class.options[:regex].call
|
91
91
|
end
|
data/lib/dir_model/version.rb
CHANGED
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.6.
|
4
|
+
version: 0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Chung
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|