nitro_pay 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/generators/templates/nitro_pay.rb +6 -29
- data/lib/nitro_pay/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b7a93080d501a5c0c11004fe2df8aa983a3d99b
|
4
|
+
data.tar.gz: 1036cb710c1a08b8c46e324d647f4f6012bc39cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4107fbb491ffb0b37b8bb8bb0f6f7c22472e8bcec02218bae44e2140415cdab5177fa6d0e74a30f6cbd36d1c51768ddcbf3c863d69c34cabf00a90dcd195373
|
7
|
+
data.tar.gz: 9214faa6906441223addcc5f47afc4620b352e4d38d1af6548e6d890705abf60bd22d38dc8da0ef5532d1264ed580211da938ad769c52a6b660b773c03a658bf
|
@@ -1,13 +1,10 @@
|
|
1
1
|
# encoding: utf-8
|
2
2
|
|
3
|
-
#
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
# It automatic the NitroPay to it TestEnv & ProductionEnv
|
10
|
-
if Rails.env.development? || Rails.env.test?
|
3
|
+
# Setup NitroPay keys
|
4
|
+
if Rails.env.production?
|
5
|
+
NitroPay.app_id = Rails.application.secrets.nitro_pay.app_id
|
6
|
+
NitroPay.secret_key = Rails.application.secrets.nitro_pay.secret_key
|
7
|
+
else
|
11
8
|
# TODO if using Rails 3 or older & not using the TEST_ENV, put here your TEST app_id & your secret_key
|
12
9
|
NitroPay.app_id = ''
|
13
10
|
NitroPay.secret_key = ''
|
@@ -16,24 +13,4 @@ if Rails.env.development? || Rails.env.test?
|
|
16
13
|
# NitroPay.test_env = true
|
17
14
|
# TODO: Uncomment debugger if you have an NitroPay instance on your machine
|
18
15
|
# NitroPay.debug = true
|
19
|
-
|
20
|
-
# TODO if using Rails 3 or older, put here your PRODUCTION app_id & your secret_key
|
21
|
-
NitroPay.app_id = ''
|
22
|
-
NitroPay.secret_key = ''
|
23
|
-
|
24
|
-
# For production remember to keep it false or just remove it
|
25
|
-
NitroPay.debug = false
|
26
|
-
NitroPay.test_env = false
|
27
|
-
end
|
28
|
-
|
29
|
-
# Get your App config if your not using TEST_ENV nor DEBUGGER
|
30
|
-
if (NitroPay.test_env.nil? && NitroPay.debug.nil?) || (NitroPay.test_env == false && NitroPay.debug == false)
|
31
|
-
if Rails.version[0].to_i >= 4
|
32
|
-
begin
|
33
|
-
NitroPay.app_id = Rails.application.secrets.NitroPay['app_id']
|
34
|
-
NitroPay.secret_key = Rails.application.secrets.NitroPay['app_secret_key']
|
35
|
-
rescue
|
36
|
-
p 'Check your Secret.yml... Please add on it your Rent$ app_id & app_secret_key'
|
37
|
-
end
|
38
|
-
end
|
39
|
-
end
|
16
|
+
end
|
data/lib/nitro_pay/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nitro_pay
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ilton Garcia
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|