rumeme 0.1.6 → 0.1.7

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 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
+
@@ -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 /(\d+)\s(\d)\s(\d+)/
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 /(\d+)\s(\d+)\s(\d+)\s(.+)/
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 /(\d+)\s(\d+)\s(.+)/
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
@@ -1,3 +1,3 @@
1
1
  module Rumeme
2
- VERSION = "0.1.6".freeze
2
+ VERSION = "0.1.7".freeze
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 6
9
- version: 0.1.6
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-12 00:00:00 +04:00
17
+ date: 2010-03-16 00:00:00 +04:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency