synapse_payments 0.6.0 → 0.6.1

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: d3063935e6a3a263d5137742df72182f4a4fe520
4
- data.tar.gz: 603c211058685736a15dd5914fa37de9f2fdcfb2
3
+ metadata.gz: ff75e9ea4805cec7c1cb265af96df0cacbcce840
4
+ data.tar.gz: 05fe8354ad4fadac362b954ab1566bd9b9c6ebb5
5
5
  SHA512:
6
- metadata.gz: fbf12a1cbf5f03f7dd00a123aa5db8dce3395ec8be3ec84c9dda19855d061e53a476dadf4cfb00d131abd8114d5783d7f33d8331b8250d543a47b4dc1bba101d
7
- data.tar.gz: ca4cb8c53f121dc8cfa33c08995a9254709f5f904b6a9418e6d0dcf10a4c0af911e8fe76eb5997dbba6a6087ca2ef76b971ddae9f82be65fd329c7deb003b7d9
6
+ metadata.gz: 06f4381c26e294338f75d5813e6ea86bd57fefcc9b6409cf1fbbff4ee2dd8475e49b73dbf2cc8cfc3925379fdaba74381ea7785dcc0351a1face68d2568e7841
7
+ data.tar.gz: 1a6e45ed49b7b71d1a75051e7fd2d82cf2a4339b6b10fdc32a50053b2fedac42dddf583ed7e344ab0d5f0f8a2568459484fb776af46576b1337b4c7859c55a23
data/.env.sample CHANGED
@@ -1,2 +1,3 @@
1
1
  SYNAPSE_PAYMENTS_CLIENT_ID="YOUR_CLIENT_ID"
2
2
  SYNAPSE_PAYMENTS_CLIENT_SECRET="YOUR_CLIENT_SECRET"
3
+ SYNAPSE_PAYMENTS_FINGERPRINT="YOUR_FINGERPRINT"
data/README.md CHANGED
@@ -34,9 +34,12 @@ Check out [samples.md](samples.md) to review how to use this library.
34
34
  gem install bundler --no-rdoc --no-ri
35
35
 
36
36
  3. From project root run `./bin/setup` script
37
- 4. Run `./bin/console` for an interactive prompt with an authenticated client for you to experiment:
37
+ 4. Run `./bin/console` to experiment with an authenticated `client` and `fingerprint`:
38
38
 
39
39
  ```ruby
40
+ fingerprint
41
+ # => acb123...
42
+
40
43
  users = client.users.all
41
44
  puts users
42
45
  # => {...
data/bin/console CHANGED
@@ -20,6 +20,10 @@ def client
20
20
  end
21
21
  end
22
22
 
23
+ def fingerprint
24
+ ENV['SYNAPSE_PAYMENTS_FINGERPRINT']
25
+ end
26
+
23
27
  def reset_client
24
28
  @client = nil
25
29
  client
data/bin/setup CHANGED
@@ -22,8 +22,13 @@ echo "Enter your account credentials below."
22
22
  read -p 'Client ID: ' client_id
23
23
  read -p 'Client Secret: ' client_secret
24
24
 
25
+ echo "To retrieve your sandbox fingerprint, login and use Element Inspector."
26
+ echo "In the console type sessionStorage.fingerprint, copy value and enter below."
27
+ read -p 'Fingerprint: ' fingerprint
28
+
25
29
  cp .env.sample .env
26
30
  sed -i -e s/YOUR_CLIENT_ID/"$client_id"/g .env
27
31
  sed -i -e s/YOUR_CLIENT_SECRET/"$client_secret"/g .env
32
+ sed -i -e s/YOUR_FINGERPRINT/"$fingerprint"/g .env
28
33
 
29
34
  echo "Done."
@@ -70,7 +70,7 @@ module SynapsePayments
70
70
 
71
71
  data = {
72
72
  doc: {
73
- attachment: "data:#{file_type};base64,#{Base64.encode64(file_contents)}"
73
+ attachment: "data:#{file_type};base64,#{Base64.encode64(file_contents).gsub(/\n/, '')}"
74
74
  }
75
75
  }
76
76
 
@@ -1,3 +1,3 @@
1
1
  module SynapsePayments
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synapse_payments
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Julio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-13 00:00:00.000000000 Z
11
+ date: 2016-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler