wildling 2.0.5 → 2.0.7

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: 814c913f2a7af0bc99c34ea9d472782b0c3c51e5baf4483e8c1a5ccb97a3b5a7
4
- data.tar.gz: 6b048f32f406684cbc6c32ff0d5457a29e35a8c25e20e46f72982c37718b18e7
3
+ metadata.gz: 71f6eef9d17da8cda55d893c789b0134b7e3c932cbff81d5a057c76a21dfc976
4
+ data.tar.gz: a8080bc8a66f756f3ad39bdb48db2f0b5d8c50f069aaf13f6341f9a723f40ca1
5
5
  SHA512:
6
- metadata.gz: 91ddd0b1fc2c28099b75a5041547b9bfbd4adc16414b11211d59cd3a2a0b2aaef14c53f50c12970668bd9d0900f9bf310562231916c81f918b88d749d71af9f4
7
- data.tar.gz: a6ee584881cdff1d857ad570eb6d82eca2ab019fbe800842be9e5663073077964f4c409c345e2956e1d0a4556b17ffbed324f26ab06cd98f1a3566b4865ab232
6
+ metadata.gz: d74d5d3d3b97ddc77d3c9bf8b7d74fd85ed61121ecea0a029d1fda331656aceeb0af4957a93981c86cfe26a1149113a91f85ac047f568ab9683362b4c21a0e26
7
+ data.tar.gz: e70e217ca0554ed1e218f6ee588697096f2c1a3b197546f7da5b37e948dbd13588777881402b29d65e40f6e9f8725274a24a5398a90db5b89ce6470d3ae526e2
data/README.md CHANGED
@@ -41,13 +41,18 @@ cd ruby
41
41
  **Git (Bundler):**
42
42
 
43
43
  ```ruby
44
- gem "wildling", git: "https://github.com/dotmonk/wildling.git", tag: "v2.0.5", glob: "ruby/wildling.gemspec"
44
+ gem "wildling", git: "https://github.com/dotmonk/wildling.git", tag: "v2.0.7", glob: "ruby/wildling.gemspec"
45
45
  ```
46
46
 
47
- **Registry:** `gem install wildling`
47
+ **Registry:**
48
+
49
+ ```bash
50
+ gem install wildling
51
+ wildling "Year 19##"
52
+ ```
48
53
 
49
54
  ```ruby
50
- require_relative "lib/wildling"
55
+ require "wildling"
51
56
 
52
57
  wildling = Wildling.create(["Year 19##"])
53
58
  value = wildling.next
@@ -57,6 +62,8 @@ while value != false
57
62
  end
58
63
  ```
59
64
 
65
+ The published gem’s executable is a Ruby stub under `exe/` (so `gem install` + `wildling` works). The monorepo `./bin/wildling` is a separate shell launcher with a Docker fallback when `ruby` is missing. Gems through **2.0.6** shipped a shell script as the Rubygems executable (broken under `gem install`); use `ruby "$(gem contents wildling | grep bin/wildling.rb)"` as a workaround, or install a newer gem once published.
66
+
60
67
  ## CLI
61
68
 
62
69
  ```bash
data/exe/wildling ADDED
@@ -0,0 +1,5 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ # Gem executable (Rubygems wraps this as Ruby). Monorepo CLI remains bin/wildling (shell).
5
+ load File.expand_path("../bin/wildling.rb", __dir__)
@@ -3,7 +3,7 @@
3
3
  require_relative "generator"
4
4
 
5
5
  module Wildling
6
- VERSION = "2.0.5"
6
+ VERSION = "2.0.7"
7
7
 
8
8
  # Main enumerator. Prefer Wildling.create(...) from callers.
9
9
  class Client
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wildling
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.5
4
+ version: 2.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - dotmonk
8
8
  autorequire:
9
- bindir: bin
9
+ bindir: exe
10
10
  cert_chain: []
11
- date: 2026-07-24 00:00:00.000000000 Z
11
+ date: 2026-07-25 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Enumerate pattern combinations for wordlists, domains, and test data.
14
14
  email:
@@ -19,8 +19,8 @@ extensions: []
19
19
  extra_rdoc_files: []
20
20
  files:
21
21
  - README.md
22
- - bin/wildling
23
22
  - bin/wildling.rb
23
+ - exe/wildling
24
24
  - help.txt
25
25
  - lib/wildling.rb
26
26
  - lib/wildling/cli.rb
data/bin/wildling DELETED
@@ -1,29 +0,0 @@
1
- #!/bin/sh
2
- DIR="$(cd "$(dirname "$0")" && pwd)"
3
- ROOT="$(cd "$DIR/.." && pwd)"
4
- ENTRY="$DIR/wildling.rb"
5
-
6
- ensure_help() {
7
- if [ ! -f "$ROOT/lib/wildling/help.txt" ] && [ -f "$ROOT/../docs/help.txt" ]; then
8
- cp "$ROOT/../docs/help.txt" "$ROOT/lib/wildling/help.txt"
9
- fi
10
- }
11
-
12
- if command -v ruby >/dev/null 2>&1; then
13
- ensure_help
14
- exec ruby "$ENTRY" "$@"
15
- fi
16
-
17
- ensure_help
18
- if [ ! -f "$ROOT/lib/wildling/help.txt" ]; then
19
- echo "help.txt missing. Run ruby/build.sh first." >&2
20
- exit 1
21
- fi
22
-
23
- exec docker run --rm \
24
- -v "$ROOT:/app:ro" \
25
- -v "$(pwd):/work" \
26
- -w /work \
27
- --network=host \
28
- ruby:3.3-alpine \
29
- ruby /app/bin/wildling.rb "$@"