alcatraz-client 0.0.5 → 0.0.6

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: b358d683e179b0ee723229c16921365d09781323
4
- data.tar.gz: 3350551e65059ae61cc6050968123ef42225027c
3
+ metadata.gz: 9c7dde5a35a5e68a3c0f01c23f5a04793ba02578
4
+ data.tar.gz: e399649d1aa102556e696adc7029138fec16ed19
5
5
  SHA512:
6
- metadata.gz: d11be3fa582b9325e5ea35202bd220176f0f906cfab90ed807f67785768c645b9075ff84eb43be9961e1cf8a830b35d03a3042aa1aac9c9734403e4e0dd9b355
7
- data.tar.gz: 6b98d8a22c785aa4cb6009d604235fa77771fd8debe08e24a5246a31bc9993e600576f704aaa0771f85f134b197630ff58ff943951f3b6796e53031ab66f9ec3
6
+ metadata.gz: 478981f6a9afd815d8d5ec94a6df8229d4a3b5428867a41c0c476dd25f254878de7214a5f36ff7d18b5819a4e06ef2414de674895c6de5db546f086eea37a9fd
7
+ data.tar.gz: fb41b20c08aec3f25e53761351c6cc07200b6df0eee3f91aac029283f701141d4a67f3f9625b73244fb4be4aa61134bc7e4da28648dfa3aeb6e5854681ffd685
data/README.md CHANGED
@@ -24,7 +24,9 @@ First, set up your connection.
24
24
 
25
25
  conn = Alcatraz::Client::Connection.new(public_key: ENV['ALCATRAZ_PUBLIC_KEY'], secret_key: ENV['ALCATRAZ_SECRET_KEY'])
26
26
 
27
- After that you can use any of the public API methods for Alcatraz.
27
+ After that you can use any of the public API methods for Alcatraz. Note that you
28
+ can also specify an alternative API url if you need to using the :api_url config
29
+ key.
28
30
 
29
31
  ### Store credit card data
30
32
 
@@ -18,9 +18,7 @@ module Alcatraz
18
18
  end
19
19
 
20
20
  def store_card!(params)
21
- card = parse_response_to_secure_object(post('/cards', params))
22
- authorize_data_for_client!(card, public_key) if card && card.id
23
- card
21
+ parse_response_to_secure_object(post('/cards', params))
24
22
  end
25
23
 
26
24
  def get_data(id)
@@ -28,9 +26,7 @@ module Alcatraz
28
26
  end
29
27
 
30
28
  def store_data!(params)
31
- data = parse_response_to_secure_object(post('/secure_data', params))
32
- authorize_data_for_client!(data, public_key) if data && data.id
33
- data
29
+ parse_response_to_secure_object(post('/secure_data', params))
34
30
  end
35
31
 
36
32
  def create_client!(name, enable_two_factor_auth = false)
@@ -1,5 +1,5 @@
1
1
  module Alcatraz
2
2
  module Client
3
- VERSION = "0.0.5"
3
+ VERSION = "0.0.6"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alcatraz-client
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
  - Brian McManus
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-23 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -178,3 +178,4 @@ signing_key:
178
178
  specification_version: 4
179
179
  summary: A client library for the Alcatraz PCI-compliant data store.
180
180
  test_files: []
181
+ has_rdoc: