bee-holy-scripture 1.0.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.
Files changed (5) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +21 -0
  3. data/README.md +85 -0
  4. data/exe/bee +67 -0
  5. metadata +45 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 12c4cf8b0f502bed8bae47c2ff70503f242e0e9b6530c3d25860f64800620c6b
4
+ data.tar.gz: 3850f94a7c40567a35160be5b5d784e6cb1d7e2c22ebf71313925e19040f091e
5
+ SHA512:
6
+ metadata.gz: fc0788aea4a1fd468be15baa740f8c9ee7787acc42f4e24b24e662d9b3641d9acc1402c4abce51045f108fc8f0bad81e635ccd150bd1582aadebf10c682fac8a
7
+ data.tar.gz: 1c0fdef3babc41551ceae30ce2c575d80e8e3773840591c3b205959cd3be7b45db3e8264be6438d6b18449d7b2484a5fe4fddf46d252ef7c283a77177744497f
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Panagiotis Kouzaris
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,85 @@
1
+ # bee
2
+
3
+ The holy scripture downloader.
4
+
5
+ `bee` downloads a pinned plain-text copy of the Bee Movie dialogue transcript,
6
+ converts work-related words to leetspeak, and writes the result to a file.
7
+
8
+ ## Requirements
9
+
10
+ The standalone script and native Linux packages require:
11
+
12
+ - A POSIX-compatible shell
13
+ - `curl`
14
+ - GNU `sed`
15
+
16
+ The PyPI package uses Python 3.9 or newer and works natively on Linux, macOS,
17
+ and Windows.
18
+
19
+ ## Usage
20
+
21
+ ```sh
22
+ ./bee
23
+ ```
24
+
25
+ This creates `the_holy_scripture.txt` in the current directory. To choose a
26
+ different destination, pass it as the first argument:
27
+
28
+ ```sh
29
+ ./bee output.txt
30
+ ```
31
+
32
+ ## Install
33
+
34
+ ```sh
35
+ install -m 755 bee /usr/local/bin/bee
36
+ ```
37
+
38
+ ## Packages
39
+
40
+ Release builds provide packages for Debian/Ubuntu (`.deb`), Fedora/RHEL/openSUSE
41
+ (`.rpm`), and Alpine (`.apk`), plus a portable archive. Packaging definitions
42
+ for Arch/AUR, Homebrew on Linux, Nix, and Snap are in [`packaging`](packaging).
43
+
44
+ The package is named `bee` where that name is available. Registries where it is
45
+ already owned by another project use `bee-holy-scripture`. Every package installs
46
+ the command as `bee`.
47
+
48
+ ### npm
49
+
50
+ ```sh
51
+ npm install --global bee-holy-scripture
52
+ ```
53
+
54
+ ### PyPI
55
+
56
+ ```sh
57
+ pipx install bee-holy-scripture
58
+ bee --version
59
+ ```
60
+
61
+ ### RubyGems
62
+
63
+ ```sh
64
+ gem install bee-holy-scripture
65
+ bee --version
66
+ ```
67
+
68
+ ### Nix
69
+
70
+ ```sh
71
+ nix profile install github:redpanas/bee
72
+ ```
73
+
74
+ On installations where flakes are not enabled globally:
75
+
76
+ ```sh
77
+ nix --extra-experimental-features "nix-command flakes" \
78
+ profile install github:redpanas/bee
79
+ ```
80
+
81
+ ## License
82
+
83
+ The source code in this repository is available under the [MIT License](LICENSE).
84
+ Bee Movie and its screenplay belong to their respective copyright holders and
85
+ are not included in this repository.
data/exe/bee ADDED
@@ -0,0 +1,67 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require "fileutils"
5
+ require "net/http"
6
+ require "tempfile"
7
+ require "uri"
8
+
9
+ VERSION = "1.0.0"
10
+ SOURCE_URL = "https://gist.githubusercontent.com/MattIPv4/045239bc27b16b2bcf7a3a9a4648c08a/raw/2411e31293a35f3e565f61e7490a806d4720ea7e/bee%2520movie%2520script"
11
+ REPLACEMENTS = {
12
+ "employees" => "3mp10y33s", "employment" => "3mp10ym3n7",
13
+ "professional" => "pr0f3$$!0n@1", "profession" => "pr0f3$$!0n",
14
+ "employers" => "3mp10y3rs", "employer" => "3mp10y3r",
15
+ "employee" => "3mp10y33", "employed" => "3mp10y3d",
16
+ "workers" => "w0rk3rs", "working" => "w0rk!n9", "worked" => "w0rk3d",
17
+ "worker" => "w0rk3r", "careers" => "c@r33rs", "business" => "8u$!n3$$",
18
+ "manager" => "m@n@g3r", "salary" => "$@1@ry", "career" => "c@r33r",
19
+ "office" => "0ff!(3", "wages" => "w@g3s", "staff" => "$7@ff",
20
+ "hired" => "#!r3d", "fired" => "f!r3d", "works" => "w0rks",
21
+ "wage" => "w@g3", "hire" => "#!r3", "jobs" => "j08s", "work" => "w0rk",
22
+ "boss" => "80$$", "job" => "j08"
23
+ }.freeze
24
+
25
+ def usage(io = $stdout)
26
+ io.puts "Usage: bee [OUTPUT_FILE]\n\nDownload and publish the holy scripture."
27
+ end
28
+
29
+ case ARGV.first
30
+ when "-h", "--help"
31
+ usage
32
+ exit
33
+ when "-v", "--version"
34
+ puts "bee #{VERSION}"
35
+ exit
36
+ end
37
+
38
+ if ARGV.first&.start_with?("-")
39
+ warn "bee: unknown option: #{ARGV.first}"
40
+ exit 2
41
+ end
42
+ if ARGV.length > 1
43
+ usage($stderr)
44
+ exit 2
45
+ end
46
+
47
+ begin
48
+ output = File.expand_path(ARGV.first || "the_holy_scripture.txt")
49
+ text = Net::HTTP.get(URI(SOURCE_URL))
50
+ REPLACEMENTS.each do |word, replacement|
51
+ text.gsub!(/\b#{Regexp.escape(word)}\b/i, replacement)
52
+ end
53
+
54
+ temporary = Tempfile.new([".bee", ".tmp"], File.dirname(output), encoding: "UTF-8")
55
+ begin
56
+ temporary.write(text)
57
+ temporary.close
58
+ FileUtils.mv(temporary.path, output)
59
+ ensure
60
+ temporary.close!
61
+ end
62
+
63
+ puts "Published the holy scripture to #{ARGV.first || 'the_holy_scripture.txt'}"
64
+ rescue StandardError => e
65
+ warn "bee: #{e.message}"
66
+ exit 1
67
+ end
metadata ADDED
@@ -0,0 +1,45 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bee-holy-scripture
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Panagiotis Kouzaris
8
+ bindir: exe
9
+ cert_chain: []
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies: []
12
+ description: Downloads a pinned Bee Movie dialogue transcript and converts work-related
13
+ words to leetspeak.
14
+ executables:
15
+ - bee
16
+ extensions: []
17
+ extra_rdoc_files: []
18
+ files:
19
+ - LICENSE
20
+ - README.md
21
+ - exe/bee
22
+ homepage: https://github.com/redpanas/bee
23
+ licenses:
24
+ - MIT
25
+ metadata:
26
+ bug_tracker_uri: https://github.com/redpanas/bee/issues
27
+ source_code_uri: https://github.com/redpanas/bee
28
+ rdoc_options: []
29
+ require_paths:
30
+ - lib
31
+ required_ruby_version: !ruby/object:Gem::Requirement
32
+ requirements:
33
+ - - ">="
34
+ - !ruby/object:Gem::Version
35
+ version: '2.6'
36
+ required_rubygems_version: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ requirements: []
42
+ rubygems_version: 4.0.16
43
+ specification_version: 4
44
+ summary: The holy scripture downloader
45
+ test_files: []