Skip to content

Commit

Permalink
Release 0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Shakeel Mohamed committed Nov 12, 2018
2 parents dfcf6f1 + ac21725 commit 4c8fbd1
Show file tree
Hide file tree
Showing 10 changed files with 1,667 additions and 113 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -1,6 +1,7 @@
coverage
node_modules
npm-debug.log
config.json
test/config.json
.idea
docs
4 changes: 2 additions & 2 deletions .jshintrc
Expand Up @@ -70,7 +70,7 @@
"trailing" : true, // Prohibit trailing whitespaces. // TODO
"white" : false, // Check against strict whitespace and indentation rules.
"unused" : true,

"indent" : 4,
"globals" : {
/* Mocha */
"describe" : false,
Expand All @@ -80,4 +80,4 @@
"after" : false,
"afterEach" : false
}
}
}
39 changes: 39 additions & 0 deletions .travis.yml
@@ -0,0 +1,39 @@
sudo: required

services:
- docker

notifications:
email: false

before_install:
# Create .splunkrc file with default credentials
- echo host=localhost >> $HOME/.splunkrc
- echo username=admin >> $HOME/.splunkrc
- echo password=changeme >> $HOME/.splunkrc
# Set SPLUNK_HOME
- export SPLUNK_HOME="/opt/splunk"
# Pull docker image
- docker pull splunk/splunk-sdk-travis-ci:$SPLUNK_VERSION
# Add DOCKER to iptables, 1/10 times this is needed, force 0 exit status
- sudo iptables -N DOCKER || true
# Start Docker container
- docker run -p 127.0.0.1:8089:8089 -p 127.0.0.1:8088:8088 -d splunk/splunk-sdk-travis-ci:$SPLUNK_VERSION
# curl Splunk until it returns valid data indicating it has been setup, try 20 times maximum
- for i in `seq 0 20`; do if curl --fail -k https://localhost:8089/services/server/info &> /dev/null; then break; fi; echo $i; sleep 1; done


language: node_js
node_js:
- "8.0"
- "6.0"
- "4.2"

#Splunk versions can be set here
env:
- SPLUNK_VERSION=7.0-sdk
- SPLUNK_VERSION=7.2-sdk

# Test script, should return non 0 exit status if a test fails
script:
npm test
10 changes: 10 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,15 @@
# Splunk logging for JavaScript

## v0.10.0

### Breaking changes

* Dropped support for Node.js versions older than 4.0.0.

### Minor changes

* Upgrade version of request to 2.88.0.

## v0.9.3

### Minor changes
Expand Down
6 changes: 3 additions & 3 deletions README.md
@@ -1,12 +1,12 @@
# Splunk logging for JavaScript

#### Version 0.9.3
#### Version 0.10.0

This project provides a simple JavaScript interface for logging to HTTP Event Collector in Splunk Enterprise and Splunk Cloud.

## Requirements

* Node.js v0.10 or later.
* Node.js v4 or later.
* Splunk Enterprise 6.3.0 or later, or Splunk Cloud.
* An HTTP Event Collector token from your Splunk Enterprise server.

Expand All @@ -32,7 +32,7 @@ See the `examples` folder for usage examples:

### SSL

Note: SSL certificate validation is diabled by default.
Note: SSL certificate validation is disabled by default.
To enable it, set `requestOptions.strictSSL = true` on your `SplunkLogger` instance:

```javascript
Expand Down

0 comments on commit 4c8fbd1

Please sign in to comment.