morpho 0.3.2 → 0.3.3

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
  SHA256:
3
- metadata.gz: c5c49b67969b1ac0960d6430694b709177b68968887b32906304f5e0f02ee830
4
- data.tar.gz: ac874025f16e322d8846dd11ca252cf80719eb0717c98879a813188daecd473b
3
+ metadata.gz: 2e50fc5ced39f47d23b63fe334fe5432b29de7efc47ace7ca7c53a56b212c4f1
4
+ data.tar.gz: 11a1f4c10a95b6254aa1994a866dc63361cfd367cdea90aca34147486c4877b1
5
5
  SHA512:
6
- metadata.gz: 835a3ae2e4f2c4f7b5d74af16ea4e560ae6a95fd7929bedff3cccdbff15442b8cdd22d55259985ca7d6f089a17ff70f022023e4613142e9dd6c569c7bf32a973
7
- data.tar.gz: 4ec7206954f12b3fe7e78fbf7996776701af1dc7be0dbc79dc1e1be67c7ed379b339871190dac881dd2baf81a24d58874d41083e2806618be43a851d6c4819fc
6
+ metadata.gz: e3cae4da2ad117543d24a5d3b793529a8c569295f1fb04aeec2bc4274702773b3353991a9b76402bf8bc167548e643b69d7fdbccad23f6e7b810460e502905eb
7
+ data.tar.gz: 4b87721c70d9478d7d39afcd8a90b516c7ee2711cc17a8c4845c60fdb5de1fa166b908e47b66dfc58a1f007edaa2c1bda4123766740a7714340c2539c68e1584
@@ -1,5 +1,6 @@
1
1
  Morpho.configure do |config|
2
2
  config.host = ENV.fetch('HOST', 'localhost:3000')
3
+ config.host = ENV.fetch('PROTOCOL', 'http')
3
4
  config.mailer.from = ENV.fetch('MAILER_FROM', 'no-reply@example.com')
4
5
  config.mailer.address = ENV.fetch('MAILER_ADDRESS', 'smtp.mailtrap.io')
5
6
  config.mailer.user_name = ENV.fetch('MAILER_USER_NAME', '')
@@ -14,4 +15,4 @@ Morpho.configure do |config|
14
15
  config.api.title = ''
15
16
  config.api.description = ''
16
17
  config.auth.failed_login_attempts_limit = 5
17
- end
18
+ end
@@ -6,6 +6,7 @@ require 'morpho/configurations/auth'
6
6
  module Morpho
7
7
  class Configuration
8
8
  attr_accessor :host
9
+ attr_accessor :protocol
9
10
 
10
11
  attr_accessor :mailer
11
12
  attr_accessor :api
@@ -14,6 +15,7 @@ module Morpho
14
15
 
15
16
  def initialize
16
17
  self.host = ''
18
+ self.protocol = ''
17
19
 
18
20
  self.mailer = Morpho::Configurations::Mailer.new
19
21
  self.api = Morpho::Configurations::API.new
data/lib/morpho/engine.rb CHANGED
@@ -25,7 +25,8 @@ module Morpho
25
25
  }
26
26
 
27
27
  mailer.default_url_options = {
28
- host: Morpho.config.host
28
+ host: Morpho.config.host,
29
+ protocol: Morpho.config.protocol
29
30
  }
30
31
 
31
32
  mailer.smtp_settings = {
@@ -1,3 +1,3 @@
1
1
  module Morpho
2
- VERSION = '0.3.2'
2
+ VERSION = '0.3.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpho
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Gilmar Erazo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-19 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails