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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d8672d7bee04b6dc531d7b333157ec41ea7eb4a
4
- data.tar.gz: 07e73624093f756e27961f46df9bb8371a63ad92
3
+ metadata.gz: 95000fa0f123dd91f41046aed1f0f5d1d054048e
4
+ data.tar.gz: 5611d26b57058c3fa601365c7de12c20a9c8a15c
5
5
  SHA512:
6
- metadata.gz: 07442a257f9a0bbe5e52c77cce19656074fb1de846beead178dc0f97ce106246e6df57666b7b885a00a7028d9d62da8a3d9af4c4bd33cfbc6c5a21f6410a0e75
7
- data.tar.gz: 9f8c5050b9248d2067e5debf8efa0d03b702b950d8386361ceb36f84a86f49715bdef3947c42b5375c59e3ca1814e91fa20603191601d749b8e627cbb546cbb3
6
+ metadata.gz: 7887a0fa84e9da8aa679da56006909fa95b20d6d0780840732f77da5c6ddafb046206b4dd13bd6c04187f2ab9b53dcec947e26f175d639eb3c94ec43e943a600
7
+ data.tar.gz: d015d021cccc7665d3c299dc9d83c414fa9cdef105a972a1dd4b9d8c01b11b918bc12aae7eda345766457ccecf5fe96f9ebb7627a3adfe18f799b98d8c99a43a
@@ -1,3 +1,3 @@
1
1
  module Safenet
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-safenet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Loureiro