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 +4 -4
- data/CHANGELOG.md +1 -0
- data/README.md +12 -0
- data/lib/rage_flip/emote.rb +10 -0
- data/lib/rage_flip/version.rb +1 -1
- data/spec/rage_flip_spec.rb +7 -0
- 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: 216f4365cd7a026366fec93f1c3fed6c05e07ba1bebdc3857930002dc93868d4
|
|
4
|
+
data.tar.gz: a3256822c6849e2384beb3481bec49f0dec448811240dfcf8f5396b7cf20d198
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
|
data/lib/rage_flip/emote.rb
CHANGED
|
@@ -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|
|
data/lib/rage_flip/version.rb
CHANGED
data/spec/rage_flip_spec.rb
CHANGED
|
@@ -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("(ಠ_ಠ)")
|