vmonkey 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/lib/vmonkey/version.rb +1 -1
- data/lib/vmonkey/vim/VirtualApp.rb +1 -1
- data/lib/vmonkey/vim/VirtualMachine.rb +1 -1
- data/lib/vmonkey.rb +26 -6
- data/spec/vapp_spec.rb +1 -1
- data/spec/virtualmachine_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e70eff6ca91cea320ab02850bb495ea5379e43bf
|
4
|
+
data.tar.gz: 5be15a57203fd28ce38cb87808004a7da161c96b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2bf1a23be2e66ff2b6a76b135c58d3c2599989a463cec4fe95ce0752c2139c7cde73efeb10cf2e8cd465953cee580ab70ef33422a8e56bb00fb88d8c5e3c107a
|
7
|
+
data.tar.gz: 1335dbd621d0b1e65c5d42a039889e4ec12f26fdfc3fe23f2c06aea1a16044a31ecc3ec3923a3c2420df89ff8248cbd6a073665a88c4c919bc716c715524afa9
|
data/lib/vmonkey/version.rb
CHANGED
data/lib/vmonkey.rb
CHANGED
@@ -16,14 +16,34 @@ module VMonkey
|
|
16
16
|
end
|
17
17
|
|
18
18
|
module VMonkey
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
19
|
+
def self.string_parent(s)
|
20
|
+
p = s.split('/')[0...-1].join('/')
|
21
|
+
p == '' ? '/' : p
|
22
|
+
end
|
23
|
+
|
24
|
+
def self.string_basename(s)
|
25
|
+
p = s.split('/').last
|
26
|
+
end
|
27
|
+
|
28
|
+
if '1' == RUBY_VERSION.split('.')[0]
|
29
|
+
class ::String
|
30
|
+
def parent
|
31
|
+
VMonkey::string_parent(self)
|
32
|
+
end
|
33
|
+
|
34
|
+
def basename
|
35
|
+
VMonkey::string_basename(self)
|
36
|
+
end
|
23
37
|
end
|
38
|
+
else
|
39
|
+
refine String do
|
40
|
+
def parent
|
41
|
+
VMonkey::string_parent(self)
|
42
|
+
end
|
24
43
|
|
25
|
-
|
26
|
-
|
44
|
+
def basename
|
45
|
+
VMonkey::string_basename(self)
|
46
|
+
end
|
27
47
|
end
|
28
48
|
end
|
29
49
|
end
|
data/spec/vapp_spec.rb
CHANGED
data/spec/virtualmachine_spec.rb
CHANGED