teamforge 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/teamforge/version.rb +1 -1
- data/lib/teamforge.rb +11 -7
- metadata +3 -3
data/lib/teamforge/version.rb
CHANGED
data/lib/teamforge.rb
CHANGED
@@ -66,13 +66,17 @@ module TeamForge
|
|
66
66
|
@use_ssl = use_ssl
|
67
67
|
end
|
68
68
|
|
69
|
-
def self.format_url(url, ssl=
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
69
|
+
def self.format_url(url, ssl=nil)
|
70
|
+
|
71
|
+
@use_ssl.nil? ? @use_ssl = true : @use_ssl
|
72
|
+
|
73
|
+
ssl.nil? ? ssl = @use_ssl : @use_ssl = ssl
|
74
|
+
|
75
|
+
if ssl
|
76
|
+
url = "https://#{url.gsub(/^http(|s):\/\/?/i,'')}"
|
77
|
+
else
|
78
|
+
url = "http://#{url.gsub(/^http(|s):\/\/?/i,'')}"
|
79
|
+
end
|
76
80
|
|
77
81
|
uri = URI.parse url
|
78
82
|
unless uri.kind_of? URI::HTTP
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: teamforge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2013-05-08 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
16
|
-
requirement: &
|
16
|
+
requirement: &2153462360 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: 1.0.0
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *2153462360
|
25
25
|
description: A Ruby SOAP wrapper to communicate with TeamForge WebServices
|
26
26
|
email: pwolf@collab.net
|
27
27
|
executables: []
|