lioooo_utils 0.3.0 → 0.3.1
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.
- data/{README.rdoc → README.md} +3 -1
- data/lib/utils.rb +7 -0
- metadata +5 -5
data/{README.rdoc → README.md}
RENAMED
data/lib/utils.rb
CHANGED
|
@@ -1,9 +1,16 @@
|
|
|
1
1
|
#encoding: utf-8
|
|
2
|
+
require 'socket'
|
|
3
|
+
Server = UDPSocket.open { |s| s.connect('64.233.187.99', 1); s.addr.last }
|
|
2
4
|
class LiooooUtils
|
|
3
5
|
class << self
|
|
4
6
|
def build_log_dir source, target
|
|
5
7
|
cmd = "ln -sf #{source} #{target}"
|
|
6
8
|
ShellExec.exec! cmd
|
|
7
9
|
end
|
|
10
|
+
|
|
11
|
+
# check if is development mac
|
|
12
|
+
def is_dev?
|
|
13
|
+
Server =~/^192.168/
|
|
14
|
+
end
|
|
8
15
|
end
|
|
9
16
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lioooo_utils
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2014-04-
|
|
12
|
+
date: 2014-04-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: colored
|
|
@@ -162,14 +162,14 @@ executables:
|
|
|
162
162
|
extensions: []
|
|
163
163
|
extra_rdoc_files:
|
|
164
164
|
- LICENSE.txt
|
|
165
|
-
- README.
|
|
165
|
+
- README.md
|
|
166
166
|
files:
|
|
167
167
|
- lib/lioooo_utils.rb
|
|
168
168
|
- lib/logs/lioooo_log.rb
|
|
169
169
|
- lib/utils.rb
|
|
170
170
|
- lib/version.rb
|
|
171
171
|
- LICENSE.txt
|
|
172
|
-
- README.
|
|
172
|
+
- README.md
|
|
173
173
|
- !binary |-
|
|
174
174
|
YmluL2xpb29vX2xpbmtfbG9nX2Rpcg==
|
|
175
175
|
homepage: http://github.com/mrli/lioooo_utils
|
|
@@ -187,7 +187,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
187
187
|
version: '0'
|
|
188
188
|
segments:
|
|
189
189
|
- 0
|
|
190
|
-
hash:
|
|
190
|
+
hash: -1940026191165835581
|
|
191
191
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
192
|
none: false
|
|
193
193
|
requirements:
|