omf_ec 6.0.2 → 6.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/bin/omf_ec CHANGED
@@ -288,7 +288,7 @@ def load_exp(exp_path, global_options = {} , options = {}, properties = {})
288
288
  error e.backtrace.join("\n")
289
289
  end
290
290
 
291
- comm.on_interrupted { comm.disconnect }
291
+ comm.on_interrupted { OmfEc::Experiment.done }
292
292
  end
293
293
  end
294
294
  rescue => e
@@ -57,7 +57,7 @@ module OmfEc
57
57
  #
58
58
  # @example OEDL
59
59
  # app.defMeasurement("power") do |mp|
60
- # mp.defMetric('power', :double, unit: "W", precision: 0.1, description: 'Power')
60
+ # mp.defMetric('power', :double, :unit => "W", :precision => 0.1, :description => 'Power')
61
61
  # end
62
62
  def defMetric(name,type, opts = {})
63
63
  # the third parameter used to be a description string
@@ -59,6 +59,7 @@ module OmfEc::Context
59
59
  # For now this follows v5.4 syntax...
60
60
  # We have not yet finalised an OML syntax inside OEDL for v6
61
61
  def measure(mp,filters)
62
+ warn "No OML URI configured, don't know where to send measurements (add option 'oml_uri')" if OmfEc.experiment.oml_uri.nil?
62
63
  collection = {:url => OmfEc.experiment.oml_uri, :streams => [] }
63
64
  stream = { :mp => mp , :filters => [] }.merge(filters)
64
65
  collection[:streams] << stream
@@ -4,5 +4,5 @@
4
4
  # By downloading or using this software you accept the terms and the liability disclaimer in the License.
5
5
 
6
6
  module OmfEc
7
- VERSION = "6.0.2"
7
+ VERSION = "6.0.3"
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_ec
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.2
4
+ version: 6.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-14 00:00:00.000000000 Z
12
+ date: 2013-06-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: minitest
@@ -191,17 +191,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  version: '0'
192
192
  segments:
193
193
  - 0
194
- hash: 1252066370023531099
194
+ hash: -4558190109347079441
195
195
  requirements: []
196
196
  rubyforge_project: omf_ec
197
197
  rubygems_version: 1.8.25
198
198
  signing_key:
199
199
  specification_version: 3
200
200
  summary: OMF experiment controller
201
- test_files:
202
- - test/omf_ec/context_spec.rb
203
- - test/omf_ec/dsl_spec.rb
204
- - test/omf_ec/experiment_property_spec.rb
205
- - test/omf_ec/experiment_spec.rb
206
- - test/omf_ec/group_spec.rb
207
- - test/test_helper.rb
201
+ test_files: []