kelredd-repository 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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
- ROOT ||= '/'
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
@@ -3,7 +3,7 @@ module Repository
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 2
6
- TINY = 0
6
+ TINY = 1
7
7
 
8
8
  def self.to_s # :nodoc:
9
9
  [MAJOR, MINOR, TINY].join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kelredd-repository
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kelredd