six-updater-web 0.15.2 → 0.15.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ require 'rake/testtask'
7
7
 
8
8
  spec = Gem::Specification.new do |s|
9
9
  s.name = 'six-updater-web'
10
- s.version = '0.15.2'
10
+ s.version = '0.15.3'
11
11
  s.has_rdoc = false
12
12
  #s.extra_rdoc_files = ['README', 'LICENSE']
13
13
  s.summary = 'Your summary here'
@@ -22,7 +22,7 @@ case RUBY_VERSION
22
22
  end
23
23
 
24
24
  module SixUpdaterWeb
25
- VERSION = "0.15.2"
25
+ VERSION = "0.15.3"
26
26
  COMPONENT = "six-updater-web"
27
27
 
28
28
  DEFAULT_IP = "127.0.0.1" unless defined?(DEFAULT_IP)
@@ -18,7 +18,11 @@ module ActiveRecord
18
18
  # Give this record a guid id. Public method so people can call it before save if necessary.
19
19
  def assign_guid
20
20
  unless self.id
21
- self.id = UUIDTools::UUID.timestamp_create().to_s
21
+ begin
22
+ self.id = UUIDTools::UUID.timestamp_create().to_s
23
+ rescue
24
+ self.id = UUIDTools::UUID.random_create().to_s
25
+ end
22
26
  end
23
27
  end
24
28
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 15
8
- - 2
9
- version: 0.15.2
8
+ - 3
9
+ version: 0.15.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Sickboy
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-10 00:00:00 +02:00
17
+ date: 2010-05-11 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency