rage_flip 2.0.0 → 2.0.1
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 +6 -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: 94c56f089c2fecf5f2940718810fbe9f6d465d9f1aaf9a2a607fc5fe30184176
|
4
|
+
data.tar.gz: f5310808c11225e8db1904b619550a968cc8565140bb9eb4aaacdc84ff9890f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75f3a2cfce3a68854ef0382c8501516564f0da29d145e641d018f3b52f92975610586a7b363af728d1a9b0662b34f12dbb961ab78d967e52bbe72111e5b67e54
|
7
|
+
data.tar.gz: '0898b36fd3bd7f7252755f5b4e92004025a10907e73390d1746c572eb63e5530c01e4d658da897fba35ef1161dcca945400b1f26bdc501746760ab42f06a5773'
|
data/README.md
CHANGED
data/lib/rage_flip/emote.rb
CHANGED
@@ -80,7 +80,7 @@ module RageFlip
|
|
80
80
|
|
81
81
|
def self.process(emote_name)
|
82
82
|
emote_name = emote_name.downcase
|
83
|
-
|
83
|
+
|
84
84
|
if all_emotes.key?(emote_name)
|
85
85
|
all_emotes[emote_name]
|
86
86
|
end
|
@@ -102,7 +102,7 @@ module RageFlip
|
|
102
102
|
|
103
103
|
def self.list_custom_emotes
|
104
104
|
custom_emotes = load_custom_emotes
|
105
|
-
|
105
|
+
|
106
106
|
if custom_emotes.empty?
|
107
107
|
return "No custom emotes found. Use 'emote init-custom' to create a custom emote config file."
|
108
108
|
end
|
@@ -117,19 +117,19 @@ module RageFlip
|
|
117
117
|
sorted_emotes.each do |name, emote|
|
118
118
|
output << " #{name.ljust(max_name_length + 2)} - #{emote}"
|
119
119
|
end
|
120
|
-
|
120
|
+
|
121
121
|
config_path = custom_config_path
|
122
122
|
if config_path
|
123
123
|
output << ""
|
124
124
|
output << "Config file: #{config_path}"
|
125
125
|
end
|
126
|
-
|
126
|
+
|
127
127
|
output.join("\n")
|
128
128
|
end
|
129
129
|
|
130
130
|
def self.init_custom_config
|
131
131
|
FileUtils.mkdir_p(CONFIG_DIR) unless Dir.exist?(CONFIG_DIR)
|
132
|
-
|
132
|
+
|
133
133
|
if File.exist?(JSON_CONFIG_FILE) || File.exist?(YAML_CONFIG_FILE)
|
134
134
|
existing_file = File.exist?(JSON_CONFIG_FILE) ? JSON_CONFIG_FILE : YAML_CONFIG_FILE
|
135
135
|
return "Custom emote config already exists: #{existing_file}"
|
@@ -144,7 +144,7 @@ module RageFlip
|
|
144
144
|
|
145
145
|
File.write(JSON_CONFIG_FILE, JSON.pretty_generate(sample_config))
|
146
146
|
refresh_emotes
|
147
|
-
|
147
|
+
|
148
148
|
"Custom emote config initialized: #{JSON_CONFIG_FILE}\n" +
|
149
149
|
"Edit this file to add your custom emotes, then use 'emote list-custom' to see them."
|
150
150
|
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.1
|
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
|