wooga_uvm 0.3.2 → 1.0.0
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/RELEASE_NOTES.md +5 -2
- data/lib/uvm/cli.rb +5 -5
- data/lib/uvm/version.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: 145092e1db450308ff40d8277559949b3a7792bb
|
4
|
+
data.tar.gz: 19ffac87fb5188b7af35fca01b8f12ca77e6c6eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0b968e8a39d9a288cf46ce2fd72e3eac67171e26826ec0a979aa2ce65a97b85c4708244cdba928df170f56f86badde584b68d19d3897ad47fffd083379f88bc
|
7
|
+
data.tar.gz: 6d118aec9a6c5391387cc0df619e9e4165d19d3d2a2cb2be92faf79013e9f351014fb7fa8396b698464263051be99f9e30be612b4607f1a0841e25d52677ae94
|
data/RELEASE_NOTES.md
CHANGED
data/lib/uvm/cli.rb
CHANGED
@@ -27,7 +27,7 @@ module UVM
|
|
27
27
|
exit
|
28
28
|
end
|
29
29
|
|
30
|
-
desired_version = File.join(UNITY_INSTALL_LOCATION,"Unity"+version)
|
30
|
+
desired_version = File.join(UNITY_INSTALL_LOCATION,"Unity-"+version)
|
31
31
|
|
32
32
|
unless Dir.exists? desired_version
|
33
33
|
puts "Version #{version} isn't available "
|
@@ -81,7 +81,7 @@ module UVM
|
|
81
81
|
private
|
82
82
|
def ensure_link
|
83
83
|
if !File.symlink?(UNITY_LINK) and File.directory?(UNITY_LINK)
|
84
|
-
new_dir_name = File.join(UNITY_INSTALL_LOCATION,"Unity"+Lib.current)
|
84
|
+
new_dir_name = File.join(UNITY_INSTALL_LOCATION,"Unity-"+Lib.current)
|
85
85
|
FileUtils.mv(UNITY_LINK, new_dir_name)
|
86
86
|
FileUtils.ln_s(new_dir_name, UNITY_LINK, :force => true)
|
87
87
|
end
|
@@ -92,13 +92,13 @@ module UVM
|
|
92
92
|
def self.current
|
93
93
|
plist_path = File.join(UNITY_CONTENTS,"Info.plist")
|
94
94
|
if File.exists? plist_path
|
95
|
-
`/usr/libexec/PlistBuddy -c 'Print :CFBundleVersion' #{plist_path}
|
95
|
+
`/usr/libexec/PlistBuddy -c 'Print :CFBundleVersion' #{plist_path}`
|
96
96
|
end
|
97
97
|
end
|
98
98
|
|
99
99
|
def self.list
|
100
|
-
installed = `find #{UNITY_INSTALL_LOCATION} -name "Unity
|
101
|
-
installed.map{|u| u.match(version_regex){|m| m[1]} }
|
100
|
+
installed = `find #{UNITY_INSTALL_LOCATION} -name "Unity-*" -type d -maxdepth 1`.lines
|
101
|
+
installed.select{|u| !u.match(version_regex).nil? }.map{|u| u.match(version_regex){|m| m[1]} }
|
102
102
|
end
|
103
103
|
|
104
104
|
def self.version_regex
|
data/lib/uvm/version.rb
CHANGED