ruby-safenet 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/safenet/version.rb +1 -1
- data/lib/safenet.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95000fa0f123dd91f41046aed1f0f5d1d054048e
|
4
|
+
data.tar.gz: 5611d26b57058c3fa601365c7de12c20a9c8a15c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7887a0fa84e9da8aa679da56006909fa95b20d6d0780840732f77da5c6ddafb046206b4dd13bd6c04187f2ab9b53dcec947e26f175d639eb3c94ec43e943a600
|
7
|
+
data.tar.gz: d015d021cccc7665d3c299dc9d83c414fa9cdef105a972a1dd4b9d8c01b11b918bc12aae7eda345766457ccecf5fe96f9ebb7627a3adfe18f799b98d8c99a43a
|
data/lib/safenet/version.rb
CHANGED
data/lib/safenet.rb
CHANGED
@@ -579,7 +579,7 @@ module SafeNet
|
|
579
579
|
res = @client.nfs.create_directory("/#{new_id}", is_private: false) == true
|
580
580
|
res &&= @client.nfs.file("/#{new_id}/data.#{version}", is_private: false) == true
|
581
581
|
res &&= @client.nfs.update_file_content("/#{new_id}/data.#{version}", contents) == true
|
582
|
-
res &&= @client.dns.register_service("#{new_id}", "sd", "/#{new_id}") == true
|
582
|
+
res &&= @client.dns.register_service("SD#{new_id}", "sd", "/#{new_id}") == true
|
583
583
|
res
|
584
584
|
end
|
585
585
|
|
@@ -593,7 +593,7 @@ module SafeNet
|
|
593
593
|
def get(id, tag_type)
|
594
594
|
version = 1
|
595
595
|
new_id = Digest::SHA2.new(512).hexdigest("#{id}#{tag_type}")
|
596
|
-
@client.dns.get_file_unauth("#{new_id}", "sd", "data.#{version}")
|
596
|
+
@client.dns.get_file_unauth("SD#{new_id}", "sd", "data.#{version}")
|
597
597
|
end
|
598
598
|
end
|
599
599
|
end
|