minimum_viable_product 0.0.33 → 0.0.34

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: f9ffc3051eca03f36e4152e7cfb75581336caddf
4
- data.tar.gz: 9abc048bc34bfcf65fb17991503e08b4828407a6
3
+ metadata.gz: 7a7ca98d808e0c17bb5e2ed76b612110118f865a
4
+ data.tar.gz: 59a89a93fc4ff6ed92ddb8d1dd1eb8ffb31a4810
5
5
  SHA512:
6
- metadata.gz: 5b8cc279e01278ffe1b01e4b4b8f43cadde3d2ada76d54cc20cdb2ba05206766b87b41663e7361ab17d70d791ec2740ea8513c9fa08ae3c02e37da4d24297a40
7
- data.tar.gz: cd6826b145f8a224d9dd6bc176b6d82dd1e141886336726a3c68a9d60c0e393936b9891fdde0652f95fda4d091562b96b65331df8eeadf3bba849d3756dce983
6
+ metadata.gz: 2ea76825f20a9368539fa6b83a105ee98822ae333f9eb70be740d2c65d5810fd47c36c727520e4c9ac1c879fca20829c4706b9fef16a793139f8776ca77856c5
7
+ data.tar.gz: 79a7a3e2819b1e6bf935d0b3437ab813db250a33ff4bd381151ddfa6665ccca3fa7ee685f3f33156f3e40a3bac18b041b4649ab9224997076ac54d8ae9569889
@@ -27,9 +27,14 @@ module MinimumViableProduct
27
27
  config.autoload_paths << "#{Rails.root}/app"
28
28
  config.autoload_paths << "#{Rails.root}/lib"
29
29
 
30
- _prot = ENV['HOST_PROTOCOL'] || "http"
30
+ _prot = ENV['HOST_PROTOCOL'] || (ENV['FORCE_SSL'].to_b ? "https" : "http")
31
31
  _host = ENV['HOST_DOMAIN'] || "localhost"
32
- _port = ENV['HOST_PORT'] || "3000"
32
+ _port = ENV['HOST_PORT'] || case Rails.env
33
+ when "production"
34
+ "80"
35
+ else
36
+ "3000"
37
+ end
33
38
  routes.default_url_options = { host: _host, port: _port, protocol: _prot }
34
39
  end
35
40
  end
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.0.33"
2
+ VERSION = "0.0.34"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: minimum_viable_product
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33
4
+ version: 0.0.34
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter