oml4r 2.10.0 → 2.10.1

Sign up to get free protection for your applications and to get access to all the features.
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-2013 National ICT Australia (NICTA), Australia
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.
@@ -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 0.5
58
- angle = 15 * i
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-2013 National ICT Australia (NICTA), Australia
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 0.5
58
- angle = 15 * i
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-2013 National ICT Australia (NICTA), Australia
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,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
@@ -5,7 +5,7 @@
5
5
  # ------------------
6
6
 
7
7
  module OML4R
8
- VERSION = "2.10.0"
8
+ VERSION = "2.10.1"
9
9
  VERSION_STRING = "OML4R Client V#{VERSION}"
10
- COPYRIGHT = "Copyright 2009-2013, NICTA"
10
+ COPYRIGHT = "Copyright 2009-2014, NICTA"
11
11
  end
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[], 0]] : chans
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
@@ -1,5 +1,5 @@
1
1
  #
2
- # Copyright 2012-2013 National ICT Australia (NICTA)
2
+ # Copyright 2012-2014 National ICT Australia (NICTA)
3
3
  #
4
4
  # This software may be used and distributed solely under the terms of
5
5
  # the MIT license (License). You should find a copy of the License in
data/oml4r.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.license = "MIT"
20
20
  gem.require_paths = ["lib"]
21
21
  gem.version = OML4R::VERSION
22
- gem.required_ruby_version = "~> 1.9"
22
+ gem.required_ruby_version = ">= 1.9"
23
23
 
24
24
  end
25
25
 
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.0
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: 2013-12-09 00:00:00.000000000 Z
11
+ date: 2014-01-17 00:00:00.000000000 Z
13
12
  dependencies: []
14
- description: ! '["Simple OML client library and applications for Ruby"]'
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: 1.8.23
78
+ rubygems_version: 2.2.1
81
79
  signing_key:
82
- specification_version: 3
83
- summary: ! '["This is a simple client library for OML which does not use liboml2 and
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."]'