mpi_client 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
data/lib/mpi_client.rb CHANGED
@@ -1,11 +1,12 @@
1
- require 'rubygems'
2
1
  require 'network'
3
2
  require 'nokogiri'
4
3
  require 'active_support/core_ext/module/attribute_accessors'
5
4
 
6
5
  module MPIClient
6
+ mattr_accessor :proxy_addr, :proxy_port, :proxy_user, :proxy_pass
7
7
  mattr_accessor :server_url
8
8
  mattr_accessor :logger
9
+
9
10
  self.server_url = 'http://mpi.server.com/'
10
11
 
11
12
  autoload :OptionTranslator, 'mpi_client/option_translator'
@@ -4,7 +4,14 @@ module MPIClient
4
4
  attr_reader :connection
5
5
 
6
6
  def initialize
7
- @connection = Network::Connection.new(MPIClient.server_url)
7
+ options = {
8
+ :proxy_addr => MPIClient.proxy_addr,
9
+ :proxy_port => MPIClient.proxy_port,
10
+ :proxy_user => MPIClient.proxy_user,
11
+ :proxy_pass => MPIClient.proxy_pass
12
+ }
13
+
14
+ @connection = Network::Connection.new(MPIClient.server_url, options)
8
15
  @connection.logger = MPIClient.logger if MPIClient.logger
9
16
  set_logger_filters
10
17
  end
metadata CHANGED
@@ -1,13 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mpi_client
3
3
  version: !ruby/object:Gem::Version
4
- hash: 1
5
- prerelease: false
6
- segments:
7
- - 0
8
- - 0
9
- - 15
10
- version: 0.0.15
4
+ version: 0.0.16
11
5
  platform: ruby
12
6
  authors:
13
7
  - Dmitry Plashchynski
@@ -16,57 +10,39 @@ autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
12
 
19
- date: 2010-11-19 00:00:00 +02:00
13
+ date: 2012-07-12 00:00:00 +03:00
20
14
  default_executable:
21
15
  dependencies:
22
16
  - !ruby/object:Gem::Dependency
23
17
  name: nokogiri
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
26
- none: false
18
+ type: :runtime
19
+ version_requirement:
20
+ version_requirements: !ruby/object:Gem::Requirement
27
21
  requirements:
28
22
  - - ">="
29
23
  - !ruby/object:Gem::Version
30
- hash: 31
31
- segments:
32
- - 1
33
- - 3
34
- - 2
35
24
  version: 1.3.2
36
- type: :runtime
37
- version_requirements: *id001
25
+ version:
38
26
  - !ruby/object:Gem::Dependency
39
27
  name: alovak-network
40
- prerelease: false
41
- requirement: &id002 !ruby/object:Gem::Requirement
42
- none: false
28
+ type: :runtime
29
+ version_requirement:
30
+ version_requirements: !ruby/object:Gem::Requirement
43
31
  requirements:
44
32
  - - ">="
45
33
  - !ruby/object:Gem::Version
46
- hash: 23
47
- segments:
48
- - 1
49
- - 1
50
- - 2
51
34
  version: 1.1.2
52
- type: :runtime
53
- version_requirements: *id002
35
+ version:
54
36
  - !ruby/object:Gem::Dependency
55
37
  name: activesupport
56
- prerelease: false
57
- requirement: &id003 !ruby/object:Gem::Requirement
58
- none: false
38
+ type: :runtime
39
+ version_requirement:
40
+ version_requirements: !ruby/object:Gem::Requirement
59
41
  requirements:
60
42
  - - ">="
61
43
  - !ruby/object:Gem::Version
62
- hash: 7
63
- segments:
64
- - 2
65
- - 3
66
- - 2
67
44
  version: 2.3.2
68
- type: :runtime
69
- version_requirements: *id003
45
+ version:
70
46
  description:
71
47
  email: alovak@gmail.com
72
48
  executables: []
@@ -76,15 +52,15 @@ extensions: []
76
52
  extra_rdoc_files: []
77
53
 
78
54
  files:
79
- - lib/mpi_client.rb
55
+ - lib/mpi_client/account_management/request.rb
56
+ - lib/mpi_client/account_management/response.rb
57
+ - lib/mpi_client/account_management.rb
80
58
  - lib/mpi_client/base_request.rb
81
59
  - lib/mpi_client/option_translator.rb
82
- - lib/mpi_client/verification/response.rb
83
60
  - lib/mpi_client/verification/request.rb
84
- - lib/mpi_client/account_management.rb
61
+ - lib/mpi_client/verification/response.rb
85
62
  - lib/mpi_client/verification.rb
86
- - lib/mpi_client/account_management/response.rb
87
- - lib/mpi_client/account_management/request.rb
63
+ - lib/mpi_client.rb
88
64
  has_rdoc: true
89
65
  homepage: http://github.com/alovak/mpi_client/
90
66
  licenses: []
@@ -95,27 +71,21 @@ rdoc_options: []
95
71
  require_paths:
96
72
  - lib
97
73
  required_ruby_version: !ruby/object:Gem::Requirement
98
- none: false
99
74
  requirements:
100
75
  - - ">="
101
76
  - !ruby/object:Gem::Version
102
- hash: 3
103
- segments:
104
- - 0
105
77
  version: "0"
78
+ version:
106
79
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
80
  requirements:
109
81
  - - ">="
110
82
  - !ruby/object:Gem::Version
111
- hash: 3
112
- segments:
113
- - 0
114
83
  version: "0"
84
+ version:
115
85
  requirements: []
116
86
 
117
87
  rubyforge_project:
118
- rubygems_version: 1.3.7
88
+ rubygems_version: 1.3.5
119
89
  signing_key:
120
90
  specification_version: 3
121
91
  summary: MPI client library