plek 1.6.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/plek.rb +3 -1
  2. data/lib/plek/version.rb +1 -1
  3. metadata +4 -4
@@ -21,7 +21,9 @@ class Plek
21
21
 
22
22
  host = "#{name}.#{parent_domain}"
23
23
 
24
- if options[:force_http] or HTTP_DOMAINS.include?(parent_domain)
24
+ if options[:scheme_relative]
25
+ "//#{host}"
26
+ elsif options[:force_http] or HTTP_DOMAINS.include?(parent_domain)
25
27
  "http://#{host}"
26
28
  else
27
29
  "https://#{host}"
@@ -1,3 +1,3 @@
1
1
  class Plek
2
- VERSION = '1.6.0'
2
+ VERSION = '1.7.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plek
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.7.0
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-12-11 00:00:00.000000000 Z
12
+ date: 2014-01-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -68,7 +68,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: 1007845104173101081
71
+ hash: 3869418930047235779
72
72
  required_rubygems_version: !ruby/object:Gem::Requirement
73
73
  none: false
74
74
  requirements:
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
77
77
  version: '0'
78
78
  segments:
79
79
  - 0
80
- hash: 1007845104173101081
80
+ hash: 3869418930047235779
81
81
  requirements: []
82
82
  rubyforge_project:
83
83
  rubygems_version: 1.8.23