misp 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/misp/attribute.rb +2 -2
- data/lib/misp/event.rb +2 -2
- data/lib/misp/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07311aee3cd4d7fee5ba2d5dbd47948ea93a9ac7d46378acd131638af1c10b91
|
4
|
+
data.tar.gz: 363f45097f02db033dd2d7ff0a9e098682a23bb96b222530dd7c64e538e65834
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e8ab18e39772789d47875f4b284a0496044a85d1336c40f4983fd8bde0c0f3822f58be3c84ca1d1cabac8167bc23383fd7901e8ca81cd6f439f9d8a51fe36b1
|
7
|
+
data.tar.gz: 2668db41a8afaec3190ea6dea42cc4fb32ffc4a39bf1a7d7ef3ec9836a09252d476eaf8442b32a4c34b6c16fe146f53131960bad62d7a1a55c1ddf42e5e3d194
|
data/lib/misp/attribute.rb
CHANGED
@@ -156,7 +156,7 @@ module MISP
|
|
156
156
|
# @return [MISP::Tag]
|
157
157
|
#
|
158
158
|
def add_tag(tag)
|
159
|
-
tag = Tag.new(tag) unless tag.is_a?(MISP::Tag)
|
159
|
+
tag = Tag.new(**tag) unless tag.is_a?(MISP::Tag)
|
160
160
|
payload = { uuid: uuid, tag: tag.name }
|
161
161
|
_post("/tags/attachTagToObject", payload) { |json| Tag.new(**json) }
|
162
162
|
end
|
@@ -169,7 +169,7 @@ module MISP
|
|
169
169
|
# @return [Hash]
|
170
170
|
#
|
171
171
|
def remove_tag(tag)
|
172
|
-
tag = Tag.new(tag) unless tag.is_a?(MISP::Tag)
|
172
|
+
tag = Tag.new(**tag) unless tag.is_a?(MISP::Tag)
|
173
173
|
payload = { uuid: uuid, tag: tag.name }
|
174
174
|
_post("/tags/removeTagFromObject", payload) { |json| json }
|
175
175
|
end
|
data/lib/misp/event.rb
CHANGED
@@ -204,7 +204,7 @@ module MISP
|
|
204
204
|
# @return [MISP::Event]
|
205
205
|
#
|
206
206
|
def add_attribute(attribute)
|
207
|
-
attribute = Attribute.new(attribute) unless attribute.is_a?(Attribute)
|
207
|
+
attribute = Attribute.new(**attribute) unless attribute.is_a?(Attribute)
|
208
208
|
attributes << attribute
|
209
209
|
self
|
210
210
|
end
|
@@ -215,7 +215,7 @@ module MISP
|
|
215
215
|
# @return [MISP::Event]
|
216
216
|
#
|
217
217
|
def add_tag(tag)
|
218
|
-
tag = Tag.new(tag) unless tag.is_a?(MISP::Tag)
|
218
|
+
tag = Tag.new(**tag) unless tag.is_a?(MISP::Tag)
|
219
219
|
tags << tag
|
220
220
|
self
|
221
221
|
end
|
data/lib/misp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: misp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manabu Niseki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-03-
|
11
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|