gophish-ruby 1.0.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 +4 -4
- data/lib/gophish/base.rb +13 -0
- data/lib/gophish/campaign.rb +26 -0
- data/lib/gophish/version.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fd6fcb4143f46dfe08b1a34bfdf23f617069080ca7ad3f8eefe8caa94af5f620
|
4
|
+
data.tar.gz: 4bcf7c523526d43b457ff81e3f51667bca96ccb648b21e66f0c512f2061eb517
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0982ddde22b250a73fde2aa1c0c324226b5dde8db7e5ed1bcb4a903dbef19b4d9c00693266747a0f438e0599750b87b215a535673dc6bd084241c5862d143814'
|
7
|
+
data.tar.gz: 022ee40a90b95e9bc7d4470f0dc6121d95dd918312343408c24067b4c5fbde0cf9cb9dd884164e3ed86a6150a5a86d093d306c48ac7775c9f0874df89deb8ef2
|
data/lib/gophish/base.rb
CHANGED
@@ -184,5 +184,18 @@ module Gophish
|
|
184
184
|
def []=(attribute, value)
|
185
185
|
send "#{attribute}=", value if respond_to? "#{attribute}="
|
186
186
|
end
|
187
|
+
|
188
|
+
def to_s
|
189
|
+
attributes_hash = {}
|
190
|
+
self.class.attribute_names.each do |attr_name|
|
191
|
+
value = send attr_name
|
192
|
+
attributes_hash[attr_name.to_sym] = value unless value.nil?
|
193
|
+
end
|
194
|
+
attributes_hash.to_s
|
195
|
+
end
|
196
|
+
|
197
|
+
def inspect
|
198
|
+
to_s
|
199
|
+
end
|
187
200
|
end
|
188
201
|
end
|
data/lib/gophish/campaign.rb
CHANGED
@@ -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
|
data/lib/gophish/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gophish-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eli Sebastian Herrera Aguilar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-09-
|
11
|
+
date: 2025-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -111,14 +111,14 @@ files:
|
|
111
111
|
- lib/gophish/template.rb
|
112
112
|
- lib/gophish/version.rb
|
113
113
|
- sig/gophish/ruby.rbs
|
114
|
-
homepage: https://github.com/EliSebastian/
|
114
|
+
homepage: https://github.com/EliSebastian/gophish-ruby
|
115
115
|
licenses:
|
116
116
|
- MIT
|
117
117
|
metadata:
|
118
118
|
allowed_push_host: https://rubygems.org
|
119
|
-
homepage_uri: https://github.com/EliSebastian/
|
120
|
-
source_code_uri: https://github.com/EliSebastian/
|
121
|
-
changelog_uri: https://github.com/EliSebastian/
|
119
|
+
homepage_uri: https://github.com/EliSebastian/gophish-ruby
|
120
|
+
source_code_uri: https://github.com/EliSebastian/gophish-ruby
|
121
|
+
changelog_uri: https://github.com/EliSebastian/gophish-ruby/blob/main/CHANGELOG.md
|
122
122
|
post_install_message:
|
123
123
|
rdoc_options: []
|
124
124
|
require_paths:
|