shadowbq-threatinator 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -5
- data/VERSION +1 -1
- data/lib/threatinator/plugins/output/amqp.rb +2 -0
- data/lib/threatinator/plugins/output/amqp/config.rb +2 -2
- data/lib/threatinator/registry.rb +1 -2
- data/spec/spec_helper.rb +4 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4a7993812c67ca73da4296e9084ae7af7eedb3d
|
4
|
+
data.tar.gz: a769b67625b6913536ca6d93493d5f43292bd598
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9bbdefecac15c18ee806551ab8739aabdb88c030f037fee72700dd30f35c8032509ffd0fefaaf22bfd6c93a74a3ad08f0a9c44b0beb46047af1071a83b738b9
|
7
|
+
data.tar.gz: d06001fc9774e4305fb9f01e0fa5c465bf503a6fe07330ecaa1a4f9fe2d9712a6e084c034d26b9c1fe83b29477df3a9e44860071105b5b5558ca3d5d758332c2
|
data/README.md
CHANGED
@@ -4,9 +4,9 @@ Threatinator is a ruby library for parsing threat data feeds.
|
|
4
4
|
|
5
5
|
## Code Status
|
6
6
|
|
7
|
-
[![Build Status](https://travis-ci.org/shadowbq/
|
8
|
-
[![Code Climate](https://codeclimate.com/github/shadowbq/
|
9
|
-
[![Test Coverage](https://codeclimate.com/github/shadowbq/
|
7
|
+
[![Build Status](https://travis-ci.org/shadowbq/threatinator.svg?branch=master)](https://travis-ci.org/shadowbq/threatinator)
|
8
|
+
[![Code Climate](https://codeclimate.com/github/shadowbq/threatinator/badges/gpa.svg)](https://codeclimate.com/github/shadowbq/threatinator)
|
9
|
+
[![Test Coverage](https://codeclimate.com/github/shadowbq/threatinator/badges/coverage.svg)](https://codeclimate.com/github/shadowbq/threatinator)
|
10
10
|
[![Gem Version](https://badge.fury.io/rb/shadowbq-threatinator.png)](http://badge.fury.io/rb/shadowbq-threatinator)
|
11
11
|
[![Tags](https://img.shields.io/github/tag/shadowbq/threatinator.svg)](https://github.com/shadowbq/threatinator/releases)
|
12
12
|
|
@@ -19,14 +19,30 @@ This is a fork published as `shadowbq-threatinator`
|
|
19
19
|
|
20
20
|
The repository is located at: https://github.com/shadowbq/threatinator
|
21
21
|
|
22
|
-
##
|
22
|
+
## Installation
|
23
23
|
|
24
|
-
|
24
|
+
Install from Gem
|
25
25
|
|
26
26
|
```
|
27
|
+
gem install shadowbq-threatinator
|
28
|
+
```
|
29
|
+
|
30
|
+
`threatinator` will be located in your $PATH if installed from gem.
|
31
|
+
|
32
|
+
-OR-
|
33
|
+
|
34
|
+
Install from Source.
|
35
|
+
|
36
|
+
```
|
37
|
+
git clone https://github.com/shadowbq/threatinator
|
38
|
+
cd threatinator
|
27
39
|
bundle install
|
28
40
|
```
|
29
41
|
|
42
|
+
Bundler context
|
43
|
+
|
44
|
+
`bundle exec bin/threatinator` is used if not running from an installed gem.
|
45
|
+
|
30
46
|
### Listing feeds
|
31
47
|
|
32
48
|
```
|
@@ -99,3 +115,7 @@ Copyright (C) 2014 Michael Ryan (github.com/justfalter)
|
|
99
115
|
Original code: https://github.com/cikl/threatinator
|
100
116
|
|
101
117
|
See the LICENSE file for license rights and limitations (LGPLv3).
|
118
|
+
|
119
|
+
See the CHANGE LOG for significant changes made to software.
|
120
|
+
|
121
|
+
LGPLv3 in Plain English - https://tldrlegal.com/license/gnu-lesser-general-public-license-v3-(lgpl-3)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.1
|
@@ -25,6 +25,8 @@ module Threatinator
|
|
25
25
|
end
|
26
26
|
|
27
27
|
def handle_event(event)
|
28
|
+
# Routing keys are dynamic event_types
|
29
|
+
#@routing_key = config.routing_key || 'threatinator.' + event.type.to_s
|
28
30
|
@routing_key = 'threatinator.' + event.type.to_s
|
29
31
|
@exchange.publish(MultiJson.dump(event.to_serializable_hash),
|
30
32
|
routing_key: @routing_key)
|
@@ -8,8 +8,8 @@ module Threatinator
|
|
8
8
|
class Config < Threatinator::Output::Config
|
9
9
|
attribute :url, String, description: "The hostname/ip of the RabbitMQ server"
|
10
10
|
|
11
|
-
attribute :routing_key, String, default:
|
12
|
-
|
11
|
+
# attribute :routing_key, String, default: 'threatinator.generic',
|
12
|
+
# description: "Routing key for Amqp events"
|
13
13
|
|
14
14
|
end
|
15
15
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,6 +2,9 @@ require 'rubygems'
|
|
2
2
|
require 'bundler'
|
3
3
|
Bundler.setup :default, :test
|
4
4
|
|
5
|
+
require "codeclimate-test-reporter"
|
6
|
+
CodeClimate::TestReporter.start
|
7
|
+
|
5
8
|
require 'pathname'
|
6
9
|
SPEC_ROOT = Pathname.new(__FILE__).dirname.expand_path
|
7
10
|
PROJECT_ROOT = SPEC_ROOT.join('../').expand_path
|
@@ -35,7 +38,7 @@ SimpleCov.start do
|
|
35
38
|
add_filter PROJECT_ROOT.join('spec').to_s
|
36
39
|
add_filter PROJECT_ROOT.join('.gem').to_s
|
37
40
|
add_filter PROJECT_ROOT.join('.git').to_s
|
38
|
-
end
|
41
|
+
end
|
39
42
|
|
40
43
|
require 'factory_girl'
|
41
44
|
Dir.glob(SUPPORT_ROOT.join('**','*.rb')).sort.each { |f| require f}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shadowbq-threatinator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Ryan
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-10-
|
13
|
+
date: 2016-10-26 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: typhoeus
|