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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/exe/emote +30 -10
  3. data/lib/rage_flip/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fa9cda34297e4bfd6fd10db91ca8b3335f95bd627efa60de584885b50d981ba5
4
- data.tar.gz: a21987321b127f04a7cf9799d91f87b4892a22579b6c6ee12624e34545360ca6
3
+ metadata.gz: e92b170728e5584120a16f6b256bbffc687dacdfb2505863d61464b81709f4af
4
+ data.tar.gz: d67d434844ee3adbaebcb3b5845d4cf5d15d381a460525de2ee0139099da2722
5
5
  SHA512:
6
- metadata.gz: 1e2df21e6f7d91375a6d1e44bf02a2b9431d77054e079623c6d3abb83a5d2fd3de7ada309b18285846157a5416da1876fd8f38e22e27348aeee5481822a5d4a7
7
- data.tar.gz: 66215a4590a50a2f70000c9f3314813968e19b151bb912e2cf51cb0cdf909816b21cea27d146a14b2632c72ee39649eda0376511d53bea8f4b9360319ccaeb5b
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
- emote_name = ARGV[0].downcase
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
- result = RageFlip::Emote.process(emote_name)
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 result
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(result)
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 result
47
+ puts final_result
26
48
  else
27
- puts "Unknown emote: #{emote_name}"
28
- puts ""
29
- puts RageFlip::Emote.list_emotes
49
+ puts "No valid emotes found"
30
50
  exit 1
31
51
  end
@@ -1,3 +1,3 @@
1
1
  module RageFlip
2
- VERSION = "1.2.1"
2
+ VERSION = "1.3.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rage_flip
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Powell