kelredd-repository 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/repository/file_system/base.rb +3 -3
- data/lib/repository/version.rb +1 -1
- metadata +1 -1
@@ -5,13 +5,13 @@ module Repository
|
|
5
5
|
# the class handles joining the segments with the appropriate seperator
|
6
6
|
|
7
7
|
# you should override ROOT appropriately, depending on where you want your repo located
|
8
|
-
|
8
|
+
ROOT_DEFAULT = '/'
|
9
9
|
WRITE = "w"
|
10
10
|
READ = "r"
|
11
|
-
|
11
|
+
|
12
12
|
# Return the array of the repository root
|
13
13
|
def self.root_array
|
14
|
-
ROOT.split(File::SEPARATOR)
|
14
|
+
(ROOT || ROOT_DEFAULT).split(File::SEPARATOR)
|
15
15
|
end
|
16
16
|
|
17
17
|
# Return the full file system path of the given directory or file
|
data/lib/repository/version.rb
CHANGED