monofile 0.2.3 → 0.2.4
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.
- checksums.yaml +4 -4
- data/lib/monofile/mononame.rb +13 -1
- data/lib/monofile/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: 65b2adcc26d5afb0816a8e41d66890f70fd3542a
|
4
|
+
data.tar.gz: '09c72105f54283cbce99914c3d602b5d847b602a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a268d9d308f5bc99310a1e7fa6ad49c8fc7404e81189ece4783ce4e5973d8c684a73fe9cddc05a7ab31b60623ac66d64ecd862a2d54c17caacf6f47d69bfddd
|
7
|
+
data.tar.gz: ff5736d5859108a6e89801cf789003cf60bd4706653659ada4347abcc3d325c17fc46bc10cd0208727c5855d939b48448de32c7e7e33d617e37e52795c95660d
|
data/lib/monofile/mononame.rb
CHANGED
@@ -56,6 +56,9 @@ class Mononame
|
|
56
56
|
mononame = parse( line )
|
57
57
|
mononame.real_path
|
58
58
|
end
|
59
|
+
class << self
|
60
|
+
alias_method :realpath, :real_path
|
61
|
+
end
|
59
62
|
|
60
63
|
|
61
64
|
## note: org and name for now required
|
@@ -77,6 +80,12 @@ class Mononame
|
|
77
80
|
def to_s() "@#{to_path}"; end
|
78
81
|
|
79
82
|
def real_path() "#{Mono.root}/#{to_path}"; end
|
83
|
+
alias_method :realpath, :real_path
|
84
|
+
|
85
|
+
## todo/check: also check for /.git subfolder - why? why not?
|
86
|
+
def exist?() Dir.exist?( real_path ); end
|
87
|
+
|
88
|
+
|
80
89
|
end # class Mononame
|
81
90
|
|
82
91
|
|
@@ -106,6 +115,9 @@ class Monopath
|
|
106
115
|
monopath = parse( line )
|
107
116
|
monopath.real_path
|
108
117
|
end
|
118
|
+
class << self
|
119
|
+
alias_method :realpath, :real_path
|
120
|
+
end
|
109
121
|
|
110
122
|
|
111
123
|
## note: org and name AND path for now required
|
@@ -133,7 +145,7 @@ class Monopath
|
|
133
145
|
def to_s() "@#{to_path}"; end
|
134
146
|
|
135
147
|
def real_path() "#{Mono.root}/#{to_path}"; end
|
136
|
-
|
148
|
+
alias_method :realpath, :real_path
|
137
149
|
|
138
150
|
## some File-like convenience helpers
|
139
151
|
## e.g. File.exist? => Monopath.exist?
|
data/lib/monofile/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: monofile
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gerald Bauer
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-11-
|
11
|
+
date: 2020-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rdoc
|