rage_flip 2.6.0 → 2.6.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: 3e5814ed80482929c686ad95a1a51d3fc2b56fe62bc56d469d44841fc6601f66
4
- data.tar.gz: 939c6f910ada84f9e035b1c983fd24f9d4d9547dd2d8e247f9d74cd8a2f90a08
3
+ metadata.gz: 216f4365cd7a026366fec93f1c3fed6c05e07ba1bebdc3857930002dc93868d4
4
+ data.tar.gz: a3256822c6849e2384beb3481bec49f0dec448811240dfcf8f5396b7cf20d198
5
5
  SHA512:
6
- metadata.gz: 473b551e8fc88390d3f5117ee4a540913eccf119e69b6fe16ddb111db916ac785909480784d4a6075d6ab4a717e3e4afcd83fdf8d4c842955a9457adb514e3ac
7
- data.tar.gz: e1e96548beb53e6d08245d1a4cfbec010a583be7e75ccbf553334d7441def7e548e4c4057ab8ca09dc919eda32461cc69d320732d90416999090d30821d7ba11
6
+ metadata.gz: 87cdc366d70375cc3acb84278e9f5901230ebb4b2ab828974fbac2d9cd77bebbd7babb97ce84d6eb8797162d53988772032c298430fe11cc48b8ea7217b92949
7
+ data.tar.gz: 1cc819347d8550d0a73e65bc0c9638b2cc3885d2f2c1cc38b8c32048252e622c8f6778b3c48ac63630973b58691a8f15bf767ec545fd09be857ec6a763868b54
data/CHANGELOG.md CHANGED
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8
8
  ## [Unreleased]
9
9
 
10
10
  ### Added
11
+ - `emote celsius`, `fahrenheit`, `kelvin`, and `rankine` temperature unit symbols (℃ ℉ K °R)
11
12
  - `italic` command that swaps letters for slanted Unicode alternatives, or script ones with `--script`
12
13
  - `flip_text` command for flipping text without any emoticons
13
14
  - `emote` command system with disapproval and animal+poop combinations
data/README.md CHANGED
@@ -111,6 +111,15 @@ emote shft # Output: ⇧
111
111
  emote shift # Output: ⇧
112
112
  ```
113
113
 
114
+ Temperature units:
115
+
116
+ ```bash
117
+ emote celsius # Output: ℃
118
+ emote fahrenheit # Output: ℉
119
+ emote kelvin # Output: K (U+212A KELVIN SIGN)
120
+ emote rankine # Output: °R
121
+ ```
122
+
114
123
  #### Special Emotes
115
124
  Multi-line and unique expressions:
116
125
 
@@ -255,6 +264,9 @@ The gem includes an extensive collection of emotes organized into categories:
255
264
  ### Keyboard Symbols
256
265
  - `cmd`/`command` (⌘), `optn`/`option` (⌥), `cntl` (⌃), `shft`/`shift` (⇧), `cmd-` (⌘-)
257
266
 
267
+ ### Temperature Units
268
+ - `celsius` (℃), `fahrenheit` (℉), `kelvin` (K), `rankine` (°R)
269
+
258
270
  ### Special Characters
259
271
  - `noevil` (🙈🙉🙊), `omw` ("On my way!"), `heresatable`, `kungfuhamster` (ASCII art), `unsee`
260
272
 
@@ -34,6 +34,12 @@ module RageFlip
34
34
  "shft" => "⇧",
35
35
  "shift" => "⇧",
36
36
 
37
+ # Temperature Units
38
+ "celsius" => "\u2103", # ℃ DEGREE CELSIUS
39
+ "fahrenheit" => "\u2109", # ℉ DEGREE FAHRENHEIT
40
+ "kelvin" => "\u212A", # K KELVIN SIGN
41
+ "rankine" => "\u00B0R", # °R (Unicode has no dedicated Rankine sign)
42
+
37
43
  # Smileys & People
38
44
  "grin" => "😀",
39
45
  "smiley" => "😃",
@@ -1605,6 +1611,10 @@ module RageFlip
1605
1611
  description: "Keyboard Shortcuts",
1606
1612
  emotes: ["cmd-", "cmd", "command", "cntl", "optn", "option", "shft", "shift"]
1607
1613
  },
1614
+ "temperature" => {
1615
+ description: "Temperature Units",
1616
+ emotes: ["celsius", "fahrenheit", "kelvin", "rankine"]
1617
+ },
1608
1618
  "smileys" => {
1609
1619
  description: "Smileys & People",
1610
1620
  emotes: EMOTES.keys.select { |k|
@@ -1,3 +1,3 @@
1
1
  module RageFlip
2
- VERSION = "2.6.0"
2
+ VERSION = "2.6.1"
3
3
  end
@@ -233,6 +233,13 @@ RSpec.describe RageFlip do
233
233
  expect(result).to eq("🐶💩")
234
234
  end
235
235
 
236
+ it "returns temperature unit symbols" do
237
+ expect(RageFlip::Emote.process("celsius")).to eq("℃")
238
+ expect(RageFlip::Emote.process("fahrenheit")).to eq("℉")
239
+ expect(RageFlip::Emote.process("kelvin")).to eq("K")
240
+ expect(RageFlip::Emote.process("rankine")).to eq("°R")
241
+ end
242
+
236
243
  it "handles case insensitive input" do
237
244
  result = RageFlip::Emote.process("DISAPPROVAL")
238
245
  expect(result).to eq("(ಠ_ಠ)")
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: 2.6.0
4
+ version: 2.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Powell