Dicom_UID 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dicom_uid.rb +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48794268290e7c2a88d4c2be888492ae8b32b62ed73500ed51a0653ae9b0cc60
4
- data.tar.gz: 7eb0fc128363463b48bd4f799c2a3a9487ad9857b748667a10982d792e48e8fe
3
+ metadata.gz: 6712bfe70973f9bba94bc7e2c610813418e734f200bd34afd49401f1595b1c62
4
+ data.tar.gz: f0ebfd5e118fe348dff6ce77bb9143baa9d631aab88dad0e5818367c8425af72
5
5
  SHA512:
6
- metadata.gz: 8e63b07e2e8274fca43ee4b4587952c194f3690cdc0435008d7f2ea23f44036dd742acb3b4f41e73a0b95b9dbfc139d93289181beea8112db3f35e5bcc6fb0a8
7
- data.tar.gz: 769293cc95e8789e09d725465c3e531940a3c1ef6cc969b621816bc92ac236528487e9eeff2b6ef4758986b1d337a296b834ba88a963bc3fb8804b7887388c38
6
+ metadata.gz: 5a84f77886588c4e6633e40e39e21bc7b1b3f7437cab6772fdc07cb1b4c253daaf9d2e01ec7bde2efa2c449c3822fdc16aa51f29ec0045ead27d1fe4267c2db4
7
+ data.tar.gz: 27b192b405982ae33ebc585f0f2b387ca3a800da8e7212b5d9c791076df93a326f22706a824911529139286c89c331556bbcfe69dd23f6270f4ded36366550af
data/lib/dicom_uid.rb CHANGED
@@ -42,14 +42,14 @@ class DicomUID
42
42
 
43
43
  # Generate recursively a random dicom uid
44
44
  def rand_duid uid = '', remain
45
- comp = self.random_component remain
45
+ comp = random_component remain
46
46
  remain -= comp.length
47
47
  uid << comp
48
48
 
49
49
  return uid if remain <= 0
50
50
 
51
51
  uid << '.'
52
- self.rand_duid uid, remain - 1
52
+ rand_duid uid, remain - 1
53
53
  end
54
54
 
55
55
 
@@ -70,7 +70,7 @@ class DicomUID
70
70
  raise RangeError("Size of UID can't be negative") if fixed_size < 0
71
71
 
72
72
  # building the suffix
73
- self.rand_duid org_root, (fixed_size - org_root.length), odd_byte_boundary
73
+ rand_duid org_root, (fixed_size - org_root.length), odd_byte_boundary
74
74
  end
75
75
 
76
76
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: Dicom_UID
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Repain Paul