misp 0.1.2 → 0.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d6567e8d9336fb5b0cc67fcc200ed9d4865c3b2ad9ec533842b8d87477e17fc
4
- data.tar.gz: ca93f9e4643ef0e89fc1e1e87e377b60843d30f8de291d34b12582ee8197a85f
3
+ metadata.gz: 07311aee3cd4d7fee5ba2d5dbd47948ea93a9ac7d46378acd131638af1c10b91
4
+ data.tar.gz: 363f45097f02db033dd2d7ff0a9e098682a23bb96b222530dd7c64e538e65834
5
5
  SHA512:
6
- metadata.gz: f0030178281eca5c3cbe1f13d7c8ed21360735ea5d9127b2915ea315f16b6c4a739e4e7dd3b8f56c99f89e4d6a046c93a4823f630a4f25d3181a2c4a1976b39b
7
- data.tar.gz: 9c863d088be6efc8c84339c2d553a70b238ce078ab7ba3a89957ad9b7c953aa7fa51ea1ab70e3a08a4bbc94ffed04ba273200ee3a12eefc7354f49899fe8b0df
6
+ metadata.gz: 0e8ab18e39772789d47875f4b284a0496044a85d1336c40f4983fd8bde0c0f3822f58be3c84ca1d1cabac8167bc23383fd7901e8ca81cd6f439f9d8a51fe36b1
7
+ data.tar.gz: 2668db41a8afaec3190ea6dea42cc4fb32ffc4a39bf1a7d7ef3ec9836a09252d476eaf8442b32a4c34b6c16fe146f53131960bad62d7a1a55c1ddf42e5e3d194
@@ -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
@@ -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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MISP
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
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.2
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-08 00:00:00.000000000 Z
11
+ date: 2020-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler