splunk-client 0.9.0 → 0.10.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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ebacbfc40e2bd38f78091c46bac2db7b14711b8b
4
+ data.tar.gz: 816e5471ce2ac54e50a654f71a627a73f94396ee
5
+ SHA512:
6
+ metadata.gz: ed0853c36bfc1501c7af0c9d33491168855e3faa45000d5c08e91f8c18a093b9c4b7e48a0c7cf2ccb97a960106992094ce638adbf6f32366007cf0873d49bc1c
7
+ data.tar.gz: 3eab476dff947293d1c16854399416e76fb020ff50009fbd963da741cc2f453899ec757dd6db97cc4310006079cbe0148759954e83094fcaba582b940e7fe5b1
data/README.md CHANGED
@@ -96,9 +96,13 @@ Incorrect credentials will raise a Nokogiri error referencing `Undefined namespa
96
96
 
97
97
  ## Revision History
98
98
 
99
+ ### 0.10
100
+
101
+ * Added support for turning off SSL `use_ssl`
102
+
99
103
  #### 0.9
100
104
 
101
- * Added support for HTTP proxy servers.
105
+ * Added support for HTTP proxy servers and read timeouts.
102
106
 
103
107
  #### 0.8
104
108
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.0
1
+ 0.10.0
@@ -12,8 +12,8 @@ require File.expand_path File.join(File.dirname(__FILE__), 'splunk_alert_feed')
12
12
 
13
13
  class SplunkClient
14
14
 
15
- def initialize(username, password, host, port=8089, proxy_url = '')
16
- @USER=username; @PASS=password; @HOST=host; @PORT=port
15
+ def initialize(username, password, host, port=8089, proxy_url = '', read_time_out=60, use_ssl=true)
16
+ @USER=username; @PASS=password; @HOST=host; @PORT=port; @SSL=use_ssl; @READ_TIMEOUT = read_time_out
17
17
  @PROXY_URI = URI(proxy_url) if proxy_url && !proxy_url.empty?
18
18
 
19
19
  sessionKey = get_session_key
@@ -77,7 +77,8 @@ class SplunkClient
77
77
  else
78
78
  http = Net::HTTP.new(@HOST, @PORT)
79
79
  end
80
- http.use_ssl = true
80
+ http.read_timeout = @READ_TIMEOUT
81
+ http.use_ssl = @SSL
81
82
  http.verify_mode = OpenSSL::SSL::VERIFY_NONE
82
83
  return http
83
84
  end
metadata CHANGED
@@ -1,94 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: splunk-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
5
- prerelease:
4
+ version: 0.10.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Christopher Brito
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-07-02 00:00:00.000000000 Z
11
+ date: 2014-03-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: nokogiri
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - '>='
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - '>='
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: rake
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - '>='
36
32
  - !ruby/object:Gem::Version
37
33
  version: '0'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
- - - ! '>='
38
+ - - '>='
44
39
  - !ruby/object:Gem::Version
45
40
  version: '0'
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: rspec
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ! '>='
45
+ - - '>='
52
46
  - !ruby/object:Gem::Version
53
47
  version: '0'
54
48
  type: :development
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ! '>='
52
+ - - '>='
60
53
  - !ruby/object:Gem::Version
61
54
  version: '0'
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: simplecov-rcov
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ! '>='
59
+ - - '>='
68
60
  - !ruby/object:Gem::Version
69
61
  version: '0'
70
62
  type: :development
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ! '>='
66
+ - - '>='
76
67
  - !ruby/object:Gem::Version
77
68
  version: '0'
78
69
  - !ruby/object:Gem::Dependency
79
70
  name: json
80
71
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
72
  requirements:
83
- - - ! '>='
73
+ - - '>='
84
74
  - !ruby/object:Gem::Version
85
75
  version: '0'
86
76
  type: :development
87
77
  prerelease: false
88
78
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
79
  requirements:
91
- - - ! '>='
80
+ - - '>='
92
81
  - !ruby/object:Gem::Version
93
82
  version: '0'
94
83
  description: splunk-client is a simple Ruby library for interfacing with Splunk's
@@ -118,27 +107,26 @@ files:
118
107
  - Gemfile.lock
119
108
  homepage: http://github.com/cbrito/splunk-client
120
109
  licenses: []
110
+ metadata: {}
121
111
  post_install_message:
122
112
  rdoc_options: []
123
113
  require_paths:
124
114
  - lib
125
115
  required_ruby_version: !ruby/object:Gem::Requirement
126
- none: false
127
116
  requirements:
128
- - - ! '>='
117
+ - - '>='
129
118
  - !ruby/object:Gem::Version
130
119
  version: '0'
131
120
  required_rubygems_version: !ruby/object:Gem::Requirement
132
- none: false
133
121
  requirements:
134
- - - ! '>='
122
+ - - '>='
135
123
  - !ruby/object:Gem::Version
136
124
  version: '0'
137
125
  requirements: []
138
126
  rubyforge_project:
139
- rubygems_version: 1.8.23
127
+ rubygems_version: 2.0.3
140
128
  signing_key:
141
- specification_version: 3
129
+ specification_version: 4
142
130
  summary: Ruby Library for interfacing with Splunk's REST API
143
131
  test_files:
144
132
  - spec/spec_helper.rb