rumeme 0.1.6 → 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +8 -0
- data/lib/rumeme/sms_reply.rb +3 -3
- data/lib/rumeme/version.rb +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
@@ -1,3 +1,10 @@
|
|
1
|
+
Version 0.1.7 - 2010-03-16
|
2
|
+
===============================================================================
|
3
|
+
|
4
|
+
antlypls (1):
|
5
|
+
fix parsing replies with + number format
|
6
|
+
|
7
|
+
|
1
8
|
Version 0.1.6 - 2010-03-12
|
2
9
|
===============================================================================
|
3
10
|
|
@@ -60,3 +67,4 @@ antlypls (5):
|
|
60
67
|
|
61
68
|
|
62
69
|
|
70
|
+
|
data/lib/rumeme/sms_reply.rb
CHANGED
@@ -23,13 +23,13 @@ module Rumeme
|
|
23
23
|
p "parsing line: #{line}"
|
24
24
|
|
25
25
|
message_id, status, message, phone, when_ = case line
|
26
|
-
when
|
26
|
+
when /^(\d+)\s(\d)\s(\d+)/
|
27
27
|
#process delivery report
|
28
28
|
[$1.to_i, $2.to_i, nil, nil, $3.to_i]
|
29
|
-
when
|
29
|
+
when /^(\d+)\s\+?(\d+)\s(\d+)\s(.+)/
|
30
30
|
#process message with id
|
31
31
|
[$1.to_i, MessageStatus::NONE, unescape($4), $2, $3.to_i]
|
32
|
-
when
|
32
|
+
when /^\+?(\d+)\s(\d+)\s(.+)/
|
33
33
|
#process message without id
|
34
34
|
[nil, MessageStatus::NONE, unescape($3), $1, $2.to_i]
|
35
35
|
else
|
data/lib/rumeme/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 7
|
9
|
+
version: 0.1.7
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- antlypls
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-16 00:00:00 +04:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|