otx_ruby 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d05f7286c6294be705019cd0a2b1bec9874b5575
4
- data.tar.gz: 8fb2b76b9e652d64fef0310e018cbcbbd3790d5b
3
+ metadata.gz: 7c9e0d3b7b02b692e2809d4382e0b51d5805ee2e
4
+ data.tar.gz: 9eadf4692043ea73f20bc96cf217b68363488b19
5
5
  SHA512:
6
- metadata.gz: 71c3f0323c96ccff90a7d39403396b703f34aedaec6d6a4815077169b98ed57d258dc587e0b5e338148151c0df52fa6839195ebd073b66e7cecb2a90981eed96
7
- data.tar.gz: 690fd9bb76e3d8c5dcaa2c19857bcb4bb42ca9fa9fb87d997a925abbd6b068170265984c17b13864a83db6e7e9d03b43124f447e7e954a09ea71eb4689fd53f6
6
+ metadata.gz: 93d2f7d6275ef7501285d0811feb0d3f086e04bb218b0fd3effa5ed4927283a8b4ed6ddc75e37194870388c71b0b74ce5234991ea5bdd1078088bbec4108a421
7
+ data.tar.gz: 6ec9406f1a1d0098f14bff5a36074877158b3adc31af4b4dfe244522a84ecacf6983549b4d4d448c16a80c582ba64df9eea5e6b36ff037bfb251a4ed4c116311
data/README.md CHANGED
@@ -4,6 +4,9 @@ Open Threat Exchange is an open community that allows participants to learn abou
4
4
 
5
5
  This gem provides a wrapper for Ruby applications to pull pulses from OTX and be consumed by the ruby application.
6
6
 
7
+ ## Build Status
8
+
9
+ [![security](https://hakiri.io/github/mort666/otx_ruby/master.svg)](https://hakiri.io/github/mort666/otx_ruby/master) [![CircleCI](https://circleci.com/gh/mort666/otx_ruby/tree/master.svg?style=svg)](https://circleci.com/gh/mort666/otx_ruby/tree/master)
7
10
  ## Installation
8
11
 
9
12
  Add this line to your application's Gemfile:
@@ -23,7 +26,7 @@ Or install it yourself as:
23
26
  ## Usage
24
27
 
25
28
  ```ruby
26
- require `otx_ruby`
29
+ require 'otx_ruby'
27
30
 
28
31
  api_key = '4xxx........'
29
32
  otx = OTX::Subscribed.new(apikey)
data/circle.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  machine:
2
2
  ruby:
3
- version: 2.1.5
3
+ version: 2.2.4
4
4
  database:
5
5
  override:
6
6
  - echo 'no database'
@@ -6,6 +6,8 @@ module OTX
6
6
  # @attr [String] indicator Value of the indicator type
7
7
  # @attr [String] type Type of IoC
8
8
  # @attr [String] description Description associated with the IoC
9
+ # @attr [String] title
10
+ # @attr [String] content
9
11
  #
10
12
  # Indicator of Compromise types:
11
13
  # IPv4 - An IPv4 address indicating the online location of a server or other computer.
@@ -26,6 +28,6 @@ module OTX
26
28
  # CVE - Common Vulnerability and Exposure (CVE) entry describing a software vulnerability that can be exploited to engage in malicious activity.
27
29
  #
28
30
  class Indicators < OTX::Type::Base
29
- attr_accessor :_id, :indicator, :type, :description
31
+ attr_accessor :_id, :indicator, :type, :description, :title, :content
30
32
  end
31
33
  end
@@ -11,15 +11,26 @@ module OTX
11
11
  # @attr [Array<String>] referenes Array of references attached to the pulse
12
12
  # @attr [String] revision Revision number of the OTX Pulse Record
13
13
  # @attr [Array<OTX::Indicators>] indicators Array of the IoC attached to the OTX pulse
14
+ # @attr [String] tlp Traffic light protocol color as appropriate to U.S. DHS
15
+ # @attr [Boolean] public Privacy setting
16
+ # @attr [Boolean] in_group
17
+ # @attr [String] group_id
18
+ # @attr [String] group_name
19
+ # @attr [Array<String>] groups
20
+ # @attr [String] adversary
21
+ # @attr [Array<String>] targeted_countries
22
+ # @attr [Array<String>] industries
14
23
  #
15
24
  class Pulse < OTX::Type::Base
16
25
  attr_accessor :id, :name, :description, :author_name,
17
- :tags, :references, :revision, :indicators
26
+ :tags, :references, :revision, :indicators, :tlp, :public, :in_group,
27
+ :group_id, :group_name, :groups, :adversary, :targeted_countries,
28
+ :industries
18
29
 
19
30
  def initialize(attributes={})
20
31
  attributes.each do |key, value|
21
32
  if key != 'indicators'
22
- send("#{key}=", value)
33
+ send("#{key.downcase}=", value)
23
34
  else
24
35
  @indicators = []
25
36
  value.each do |indicator|
@@ -1,4 +1,4 @@
1
1
  module OTX
2
2
  # Library Version Number
3
- VERSION = "0.5.2"
3
+ VERSION = "0.5.3"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: otx_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen Kapp
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-01-24 00:00:00.000000000 Z
11
+ date: 2016-10-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -153,9 +153,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
153
153
  version: '0'
154
154
  requirements: []
155
155
  rubyforge_project:
156
- rubygems_version: 2.4.3
156
+ rubygems_version: 2.4.8
157
157
  signing_key:
158
158
  specification_version: 4
159
159
  summary: AlienVault OTX Ruby Gem
160
160
  test_files: []
161
- has_rdoc: