osvc_ruby 1.5.0 → 1.6.0
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/Gemfile.lock +1 -1
- data/README.md +24 -29
- data/lib/osvc_ruby.rb +1 -1
- data/lib/osvc_ruby/version.rb +1 -1
- data/spec/core/analytics_report_results_spec.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f6f2d38c8a4dd91a9f308194670818c22eed2914ce9c3a42e2cf4efc968c07b
|
4
|
+
data.tar.gz: da404b232b491dba1873a8a80b708a1da0065f7226bea72fe0dd96102babefd5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5b5d21113ce8b86f594f2e32fe3c3536c6163f65b17172831f70c4c2236fd423bb41fa3a10604ce43a484b1b92fa4eadca382b1cac28bf2affd5f8426bf2915
|
7
|
+
data.tar.gz: c4c8d0e6606918248420cc451c2ca3c3c80bf07e836fc8e667f0394bb9bcf38472167aaca2f4ba729d03dad9348f151bd881c0737706de84d26ff645c43f7238
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# OSvCRuby
|
2
2
|
|
3
|
-
[](https://codeclimate.com/github/rajangdavis/osvc_ruby) [](https://codeclimate.com/github/rajangdavis/osvc_ruby) [](https://codeclimate.com/github/rajangdavis/osvc_ruby/test_coverage) [](https://travis-ci.org/rajangdavis/osvc_ruby) [](https://badge.fury.io/rb/osvc_ruby) [](https://snyk.io/test/github/rajangdavis/osvc_ruby)
|
4
4
|
|
5
5
|
An (under development) Ruby library for using the [Oracle Service Cloud REST API](https://docs.oracle.com/cloud/latest/servicecs_gs/CXSVC/) influenced by the [ConnectPHP API](http://documentation.custhelp.com/euf/assets/devdocs/november2016/Connect_PHP/Default.htm) and ActiveRecord Gem
|
6
6
|
|
@@ -12,6 +12,22 @@ You will also need to install DevKit Tools which are located underneath the Ruby
|
|
12
12
|
If you are using Windows 10, you can use your Linux Subsystem to work with Ruby; [here's instructions for how to do that.](https://www.digitalocean.com/community/tutorials/how-to-install-ruby-and-set-up-a-local-programming-environment-on-windows-10)
|
13
13
|
|
14
14
|
If you get SSL Errors (you probably will), follow [this link for instructions on resolving SSL things that I know nothing about](https://stackoverflow.com/a/16134586/2548452).
|
15
|
+
|
16
|
+
## Installation
|
17
|
+
|
18
|
+
Add this line to your application's Gemfile:
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
gem 'osvc_ruby'
|
22
|
+
```
|
23
|
+
|
24
|
+
And then execute:
|
25
|
+
|
26
|
+
$ bundle
|
27
|
+
|
28
|
+
Or install it yourself as:
|
29
|
+
|
30
|
+
$ gem install osvc_ruby
|
15
31
|
|
16
32
|
## Compatibility
|
17
33
|
|
@@ -28,36 +44,16 @@ You can use this Ruby Library for basic scripting and microservices. The main fe
|
|
28
44
|
1. [Simple configuration](#client-configuration)
|
29
45
|
2. Running ROQL queries [either 1 at a time](#oscrubyqueryresults-example) or [multiple queries in a set](#oscrubyqueryresultsset-example)
|
30
46
|
3. [Running Reports with filters](#oscrubyanalyticsreportsresults)
|
31
|
-
4. Convenience methods for Analytics filters and setting dates
|
47
|
+
<!-- 4. Convenience methods for Analytics filters and setting dates
|
32
48
|
1. ['arrf', an analytics report results filter](#arrf--analytics-report-results-filter)
|
33
|
-
2. ['dti', converts a date string to ISO8601 format](#dti--date-to-iso8601)
|
34
|
-
|
49
|
+
2. ['dti', converts a date string to ISO8601 format](#dti--date-to-iso8601) -->
|
50
|
+
4. Basic CRUD Operations via HTTP Methods
|
35
51
|
1. [Create => Post](#create)
|
36
52
|
2. [Read => Get](#read)
|
37
53
|
3. [Update => Patch](#update)
|
38
54
|
4. [Destroy => Delete](#delete)
|
39
55
|
|
40
56
|
|
41
|
-
## Installation
|
42
|
-
|
43
|
-
Add this line to your application's Gemfile:
|
44
|
-
|
45
|
-
```ruby
|
46
|
-
gem 'osvc_ruby'
|
47
|
-
```
|
48
|
-
|
49
|
-
And then execute:
|
50
|
-
|
51
|
-
$ bundle
|
52
|
-
|
53
|
-
Or install it yourself as:
|
54
|
-
|
55
|
-
$ gem install osvc_ruby
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
57
|
|
62
58
|
## Client Configuration
|
63
59
|
|
@@ -335,7 +331,7 @@ puts last_updated.run(rn_client)
|
|
335
331
|
|
336
332
|
|
337
333
|
|
338
|
-
## Convenience Methods
|
334
|
+
<!-- ## Convenience Methods
|
339
335
|
|
340
336
|
### 'arrf' => analytics report results filter
|
341
337
|
|
@@ -399,11 +395,11 @@ end
|
|
399
395
|
# ... and so on and so forth
|
400
396
|
```
|
401
397
|
|
398
|
+
-->
|
402
399
|
|
403
400
|
|
404
401
|
|
405
|
-
|
406
|
-
|
402
|
+
<!--
|
407
403
|
|
408
404
|
### 'dti' => date to iso8601
|
409
405
|
|
@@ -441,7 +437,7 @@ dti("11:59PM January 1st, 2014 GMT") #=> 2017-08-01T23:59:00-07:00 #=> 11:59 PM,
|
|
441
437
|
```
|
442
438
|
|
443
439
|
|
444
|
-
|
440
|
+
-->
|
445
441
|
|
446
442
|
|
447
443
|
|
@@ -491,7 +487,6 @@ puts res.body # => JSON body
|
|
491
487
|
|
492
488
|
|
493
489
|
|
494
|
-
|
495
490
|
### READ
|
496
491
|
```ruby
|
497
492
|
#### OSvCRuby::Connect.get( <client>, optional (<url>/<id>/...<params>) )
|
data/lib/osvc_ruby.rb
CHANGED
data/lib/osvc_ruby/version.rb
CHANGED
@@ -68,7 +68,8 @@ describe OSvCRuby::AnalyticsReportResults do
|
|
68
68
|
end
|
69
69
|
|
70
70
|
it 'should be able to take filters', :vcr do
|
71
|
-
keywords = arrf(name: "search_ex", values: "Maestro")
|
71
|
+
# keywords = arrf(name: "search_ex", values: "Maestro")
|
72
|
+
keywords = {name: "search_ex", values: "Maestro"}
|
72
73
|
answers_search.filters << keywords
|
73
74
|
|
74
75
|
answers = answers_search.run(client)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: osvc_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rajan Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-04-
|
11
|
+
date: 2018-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: simplecov
|