unitypath 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.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/lib/unitypath.rb +17 -0
  3. metadata +44 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 35cab349dcafe73d73a55e0786da2ef32471446d
4
+ data.tar.gz: 9aa58a1986135c9ac94da2b8a7e7b3d0ce7dbea1
5
+ SHA512:
6
+ metadata.gz: 61f46a4ce5cca9686d3936aeaf95262ddd29caba663fd063903c7b798368f797f984423bdd6e2e57630ea40873f79bf715ad4fc46c5a6578f9bb90fe2ff213a3
7
+ data.tar.gz: d7733055f4c5a9a93732dd82281ce5bed99fe44428b9bc173fd5eb543a74390dabe759475d77fc3cafb937a1ab3e5a7192d4982f5eaf81c223e5c4bdb2f37627
data/lib/unitypath.rb ADDED
@@ -0,0 +1,17 @@
1
+ require 'rbconfig'
2
+
3
+ def unitypath
4
+ unity_x64 = "C:\\Program Files\\Unity\\Editor\\Unity.exe"
5
+ unity_x86 = "C:\\Program Files (x86)\\Unity\\Editor\\Unity.exe"
6
+ unity_mac = "/Applications/Unity/Unity.app/Contents/MacOS/Unity"
7
+
8
+ case RbConfig::CONFIG['host_os']
9
+ when /mswin|windows|w32/i
10
+ return unity_x64 if File.exist? unity_x64
11
+ return unity_x86 if File.exist? unity_x86
12
+ when /darwin/i
13
+ return unity_mac if File.exist? unity_mac
14
+ end
15
+
16
+ raise RuntimeError.new("Cannot find unity")
17
+ end
metadata ADDED
@@ -0,0 +1,44 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: unitypath
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - pjc0247
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-12-03 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description: unitypath
14
+ email:
15
+ - pjc0247@naver.com
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - lib/unitypath.rb
21
+ homepage: http://github.com/pjc0247/unitypath
22
+ licenses: []
23
+ metadata: {}
24
+ post_install_message:
25
+ rdoc_options: []
26
+ require_paths:
27
+ - lib
28
+ required_ruby_version: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: '0'
33
+ required_rubygems_version: !ruby/object:Gem::Requirement
34
+ requirements:
35
+ - - ">="
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ requirements: []
39
+ rubyforge_project: unitypath
40
+ rubygems_version: 2.4.5
41
+ signing_key:
42
+ specification_version: 4
43
+ summary: unitypath
44
+ test_files: []