vidibus-user 1.0.0 → 1.0.1

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.
@@ -1,5 +1,5 @@
1
1
  module Vidibus
2
2
  module User
3
- VERSION = '1.0.0'
3
+ VERSION = '1.0.1'
4
4
  end
5
5
  end
@@ -37,13 +37,14 @@ module Vidibus
37
37
  end
38
38
 
39
39
  # Returns current host.
40
+ # TODO: return forwarded host, if proxied
40
41
  def host
41
42
  "#{protocol}#{env['HTTP_HOST']}"
42
43
  end
43
44
 
44
45
  # Returns protocol depending on SERVER_PORT.
45
46
  def protocol
46
- env['SERVER_PORT'] == 443 ? 'https://' : 'http://'
47
+ env['SERVER_PORT'].to_i == 443 ? 'https://' : 'http://'
47
48
  end
48
49
 
49
50
  def logger
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vidibus-user
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-10-15 00:00:00.000000000 Z
12
+ date: 2016-04-06 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mongoid
@@ -263,7 +263,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
263
263
  version: '0'
264
264
  segments:
265
265
  - 0
266
- hash: -3619228275226124841
266
+ hash: -4475800697467590531
267
267
  required_rubygems_version: !ruby/object:Gem::Requirement
268
268
  none: false
269
269
  requirements: