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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # Charred
2
2
 
3
- A campfire client in 34 lines. Needs TMUX. Splits your current pane.
3
+ A campfire client in 36 lines. Needs TMUX. Splits your current pane.
4
4
 
5
5
  ## Installation
6
6
 
@@ -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
- system("tmux display-message '#{m.user.name}: #{m.body}'")
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
@@ -1,3 +1,3 @@
1
1
  module Charred
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
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.2
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: -2897046234761437113
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: -2897046234761437113
123
+ hash: 2902659307718396724
124
124
  requirements: []
125
125
  rubyforge_project:
126
126
  rubygems_version: 1.8.21