sumologic 0.0.4 → 0.1.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/CHANGELOG.md +18 -4
- data/LICENSE.txt +2 -2
- data/README.md +64 -17
- data/Rakefile +2 -2
- data/lib/sumologic.rb +80 -33
- metadata +91 -28
- data/VERSION.txt +0 -1
- data/lib/sumologic/version.rb +0 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 64d12a09518078ae95735febdfbae3d86bae122e
|
|
4
|
+
data.tar.gz: ecd581f9a9fcd27d7c510d9caae20f11a7688b87
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76f5cc614222927be7a34248e2b89fe1bc9031b5986ac050689e23083bc41b4fc6d5e6678c21d976026810a15c205a2123aef6cc41f548569c10ee843da446fa
|
|
7
|
+
data.tar.gz: b8107ea05ae9feaa78a9ef77f863d4055163fcce7e9ba266c38eaecfb0d0af908ebcb3c4d285433a33664537b3b6cecbbe1a2bd8afb4390ddc3d6e696bcc0ec6
|
data/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,25 @@
|
|
|
1
1
|
CHANGELOG
|
|
2
2
|
---------
|
|
3
|
-
- **
|
|
3
|
+
- **0.1.0** - 2016-10-23
|
|
4
|
+
- Add `search_job_messages` method
|
|
5
|
+
- Add `collectors`, `collector`, `update_collector`, `delete_collector` methods
|
|
6
|
+
- Add `sources`, `source`, `update_source`, `delete_source` methods
|
|
7
|
+
- Add `create_content`, `get_content`, `delete_content` methods
|
|
8
|
+
- Add redirect support
|
|
9
|
+
- Add accessor for Faraday HTTP client
|
|
10
|
+
- Add Waffle.io project and shield
|
|
11
|
+
- **0.0.5** - 2016-02-05
|
|
12
|
+
- Update to Ruby 1.9 hash syntax
|
|
13
|
+
- Remove `version.rb` file
|
|
14
|
+
- **0.0.4** - 2015-10-02
|
|
15
|
+
- Add dashboard support: `dashboards`, `dashboard`, and `dashboard_data`
|
|
16
|
+
- **0.0.3** - 2015-09-14
|
|
4
17
|
- Add Scrutinizer support
|
|
5
18
|
- Update `README.md`
|
|
6
|
-
- **2015-07-11
|
|
7
|
-
- Add single shot search
|
|
19
|
+
- **0.0.2** - 2015-07-11
|
|
20
|
+
- Add single shot search support: `search`
|
|
8
21
|
- Add Travis CI support
|
|
9
22
|
- Add Code Climate support
|
|
10
|
-
- **2015-06-09
|
|
23
|
+
- **0.0.1** - 2015-06-09
|
|
11
24
|
- Initial commit
|
|
25
|
+
- Add search job support: `search_job`, `search_job_status`, `search_job_records`
|
data/LICENSE.txt
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015 John Wang
|
|
3
|
+
Copyright (c) 2015-2016 John Wang
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
6
|
a copy of this software and associated documentation files (the
|
|
@@ -19,4 +19,4 @@ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
|
19
19
|
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
20
20
|
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
21
21
|
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
22
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
CHANGED
|
@@ -1,40 +1,69 @@
|
|
|
1
1
|
Sumo Logic Ruby SDK
|
|
2
2
|
===================
|
|
3
3
|
|
|
4
|
-
[![Gem Version]
|
|
5
|
-
[![Build Status]
|
|
6
|
-
[![Code Climate]
|
|
7
|
-
[![Scrutinizer Code Quality]
|
|
8
|
-
[![
|
|
9
|
-
[![
|
|
4
|
+
[![Gem Version][gem-version-svg]][gem-version-link]
|
|
5
|
+
[![Build Status][build-status-svg]][build-status-link]
|
|
6
|
+
[![Code Climate][codeclimate-status-svg]][codeclimate-status-link]
|
|
7
|
+
[![Scrutinizer Code Quality][scrutinizer-status-svg]][scrutinizer-status-link]
|
|
8
|
+
[![Downloads][downloads-svg]][downloads-link]
|
|
9
|
+
[![Docs][docs-rubydoc-svg]][docs-rubydoc-link]
|
|
10
|
+
[![License][license-svg]][license-link]
|
|
11
|
+
|
|
12
|
+
[![Stories in Ready][story-status-svg]][story-status-link]
|
|
10
13
|
|
|
11
14
|
Ruby interface to the Sumo Logic REST API.
|
|
12
15
|
|
|
13
16
|
## Usage
|
|
14
17
|
|
|
15
|
-
The
|
|
16
|
-
[Sumo Logic Python SDK](https://github.com/SumoLogic/sumologic-python-sdk).
|
|
18
|
+
The Ruby SDK is ported from the [Sumo Logic Python SDK](https://github.com/SumoLogic/sumologic-python-sdk).
|
|
17
19
|
|
|
18
20
|
The following methods are currently implemented:
|
|
19
21
|
|
|
20
22
|
```ruby
|
|
21
|
-
sumo = SumoLogic::Client.new
|
|
23
|
+
sumo = SumoLogic::Client.new access_id, access_key
|
|
22
24
|
|
|
23
25
|
# Search
|
|
24
|
-
r = sumo.search
|
|
26
|
+
r = sumo.search query [, from, to, time_zone]
|
|
27
|
+
|
|
28
|
+
r = sumo.search_job query [, from, to, time_zone]
|
|
25
29
|
|
|
26
|
-
r = sumo.
|
|
30
|
+
r = sumo.search_job_messages {'id' => search_job_id}, limit, offset
|
|
27
31
|
|
|
28
|
-
r = sumo.search_job_records
|
|
32
|
+
r = sumo.search_job_records {'id' => search_job_id}, limit, offset
|
|
29
33
|
|
|
30
|
-
r = sumo.search_job_status
|
|
34
|
+
r = sumo.search_job_status {'id' => search_job_id}
|
|
31
35
|
|
|
32
36
|
# Dashboards
|
|
33
|
-
r = sumo.dashboards
|
|
37
|
+
r = sumo.dashboards
|
|
38
|
+
|
|
39
|
+
r = sumo.dashboard dashboard_id
|
|
40
|
+
|
|
41
|
+
r = sumo.dashboard_data dashboard_id
|
|
42
|
+
|
|
43
|
+
# Collectors
|
|
44
|
+
r = sumo.collectors [limit, offset]
|
|
45
|
+
|
|
46
|
+
r = sumo.collector collector_id
|
|
47
|
+
|
|
48
|
+
r = sumo.update_collector collector, etag
|
|
49
|
+
|
|
50
|
+
r = sumo.delete_collector collector
|
|
51
|
+
|
|
52
|
+
# Sources
|
|
53
|
+
r = sumo.sources collector_id [, limit, offset]
|
|
54
|
+
|
|
55
|
+
r = sumo.source collector_id, source_id
|
|
56
|
+
|
|
57
|
+
r = sumo.update_source collector_id, source, etag
|
|
58
|
+
|
|
59
|
+
r = sumo.delete_source collector_id, source
|
|
60
|
+
|
|
61
|
+
# Content
|
|
62
|
+
r = sumo.create_content path, data
|
|
34
63
|
|
|
35
|
-
r = sumo.
|
|
64
|
+
r = sumo.get_content path
|
|
36
65
|
|
|
37
|
-
r = sumo.
|
|
66
|
+
r = sumo.delete_content path
|
|
38
67
|
```
|
|
39
68
|
|
|
40
69
|
Note, for the search methods, the query parameter can be exactly the same query that is entered into the Sumo Logic web console.
|
|
@@ -53,6 +82,7 @@ Project Repo
|
|
|
53
82
|
|
|
54
83
|
Sumo Logic API Documentation
|
|
55
84
|
|
|
85
|
+
* https://help.sumologic.com/APIs
|
|
56
86
|
* https://github.com/SumoLogic/sumo-api-doc/wiki
|
|
57
87
|
|
|
58
88
|
Sumo Logic Python SDK
|
|
@@ -71,4 +101,21 @@ Please report these on [Github](https://github.com/grokify/sumologic-sdk-ruby)
|
|
|
71
101
|
|
|
72
102
|
Sumo Logic Ruby SDK is available under an MIT-style license. See [LICENSE.txt](LICENSE.txt) for details.
|
|
73
103
|
|
|
74
|
-
Sumo Logic Ruby SDK © 2015 by John Wang
|
|
104
|
+
Sumo Logic Ruby SDK © 2015-2016 by John Wang
|
|
105
|
+
|
|
106
|
+
[gem-version-svg]: https://badge.fury.io/rb/sumologic.svg
|
|
107
|
+
[gem-version-link]: http://badge.fury.io/rb/sumologic
|
|
108
|
+
[downloads-svg]: http://ruby-gem-downloads-badge.herokuapp.com/sumologic
|
|
109
|
+
[downloads-link]: https://rubygems.org/gems/sumologic
|
|
110
|
+
[build-status-svg]: https://api.travis-ci.org/grokify/sumologic-sdk-ruby.svg?branch=master
|
|
111
|
+
[build-status-link]: https://travis-ci.org/grokify/sumologic-sdk-ruby
|
|
112
|
+
[codeclimate-status-svg]: https://codeclimate.com/github/grokify/sumologic-sdk-ruby/badges/gpa.svg
|
|
113
|
+
[codeclimate-status-link]: https://codeclimate.com/github/grokify/sumologic-sdk-ruby
|
|
114
|
+
[scrutinizer-status-svg]: https://scrutinizer-ci.com/g/grokify/sumologic-sdk-ruby/badges/quality-score.png?b=master
|
|
115
|
+
[scrutinizer-status-link]: https://scrutinizer-ci.com/g/grokify/sumologic-sdk-ruby/?branch=master
|
|
116
|
+
[story-status-svg]: https://badge.waffle.io/grokify/sumologic-sdk-ruby.svg?label=ready&title=Ready
|
|
117
|
+
[story-status-link]: https://waffle.io/grokify/sumologic-sdk-ruby
|
|
118
|
+
[docs-rubydoc-svg]: https://img.shields.io/badge/docs-rubydoc-blue.svg
|
|
119
|
+
[docs-rubydoc-link]: http://www.rubydoc.info/gems/sumologic/
|
|
120
|
+
[license-svg]: https://img.shields.io/badge/license-MIT-blue.svg
|
|
121
|
+
[license-link]: https://github.com/grokify/sumologic-sdk-ruby/blob/master/LICENSE.txt
|
data/Rakefile
CHANGED
|
@@ -14,6 +14,6 @@ end
|
|
|
14
14
|
desc 'Generate YARD documentation.'
|
|
15
15
|
task :gendoc do
|
|
16
16
|
# puts 'yard doc generation disabled until JRuby build native extensions for redcarpet or yard removes the dependency.'
|
|
17
|
-
system
|
|
18
|
-
system
|
|
17
|
+
system 'yardoc'
|
|
18
|
+
system 'yard stats --list-undoc'
|
|
19
19
|
end
|
data/lib/sumologic.rb
CHANGED
|
@@ -4,77 +4,124 @@ require 'faraday-cookie_jar'
|
|
|
4
4
|
require 'multi_json'
|
|
5
5
|
|
|
6
6
|
module SumoLogic
|
|
7
|
-
|
|
7
|
+
VERSION = '0.1.0'
|
|
8
8
|
URL = 'https://api.sumologic.com/api/v1'
|
|
9
9
|
|
|
10
10
|
class Client
|
|
11
|
+
attr_accessor :http
|
|
11
12
|
|
|
12
13
|
def initialize(access_id=nil, access_key=nil, endpoint=SumoLogic::URL)
|
|
13
14
|
@endpoint = endpoint
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
@session = Faraday.new(:url => @endpoint, :headers => headers) do |conn|
|
|
15
|
+
headers = {'Content-Type' => 'application/json', 'Accept' => 'application/json'}
|
|
16
|
+
@http = Faraday.new(url: @endpoint, headers: headers) do |conn|
|
|
17
17
|
conn.basic_auth(access_id, access_key)
|
|
18
|
+
conn.use FaradayMiddleware::FollowRedirects, limit: 5
|
|
18
19
|
conn.use :cookie_jar
|
|
19
20
|
conn.request :json
|
|
20
|
-
conn.response :json, :
|
|
21
|
+
conn.response :json, content_type: 'application/json'
|
|
21
22
|
conn.adapter Faraday.default_adapter
|
|
22
23
|
end
|
|
23
24
|
end
|
|
24
25
|
|
|
25
26
|
def search(query, from_time=nil, to_time=nil, time_zone='UTC')
|
|
26
|
-
|
|
27
|
-
r = @session.get do |req|
|
|
27
|
+
@http.get do |req|
|
|
28
28
|
req.url 'logs/search'
|
|
29
|
-
req.params =
|
|
29
|
+
req.params = {q: query, from: from_time, to: to_time, tz: time_zone}
|
|
30
30
|
end
|
|
31
31
|
end
|
|
32
32
|
|
|
33
33
|
def search_job(query, from_time=nil, to_time=nil, time_zone='UTC')
|
|
34
|
-
params = {:
|
|
35
|
-
|
|
34
|
+
params = {query: query, from: from_time, to: to_time, timeZone: time_zone}
|
|
35
|
+
@http.post do |req|
|
|
36
36
|
req.url 'search/jobs'
|
|
37
37
|
req.body = MultiJson.encode(params)
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
def search_job_status(search_job={})
|
|
42
|
-
|
|
43
|
-
req.url 'search/jobs/' + search_job['id'].to_s
|
|
44
|
-
end
|
|
42
|
+
@http.get "search/jobs/#{search_job['id']}"
|
|
45
43
|
end
|
|
46
|
-
|
|
44
|
+
|
|
45
|
+
def search_job_messages(search_job, limit=nil, offset=0)
|
|
46
|
+
@http.get "search/jobs/#{search_job['id']}/messages", params_limit_offset(limit, offset)
|
|
47
|
+
end
|
|
48
|
+
|
|
47
49
|
def search_job_records(search_job, limit=nil, offset=0)
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
@http.get "search/jobs/#{search_job['id']}/records", params_limit_offset(limit, offset)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
def collectors(limit=nil, offset=nil)
|
|
54
|
+
@http.get 'collectors', params_limit_offset(limit, offset)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def collector(collector_id)
|
|
58
|
+
@http.get "collectors/#{collector_id}"
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
def update_collector(collector, etag)
|
|
62
|
+
@http.put do |req|
|
|
63
|
+
req.url "collectors/#{collector['collector']['id']}"
|
|
64
|
+
req.headers['If-Match'] = etag
|
|
65
|
+
req.body = collector
|
|
52
66
|
end
|
|
53
67
|
end
|
|
54
68
|
|
|
55
|
-
def
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
69
|
+
def delete_collector(collector)
|
|
70
|
+
@http.delete "collectors/#{collector['id']}"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
def sources(collector_id, limit=nil, offset=nil)
|
|
74
|
+
@http.get "collectors/#{collector_id}/sources", params_limit_offset(limit, offset)
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
def source(collector_id, source_id)
|
|
78
|
+
@http.get "collectors/#{collector_id}/sources/#{source_id}"
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
def update_source(collector_id, source, etag)
|
|
82
|
+
@http.put do |req|
|
|
83
|
+
req.url "collectors/#{collector_id}/sources/#{source['source']['id']}"
|
|
84
|
+
req.headers['If-Match'] = etag
|
|
85
|
+
req.body = source
|
|
60
86
|
end
|
|
61
|
-
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
def delete_source(collector_id, source)
|
|
90
|
+
@http.delete "collectors/#{collector_id}/sources/#{source['source']['id']}"
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
def create_content(path, data)
|
|
94
|
+
@http.post "content/#{path}", data
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
def get_content(path)
|
|
98
|
+
@http.get "content/#{path}"
|
|
99
|
+
end
|
|
100
|
+
|
|
101
|
+
def delete_content(path)
|
|
102
|
+
@http.delete "content/#{path}"
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
def dashboards(monitors=false)
|
|
106
|
+
r = @http.get 'dashboards', {dashboards: monitors}
|
|
107
|
+
return r.body.key?('dashboards') ? r.body['dashboards'] : nil
|
|
62
108
|
end
|
|
63
109
|
|
|
64
110
|
def dashboard(dashboard_id)
|
|
65
|
-
r = @
|
|
66
|
-
|
|
67
|
-
end
|
|
68
|
-
return r.body.has_key?('dashboard') ? r.body['dashboard'] : nil
|
|
111
|
+
r = @http.get "dashboards/#{dashboard_id}"
|
|
112
|
+
return r.body.key?('dashboard') ? r.body['dashboard'] : nil
|
|
69
113
|
end
|
|
70
114
|
|
|
71
115
|
def dashboard_data(dashboard_id)
|
|
72
|
-
r = @
|
|
73
|
-
|
|
74
|
-
end
|
|
75
|
-
return r.body.has_key?('dashboardMonitorDatas') ? r.body['dashboardMonitorDatas'] : nil
|
|
116
|
+
r = @http.get "dashboards/#{dashboard_id}/data"
|
|
117
|
+
return r.body.key?('dashboardMonitorDatas') ? r.body['dashboardMonitorDatas'] : nil
|
|
76
118
|
end
|
|
77
119
|
|
|
120
|
+
def params_limit_offset(limit, offset)
|
|
121
|
+
params = {}
|
|
122
|
+
params[:limit] = limit unless limit.nil?
|
|
123
|
+
params[:offset] = offset unless offset.nil?
|
|
124
|
+
params
|
|
125
|
+
end
|
|
78
126
|
end
|
|
79
|
-
|
|
80
127
|
end
|
metadata
CHANGED
|
@@ -1,98 +1,160 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sumologic
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Wang
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-10-23 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
|
16
16
|
requirements:
|
|
17
|
-
- - ~>
|
|
17
|
+
- - "~>"
|
|
18
18
|
- !ruby/object:Gem::Version
|
|
19
19
|
version: '0.9'
|
|
20
|
-
- -
|
|
20
|
+
- - ">="
|
|
21
21
|
- !ruby/object:Gem::Version
|
|
22
22
|
version: '0.9'
|
|
23
23
|
type: :runtime
|
|
24
24
|
prerelease: false
|
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
|
26
26
|
requirements:
|
|
27
|
-
- - ~>
|
|
27
|
+
- - "~>"
|
|
28
28
|
- !ruby/object:Gem::Version
|
|
29
29
|
version: '0.9'
|
|
30
|
-
- -
|
|
30
|
+
- - ">="
|
|
31
31
|
- !ruby/object:Gem::Version
|
|
32
32
|
version: '0.9'
|
|
33
33
|
- !ruby/object:Gem::Dependency
|
|
34
34
|
name: faraday_middleware
|
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
|
36
36
|
requirements:
|
|
37
|
-
- - ~>
|
|
37
|
+
- - "~>"
|
|
38
38
|
- !ruby/object:Gem::Version
|
|
39
39
|
version: '0'
|
|
40
|
-
- -
|
|
40
|
+
- - ">="
|
|
41
41
|
- !ruby/object:Gem::Version
|
|
42
42
|
version: '0'
|
|
43
43
|
type: :runtime
|
|
44
44
|
prerelease: false
|
|
45
45
|
version_requirements: !ruby/object:Gem::Requirement
|
|
46
46
|
requirements:
|
|
47
|
-
- - ~>
|
|
47
|
+
- - "~>"
|
|
48
48
|
- !ruby/object:Gem::Version
|
|
49
49
|
version: '0'
|
|
50
|
-
- -
|
|
50
|
+
- - ">="
|
|
51
51
|
- !ruby/object:Gem::Version
|
|
52
52
|
version: '0'
|
|
53
53
|
- !ruby/object:Gem::Dependency
|
|
54
54
|
name: faraday-cookie_jar
|
|
55
55
|
requirement: !ruby/object:Gem::Requirement
|
|
56
56
|
requirements:
|
|
57
|
-
- -
|
|
57
|
+
- - "~>"
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '0'
|
|
60
|
+
- - ">="
|
|
58
61
|
- !ruby/object:Gem::Version
|
|
59
62
|
version: '0'
|
|
60
63
|
type: :runtime
|
|
61
64
|
prerelease: false
|
|
62
65
|
version_requirements: !ruby/object:Gem::Requirement
|
|
63
66
|
requirements:
|
|
64
|
-
- -
|
|
67
|
+
- - "~>"
|
|
68
|
+
- !ruby/object:Gem::Version
|
|
69
|
+
version: '0'
|
|
70
|
+
- - ">="
|
|
65
71
|
- !ruby/object:Gem::Version
|
|
66
72
|
version: '0'
|
|
67
73
|
- !ruby/object:Gem::Dependency
|
|
68
74
|
name: multi_json
|
|
69
75
|
requirement: !ruby/object:Gem::Requirement
|
|
70
76
|
requirements:
|
|
71
|
-
- -
|
|
77
|
+
- - "~>"
|
|
72
78
|
- !ruby/object:Gem::Version
|
|
73
|
-
version: '
|
|
79
|
+
version: '1'
|
|
74
80
|
type: :runtime
|
|
75
81
|
prerelease: false
|
|
76
82
|
version_requirements: !ruby/object:Gem::Requirement
|
|
77
83
|
requirements:
|
|
78
|
-
- -
|
|
84
|
+
- - "~>"
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: '1'
|
|
87
|
+
- !ruby/object:Gem::Dependency
|
|
88
|
+
name: bundler
|
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
|
90
|
+
requirements:
|
|
91
|
+
- - "~>"
|
|
92
|
+
- !ruby/object:Gem::Version
|
|
93
|
+
version: '1'
|
|
94
|
+
type: :development
|
|
95
|
+
prerelease: false
|
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
97
|
+
requirements:
|
|
98
|
+
- - "~>"
|
|
99
|
+
- !ruby/object:Gem::Version
|
|
100
|
+
version: '1'
|
|
101
|
+
- !ruby/object:Gem::Dependency
|
|
102
|
+
name: coveralls
|
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
|
104
|
+
requirements:
|
|
105
|
+
- - "~>"
|
|
106
|
+
- !ruby/object:Gem::Version
|
|
107
|
+
version: '0'
|
|
108
|
+
type: :development
|
|
109
|
+
prerelease: false
|
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
111
|
+
requirements:
|
|
112
|
+
- - "~>"
|
|
79
113
|
- !ruby/object:Gem::Version
|
|
80
114
|
version: '0'
|
|
81
115
|
- !ruby/object:Gem::Dependency
|
|
82
|
-
name:
|
|
116
|
+
name: rake
|
|
83
117
|
requirement: !ruby/object:Gem::Requirement
|
|
84
118
|
requirements:
|
|
85
|
-
- -
|
|
119
|
+
- - "~>"
|
|
120
|
+
- !ruby/object:Gem::Version
|
|
121
|
+
version: '11'
|
|
122
|
+
type: :development
|
|
123
|
+
prerelease: false
|
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
125
|
+
requirements:
|
|
126
|
+
- - "~>"
|
|
127
|
+
- !ruby/object:Gem::Version
|
|
128
|
+
version: '11'
|
|
129
|
+
- !ruby/object:Gem::Dependency
|
|
130
|
+
name: simplecov
|
|
131
|
+
requirement: !ruby/object:Gem::Requirement
|
|
132
|
+
requirements:
|
|
133
|
+
- - "~>"
|
|
86
134
|
- !ruby/object:Gem::Version
|
|
87
135
|
version: '0'
|
|
88
|
-
type: :
|
|
136
|
+
type: :development
|
|
89
137
|
prerelease: false
|
|
90
138
|
version_requirements: !ruby/object:Gem::Requirement
|
|
91
139
|
requirements:
|
|
92
|
-
- -
|
|
140
|
+
- - "~>"
|
|
93
141
|
- !ruby/object:Gem::Version
|
|
94
142
|
version: '0'
|
|
95
|
-
|
|
143
|
+
- !ruby/object:Gem::Dependency
|
|
144
|
+
name: test-unit
|
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
|
146
|
+
requirements:
|
|
147
|
+
- - "~>"
|
|
148
|
+
- !ruby/object:Gem::Version
|
|
149
|
+
version: '3'
|
|
150
|
+
type: :development
|
|
151
|
+
prerelease: false
|
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
153
|
+
requirements:
|
|
154
|
+
- - "~>"
|
|
155
|
+
- !ruby/object:Gem::Version
|
|
156
|
+
version: '3'
|
|
157
|
+
description:
|
|
96
158
|
email: johncwang@gmail.com
|
|
97
159
|
executables: []
|
|
98
160
|
extensions: []
|
|
@@ -102,13 +164,12 @@ files:
|
|
|
102
164
|
- LICENSE.txt
|
|
103
165
|
- README.md
|
|
104
166
|
- Rakefile
|
|
105
|
-
- VERSION.txt
|
|
106
167
|
- lib/sumologic.rb
|
|
107
|
-
- lib/sumologic/version.rb
|
|
108
168
|
- test/test_helper.rb
|
|
109
169
|
- test/test_setup.rb
|
|
110
170
|
homepage: https://github.com/grokify/sumologic-sdk-ruby
|
|
111
|
-
licenses:
|
|
171
|
+
licenses:
|
|
172
|
+
- MIT
|
|
112
173
|
metadata: {}
|
|
113
174
|
post_install_message:
|
|
114
175
|
rdoc_options: []
|
|
@@ -116,18 +177,20 @@ require_paths:
|
|
|
116
177
|
- lib
|
|
117
178
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
118
179
|
requirements:
|
|
119
|
-
- -
|
|
180
|
+
- - ">="
|
|
120
181
|
- !ruby/object:Gem::Version
|
|
121
|
-
version:
|
|
182
|
+
version: 2.0.0
|
|
122
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
123
184
|
requirements:
|
|
124
|
-
- -
|
|
185
|
+
- - ">="
|
|
125
186
|
- !ruby/object:Gem::Version
|
|
126
187
|
version: '0'
|
|
127
188
|
requirements: []
|
|
128
189
|
rubyforge_project:
|
|
129
|
-
rubygems_version: 2.1
|
|
190
|
+
rubygems_version: 2.5.1
|
|
130
191
|
signing_key:
|
|
131
192
|
specification_version: 4
|
|
132
193
|
summary: Ruby Sumo Logic SDK for the Sumo Logic REST API
|
|
133
|
-
test_files:
|
|
194
|
+
test_files:
|
|
195
|
+
- test/test_helper.rb
|
|
196
|
+
- test/test_setup.rb
|
data/VERSION.txt
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.0.4
|
data/lib/sumologic/version.rb
DELETED