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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc46a512fd3305af7a7d3949bdfe049de0e1e238
4
- data.tar.gz: f152af472841c5145d37ca45f54504fbb48e6f3a
3
+ metadata.gz: 65b2adcc26d5afb0816a8e41d66890f70fd3542a
4
+ data.tar.gz: '09c72105f54283cbce99914c3d602b5d847b602a'
5
5
  SHA512:
6
- metadata.gz: 83b933f57ceab663f8186d1fd8f99737bebc1f35ecde411b44f4a24d6dc3476b510376d7194f77f68f9d9f5537919e00c7fcf66aedc2a22ce90e37fa75f840ea
7
- data.tar.gz: 73acb18f7deb86cc6e4669459c4f531b98cdd7c248c12f36c820577550fcc1ba4eeebc65edbac2ba2fb9f0b697fe73f0b028c828c9f0c420d9c225b3be3b27fa
6
+ metadata.gz: 0a268d9d308f5bc99310a1e7fa6ad49c8fc7404e81189ece4783ce4e5973d8c684a73fe9cddc05a7ab31b60623ac66d64ecd862a2d54c17caacf6f47d69bfddd
7
+ data.tar.gz: ff5736d5859108a6e89801cf789003cf60bd4706653659ada4347abcc3d325c17fc46bc10cd0208727c5855d939b48448de32c7e7e33d617e37e52795c95660d
@@ -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?
@@ -5,7 +5,7 @@ module Monofile
5
5
 
6
6
  MAJOR = 0 ## todo: namespace inside version or something - why? why not??
7
7
  MINOR = 2
8
- PATCH = 3
8
+ PATCH = 4
9
9
  VERSION = [MAJOR,MINOR,PATCH].join('.')
10
10
 
11
11
  def self.version
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.3
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-03 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rdoc