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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6067916d66bba70822909486af3badef54517ca7
4
- data.tar.gz: 9ce2da764c4bdf91b26ee5680d17b7e9ef98ba02
3
+ metadata.gz: 145092e1db450308ff40d8277559949b3a7792bb
4
+ data.tar.gz: 19ffac87fb5188b7af35fca01b8f12ca77e6c6eb
5
5
  SHA512:
6
- metadata.gz: 8f29ad0c990a187621f9b983fb56a159ac5c3e7777a909be654fc6821cf7017f3a225c2eec7ca42e68ef4d97873bed9482db7d9981322c8dce63edc16ea71bcb
7
- data.tar.gz: 1605f489e393c960eefabbf4f78a38e8b6d8f7fb3f994d23790baa3061d579f65819d6ad5b6c990276804b1cd41460856be9865dd82c91ab630332b27b35a3fc
6
+ metadata.gz: e0b968e8a39d9a288cf46ce2fd72e3eac67171e26826ec0a979aa2ce65a97b85c4708244cdba928df170f56f86badde584b68d19d3897ad47fffd083379f88bc
7
+ data.tar.gz: 6d118aec9a6c5391387cc0df619e9e4165d19d3d2a2cb2be92faf79013e9f351014fb7fa8396b698464263051be99f9e30be612b4607f1a0841e25d52677ae94
data/RELEASE_NOTES.md CHANGED
@@ -1,7 +1,10 @@
1
- # 0.3.2
1
+ # 1.0.0
2
+ * ![CHANGE] File lookup pattern
3
+
4
+ ### 0.3.2
2
5
  * ![IMPROVE] version will match unity version `major.minor.patchfpatch` like `5.6.0f1`
3
6
 
4
- # 0.3.1
7
+ ### 0.3.1
5
8
  * ![NEW] Homebrew release
6
9
 
7
10
  ## 0.1.0
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}`.split("f").first
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*" -type d -maxdepth 1`.lines
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
@@ -1,4 +1,4 @@
1
1
  module Uvm
2
- VERSION = "0.3.2".freeze
2
+ VERSION = "1.0.0".freeze
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wooga_uvm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Donald Hutchison