gophish-ruby 1.1.0 → 1.1.1

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: bb5a14a2da71e0573dd88f9074654106acd42e09c1201ea190d221efb8a1c2c4
4
- data.tar.gz: 4ac62c49163558c9910d024a6f1b2b84155b2a4c5c907b3a4993ebe52036f957
3
+ metadata.gz: fd6fcb4143f46dfe08b1a34bfdf23f617069080ca7ad3f8eefe8caa94af5f620
4
+ data.tar.gz: 4bcf7c523526d43b457ff81e3f51667bca96ccb648b21e66f0c512f2061eb517
5
5
  SHA512:
6
- metadata.gz: 0b22b00bd893ca329310ea6eaf6ec52b637faafa9d191cb495b5beb9f76dd6ca7b4b529931e3355cf25a1b2fa215a03caa64796d8da7b5d590336e3dab76796b
7
- data.tar.gz: 5230df28a171c07f8ec186af08eac6983683a3e284b6c31fa6afc89222c44f2abfe1271d1104c1e8a2dec65afebcb541a29dc46eae880557d4566771773ad6f3
6
+ metadata.gz: '0982ddde22b250a73fde2aa1c0c324226b5dde8db7e5ed1bcb4a903dbef19b4d9c00693266747a0f438e0599750b87b215a535673dc6bd084241c5862d143814'
7
+ data.tar.gz: 022ee40a90b95e9bc7d4470f0dc6121d95dd918312343408c24067b4c5fbde0cf9cb9dd884164e3ed86a6150a5a86d093d306c48ac7775c9f0874df89deb8ef2
data/lib/gophish/base.rb CHANGED
@@ -188,7 +188,7 @@ module Gophish
188
188
  def to_s
189
189
  attributes_hash = {}
190
190
  self.class.attribute_names.each do |attr_name|
191
- value = send(attr_name)
191
+ value = send attr_name
192
192
  attributes_hash[attr_name.to_sym] = value unless value.nil?
193
193
  end
194
194
  attributes_hash.to_s
@@ -303,6 +303,19 @@ module Gophish
303
303
  def submitted_data?
304
304
  status == 'Submitted Data'
305
305
  end
306
+
307
+ def to_s
308
+ attributes_hash = {}
309
+ self.class.attribute_names.each do |attr_name|
310
+ value = send attr_name
311
+ attributes_hash[attr_name.to_sym] = value unless value.nil?
312
+ end
313
+ attributes_hash.to_s
314
+ end
315
+
316
+ def inspect
317
+ to_s
318
+ end
306
319
  end
307
320
 
308
321
  class Event
@@ -325,6 +338,19 @@ module Gophish
325
338
  rescue JSON::ParserError
326
339
  {}
327
340
  end
341
+
342
+ def to_s
343
+ attributes_hash = {}
344
+ self.class.attribute_names.each do |attr_name|
345
+ value = send attr_name
346
+ attributes_hash[attr_name.to_sym] = value unless value.nil?
347
+ end
348
+ attributes_hash.to_s
349
+ end
350
+
351
+ def inspect
352
+ to_s
353
+ end
328
354
  end
329
355
  end
330
356
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gophish
4
- VERSION = '1.1.0'
4
+ VERSION = '1.1.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gophish-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eli Sebastian Herrera Aguilar