omf_ec 6.0.2 → 6.0.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.
- data/bin/omf_ec +1 -1
- data/lib/omf_ec/backward/app_definition.rb +1 -1
- data/lib/omf_ec/context/app_context.rb +1 -0
- data/lib/omf_ec/version.rb +1 -1
- metadata +4 -10
data/bin/omf_ec
CHANGED
@@ -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
|
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
|
data/lib/omf_ec/version.rb
CHANGED
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.
|
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-
|
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:
|
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: []
|