oml4r 2.10.0 → 2.10.1
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.
- checksums.yaml +7 -0
- data/LICENSE.txt +1 -1
- data/bin/oml4r-multiple-channel-example +1 -1
- data/bin/oml4r-simple-example +10 -2
- data/bin/oml4r-wlanconfig +1 -1
- data/examples/oml4r-multiple-channel-example.rb +1 -1
- data/examples/oml4r-simple-example.rb +10 -2
- data/examples/oml4r-wlanconfig.rb +1 -1
- data/lib/oml4r/benchmark.rb +1 -1
- data/lib/oml4r/log4r/oml_outputter.rb +1 -1
- data/lib/oml4r/version.rb +2 -2
- data/lib/oml4r.rb +2 -1
- data/omf/ping-oml2.app.rb +1 -1
- data/oml4r.gemspec +1 -1
- metadata +9 -11
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b2360b53959ca90561c568582edbc71e7b21f840
|
4
|
+
data.tar.gz: 058568d1d397366c4a0a8af0cba0ea0633eb154e
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a2941e684c41b8843e64451f1108e3d2648ce5fac335dfdb6db6e83038dc55e62deab6063302c897709713c2eba5110fc9f72bfd7e38fb6f3c65367296275f07
|
7
|
+
data.tar.gz: e5805b621d247a1b5104393b3f1f08d415eccc07199d73f38c84a31c4af62cd49ca4c16b778566db6c35565d5280ad5bc2ce17b99e65ecefd05682e13a660d2e
|
data/LICENSE.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright 2009-
|
1
|
+
Copyright 2009-2014 National ICT Australia (NICTA), Australia
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
4
|
of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
3
|
+
# Copyright (c) 2013-2014 National ICT Australia Limited (NICTA).
|
4
4
|
# This software may be used and distributed solely under the terms of the MIT license (License).
|
5
5
|
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
6
6
|
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
data/bin/oml4r-simple-example
CHANGED
@@ -52,10 +52,18 @@ rescue OML4R::MissingArgumentException => mex
|
|
52
52
|
exit
|
53
53
|
end
|
54
54
|
|
55
|
+
freq = 2.0 # Hz
|
56
|
+
inc = 15 # rad
|
57
|
+
|
55
58
|
# Now collect and inject some measurements
|
59
|
+
SinMP.inject_metadata "unit", "radian", "angle"
|
60
|
+
SinMP.inject_metadata "freq_Hz", "#{freq}"
|
61
|
+
SinMP.inject_metadata "inc_rad", "#{inc}"
|
62
|
+
CosMP.inject_metadata "freq_Hz", "#{freq}"
|
63
|
+
CosMP.inject_metadata "inc_rad", "#{inc}"
|
56
64
|
500.times do |i|
|
57
|
-
sleep
|
58
|
-
angle =
|
65
|
+
sleep 1./freq
|
66
|
+
angle = inc * i
|
59
67
|
SinMP.inject("label_#{angle}", angle, Math.sin(angle))
|
60
68
|
CosMP.inject("label_#{angle}", Math.cos(angle))
|
61
69
|
end
|
data/bin/oml4r-wlanconfig
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright (c) 2010-
|
3
|
+
# Copyright (c) 2010-2014 National ICT Australia (NICTA), Australia
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
3
|
+
# Copyright (c) 2013-2014 National ICT Australia Limited (NICTA).
|
4
4
|
# This software may be used and distributed solely under the terms of the MIT license (License).
|
5
5
|
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
6
6
|
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
@@ -52,10 +52,18 @@ rescue OML4R::MissingArgumentException => mex
|
|
52
52
|
exit
|
53
53
|
end
|
54
54
|
|
55
|
+
freq = 2.0 # Hz
|
56
|
+
inc = 15 # rad
|
57
|
+
|
55
58
|
# Now collect and inject some measurements
|
59
|
+
SinMP.inject_metadata "unit", "radian", "angle"
|
60
|
+
SinMP.inject_metadata "freq_Hz", "#{freq}"
|
61
|
+
SinMP.inject_metadata "inc_rad", "#{inc}"
|
62
|
+
CosMP.inject_metadata "freq_Hz", "#{freq}"
|
63
|
+
CosMP.inject_metadata "inc_rad", "#{inc}"
|
56
64
|
500.times do |i|
|
57
|
-
sleep
|
58
|
-
angle =
|
65
|
+
sleep 1./freq
|
66
|
+
angle = inc * i
|
59
67
|
SinMP.inject("label_#{angle}", angle, Math.sin(angle))
|
60
68
|
CosMP.inject("label_#{angle}", Math.cos(angle))
|
61
69
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
# Copyright (c) 2010-
|
3
|
+
# Copyright (c) 2010-2014 National ICT Australia (NICTA), Australia
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/oml4r/benchmark.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
1
|
+
# Copyright (c) 2013-2014 National ICT Australia Limited (NICTA).
|
2
2
|
# This software may be used and distributed solely under the terms of the MIT license (License).
|
3
3
|
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
4
4
|
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
# Copyright (c) 2013 National ICT Australia Limited (NICTA).
|
1
|
+
# Copyright (c) 2013-2014 National ICT Australia Limited (NICTA).
|
2
2
|
# This software may be used and distributed solely under the terms of the MIT license (License).
|
3
3
|
# You should find a copy of the License in LICENSE.TXT or at http://opensource.org/licenses/MIT.
|
4
4
|
# By downloading or using this software you accept the terms and the liability disclaimer in the License.
|
data/lib/oml4r/version.rb
CHANGED
data/lib/oml4r.rb
CHANGED
@@ -254,6 +254,7 @@ module OML4R
|
|
254
254
|
def self.__freeze__(appName, start_time)
|
255
255
|
return if @@frozen
|
256
256
|
@@frozen = true
|
257
|
+
@@appName = appName
|
257
258
|
# create type array for easier processing in inject
|
258
259
|
@@defs.each do |name, descr|
|
259
260
|
descr[:types] = descr[:p_def].map {|h| h[:type]}
|
@@ -268,7 +269,7 @@ module OML4R
|
|
268
269
|
[Channel[cname.to_sym, domain.to_sym]]
|
269
270
|
end
|
270
271
|
OML4R.logger.debug "Using channels '#{chans.inspect}"
|
271
|
-
@@channels[klass] = chans.empty? ? [[Channel[]
|
272
|
+
@@channels[klass] = chans.empty? ? [[Channel[]]] : chans
|
272
273
|
end
|
273
274
|
@@start_time = start_time
|
274
275
|
end
|
data/omf/ping-oml2.app.rb
CHANGED
data/oml4r.gemspec
CHANGED
metadata
CHANGED
@@ -1,17 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oml4r
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.10.
|
5
|
-
prerelease:
|
4
|
+
version: 2.10.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- NICTA
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-17 00:00:00.000000000 Z
|
13
12
|
dependencies: []
|
14
|
-
description:
|
13
|
+
description: '["Simple OML client library and applications for Ruby"]'
|
15
14
|
email:
|
16
15
|
- oml-user@lists.nicta.com.au
|
17
16
|
executables:
|
@@ -59,28 +58,27 @@ files:
|
|
59
58
|
homepage: http://oml.mytestbed.net
|
60
59
|
licenses:
|
61
60
|
- MIT
|
61
|
+
metadata: {}
|
62
62
|
post_install_message:
|
63
63
|
rdoc_options: []
|
64
64
|
require_paths:
|
65
65
|
- lib
|
66
66
|
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
-
none: false
|
68
67
|
requirements:
|
69
|
-
- -
|
68
|
+
- - '>='
|
70
69
|
- !ruby/object:Gem::Version
|
71
70
|
version: '1.9'
|
72
71
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
72
|
requirements:
|
75
|
-
- -
|
73
|
+
- - '>='
|
76
74
|
- !ruby/object:Gem::Version
|
77
75
|
version: '0'
|
78
76
|
requirements: []
|
79
77
|
rubyforge_project:
|
80
|
-
rubygems_version:
|
78
|
+
rubygems_version: 2.2.1
|
81
79
|
signing_key:
|
82
|
-
specification_version:
|
83
|
-
summary:
|
80
|
+
specification_version: 4
|
81
|
+
summary: '["This is a simple client library for OML which does not use liboml2 and
|
84
82
|
its filters, but connects directly to the server using the +text+ protocol. User
|
85
83
|
can use this library to create ruby applications which can send measurement to the
|
86
84
|
OML collection server. The gem ships with some example applications."]'
|