kaui 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/test_helper.rb CHANGED
@@ -154,4 +154,14 @@ class String
154
154
  def uncapitalize
155
155
  self[0, 1].downcase + self[1..-1]
156
156
  end
157
+ end
158
+
159
+ # See http://jira.codehaus.org/browse/JRUBY-6176
160
+ module SecureRandom
161
+ def self.uuid
162
+ ary = self.random_bytes(16).unpack("NnnnnN")
163
+ ary[2] = (ary[2] & 0x0fff) | 0x4000
164
+ ary[3] = (ary[3] & 0x3fff) | 0x8000
165
+ "%08x-%04x-%04x-%04x-%04x%08x" % ary
166
+ end unless respond_to?(:uuid)
157
167
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: kaui
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.4
5
+ version: 0.1.5
6
6
  platform: ruby
7
7
  authors:
8
8
  - Alena Dudzinskaya
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-08-18 00:00:00 Z
13
+ date: 2012-08-20 00:00:00 Z
14
14
  dependencies: []
15
15
 
16
16
  description: Rails UI plugin for Killbill administration.