telewatts_sender_support 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -1,33 +1,37 @@
|
|
1
|
-
module
|
1
|
+
module Telewatts
|
2
|
+
module SenderSupport
|
3
|
+
module SampleDataSupport
|
2
4
|
|
3
|
-
|
5
|
+
def generate_sender_reports
|
4
6
|
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
7
|
+
begin
|
8
|
+
raise Exception.new "sample exception message"
|
9
|
+
rescue Exception => e
|
10
|
+
exception = e
|
11
|
+
end
|
10
12
|
|
11
|
-
|
13
|
+
reports = []
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
|
15
|
+
i=0;
|
16
|
+
SenderReport.levels.each do |level|
|
17
|
+
3.times do
|
18
|
+
reports << SenderReport.new do |e|
|
19
|
+
e.level=level
|
20
|
+
e.message = "Sample SenderReport message ##{i}"
|
21
|
+
e.dump_exception(exception) if level=='error'
|
22
|
+
end
|
23
|
+
i+=1
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
16
27
|
reports << SenderReport.new do |e|
|
17
|
-
e.level=
|
28
|
+
e.level='report'
|
29
|
+
e.code='sender_active'
|
18
30
|
e.message = "Sample SenderReport message ##{i}"
|
19
|
-
e.dump_exception(exception) if level=='error'
|
20
31
|
end
|
21
|
-
i+=1
|
22
|
-
end
|
23
|
-
end
|
24
32
|
|
25
|
-
|
26
|
-
|
27
|
-
e.code='sender_active'
|
28
|
-
e.message = "Sample SenderReport message ##{i}"
|
33
|
+
reports
|
34
|
+
end
|
29
35
|
end
|
30
|
-
|
31
|
-
reports
|
32
36
|
end
|
33
|
-
end
|
37
|
+
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: telewatts_sender_support
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.1.
|
5
|
+
version: 0.1.27
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Sam Taylor
|
@@ -123,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
123
123
|
requirements:
|
124
124
|
- - ">="
|
125
125
|
- !ruby/object:Gem::Version
|
126
|
-
hash:
|
126
|
+
hash: 1522704140202805473
|
127
127
|
segments:
|
128
128
|
- 0
|
129
129
|
version: "0"
|
@@ -132,7 +132,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
132
132
|
requirements:
|
133
133
|
- - ">="
|
134
134
|
- !ruby/object:Gem::Version
|
135
|
-
hash:
|
135
|
+
hash: 1522704140202805473
|
136
136
|
segments:
|
137
137
|
- 0
|
138
138
|
version: "0"
|