whos_using_what 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,12 +49,23 @@ class DataPopulators
49
49
 
50
50
 
51
51
  begin
52
- @@geo_tagger.load_geolocations_into_db
52
+
53
+ t1 = Thread.new do
54
+
55
+ @@geo_tagger.load_geolocations_into_db
56
+
57
+ end
58
+
53
59
  rescue Exception => e
54
60
  puts e.message
55
61
  puts e.backtrace
56
62
  end
57
63
 
64
+ #this is necessary, for some reason, otherwise the process just gets killed, as the sub-threads are dependent on the main thread remaining alive
65
+ while true
66
+ sleep(5)
67
+ end
68
+
58
69
 
59
70
  end
60
71
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: whos_using_what
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: