otx_ruby 0.5.2 → 0.5.3
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/README.md +4 -1
- data/circle.yml +1 -1
- data/lib/otx_ruby/types/indicators.rb +3 -1
- data/lib/otx_ruby/types/pulse.rb +13 -2
- data/lib/otx_ruby/version.rb +1 -1
- metadata +3 -4
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 7c9e0d3b7b02b692e2809d4382e0b51d5805ee2e
         | 
| 4 | 
            +
              data.tar.gz: 9eadf4692043ea73f20bc96cf217b68363488b19
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 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 | 
            +
            [](https://hakiri.io/github/mort666/otx_ruby/master) [](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  | 
| 29 | 
            +
              require 'otx_ruby'
         | 
| 27 30 |  | 
| 28 31 | 
             
              api_key = '4xxx........'
         | 
| 29 32 | 
             
              otx = OTX::Subscribed.new(apikey)
         | 
    
        data/circle.yml
    CHANGED
    
    
| @@ -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
         | 
    
        data/lib/otx_ruby/types/pulse.rb
    CHANGED
    
    | @@ -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|
         | 
    
        data/lib/otx_ruby/version.rb
    CHANGED
    
    
    
        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. | 
| 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- | 
| 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. | 
| 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: 
         |