rage_flip 2.0.0 → 2.0.2
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 +4 -4
- data/README.md +1 -1
- data/lib/rage_flip/emote.rb +7 -6
- data/lib/rage_flip/flipper.rb +2 -2
- data/lib/rage_flip/version.rb +1 -1
- data/spec/rage_flip_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fde40cd0f09c1b29ea4432ed15263337b829700027ece7042ab2b869c83932b
|
4
|
+
data.tar.gz: f6092a70d572ee2424c87957ead7d7ca23b26eb0dbc9d32106a368411b2ae90b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbe2e47df3b6bc470440d21675cf2f1e560a4fff69fb933cde8a2cc825a86ad0a9e007f131daedabaa9c594497ab2eb13198f4a62d5296be5e8b28f14be5ed1a
|
7
|
+
data.tar.gz: b72a7d58514b593948f440d600a58e1780774e3d5f29840ee37c7317378914427f5cf63c7dff353b75f0b03fc0218154a83128313de5fcea16760a81fbd30f27
|
data/README.md
CHANGED
data/lib/rage_flip/emote.rb
CHANGED
@@ -25,6 +25,7 @@ module RageFlip
|
|
25
25
|
"heresatable" => "┬─┬ ノ( ゜-゜ノ)",
|
26
26
|
"javaflip" => "(╯°□°)╯︵ ┻ɐʌɐɾ┻",
|
27
27
|
"kungfuhamster" => " ()__()\n / o o\\ ;\n |'=Y=';-/\n { \\ / }\n mmm mmm ",
|
28
|
+
"middlefinger" => "🖕",
|
28
29
|
"noevil" => "🙈🙉🙊",
|
29
30
|
"omw" => "On my way!",
|
30
31
|
"optn" => "⌥",
|
@@ -80,7 +81,7 @@ module RageFlip
|
|
80
81
|
|
81
82
|
def self.process(emote_name)
|
82
83
|
emote_name = emote_name.downcase
|
83
|
-
|
84
|
+
|
84
85
|
if all_emotes.key?(emote_name)
|
85
86
|
all_emotes[emote_name]
|
86
87
|
end
|
@@ -102,7 +103,7 @@ module RageFlip
|
|
102
103
|
|
103
104
|
def self.list_custom_emotes
|
104
105
|
custom_emotes = load_custom_emotes
|
105
|
-
|
106
|
+
|
106
107
|
if custom_emotes.empty?
|
107
108
|
return "No custom emotes found. Use 'emote init-custom' to create a custom emote config file."
|
108
109
|
end
|
@@ -117,19 +118,19 @@ module RageFlip
|
|
117
118
|
sorted_emotes.each do |name, emote|
|
118
119
|
output << " #{name.ljust(max_name_length + 2)} - #{emote}"
|
119
120
|
end
|
120
|
-
|
121
|
+
|
121
122
|
config_path = custom_config_path
|
122
123
|
if config_path
|
123
124
|
output << ""
|
124
125
|
output << "Config file: #{config_path}"
|
125
126
|
end
|
126
|
-
|
127
|
+
|
127
128
|
output.join("\n")
|
128
129
|
end
|
129
130
|
|
130
131
|
def self.init_custom_config
|
131
132
|
FileUtils.mkdir_p(CONFIG_DIR) unless Dir.exist?(CONFIG_DIR)
|
132
|
-
|
133
|
+
|
133
134
|
if File.exist?(JSON_CONFIG_FILE) || File.exist?(YAML_CONFIG_FILE)
|
134
135
|
existing_file = File.exist?(JSON_CONFIG_FILE) ? JSON_CONFIG_FILE : YAML_CONFIG_FILE
|
135
136
|
return "Custom emote config already exists: #{existing_file}"
|
@@ -144,7 +145,7 @@ module RageFlip
|
|
144
145
|
|
145
146
|
File.write(JSON_CONFIG_FILE, JSON.pretty_generate(sample_config))
|
146
147
|
refresh_emotes
|
147
|
-
|
148
|
+
|
148
149
|
"Custom emote config initialized: #{JSON_CONFIG_FILE}\n" +
|
149
150
|
"Edit this file to add your custom emotes, then use 'emote list-custom' to see them."
|
150
151
|
end
|
data/lib/rage_flip/flipper.rb
CHANGED
data/lib/rage_flip/version.rb
CHANGED
data/spec/rage_flip_spec.rb
CHANGED
@@ -20,8 +20,8 @@ RSpec.describe RageFlip do
|
|
20
20
|
describe ".table_flip" do
|
21
21
|
it "adds table flip emoticons to flipped text" do
|
22
22
|
result = RageFlip::Flipper.table_flip("test")
|
23
|
-
expect(result).to include("(╯°□°)
|
24
|
-
expect(result).to include("
|
23
|
+
expect(result).to include("(╯°□°)╯︵┻")
|
24
|
+
expect(result).to include("┻")
|
25
25
|
expect(result).to include("ʇsǝʇ") # flipped version of 'test'
|
26
26
|
end
|
27
27
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rage_flip
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Powell
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-10-
|
11
|
+
date: 2025-10-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|