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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d7ce146fea575ed2a981da7597abc035d0eb7ff9
4
- data.tar.gz: bba8929dd88b6fab8cbe85acd2cc0e144acf8fa4
3
+ metadata.gz: 2b7a93080d501a5c0c11004fe2df8aa983a3d99b
4
+ data.tar.gz: 1036cb710c1a08b8c46e324d647f4f6012bc39cc
5
5
  SHA512:
6
- metadata.gz: c2914e48e47c3a71806a4085790cc4508b92f1df7d748af6b5b11a4406320dd9e48c6f398a35ccf25021e2a347859a8e915815ccfbb6788104c6c12dc3529416
7
- data.tar.gz: 949624f582ff654192b04f0ef155ffe36c328dd9d7395c278189c9b99381966b9b7ae87713e98d487aa58062151741891ada15a56ce7edaf3bc4b56a0b3e6b3a
6
+ metadata.gz: c4107fbb491ffb0b37b8bb8bb0f6f7c22472e8bcec02218bae44e2140415cdab5177fa6d0e74a30f6cbd36d1c51768ddcbf3c863d69c34cabf00a90dcd195373
7
+ data.tar.gz: 9214faa6906441223addcc5f47afc4620b352e4d38d1af6548e6d890705abf60bd22d38dc8da0ef5532d1264ed580211da938ad769c52a6b660b773c03a658bf
@@ -1,13 +1,10 @@
1
1
  # encoding: utf-8
2
2
 
3
- # TODO if using Rails 4 or greater use copy and paste on your secret.yml:
4
- # nitro_pay:
5
- # app_id: # TODO your app_id
6
- # app_secret_key: # TODO your app_secret_key
7
- # IMPORTANT: remember that test & development is not necessary if using test_env, but if you want your test app remember to use you test_app id & secret
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
- elsif Rails.env.production?
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
@@ -1,6 +1,6 @@
1
1
  module NitroPay
2
2
  MAJOR = 1
3
3
  MINOR = 0
4
- PATCH = 6
4
+ PATCH = 7
5
5
  VERSION = "#{MAJOR}.#{MINOR}.#{PATCH}"
6
6
  end
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.6
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-15 00:00:00.000000000 Z
11
+ date: 2016-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler