osc_ruby 1.2.2 → 1.3.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 +4 -4
- data/lib/convenience_methods.rb +28 -0
- data/lib/osc_ruby/classes/analytics_report_results.rb +1 -1
- data/lib/osc_ruby/modules/query_module.rb +1 -1
- data/lib/osc_ruby/version.rb +1 -1
- data/lib/osc_ruby.rb +2 -26
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83bb162a13ca17772a8e3f228a81d2f6cf1a937a
|
4
|
+
data.tar.gz: 3cc6bbaa3ab60ebb9fa4057788c89dfb71e41914
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3bf78bfe4f272b3777aaf2d4e7fec2c892d171a8ab0866174686b6ef65a9a800f528025745d842a08f3672d323026b5689297426f90d325c758557e16bad699
|
7
|
+
data.tar.gz: 58b16a4211dc75fce7ae6c4f904dd4b84e5a0d97ca8d7b7510964a14000fbe4cc8c629c4b52ad19a89517e532816b7726f98b8efaefc46e2bf9dafca13b44077
|
@@ -0,0 +1,28 @@
|
|
1
|
+
require 'time'
|
2
|
+
|
3
|
+
# Add this in eventually...
|
4
|
+
$time_zone = ''
|
5
|
+
|
6
|
+
def dti(date)
|
7
|
+
begin
|
8
|
+
Time.parse(date +' '+$time_zone).iso8601
|
9
|
+
rescue => e
|
10
|
+
e.message
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def arrf(**args)
|
15
|
+
filter_attrs = [:attributes,:dataType,:name,:operator,:prompt,:values]
|
16
|
+
filter_hash = {}
|
17
|
+
|
18
|
+
filter_attrs.each do |attr|
|
19
|
+
|
20
|
+
filter_hash[attr] = args[attr] unless args[attr].nil?
|
21
|
+
|
22
|
+
end
|
23
|
+
|
24
|
+
filter_hash
|
25
|
+
end
|
26
|
+
|
27
|
+
# alias_method :dti, :date_to_iso
|
28
|
+
# alias_method :arrf, :array_report_results_filter
|
data/lib/osc_ruby/version.rb
CHANGED
data/lib/osc_ruby.rb
CHANGED
@@ -1,30 +1,6 @@
|
|
1
|
-
require '
|
1
|
+
require 'convenience_methods'
|
2
2
|
|
3
|
-
module OSCRuby;
|
4
|
-
|
5
|
-
# Add this in eventually...
|
6
|
-
$time_zone = ''
|
7
|
-
|
8
|
-
def dti(date)
|
9
|
-
begin
|
10
|
-
Time.parse(date +' '+$time_zone).iso8601
|
11
|
-
rescue => e
|
12
|
-
e.message
|
13
|
-
end
|
14
|
-
end
|
15
|
-
|
16
|
-
def arrf(**args)
|
17
|
-
filter_attrs = [:attributes,:dataType,:name,:operator,:prompt,:values]
|
18
|
-
filter_hash = {}
|
19
|
-
|
20
|
-
filter_attrs.each do |attr|
|
21
|
-
|
22
|
-
filter_hash[attr] = args[attr] unless args[attr].nil?
|
23
|
-
|
24
|
-
end
|
25
|
-
|
26
|
-
filter_hash
|
27
|
-
end
|
3
|
+
module OSCRuby;end
|
28
4
|
|
29
5
|
require 'osc_ruby/client'
|
30
6
|
require 'osc_ruby/connect'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osc_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajan Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|
@@ -157,6 +157,7 @@ files:
|
|
157
157
|
- License.txt
|
158
158
|
- README.md
|
159
159
|
- Rakefile
|
160
|
+
- lib/convenience_methods.rb
|
160
161
|
- lib/ext/string.rb
|
161
162
|
- lib/osc_ruby.rb
|
162
163
|
- lib/osc_ruby/classes/analytics_report_results.rb
|