engineyard-serverside 1.5.23.ruby19.9 → 1.5.23.ruby19.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module EY
2
2
  module Serverside
3
- VERSION = '1.5.23.ruby19.9'
3
+ VERSION = '1.5.23.ruby19.10'
4
4
  end
5
5
  end
@@ -22,6 +22,7 @@ require 'engineyard-serverside/configuration'
22
22
  require 'engineyard-serverside/deprecation'
23
23
  require 'engineyard-serverside/future'
24
24
 
25
+ $DEBUG = false
25
26
  module EY
26
27
  module Serverside
27
28
  RemoteFailure = Class.new StandardError
@@ -54,7 +55,15 @@ module EY
54
55
  end
55
56
 
56
57
  def self.read_encoded_dna
57
- File.exist?(dna_path) ? `sudo cat #{dna_path}` : '{}'
58
+ encoded_dna = '{}'
59
+ force_unicode = encoded_dna.respond_to?(:force_encoding) || ($KCODE = 'U' && false)
60
+
61
+ if File.exist?(dna_path)
62
+ encoded_dna = `sudo cat #{dna_path}`
63
+ encoded_dna.force_encoding('UTF-8') if force_unicode
64
+ end
65
+
66
+ encoded_dna
58
67
  end
59
68
  end
60
69
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: engineyard-serverside
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.23.ruby19.9
4
+ version: 1.5.23.ruby19.10
5
5
  prerelease: 7
6
6
  platform: ruby
7
7
  authors:
@@ -9,33 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-01-06 00:00:00.000000000 Z
12
+ date: 2012-01-09 00:00:00.000000000 Z
13
13
  dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: celluloid
16
- requirement: &2155342020 !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ! '>='
20
- - !ruby/object:Gem::Version
21
- version: '0'
22
- type: :runtime
23
- prerelease: false
24
- version_requirements: *2155342020
25
- - !ruby/object:Gem::Dependency
26
- name: thor
27
- requirement: &2155341520 !ruby/object:Gem::Requirement
28
- none: false
29
- requirements:
30
- - - =
31
- - !ruby/object:Gem::Version
32
- version: 0.13.3
33
- type: :runtime
34
- prerelease: false
35
- version_requirements: *2155341520
36
14
  - !ruby/object:Gem::Dependency
37
15
  name: rspec
38
- requirement: &2155341020 !ruby/object:Gem::Requirement
16
+ requirement: &2154162720 !ruby/object:Gem::Requirement
39
17
  none: false
40
18
  requirements:
41
19
  - - =
@@ -43,10 +21,10 @@ dependencies:
43
21
  version: 1.3.2
44
22
  type: :development
45
23
  prerelease: false
46
- version_requirements: *2155341020
24
+ version_requirements: *2154162720
47
25
  - !ruby/object:Gem::Dependency
48
26
  name: rake
49
- requirement: &2155340560 !ruby/object:Gem::Requirement
27
+ requirement: &2154162220 !ruby/object:Gem::Requirement
50
28
  none: false
51
29
  requirements:
52
30
  - - ! '>='
@@ -54,7 +32,7 @@ dependencies:
54
32
  version: 0.9.2.2
55
33
  type: :development
56
34
  prerelease: false
57
- version_requirements: *2155340560
35
+ version_requirements: *2154162220
58
36
  description:
59
37
  email: cloud@engineyard.com
60
38
  executables: