ruby-masscan 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bd5ccf856ca875649425af00ffe4f90092cc81e250b30a54c640acd575504387
4
- data.tar.gz: b1f064fe48e81cee639f7a32d8e0b77334593ba757ff30d8f554c2fb3a4860bf
3
+ metadata.gz: 10e9abe454a6c9e5715a61cff5b55eb5d29c037d1caf7692ccb937a811b83a3b
4
+ data.tar.gz: 8807aa7d6f7868f0ed84d0296de265b1ea1bf41a1301e779b767bd678747dc9f
5
5
  SHA512:
6
- metadata.gz: ec9bc404c40601950b44f6414af17809cf42132b2ee8e83e26268ede21ee297f33f9ae843f9aacc650861d0ffeba3bfe75268293d56b488aebbd1d2b476b8154
7
- data.tar.gz: '06797c919c865cbe5147cdb79412883a174ca3835f72706881f1f99b58becf65836a200be6afd1b9e85f5efeac4f19e98e5aaf9ca4a08811afbdbcc200f2df86'
6
+ metadata.gz: 75b5b24e0596c0d887b86b9d471c39dbedf966f74b9861db1b4aeb2809b243f6e7ad79b30851aa9c726e3178dda23dd6cbfc938836de750b7ff71772e952746e
7
+ data.tar.gz: faa1362698c3c0b11acc83d30b7e240d84b7786c17807e5d60d49836c654eaa7efa38f8e0f99144c895b4e308c7815e9c9a834a680cf837feed852516031018a
@@ -9,9 +9,10 @@ jobs:
9
9
  fail-fast: false
10
10
  matrix:
11
11
  ruby:
12
- - 2.6
13
- - 2.7
14
- - 3.0
12
+ - '3.0'
13
+ - '3.1'
14
+ - '3.2'
15
+ - '3.3'
15
16
  - jruby
16
17
  - truffleruby
17
18
  name: Ruby ${{ matrix.ruby }}
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.2.3 / 2024-01-27
2
+
3
+ * Switched to using `require_relative` to improve load-times.
4
+ * Added `# frozen_string_literal: true` to all files.
5
+
1
6
  ### 0.2.2 / 2023-04-20
2
7
 
3
8
  * Corrected option definitions:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Masscan
2
4
  #
3
5
  # Represents a banner record.
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'command_mapper/command'
2
4
 
3
5
  module Masscan
@@ -1,6 +1,8 @@
1
- require 'masscan/parsers/list'
2
- require 'masscan/parsers/json'
3
- require 'masscan/parsers/binary'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'parsers/list'
4
+ require_relative 'parsers/json'
5
+ require_relative 'parsers/binary'
4
6
 
5
7
  module Masscan
6
8
  #
@@ -1,5 +1,7 @@
1
- require 'masscan/status'
2
- require 'masscan/banner'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../status'
4
+ require_relative '../banner'
3
5
 
4
6
  require 'socket'
5
7
 
@@ -1,6 +1,8 @@
1
- require 'masscan/parsers/plain_text'
2
- require 'masscan/status'
3
- require 'masscan/banner'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'plain_text'
4
+ require_relative '../status'
5
+ require_relative '../banner'
4
6
 
5
7
  require 'json'
6
8
 
@@ -1,6 +1,8 @@
1
- require 'masscan/parsers/plain_text'
2
- require 'masscan/status'
3
- require 'masscan/banner'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'plain_text'
4
+ require_relative '../status'
5
+ require_relative '../banner'
4
6
 
5
7
  module Masscan
6
8
  module Parsers
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Masscan
2
4
  module Parsers
3
5
  #
@@ -1,3 +1,5 @@
1
- require 'masscan/parsers/binary'
2
- require 'masscan/parsers/list'
3
- require 'masscan/parsers/json'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'parsers/binary'
4
+ require_relative 'parsers/list'
5
+ require_relative 'parsers/json'
@@ -1,4 +1,6 @@
1
- require 'masscan/command'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'command'
2
4
 
3
5
  module Masscan
4
6
  #
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Masscan
2
4
  #
3
5
  # Represents a port status record.
@@ -1,4 +1,6 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Masscan
2
4
  # ruby-masscan version
3
- VERSION = '0.2.2'
5
+ VERSION = '0.2.3'
4
6
  end
data/lib/masscan.rb CHANGED
@@ -1,3 +1,5 @@
1
- require 'masscan/command'
2
- require 'masscan/program'
3
- require 'masscan/output_file'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'masscan/command'
4
+ require_relative 'masscan/program'
5
+ require_relative 'masscan/output_file'
data/ruby-masscan.gemspec CHANGED
@@ -7,10 +7,7 @@ Gem::Specification.new do |gem|
7
7
 
8
8
  gem.name = gemspec.fetch('name')
9
9
  gem.version = gemspec.fetch('version') do
10
- lib_dir = File.join(File.dirname(__FILE__),'lib')
11
- $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
12
-
13
- require 'masscan/version'
10
+ require_relative 'lib/masscan/version'
14
11
  Masscan::VERSION
15
12
  end
16
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-masscan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-20 00:00:00.000000000 Z
11
+ date: 2024-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: command_mapper
@@ -111,7 +111,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  version: '0'
112
112
  requirements:
113
113
  - masscan >= 1.0.0
114
- rubygems_version: 3.3.26
114
+ rubygems_version: 3.4.10
115
115
  signing_key:
116
116
  specification_version: 4
117
117
  summary: A Ruby interface to masscan.