dina 0.5.0.0 → 0.5.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cee08dca65cf1c04b4c2b03aa08e9686a4684ea96b484fe6a4b1a9e32d8001a8
4
- data.tar.gz: c247128c86df604291f3ec985254e59bc676b120481e8a8736c1033d3adfb063
3
+ metadata.gz: 52ee6aa08c01721d7d2b925a616f1800c303a7d5801ac7080ec3c2d2a270a04d
4
+ data.tar.gz: 0a2f3e2e2bf4d9cc8ddd4b3534fd8309dae734c02299cac986e36abaa15431cb
5
5
  SHA512:
6
- metadata.gz: 78ea88a086216ae6a5d27c6121cc6d345537a17902a9cd2c0dd4caaf4748a9c45d3c5243ea8d06d4ffa7d09c57a7da0092677bc20e3187d16f7517782ef3af2e
7
- data.tar.gz: da1011c76dcd1fb72f1cd26623cb0cf02835535b091bb19e3bcd76cc393343e238b3ffde0419ff98c53f90a5278d0d0908ccff481f9e10ffe6f6a46c11cca580
6
+ metadata.gz: 7a9352df0039a613fa279753da7f2464e572110887024be28bd486368ca2ee5d0afebc0bcffc535b30ce7779b997e8fc3f2b74e739a10d12b752a55d2c673608
7
+ data.tar.gz: 6f3560ea41463b841cf01affddc47165d90383c7c303f5f110bfcc96702a8f7b4ee8dbd1a7d8310ab7facc8086042a4de5eba2a1c0381a018c2a999a4a3295c2
@@ -23,6 +23,11 @@ module Dina
23
23
  self.where("group.groupName": group).page(page).per(per)
24
24
  end
25
25
 
26
+ def initialize(params = {})
27
+ params[:id] = SecureRandom.uuid if !params[:id]
28
+ super
29
+ end
30
+
26
31
  def english_description
27
32
  if self.respond_to?(:multilingualDescription)
28
33
  multilingualDescription[:descriptions].select{|o| o[:lang] == "en"}.first[:desc]
data/lib/dina/version.rb CHANGED
@@ -3,7 +3,7 @@ module Dina
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- PATCH = 0
6
+ PATCH = 1
7
7
  BUILD = 0
8
8
 
9
9
  def self.version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dina
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0.0
4
+ version: 0.5.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David P. Shorthouse