gophish-ruby 1.0.0 → 1.1.0

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: c44a4676be791cb9f3b20de06e1f2b0c07537d1baf2439fd6b8e0a176257f5d6
4
- data.tar.gz: bc03e673ed3ce98ff701b013b45ff5bb6a3b241373669b4f8fbceafd763f55e2
3
+ metadata.gz: bb5a14a2da71e0573dd88f9074654106acd42e09c1201ea190d221efb8a1c2c4
4
+ data.tar.gz: 4ac62c49163558c9910d024a6f1b2b84155b2a4c5c907b3a4993ebe52036f957
5
5
  SHA512:
6
- metadata.gz: 7065f2c3465bf572a5c9f918d597d37414e70143ce7130bcafacd60e164411e19cc8dce6fb3c52a4a52846ee81b12411ef20e52fca91b69fc59606755b3cfb70
7
- data.tar.gz: '008bea10cdd42881b93dfa0e27179f29987dbb1624bee9c21d07c2d3a7ffb50472daefb84c8d76409f980be0ca5695a4ab475d36840ca648b581151ac1e89b46'
6
+ metadata.gz: 0b22b00bd893ca329310ea6eaf6ec52b637faafa9d191cb495b5beb9f76dd6ca7b4b529931e3355cf25a1b2fa215a03caa64796d8da7b5d590336e3dab76796b
7
+ data.tar.gz: 5230df28a171c07f8ec186af08eac6983683a3e284b6c31fa6afc89222c44f2abfe1271d1104c1e8a2dec65afebcb541a29dc46eae880557d4566771773ad6f3
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gophish
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
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.0.0
4
+ version: 1.1.0
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-01 00:00:00.000000000 Z
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/gopish-ruby
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/gopish-ruby
120
- source_code_uri: https://github.com/EliSebastian/gopish-ruby
121
- changelog_uri: https://github.com/EliSebastian/gopish-ruby/blob/main/CHANGELOG.md
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: