minimum_viable_product 0.1.0 → 0.1.1

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: 34fde8a65ce6451b51a56c1132d6b3ee103820c9
4
- data.tar.gz: 4c051f1e182f5a9b76f43380f837d08120309989
3
+ metadata.gz: 83c6f59eeb9497329d36939a320eb6aaf1c0f12f
4
+ data.tar.gz: 8a9f1356111d079c839422be61f25d5ed3d08735
5
5
  SHA512:
6
- metadata.gz: d567a1dad7cab9abca809ef6e0d4332ff70b0a407c59cc50e0fe5e6702f0a571bcf6bd7b08767ead608a362b39351b39258ee0ad892ec8893b753db9d0a95868
7
- data.tar.gz: a0a3f44a3f860008b97d2226cfacd9c879460b0762a4274300dad4e6ea4d24002d44d0f85e72d792db08169b7a17b1cc6b69f6cbf8882f61a29992c3910d6de1
6
+ metadata.gz: ccd2b2bc84ef5d7e82734ce9236153ed1ab570041a74a62c5b2d9511967a334f7aef159c1004ddccb8a1f501ef59a78570fc1d81886cd93cf7c59a104de414fc
7
+ data.tar.gz: 23b73cddfa6cf529b53bbced8bb95be9efe779375f99fc067c9235cd29e782920a556413e57690e2bc99a35d70d4a40361f9206d7bb0bd0292c866bcde201752
@@ -27,14 +27,11 @@ 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'] || (ENV['FORCE_SSL'].to_b ? "https" : "http")
31
- _host = ENV['HOST_DOMAIN'] || "localhost"
32
- _port = ENV['HOST_PORT'] || case Rails.env
33
- when "production"
34
- "80"
35
- else
36
- "3000"
37
- end
38
- routes.default_url_options = { host: _host, port: _port, protocol: _prot }
30
+ _options = {}
31
+ _options[:protocol] = ENV['HOST_PROTOCOL'] || (ENV['FORCE_SSL'].to_b ? "https" : "http")
32
+ _options[:host] = ENV['HOST_DOMAIN']
33
+ _options[:port] = ENV['HOST_PORT']
34
+
35
+ routes.default_url_options = _options
39
36
  end
40
37
  end
@@ -1,3 +1,3 @@
1
1
  module MinimumViableProduct
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ian Hunter