mobilize-base 1.371 → 1.372

Sign up to get free protection for your applications and to get access to all the features.
@@ -82,17 +82,24 @@ module Mobilize
82
82
  server_strings = server_line.split(",")[1..-1].reject{|t| t.strip.starts_with?(":")}
83
83
  server_strings.map{|ss| ss.gsub("'","").gsub('"','').strip}
84
84
  rescue
85
+ # for dev/test
85
86
  ["127.0.0.1"]
86
87
  end
87
88
  servers
88
89
  end
89
90
 
90
91
  def Jobtracker.current_server
91
- begin
92
- Socket.gethostbyname(Socket.gethostname).first
93
- rescue
94
- nil
92
+ server = case Base.env
93
+ when "production", "staging"
94
+ begin
95
+ Socket.gethostbyname(Socket.gethostname).first
96
+ rescue
97
+ nil
98
+ end
99
+ else
100
+ "127.0.0.1"
95
101
  end
102
+ server
96
103
  end
97
104
 
98
105
  def Jobtracker.perform(id,*args)
@@ -1,5 +1,5 @@
1
1
  module Mobilize
2
2
  module Base
3
- VERSION = "1.371"
3
+ VERSION = "1.372"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobilize-base
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.371'
4
+ version: '1.372'
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: 2013-07-03 00:00:00.000000000 Z
12
+ date: 2013-08-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -234,7 +234,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
234
234
  version: '0'
235
235
  segments:
236
236
  - 0
237
- hash: -4607436373459673499
237
+ hash: 2925154195256949885
238
238
  required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  none: false
240
240
  requirements:
@@ -243,10 +243,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  version: '0'
244
244
  segments:
245
245
  - 0
246
- hash: -4607436373459673499
246
+ hash: 2925154195256949885
247
247
  requirements: []
248
248
  rubyforge_project: mobilize-base
249
- rubygems_version: 1.8.25
249
+ rubygems_version: 1.8.23
250
250
  signing_key:
251
251
  specification_version: 3
252
252
  summary: Moves datasets and schedules data transfers using MongoDB, Resque and Google