dot_net_services 0.4.1 → 0.4.2

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.
data/Rakefile CHANGED
@@ -29,7 +29,7 @@ require 'rake/testtask'
29
29
 
30
30
  spec = Gem::Specification.new do |s|
31
31
  s.name = 'dot_net_services'
32
- s.version = '0.4.1'
32
+ s.version = '0.4.2'
33
33
  s.has_rdoc = true
34
34
  s.extra_rdoc_files = ['README', 'LICENSE']
35
35
  s.summary = 'Ruby wrapper for .NET services'
@@ -35,7 +35,6 @@ class SimpleApiAuthTokenProvider < TokenProvider
35
35
  def initialize(wrap_name, wrap_password, proxy = nil)
36
36
  @wrap_name = wrap_name
37
37
  @wrap_password = wrap_password
38
- proxy = {'http_web_proxy_server' => 'itgproxy.redmond.corp.microsoft.com','http_web_proxy_port' => '80'}
39
38
  set_http_web_proxy(proxy) if proxy
40
39
  end
41
40
 
@@ -72,8 +72,8 @@ module DotNetServices # :nodoc:
72
72
  url_path = (url.query && url.query != '') ? (url.path + '?' + url.query) : url.path
73
73
  http = proxy.new(url.host, url.port)
74
74
  http.use_ssl = true if options[:use_ssl]
75
- http = http.start
76
75
  yield(req, http) if block_given?
76
+ http = http.start
77
77
  res = http.post(url_path, data, header)
78
78
  res
79
79
  end
@@ -29,8 +29,10 @@ simple_api_auth:
29
29
 
30
30
  #Setting the proxy is optional. You may also set http_web_proxy_username and http_web_proxy_password if you need to.
31
31
  proxy:
32
- http_web_proxy_server: itgproxy.redmond.corp.microsoft.com
33
- http_web_proxy_port: 80
32
+ http_web_proxy_server: bgproxy.persistent.co.in
33
+ http_web_proxy_port: "8080"
34
+ http_web_proxy_username: chirantan_rajhans
35
+ http_web_proxy_password: create!23
34
36
 
35
37
  type_token:
36
38
  issuer_name: owner
@@ -74,9 +74,9 @@ class TokenTest < Test::Unit::TestCase
74
74
 
75
75
  # TODO: Replace SimpleWebTokenProvider with SamlToken once Saml token is implemented.
76
76
  def test_saml_token
77
- #~ saml_token_provider = SimpleWebTokenProvider.new(saml_token, @http_web_proxy)
78
- #~ token_info = saml_token_provider.token(@request_uri, @applies_to)
79
- #~ assert_not_nil token_info.token
77
+ saml_token_provider = SimpleWebTokenProvider.new(saml_token, @http_web_proxy)
78
+ token_info = saml_token_provider.token(@request_uri, @applies_to)
79
+ assert_not_nil token_info.token
80
80
  end
81
81
 
82
82
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dot_net_services
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ""
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-24 00:00:00 +05:30
12
+ date: 2009-11-30 00:00:00 +05:30
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency