spqr 0.2.2 → 0.2.3

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/spqr/app.rb +12 -7
  3. data/ruby-spqr.spec.in +7 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -88,6 +88,8 @@ module SPQR
88
88
  begin
89
89
  status = 0
90
90
  message = "OK"
91
+ failed = false
92
+
91
93
  class_id = obj_id.object_num_high
92
94
  obj_id = obj_id.object_num_low
93
95
 
@@ -124,8 +126,9 @@ module SPQR
124
126
  @log.info "#{name} called SPQR::Manageable#fail: #{failure}"
125
127
  status = failure.status
126
128
  message = failure.message || "ERROR"
127
- # XXX: failure.result is currently ignored by QMF
129
+ # XXX: failure.result is currently ignored
128
130
  actuals_out = failure.result || managed_method.formals_out.inject([]) {|acc, val| acc << args[val]; acc}
131
+ failed = true
129
132
  end
130
133
 
131
134
  if managed_method.formals_out.size == 0
@@ -137,12 +140,14 @@ module SPQR
137
140
  @log.debug("formals_out == #{managed_method.formals_out.inspect}")
138
141
  @log.debug("actuals_out == #{actuals_out.inspect}")
139
142
 
140
- # Copy any out parameters from return value to the
141
- # Qmf::Arguments structure; see XXX above
142
- managed_method.formals_out.zip(actuals_out).each do |k,v|
143
- @log.debug("fixing up out params: #{k.inspect} --> #{v.inspect}")
144
- encoded_val = encode_object(v)
145
- args[k] = encoded_val
143
+ unless failed
144
+ # Copy any out parameters from return value to the
145
+ # Qmf::Arguments structure; see XXX above
146
+ managed_method.formals_out.zip(actuals_out).each do |k,v|
147
+ @log.debug("fixing up out params: #{k.inspect} --> #{v.inspect}")
148
+ encoded_val = encode_object(v)
149
+ args[k] = encoded_val
150
+ end
146
151
  end
147
152
 
148
153
  @agent.method_response(context, status, message, args)
@@ -1,5 +1,5 @@
1
1
  %{!?ruby_sitelib: %global ruby_sitelib %(ruby -rrbconfig -e 'puts Config::CONFIG["sitelibdir"] ')}
2
- %define rel 1.0
2
+ %define rel 1
3
3
 
4
4
  Summary: SPQR: {Schema Processor|Straightforward Publishing} for QMF agents in Ruby
5
5
  Name: ruby-spqr
@@ -68,6 +68,12 @@ rm -rf %{buildroot}
68
68
 
69
69
  %changelog
70
70
 
71
+ * Mon Apr 5 2010 <willb@redhat> - 0.2.2-2
72
+ - updated to version 0.2.3-1
73
+
74
+ * Thu Mar 4 2010 <willb@redhat> - 0.2.2-2
75
+ - updated to version 0.2.2-2
76
+
71
77
  * Tue Feb 24 2010 <willb@redhat> - 0.2.1-1.0
72
78
  - updated to version 0.2.1 (which is not released as a gem at the moment)
73
79
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spqr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Benton
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-03-04 00:00:00 -06:00
12
+ date: 2010-04-05 00:00:00 -05:00
13
13
  default_executable: spqr-gen.rb
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency