alcatraz-client 0.0.5 → 0.0.6
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 +4 -4
- data/README.md +3 -1
- data/lib/alcatraz/client/connection.rb +2 -6
- data/lib/alcatraz/client/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9c7dde5a35a5e68a3c0f01c23f5a04793ba02578
|
|
4
|
+
data.tar.gz: e399649d1aa102556e696adc7029138fec16ed19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
-
|
|
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
|
-
|
|
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)
|
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.
|
|
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-
|
|
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:
|