safe-t-rest 0.1.4 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1c5b84f69704cc3219c72edf56c1ba6414f4c16f
4
- data.tar.gz: 4fd84f0b0e8a60ab0053d49df5392e5a47956d22
3
+ metadata.gz: eb0f7c53d4faf24ac87c0d48831d370c8ae1b035
4
+ data.tar.gz: 9640b09ba34fe8db7390c9884f2f3fc745d46e5e
5
5
  SHA512:
6
- metadata.gz: 57b92c93fdb650e2ec8202a9b09fcb8eebb2f7461ab8af643628f6ae091dfe71f1ec868c6b4dc0f7f01c3fddcfb58b8178059d3d89b4a5b48f7ea320688ec7dc
7
- data.tar.gz: 31ab84f5028d852037e9606c5e60dd38f031eeebd4c0b8b12159d46a9a1e0c13bbfb7a558b50940e65bb822ceb966be40ad21091e5f898a50d83c3a4ac806654
6
+ metadata.gz: 67bc3baf5fca7f607588e65de8f64390b7a0d0e9a0022020f40f72bd2469653bf39d0eadcca70eeb3e7414a203f4e7ae9e4bfac1d72eb3150a5f9ea99139bcb9
7
+ data.tar.gz: 3d9e58309cc68c640977ae5a9434bc539079180ae7dc9cccb3e15f86656feb075e2389e96fcf9bf1053fd24b66b62cd0be279fadd0541a763339429ce9fb639b
data/lib/safe-t-rest.rb CHANGED
@@ -4,11 +4,11 @@ require 'json'
4
4
 
5
5
  class SafeTRest
6
6
 
7
- def initialize(config_hash={})
7
+ def initialize(config_hash={user_name: '', password: ''})
8
8
  @extension_id = config_hash[:extension_id]
9
9
  @user_name = Base64.strict_encode64(config_hash[:user_name])
10
10
  @password = Base64.strict_encode64(config_hash[:password])
11
- @url = config_hash[:url]
11
+ @url = config_hash[:rest_url]
12
12
  @role_id = config_hash[:role_id]
13
13
  end
14
14
 
data/safe-t-rest.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'safe-t-rest'
3
- s.version = '0.1.4'
3
+ s.version = '0.2.0'
4
4
  s.date = Time.now.strftime('%Y-%m-%d')
5
5
  s.summary = 'A ruby gem to interact with Safe-T Box.'
6
6
  s.description = 'Ruby gem to interact with Safe-T Box rest API. '
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: safe-t-rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bar Hofesh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-30 00:00:00.000000000 Z
11
+ date: 2017-08-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client