auric-vault-door 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -18,7 +18,10 @@ Or install it yourself as:
18
18
 
19
19
  ## Usage
20
20
 
21
- @door = Auric::Vault::Door.new('shared_secret_goes_here', 'merchant_id', 'config_id', 'segment', @production_boolean?)
21
+ It now expects a hash or arguments when being created:
22
+ args = {secret: 'shared_secret_goes_here', mtid: 'merchant_id', config_id: 'config_id', segment: '123'} #optional: production: true, defaults to false
23
+
24
+ @door = Auric::Vault::Door.new(args)
22
25
 
23
26
  @door.encrypt('string_to_encrypt')
24
27
  => 'dpFAl7BY260IWzFxxxx'
@@ -95,15 +95,15 @@ module Auric
95
95
  headers: { 'X-VAULT-HMAC' => signature }
96
96
  }
97
97
  )
98
- rescue
99
- HTTParty.post(
100
- @url[1],
101
- {
102
- :body => data.to_json,
103
- headers: { 'X-VAULT-HMAC' => signature }
104
- }
105
- )
106
- end
98
+ rescue
99
+ HTTParty.post(
100
+ @url[1],
101
+ {
102
+ :body => data.to_json,
103
+ headers: { 'X-VAULT-HMAC' => signature }
104
+ }
105
+ )
106
+ end
107
107
  end
108
108
 
109
109
  def post_data(method, data)
@@ -1,7 +1,7 @@
1
1
  module Auric
2
2
  module Vault
3
3
  class Door
4
- VERSION = "0.0.1"
4
+ VERSION = "0.0.2"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: auric-vault-door
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: