vistarpc4r 0.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.3
@@ -74,11 +74,15 @@ module VistaRPC4r
74
74
  def close()
75
75
  if isConnected()
76
76
  if @sentConnect
77
- @sentConnect = false
77
+ @sentConnect = false # set in connect()
78
+ @signedOn=false # set in signOn() inside connect()
78
79
  bye = VistaRPC.new("#BYE#", RPCResponse::SINGLE_VALUE, true)
79
- execute(bye)
80
+ retval = execute(bye)
80
81
  @socket.close()
81
82
  @socket = nil
83
+ @duz = "0"
84
+ @currentContext = nil
85
+ return retval
82
86
  end
83
87
  end
84
88
  end
@@ -98,9 +102,9 @@ module VistaRPC4r
98
102
  # attempt to log back on
99
103
  if (connect())
100
104
  if (@currentContext != nil)
101
- context = !currentContext
105
+ tempcontext = @currentContext
102
106
  @currentContext = nil
103
- setContext(context)
107
+ setContext(tempcontext)
104
108
  end
105
109
  retVal = executeOnce(rpc)
106
110
  end
@@ -158,7 +162,7 @@ module VistaRPC4r
158
162
  return
159
163
  end
160
164
  if (@currentContext != nil)
161
- warn "changing context from " + currentContext + " to " + context
165
+ warn "changing context from " + @currentContext + " to " + context
162
166
  end
163
167
 
164
168
  puts "Setting context to: " + context
@@ -170,6 +174,7 @@ module VistaRPC4r
170
174
  raise "XWB CREATE CONTEXT failed: " + response.error_message
171
175
  end
172
176
  @currentContext = context
177
+ return response
173
178
  end
174
179
 
175
180
 
data/vistarpc4r.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{vistarpc4r}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mike Cham"]
12
- s.date = %q{2011-06-22}
12
+ s.date = %q{2011-08-30}
13
13
  s.description = %q{more}
14
14
  s.email = %q{mike@blenderhouse.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vistarpc4r
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 3
10
+ version: 0.2.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Mike Cham
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-22 00:00:00 -04:00
18
+ date: 2011-08-30 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency