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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b24d39a700281a1b1c35783e8ca6094f5cb2f43a
4
- data.tar.gz: 2fcf1cbb71a4e689fe303fb2208fc75e6be3df45
3
+ metadata.gz: 83bb162a13ca17772a8e3f228a81d2f6cf1a937a
4
+ data.tar.gz: 3cc6bbaa3ab60ebb9fa4057788c89dfb71e41914
5
5
  SHA512:
6
- metadata.gz: fdab8b702959b7e042e6d9865ce87bd733c0517cd613fd38ec0d9c3284a8cfaac1c447a7303ce52ae39ab39ba0fc8119489216b3ebb9ad6d0785439c6675e089
7
- data.tar.gz: 72763bbe498e563f43cdc3980bfd0dff1c5cfdd6e38648d5750d6e6c2cb765f38c0a2c06b006181a3523ea5c93e1347423448eaf487eaabcaa215b4ed94447fb
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
@@ -57,7 +57,7 @@ module OSCRuby
57
57
  response.body
58
58
  else
59
59
  body = JSON.parse(response.body)
60
- final_json = NormalizeModule.iterate_through_rows(body)
60
+ NormalizeModule.iterate_through_rows(body)
61
61
  end
62
62
  end
63
63
 
@@ -17,7 +17,7 @@ module OSCRuby
17
17
 
18
18
  if obj_to_find.code.to_i == 200 || obj_to_find.code.to_i == 201
19
19
 
20
- ValidationsModule::check_obj_for_errors(obj_to_find)
20
+ # ValidationsModule::check_obj_for_errors(obj_to_find)
21
21
 
22
22
  NormalizeModule::normalize(obj_to_find)
23
23
  else
@@ -1,3 +1,3 @@
1
1
  module OSCRuby
2
- VERSION = "1.2.2"
2
+ VERSION = "1.3.1"
3
3
  end
data/lib/osc_ruby.rb CHANGED
@@ -1,30 +1,6 @@
1
- require 'time'
1
+ require 'convenience_methods'
2
2
 
3
- module OSCRuby; end
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.2.2
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-08-19 00:00:00.000000000 Z
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