vnctools 0.0.9.pre1 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/vnctools/server.rb +8 -1
- data/lib/vnctools/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7070f1ce08f5ff05c7d8fcb9961ba0bb4e88731a
|
4
|
+
data.tar.gz: 07734fb235eb62bc649438807b54d9e2aa340a06
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 68877e18ac8e37dd5c8600f5a4301bf66791fde310174d39c2717673fb38a59921990de4964e9dc059614e85e88d3908712e686a3f84963becbdc8af239c210b
|
7
|
+
data.tar.gz: cf46f49bebf9da63d71efce96d0780149229a3cb91e60c437349196c56a57ab50e9250f3108c16894acec1fdce92c9fa4f7787eacae0be61f4b93b813e35179f
|
data/lib/vnctools/server.rb
CHANGED
@@ -82,7 +82,14 @@ module VncTools
|
|
82
82
|
end
|
83
83
|
|
84
84
|
def host
|
85
|
-
@host ||=
|
85
|
+
@host ||= (
|
86
|
+
# Java 6 and 7 is inconsistent in its return value, so attempt to read /etc/hostname if possible
|
87
|
+
if defined?(JRUBY_VERSION) && File.exist?("/etc/hostname")
|
88
|
+
File.read("/etc/hostname").strip
|
89
|
+
else
|
90
|
+
Socket.gethostname
|
91
|
+
end
|
92
|
+
)
|
86
93
|
end
|
87
94
|
end # VncServer
|
88
95
|
end # CukeForker
|
data/lib/vnctools/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vnctools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.9
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jari Bakken
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: childprocess
|
@@ -104,9 +104,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - '
|
107
|
+
- - '>='
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project: vnctools
|
112
112
|
rubygems_version: 2.0.6
|