neon_api 0.1.0 → 0.1.1

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: 5b0db4399b55143865d40a660a84a5fd5eb91f2f
4
- data.tar.gz: d8a4289b2ea315e6a57709d64f8095c430699ec2
3
+ metadata.gz: 8447bd0028a149a3d391d0db3cefeddb95f3e40e
4
+ data.tar.gz: 69c3be725b7cd8ea8c0c7158625fa5b4fb785c3b
5
5
  SHA512:
6
- metadata.gz: 57d95a962da39fa56cea7f769f101c12e9e668d6db3045718239461bdea0a2787d75c5f0e1ee6fbf75c907d4628b0ae7faa1abab43d7b335cbd1f27dcd53b209
7
- data.tar.gz: 07d38ab502d8ba5dd0fa0f49695b517d1df02850196af3d9402b34d9bd7af01168462d69c4797ad32e735fe26178b1fbce2bbea2dfb95ace453dfe00056da282
6
+ metadata.gz: 59ce1c15acf761534e23f42bac54b5ee7c0021252f79aa7d5bb7e945b4d3eda96a6fd8f75aeebc37ca17f0a6db8417667f4c0df6610b34f11c1e8f0cf60259c8
7
+ data.tar.gz: 2c49c9f7ff0d591fe90b8a97ca31d7678322284c3c7b94966f1284c40ee6d286bc7700d6ac35ccea38806432dc1bde022d55a1e7e385517926b0c337b13b6296
data/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ [![Gem Version](https://badge.fury.io/rb/neon_api.svg)](https://badge.fury.io/rb/neon_api)
2
+
3
+
1
4
  # NeonApi
2
5
 
3
6
  Gem used to integrate any rails system to Bank NeonApi
@@ -28,12 +31,15 @@ NeonApi.configure do |config|
28
31
  config.token = 'XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX'
29
32
  config.username = 'user@name.com'
30
33
  config.password = 'password'
31
- config.encrypt_pem = 'public_encrypt.pem' #your encryption pem
32
- config.decrypt_pem = 'public_decrypt.pem' #your decryption pem
34
+ config.encrypt_pem = 'public_encrypt.pem' #path to your encryption pem
35
+ config.decrypt_pem = 'public_decrypt.pem' #path to your decryption pem
33
36
  config.environment = :development #environment :development of :production
34
37
  end
35
38
  ```
36
39
 
40
+ PS: YOU WILL NEED TO CHANGE YOUR KEYS FROM XML TO PEM!!! THIS IS IMPORTANT!
41
+ you can use this(https://superdry.apphb.com/tools/online-rsa-key-converter) for this purpose.
42
+
37
43
  Use the bank methods in order to create or manage your transactions:
38
44
 
39
45
  Get Balance:
@@ -10,6 +10,7 @@ module NeonApi
10
10
  :auth_token, :aes_key, :aes_iv, :expire_time, :client_id, :bank_account, :response
11
11
  def initialize(environment = :development, token, login, password, encrypt_pem, decrypt_pem)
12
12
  @base_url = if production?
13
+ 'https://apiparceiros.banconeon.com.br/ '
13
14
  else
14
15
  'https://servicosdev.neonhomol.com.br/servicopj/'
15
16
  end
@@ -1,3 +1,3 @@
1
1
  module NeonApi
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neon_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Hamdan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-10-04 00:00:00.000000000 Z
11
+ date: 2017-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler