rage_flip 1.2.1 → 1.3.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.
- checksums.yaml +4 -4
- data/exe/emote +30 -10
- data/lib/rage_flip/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e92b170728e5584120a16f6b256bbffc687dacdfb2505863d61464b81709f4af
|
4
|
+
data.tar.gz: d67d434844ee3adbaebcb3b5845d4cf5d15d381a460525de2ee0139099da2722
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3930a34c2019427562f245bc7bcb7f9b5f944e5903bcafe43a6c1c4e7c2141c9e208e86d8d86a33246a0d2199b8a3874a3a4c65548c3eb661cfbcc241bb56257
|
7
|
+
data.tar.gz: 7298f2475ca9644ba1f30a66a0aa8fa00ab906f9719bdf2dac46789f6db5afe2ac5ecef7e9fa25508a28ad083e55b6253f119e9cec17a4afec12b5fcbb4cb2c8
|
data/exe/emote
CHANGED
@@ -7,25 +7,45 @@ if ARGV.length == 0
|
|
7
7
|
exit 0
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
12
|
-
if emote_name == "list"
|
10
|
+
# Handle "list" command
|
11
|
+
if ARGV.length == 1 && ARGV[0].downcase == "list"
|
13
12
|
puts RageFlip::Emote.list_emotes
|
14
13
|
exit 0
|
15
14
|
end
|
16
15
|
|
17
|
-
|
16
|
+
# Process multiple emote arguments
|
17
|
+
results = []
|
18
|
+
unknown_emotes = []
|
19
|
+
|
20
|
+
ARGV.each do |arg|
|
21
|
+
emote_name = arg.downcase
|
22
|
+
result = RageFlip::Emote.process(emote_name)
|
23
|
+
|
24
|
+
if result
|
25
|
+
results << result
|
26
|
+
else
|
27
|
+
unknown_emotes << emote_name
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
if unknown_emotes.any?
|
32
|
+
puts "Unknown emote(s): #{unknown_emotes.join(', ')}"
|
33
|
+
puts ""
|
34
|
+
puts RageFlip::Emote.list_emotes
|
35
|
+
exit 1
|
36
|
+
end
|
18
37
|
|
19
|
-
if
|
38
|
+
if results.any?
|
39
|
+
# Concatenate all results with no spaces
|
40
|
+
final_result = results.join("")
|
41
|
+
|
20
42
|
# Copy to clipboard
|
21
|
-
if RageFlip::Clipboard.copy(
|
43
|
+
if RageFlip::Clipboard.copy(final_result)
|
22
44
|
else
|
23
45
|
puts "Failed to copy to clipboard, but here's your emote:"
|
24
46
|
end
|
25
|
-
puts
|
47
|
+
puts final_result
|
26
48
|
else
|
27
|
-
puts "
|
28
|
-
puts ""
|
29
|
-
puts RageFlip::Emote.list_emotes
|
49
|
+
puts "No valid emotes found"
|
30
50
|
exit 1
|
31
51
|
end
|
data/lib/rage_flip/version.rb
CHANGED