plek 1.4.0 → 1.5.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 +2 -2
  2. data/lib/plek/version.rb +1 -1
  3. metadata +49 -46
data/lib/plek.rb CHANGED
@@ -13,11 +13,11 @@ class Plek
13
13
  end
14
14
 
15
15
  # Find the URI for a service/application.
16
- def find(service)
16
+ def find(service, options = {})
17
17
  name = name_for(service)
18
18
  host = "#{name}.#{parent_domain}"
19
19
 
20
- if HTTP_DOMAINS.include?(parent_domain)
20
+ if options[:force_http] or HTTP_DOMAINS.include?(parent_domain)
21
21
  "http://#{host}"
22
22
  else
23
23
  "https://#{host}"
data/lib/plek/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Plek
2
- VERSION = '1.4.0'
2
+ VERSION = '1.5.0'
3
3
  end
metadata CHANGED
@@ -1,84 +1,87 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: plek
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.0
4
5
  prerelease:
5
- version: 1.4.0
6
6
  platform: ruby
7
- authors:
7
+ authors:
8
8
  - Craig R Webster
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2013-07-17 00:00:00 Z
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
12
+ date: 2013-11-01 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
16
15
  name: rake
17
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
18
17
  none: false
19
- requirements:
20
- - - ">="
21
- - !ruby/object:Gem::Version
22
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
23
22
  type: :development
24
23
  prerelease: false
25
- version_requirements: *id001
26
- - !ruby/object:Gem::Dependency
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
27
31
  name: gem_publisher
28
- requirement: &id002 !ruby/object:Gem::Requirement
32
+ requirement: !ruby/object:Gem::Requirement
29
33
  none: false
30
- requirements:
34
+ requirements:
31
35
  - - ~>
32
- - !ruby/object:Gem::Version
36
+ - !ruby/object:Gem::Version
33
37
  version: 1.1.1
34
38
  type: :development
35
39
  prerelease: false
36
- version_requirements: *id002
37
- description: Find the right hostname for each service in an environment-dependent manner
38
- email:
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.1.1
46
+ description: Find the right hostname for each service in an environment-dependent
47
+ manner
48
+ email:
39
49
  - craig@barkingiguana.com
40
50
  executables: []
41
-
42
51
  extensions: []
43
-
44
52
  extra_rdoc_files: []
45
-
46
- files:
47
- - lib/plek.rb
53
+ files:
48
54
  - lib/plek/version.rb
55
+ - lib/plek.rb
49
56
  - README.md
50
57
  homepage:
51
58
  licenses: []
52
-
53
59
  post_install_message:
54
60
  rdoc_options: []
55
-
56
- require_paths:
61
+ require_paths:
57
62
  - lib
58
- required_ruby_version: !ruby/object:Gem::Requirement
63
+ required_ruby_version: !ruby/object:Gem::Requirement
59
64
  none: false
60
- requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- hash: 1813164194444267329
64
- segments:
65
+ requirements:
66
+ - - ! '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ segments:
65
70
  - 0
66
- version: "0"
67
- required_rubygems_version: !ruby/object:Gem::Requirement
71
+ hash: -3126104763394143192
72
+ required_rubygems_version: !ruby/object:Gem::Requirement
68
73
  none: false
69
- requirements:
70
- - - ">="
71
- - !ruby/object:Gem::Version
72
- hash: 1813164194444267329
73
- segments:
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ segments:
74
79
  - 0
75
- version: "0"
80
+ hash: -3126104763394143192
76
81
  requirements: []
77
-
78
82
  rubyforge_project:
79
- rubygems_version: 1.8.24
83
+ rubygems_version: 1.8.23
80
84
  signing_key:
81
85
  specification_version: 3
82
86
  summary: Locations for services
83
87
  test_files: []
84
-