rage_flip 1.4.1 → 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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1c50e00d80941e7d487ffc2b6e2c8d60e823e3c1446de384ac5b3d6e100798eb
4
- data.tar.gz: a5321c6e19ca86f50d26d4c2dd996d285325396fe5475936cd3ebe45205b5067
3
+ metadata.gz: 94c56f089c2fecf5f2940718810fbe9f6d465d9f1aaf9a2a607fc5fe30184176
4
+ data.tar.gz: f5310808c11225e8db1904b619550a968cc8565140bb9eb4aaacdc84ff9890f3
5
5
  SHA512:
6
- metadata.gz: 5d7b886eabbb74d4dd49ef75b3f7225cbbec34c4d9a105da14108098437261e21ac8013a1698ac4de8c21ef29d00c0ee490ebc3b6a127f5ca15835d660d9784e
7
- data.tar.gz: f736f66def966046e87a2aec005a3a6407846648ff1a2a35017c4f72147c628e3d28796e10962493d167c5fc4023a5da984f59f326ebfa499fd017de5378d403
6
+ metadata.gz: 75f3a2cfce3a68854ef0382c8501516564f0da29d145e641d018f3b52f92975610586a7b363af728d1a9b0662b34f12dbb961ab78d967e52bbe72111e5b67e54
7
+ data.tar.gz: '0898b36fd3bd7f7252755f5b4e92004025a10907e73390d1746c572eb63e5530c01e4d658da897fba35ef1161dcca945400b1f26bdc501746760ab42f06a5773'
data/README.md CHANGED
@@ -47,7 +47,7 @@ The classic table flip command flips text upside down with the iconic table flip
47
47
 
48
48
  ```bash
49
49
  table_flip "Hello World"
50
- # Output: (╯°□°)╯︵ plɹoM ollǝH ┻━┻
50
+ # Output: (╯°□°)╯︵┻plɹoM ollǝH
51
51
  # Result is automatically copied to clipboard
52
52
  ```
53
53
 
@@ -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
@@ -31,8 +31,8 @@ module RageFlip
31
31
  end
32
32
 
33
33
  def self.table_flip(text)
34
- table_flip_front = "(╯°□°)╯︵ "
35
- table_flip_back = " ┻━┻"
34
+ table_flip_front = "(╯°□°)╯︵┻"
35
+ table_flip_back = " "
36
36
 
37
37
  "#{table_flip_front}#{flip(text)}#{table_flip_back}"
38
38
  end
@@ -1,3 +1,3 @@
1
1
  module RageFlip
2
- VERSION = "1.4.1"
2
+ VERSION = "2.0.1"
3
3
  end
@@ -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: 1.4.1
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-05 00:00:00.000000000 Z
11
+ date: 2025-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -103,7 +103,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  requirements:
104
104
  - - ">="
105
105
  - !ruby/object:Gem::Version
106
- version: '0'
106
+ version: 3.0.0
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
109
  - - ">="