asterisk_mini_statement 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1210d73f6bc4b557e5f4af98b7dcc75644f5f669
4
- data.tar.gz: 1b9c7de2395480df3577ceca41524771b0febd1e
3
+ metadata.gz: 64c11ef36ba28772f785900b39dafa5141a7ce5f
4
+ data.tar.gz: 1c9d94594603cfb958e1601ea7f590937ef81241
5
5
  SHA512:
6
- metadata.gz: 3658953cf085dcac7ad56493f24684f294a5d051d7f933884b9132b1658fa716b4578d708b2c7b697d786ea62075d52ec5a9c1e3996eb860eb31a0e0d0b87920
7
- data.tar.gz: f539564e1adfba20decc64e7f31894ca2ff6634623f1b460d1ed35484ff511d99221a0f127fe56504149cf7e72ee75be6d60eae5266ea684b0f4be00c9fda73a
6
+ metadata.gz: b1ad73042238f5121b4c4c361a099c7f2751fbdd38eb3498f13fcd7b3937605c262818934130c94a9e17ebac9855d31d96dd6ceec60ded3234afeab77f6eb8a7
7
+ data.tar.gz: be8a3797ea2dfdc84a339561d62cbe3e6dc254334877187fc1313f7656ff92d059b367f0680a2084a8555d16369fc9ea38c2e87e08400efba00f3ab6d35f2ab0
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -39,8 +39,7 @@ class AsteriskMiniStatement
39
39
 
40
40
  lines.select! do |x|
41
41
  date = Date.parse(x[:start])
42
- date >= sdate and date <= edate and \
43
- x[:disposition] == 'ANSWERED' and x[:lastapp] == 'Dial'
42
+ date >= sdate and date <= edate and x[:lastapp] == 'Dial'
44
43
  end
45
44
 
46
45
  days = lines.group_by {|x| Date.parse(x[:start]) }
@@ -48,8 +47,9 @@ class AsteriskMiniStatement
48
47
  px = Polyrex.new('calls[telno, period]/day[date]/item[time, telno,' +
49
48
  ' io, dur]')
50
49
  px.summary.telno = telno
51
- px.summary.period = "%s - %s" % [sdate.strftime("%d/%m/%Y"),
52
- edate.strftime("%d/%m/%Y")]
50
+ px.summary.period = "%s - %s" % [sdate, edate].\
51
+ map{|x| x.strftime("%d/%m/%Y") }
52
+
53
53
 
54
54
  days.each do |day, items|
55
55
 
@@ -61,7 +61,7 @@ class AsteriskMiniStatement
61
61
 
62
62
  io, telno = outgoing ? ['out', outgoing] :
63
63
  ['in', x[:clid][/"([^"]+)/,1]]
64
-
64
+
65
65
  raw_a = Subunit.new(units={minutes:60, hours:60},
66
66
  seconds: x[:duration].to_i).to_a
67
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asterisk_mini_statement
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  nvlgfc5b1kUBa0viP6I53DUsYpTa1sWNpVQoXGEIIgB46Gtx/+fY83adQ3SrThtn
32
32
  MbY57VwNAM4kow==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-05-16 00:00:00.000000000 Z
34
+ date: 2016-08-22 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: subunit
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  version: '0'
101
101
  requirements: []
102
102
  rubyforge_project:
103
- rubygems_version: 2.4.8
103
+ rubygems_version: 2.5.1
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Outputs a mini statement of recent telephone calls from the Asterisk Call
metadata.gz.sig CHANGED
Binary file