wordlist 1.1.0 → 1.1.1

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: 84d2d2f168e655e19497f02a9cf7841e553315ec52e64ea46e9a9f01e943db9d
4
- data.tar.gz: 709fedece526b979a744579a1868e6612b24da8ea0e85a2c9a496e2a219f58a7
3
+ metadata.gz: 8257ee6c587ba685ac202f3c4839739312397c00b85af8b3a954fac4d889bf25
4
+ data.tar.gz: d75c4cd68b7d3eb5e05399b8f38d155cadd6dd6caeb06787c84e1872e9cf8467
5
5
  SHA512:
6
- metadata.gz: fd6bf3d64ddef5eae7bd03e03b53676b03b06165233b0bc8812c81cce5ad04f208e969f1d5a69f6330641d4997a3bdfaa43d00103721b9704fdf4f0d98331261
7
- data.tar.gz: 44c4075fdd792d75586be3d6b82ab93da2e2bb6ad07c7139479996bb46751aa483937097a53da1a968996ca3e5bb4341fc05767bb999f3c23ed4f7e46081bd7d
6
+ metadata.gz: 23f77e8df9ad6a77fa21df3d47840b0938d5b562473ec40abd1823e21c06f3d456a0af28685cbc1522684948da798afc8287c13d5fe674c119ed53e9f715fd4e
7
+ data.tar.gz: 9e41f171d870b0b2868697407669bcb20a48e110b4ed6a7739cae09faba75ce42b634723793b403724bdd3acf557d74c9d7787a4f34de12646886e204a242a93
@@ -12,14 +12,15 @@ jobs:
12
12
  - ubuntu-latest
13
13
  - macos-latest
14
14
  ruby:
15
- - 3.0
16
- - 3.1
17
- - 3.2
15
+ - '3.0'
16
+ - '3.1'
17
+ - '3.2'
18
+ - '3.3'
18
19
  - jruby
19
20
  - truffleruby
20
21
  name: OS ${{ matrix.os }} / Ruby ${{ matrix.ruby }}
21
22
  steps:
22
- - uses: actions/checkout@v2
23
+ - uses: actions/checkout@v4
23
24
  - name: Set up Ruby
24
25
  uses: ruby/setup-ruby@v1
25
26
  with:
data/ChangeLog.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 1.1.1 / 2024-01-23
2
+
3
+ * Switched to using `require_relative` to improve load-times.
4
+
1
5
  ### 1.1.0 / 2023-09-12
2
6
 
3
7
  * Added support for reading zip (`.zip`) and 7zip (`.7z`) compressed wordlist
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009-2023 Hal Brodigan
1
+ Copyright (c) 2009-2024 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -224,6 +224,11 @@ builder.parse_file(path)
224
224
  ## Requirements
225
225
 
226
226
  * [ruby] >= 3.0.0
227
+ * `zcat`/`gzip` (for reading/writing `.gz` wordlists)
228
+ * `bzcat`/`bzip2` (for reading/writing `.bz2` wordlists)
229
+ * `xzcat`/`xz` (for reading/writing `.xz` wordlists)
230
+ * `unzip`/`zip` (for reading/writing `.zip` wordlists)
231
+ * `7za` (for reading/writing `.7z` wordlists)
227
232
 
228
233
  [ruby]: https://www.ruby-lang.org/
229
234
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/list_methods'
2
+ require_relative 'list_methods'
3
3
 
4
4
  module Wordlist
5
5
  #
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/format'
3
- require 'wordlist/lexer'
4
- require 'wordlist/unique_filter'
5
- require 'wordlist/file'
6
- require 'wordlist/compression/writer'
2
+ require_relative 'format'
3
+ require_relative 'lexer'
4
+ require_relative 'unique_filter'
5
+ require_relative 'file'
6
+ require_relative 'compression/writer'
7
7
 
8
8
  module Wordlist
9
9
  #
data/lib/wordlist/cli.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/file'
3
- require 'wordlist/builder'
4
- require 'wordlist/version'
2
+ require_relative 'file'
3
+ require_relative 'builder'
4
+ require_relative 'version'
5
5
 
6
6
  require 'optparse'
7
7
 
@@ -1,4 +1,4 @@
1
- require 'wordlist/exceptions'
1
+ require_relative '../exceptions'
2
2
 
3
3
  require 'shellwords'
4
4
 
@@ -1,4 +1,4 @@
1
- require 'wordlist/exceptions'
1
+ require_relative '../exceptions'
2
2
 
3
3
  require 'shellwords'
4
4
 
data/lib/wordlist/file.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/abstract_wordlist'
3
- require 'wordlist/exceptions'
4
- require 'wordlist/format'
5
- require 'wordlist/compression/reader'
2
+ require_relative 'abstract_wordlist'
3
+ require_relative 'exceptions'
4
+ require_relative 'format'
5
+ require_relative 'compression/reader'
6
6
 
7
7
  module Wordlist
8
8
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/exceptions'
2
+ require_relative 'exceptions'
3
3
 
4
4
  module Wordlist
5
5
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/exceptions'
2
+ require_relative '../exceptions'
3
3
 
4
4
  module Wordlist
5
5
  class Lexer
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/lexer/lang'
3
- require 'wordlist/lexer/stop_words'
2
+ require_relative 'lexer/lang'
3
+ require_relative 'lexer/stop_words'
4
4
 
5
5
  require 'strscan'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators'
3
- require 'wordlist/modifiers'
2
+ require_relative 'operators'
3
+ require_relative 'modifiers'
4
4
 
5
5
  module Wordlist
6
6
  #
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/modifier'
2
+ require_relative 'modifier'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/modifier'
2
+ require_relative 'modifier'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/sub'
2
+ require_relative 'sub'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/sub'
2
+ require_relative 'sub'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/mutate'
2
+ require_relative 'mutate'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/modifier'
2
+ require_relative 'modifier'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/modifier'
2
+ require_relative 'modifier'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/modifier'
2
+ require_relative 'modifier'
3
3
 
4
4
  module Wordlist
5
5
  module Modifiers
@@ -1,9 +1,9 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/modifiers/tr'
3
- require 'wordlist/modifiers/sub'
4
- require 'wordlist/modifiers/gsub'
5
- require 'wordlist/modifiers/capitalize'
6
- require 'wordlist/modifiers/upcase'
7
- require 'wordlist/modifiers/downcase'
8
- require 'wordlist/modifiers/mutate'
9
- require 'wordlist/modifiers/mutate_case'
2
+ require_relative 'modifiers/tr'
3
+ require_relative 'modifiers/sub'
4
+ require_relative 'modifiers/gsub'
5
+ require_relative 'modifiers/capitalize'
6
+ require_relative 'modifiers/upcase'
7
+ require_relative 'modifiers/downcase'
8
+ require_relative 'modifiers/mutate'
9
+ require_relative 'modifiers/mutate_case'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/operator'
2
+ require_relative 'operator'
3
3
 
4
4
  module Wordlist
5
5
  module Operators
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
2
+ require_relative 'binary_operator'
3
3
 
4
4
  module Wordlist
5
5
  module Operators
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
3
- require 'wordlist/unique_filter'
2
+ require_relative 'binary_operator'
3
+ require_relative '../unique_filter'
4
4
 
5
5
  module Wordlist
6
6
  module Operators
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
3
- require 'wordlist/operators/product'
2
+ require_relative 'binary_operator'
3
+ require_relative 'product'
4
4
 
5
5
  module Wordlist
6
6
  module Operators
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
2
+ require_relative 'binary_operator'
3
3
 
4
4
  module Wordlist
5
5
  module Operators
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
3
- require 'wordlist/unique_filter'
2
+ require_relative 'binary_operator'
3
+ require_relative '../unique_filter'
4
4
 
5
5
  module Wordlist
6
6
  module Operators
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/operator'
2
+ require_relative 'operator'
3
3
 
4
4
  module Wordlist
5
5
  module Operators
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/binary_operator'
3
- require 'wordlist/unique_filter'
2
+ require_relative 'binary_operator'
3
+ require_relative '../unique_filter'
4
4
 
5
5
  module Wordlist
6
6
  module Operators
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/unary_operator'
3
- require 'wordlist/unique_filter'
2
+ require_relative 'unary_operator'
3
+ require_relative '../unique_filter'
4
4
 
5
5
  module Wordlist
6
6
  module Operators
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/operators/concat'
3
- require 'wordlist/operators/subtract'
4
- require 'wordlist/operators/product'
5
- require 'wordlist/operators/power'
6
- require 'wordlist/operators/intersect'
7
- require 'wordlist/operators/union'
8
- require 'wordlist/operators/unique'
2
+ require_relative 'operators/concat'
3
+ require_relative 'operators/subtract'
4
+ require_relative 'operators/product'
5
+ require_relative 'operators/power'
6
+ require_relative 'operators/intersect'
7
+ require_relative 'operators/union'
8
+ require_relative 'operators/unique'
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Wordlist
4
4
  # wordlist version
5
- VERSION = '1.1.0'
5
+ VERSION = '1.1.1'
6
6
  end
data/lib/wordlist.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
- require 'wordlist/words'
3
- require 'wordlist/file'
4
- require 'wordlist/builder'
5
- require 'wordlist/version'
2
+ require_relative 'wordlist/words'
3
+ require_relative 'wordlist/file'
4
+ require_relative 'wordlist/builder'
5
+ require_relative 'wordlist/version'
6
6
 
7
7
  module Wordlist
8
8
  #
data/wordlist.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 'wordlist/version'
10
+ require_relative 'lib/wordlist/version'
14
11
  Wordlist::VERSION
15
12
  end
16
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wordlist
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
  - Postmodern
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-12 00:00:00.000000000 Z
11
+ date: 2024-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler