ruggby 0.3.0 → 0.3.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.
- data/CHANGELOG.rdoc +3 -1
- data/Rakefile +1 -1
- data/lib/ruggby/string_encoder.rb +5 -2
- data/ruggby.gemspec +1 -1
- metadata +5 -5
data/CHANGELOG.rdoc
CHANGED
data/Rakefile
CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
2
2
|
require 'rake'
|
3
3
|
require 'echoe'
|
4
4
|
|
5
|
-
Echoe.new('ruggby', '0.3.
|
5
|
+
Echoe.new('ruggby', '0.3.1') do |p|
|
6
6
|
p.description = 'Gadu Gadu protocol client implementation in Ruby language'
|
7
7
|
p.url = 'https://github.com/mensfeld/ruGGby'
|
8
8
|
p.author = 'Maciej Mensfeld'
|
@@ -9,7 +9,7 @@ module RuGGby
|
|
9
9
|
INPUT = 'UTF-8'
|
10
10
|
OUTPUT = 'windows-1250'
|
11
11
|
|
12
|
-
STRIP_REGEXP = /<span
|
12
|
+
STRIP_REGEXP = /<span.*?>(.*)<\/span>/ix
|
13
13
|
|
14
14
|
# Convert message into INPUT format
|
15
15
|
def self.to_input(msg)
|
@@ -34,9 +34,12 @@ module RuGGby
|
|
34
34
|
|
35
35
|
# Perform both strip and utf8 conversion
|
36
36
|
def self.complex(msg)
|
37
|
-
to_input(strip(msg))
|
37
|
+
add_newlines(to_input(strip(msg)))
|
38
38
|
end
|
39
39
|
|
40
|
+
def self.add_newlines(msg)
|
41
|
+
msg.gsub!('<br>', "\r\n")
|
42
|
+
end
|
40
43
|
end
|
41
44
|
|
42
45
|
end
|
data/ruggby.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruggby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-04-08 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|
16
|
-
requirement: &
|
16
|
+
requirement: &8344420 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 2.0.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *8344420
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: mocha
|
27
|
-
requirement: &
|
27
|
+
requirement: &8343760 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ! '>='
|
@@ -32,7 +32,7 @@ dependencies:
|
|
32
32
|
version: '0'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *8343760
|
36
36
|
description: Gadu Gadu protocol client implementation in Ruby language
|
37
37
|
email: maciej@mensfeld.pl
|
38
38
|
executables: []
|