xplanner 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module XPlanner
2
- VERSION = '0.0.8'
2
+ VERSION = '0.0.9'
3
3
  end
@@ -3,14 +3,22 @@ module XPlanner
3
3
  @@soap_client = false
4
4
  @@base_url = ''
5
5
 
6
- def self.set_soap_client( client )
6
+ def self.soap_client=( client )
7
7
  @@soap_client = client
8
8
  end
9
9
 
10
- def self.set_base_url( url )
10
+ def self.soap_client
11
+ @@soap_client
12
+ end
13
+
14
+ def self.base_url=( url )
11
15
  @@base_url = url
12
16
  end
13
17
 
18
+ def self.base_url
19
+ @@base_url
20
+ end
21
+
14
22
  def self.invalid_usage
15
23
  raise 'No SoapClient initialised'
16
24
  end
data/lib/xplanner.rb CHANGED
@@ -21,7 +21,7 @@ module XPlanner
21
21
  :password => pass
22
22
  }
23
23
 
24
- ModelHelper.set_soap_client SoapClient.new( client_config )
25
- ModelHelper.set_base_url( url )
24
+ ModelHelper.soap_client= SoapClient.new( client_config )
25
+ ModelHelper.base_url= url
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xplanner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: savon
17
- requirement: &2165091400 !ruby/object:Gem::Requirement
17
+ requirement: &2181044700 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ~>
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.2.0
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *2165091400
25
+ version_requirements: *2181044700
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: nokogiri
28
- requirement: &2165090900 !ruby/object:Gem::Requirement
28
+ requirement: &2181044200 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ~>
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 1.5.0
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *2165090900
36
+ version_requirements: *2181044200
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &2165090440 !ruby/object:Gem::Requirement
39
+ requirement: &2181043740 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.2.0
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *2165090440
47
+ version_requirements: *2181043740
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: rspec
50
- requirement: &2165090060 !ruby/object:Gem::Requirement
50
+ requirement: &2181043360 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,7 +55,7 @@ dependencies:
55
55
  version: '0'
56
56
  type: :development
57
57
  prerelease: false
58
- version_requirements: *2165090060
58
+ version_requirements: *2181043360
59
59
  description: Ruby wrapper for XPlanner+ SOAP interface
60
60
  email:
61
61
  - whoojemaflip@gmail.com