This repository has been archived by the owner on Jul 5, 2023. It is now read-only.
forked from vinibaggio/braspag
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Atualização do README, adicionado generator para instalação e atualiz…
…ação da versão
- Loading branch information
Showing
4 changed files
with
56 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,15 @@ | |||
module Braspag | |||
module Generators | |||
class InstallGenerator < ::Rails::Generators::Base | |||
desc "Copy braspag.yml file to your application config directory." | |||
|
|||
def self.source_root | |||
@source_root ||= File.expand_path(File.join(File.dirname(__FILE__), 'templates')) | |||
end | |||
|
|||
def copy_config_file | |||
template "config/braspag.yml" | |||
end | |||
end | |||
end | |||
end |
17 changes: 17 additions & 0 deletions
17
lib/generators/braspag/install/templates/config/braspag.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -0,0 +1,17 @@ | |||
development: | |||
merchant_id: "{YOUR_MERCHANT_ID_ON_BRASPAG}" | |||
braspag_url: "https://homologacao.pagador.com.br" | |||
crypto_url: "http://localhost:9292" | |||
crypto_key: "1234561246" | |||
|
|||
test: | |||
merchant_id: "{YOUR_MERCHANT_ID_ON_BRASPAG}" | |||
braspag_url: "https://homologacao.pagador.com.br" | |||
crypto_url: "http://localhost:9292" | |||
crypto_key: "1234561246" | |||
|
|||
production: | |||
merchant_id: "{YOUR_MERCHANT_ID_ON_BRASPAG}" | |||
braspag_url: "https://www.pagador.com.br" | |||
crypto_url: "http://localhost:9292" | |||
crypto_key: "1234561246" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,3 +1,3 @@ | |||
module Braspag | module Braspag | ||
VERSION = "0.0.12" | VERSION = "0.0.13" | ||
end | end |