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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cc454c1e5fe62747f0ee43de84a327dc11184f64
4
- data.tar.gz: ab2f72aa410a31cedd3c19060b6c0a1d1541d5b1
3
+ metadata.gz: 7070f1ce08f5ff05c7d8fcb9961ba0bb4e88731a
4
+ data.tar.gz: 07734fb235eb62bc649438807b54d9e2aa340a06
5
5
  SHA512:
6
- metadata.gz: 27474779f0a510d6d08ae6192b55665cb356d3237ea50456995a21a814a6b3c17c0c2de4906ac612fbb042f81dbad84f64d322c92f34e48092f0f1d2b6ab222e
7
- data.tar.gz: 111c3de72c19a0ef614c2f5ac15cd66762f32949efe9ad79079bee71eba75a0f2b6a821e83f458bef26afc9cc572541267105756702b8ae29f2b5c7ac3af595c
6
+ metadata.gz: 68877e18ac8e37dd5c8600f5a4301bf66791fde310174d39c2717673fb38a59921990de4964e9dc059614e85e88d3908712e686a3f84963becbdc8af239c210b
7
+ data.tar.gz: cf46f49bebf9da63d71efce96d0780149229a3cb91e60c437349196c56a57ab50e9250f3108c16894acec1fdce92c9fa4f7787eacae0be61f4b93b813e35179f
@@ -82,7 +82,14 @@ module VncTools
82
82
  end
83
83
 
84
84
  def host
85
- @host ||= Socket.gethostname
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
@@ -1,3 +1,3 @@
1
1
  module VncTools
2
- VERSION = "0.0.9.pre1"
2
+ VERSION = "0.0.9"
3
3
  end
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.pre1
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-09 00:00:00.000000000 Z
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: 1.3.1
109
+ version: '0'
110
110
  requirements: []
111
111
  rubyforge_project: vnctools
112
112
  rubygems_version: 2.0.6