skates 0.2.14 → 0.2.15
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/lib/skates/xmpp_connection.rb +2 -1
- data/lib/skates.rb +1 -0
- metadata +2 -1
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ begin
|
|
15
15
|
gem.add_dependency('nokogiri', ">= 1.4.1")
|
16
16
|
gem.add_dependency('superfeedr-sax-machine', ">= 0.0.23")
|
17
17
|
gem.add_dependency('templater')
|
18
|
-
gem.requirements = ["eventmachine", "yaml", "fileutils", "log4r", "nokogiri", "superfeedr-sax-machine", "templater", "optparse", "digest/sha1", "base64", "resolv"]
|
18
|
+
gem.requirements = ["eventmachine", "yaml", "fileutils", "log4r", "nokogiri", "superfeedr-sax-machine", "templater", "optparse", "digest/sha1", "base64", "resolv", "utf8cleaner"]
|
19
19
|
gem.executables = "skates"
|
20
20
|
gem.files = [ "bin/skates",
|
21
21
|
"lib/skates.rb",
|
@@ -167,12 +167,13 @@ module Skates
|
|
167
167
|
Skates.logger.debug {
|
168
168
|
"SENDING : " + string
|
169
169
|
}
|
170
|
-
send_data string
|
170
|
+
send_data UTF8Cleaner.clean(string)
|
171
171
|
end
|
172
172
|
|
173
173
|
##
|
174
174
|
# receive_data is called when data is received. It is then passed to the parser.
|
175
175
|
def receive_data(data)
|
176
|
+
data = UTF8Cleaner.clean(data)
|
176
177
|
begin
|
177
178
|
Skates.logger.debug {
|
178
179
|
"RECEIVED : #{data}"
|
data/lib/skates.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: skates
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- julien Genestoux
|
@@ -134,6 +134,7 @@ requirements:
|
|
134
134
|
- digest/sha1
|
135
135
|
- base64
|
136
136
|
- resolv
|
137
|
+
- utf8cleaner
|
137
138
|
rubyforge_project: skates
|
138
139
|
rubygems_version: 1.3.5
|
139
140
|
signing_key:
|