charred 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/bin/charred-messages +3 -1
- data/lib/charred/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
data/bin/charred-messages
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'tinder'
|
2
2
|
require 'term/ansicolor'
|
3
|
+
require 'shellwords'
|
3
4
|
|
4
5
|
include Term::ANSIColor
|
5
6
|
|
@@ -12,7 +13,8 @@ room.listen do |m|
|
|
12
13
|
print green { bold { m.user.name } }
|
13
14
|
print blue { bold { ": " } }
|
14
15
|
print white { m.body }, "\n"
|
15
|
-
|
16
|
+
message = Shellwords.escape(m.user.name + ": " + m.body)
|
17
|
+
system("tmux display-message #{message}")
|
16
18
|
else
|
17
19
|
print red { "unhandled message #{m.inspect} \n" }
|
18
20
|
end
|
data/lib/charred/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: charred
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -111,7 +111,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
111
111
|
version: '0'
|
112
112
|
segments:
|
113
113
|
- 0
|
114
|
-
hash:
|
114
|
+
hash: 2902659307718396724
|
115
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
116
116
|
none: false
|
117
117
|
requirements:
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
version: '0'
|
121
121
|
segments:
|
122
122
|
- 0
|
123
|
-
hash:
|
123
|
+
hash: 2902659307718396724
|
124
124
|
requirements: []
|
125
125
|
rubyforge_project:
|
126
126
|
rubygems_version: 1.8.21
|