itt 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/itt.rb +6 -3
- data/lib/version.rb +3 -0
- metadata +17 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZTcwM2RmNmVhYTMwNGIxZWRlYjlkZmJiNGRmYWRhZWY4OWVmY2JiYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NjliNjAxNTFiYjRjNzAxZmE4YzFkZDAwZDUwNWZiNWFiZmI0MWZiMA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2MwMDRlYTQxMWYwZmY0NTRmOTlmYzk2NmFkYjQ4ZTZmZjU1MjJkYTI4NjYz
|
10
|
+
NjU0MDlmZTZmNzE5YWMwZDJlMTJmYWE4YmQyMzY2MjBkYTE0ODcxZGRmNDhh
|
11
|
+
MTgzZjM4ODI1OWU3MWI2M2Y4ZjM1Y2NhNjk3NGVlYTVhNGQyZDQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OTVlMjZlNGJhNTg5OGU0MmE0YTg4NjFiNWM5MzgxYjE4NmJmMmI5ZDE3ZmE0
|
14
|
+
NDA5ODhjNDc5YzAyNWY5ODg3ZDRkMmIyYTRhMjdiYjE2Mjg3MWU3YTA0M2E5
|
15
|
+
ZmU3NGM5Y2Q0ODBmZjg0MDE2ZGM1ZTBjMzk1ODg5NzU1NjViNjQ=
|
data/lib/itt.rb
CHANGED
@@ -1,5 +1,6 @@
|
|
1
|
+
require 'version'
|
2
|
+
require 'rumoji'
|
1
3
|
module ITT
|
2
|
-
VERSION = '0.1.5'
|
3
4
|
# Predefined colors, as close to the default iTerm2 tab colors as possible
|
4
5
|
COLORS = {
|
5
6
|
red: [214, 110, 107],
|
@@ -16,14 +17,16 @@ module ITT
|
|
16
17
|
HELP << "Sets the color and/or title of the current iTerm2 tab\n\n"
|
17
18
|
HELP << "USAGE:\nitt [color] title"
|
18
19
|
HELP << "\nExamples:\n\n\titt purple web-server\n\titt p web-server"
|
19
|
-
HELP << "\titt orange rails-console\n
|
20
|
+
HELP << "\titt orange rails-console\n"
|
21
|
+
HELP << "\titt blue :whale: docker\n\n"
|
20
22
|
HELP << "Clear title and color:\n\n"
|
21
23
|
HELP << "\titt clear\n\n"
|
22
24
|
HELP << "Colors: #{COLORS.keys.map(&:to_s).join(', ')}\n\n"
|
25
|
+
HELP << "Emoji cheat-sheet: http://www.emoji-cheat-sheet.com\n\n"
|
23
26
|
|
24
27
|
# Escape sequence to set the title
|
25
28
|
def set_title(title)
|
26
|
-
"\e];#{title}\007"
|
29
|
+
"\e];#{Rumoji.decode(title)}\007"
|
27
30
|
end
|
28
31
|
|
29
32
|
# Escape sequences to set the color
|
data/lib/version.rb
ADDED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: itt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Ladachowski
|
@@ -9,7 +9,21 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2015-09-06 00:00:00.000000000 Z
|
12
|
-
dependencies:
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rumoji
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ~>
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0.4'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ~>
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.4'
|
13
27
|
description: iTerm2 tabs color and title util
|
14
28
|
email: adam@saiden.pl
|
15
29
|
executables:
|
@@ -19,6 +33,7 @@ extra_rdoc_files: []
|
|
19
33
|
files:
|
20
34
|
- bin/itt
|
21
35
|
- lib/itt.rb
|
36
|
+
- lib/version.rb
|
22
37
|
homepage: https://github.com/aladac/itt
|
23
38
|
licenses:
|
24
39
|
- MIT
|