uberbringer 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/lib/uberbringer/query_base.rb +8 -7
- data/lib/uberbringer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b56a8413abe4f44a4057a1fc9e632e17d939f2f1
|
4
|
+
data.tar.gz: 825d1c12a28ce32bbfe99c3100a613dd0d558b41
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f0236c5e44c16eeb2a9c84447e7a0c7a977b74d5761c05ff3fd021ce266a7f7e13980230c848fc48ed3724832f6c1385b599d4c46e077d64d99bd889f0aeb18
|
7
|
+
data.tar.gz: c0b7b70e97a7b8bd87f17000192424d9bf2de0e7837a4eeeb14994fc3662e9c4af8dec10c983153b1f6d38dc54fd1c3e2e84ce3de003510c13042cf05e523759
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
uberbringer (0.0.
|
4
|
+
uberbringer (0.0.3)
|
5
5
|
fig_newton
|
6
6
|
soap-object
|
7
7
|
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
nokogiri (1.6.6.2-x86-mingw32)
|
24
24
|
mini_portile (~> 0.6.0)
|
25
25
|
nori (2.6.0)
|
26
|
-
rack (1.6.
|
26
|
+
rack (1.6.4)
|
27
27
|
rspec (3.1.0)
|
28
28
|
rspec-core (~> 3.1.0)
|
29
29
|
rspec-expectations (~> 3.1.0)
|
@@ -5,7 +5,8 @@ module Uberbringer
|
|
5
5
|
FIELD_MAPPINGS = {
|
6
6
|
:status => 'Status',
|
7
7
|
:submit_date => 'Submit Date',
|
8
|
-
:group => 'Assigned Group'
|
8
|
+
:group => 'Assigned Group',
|
9
|
+
:closed_date => 'Closed Date'
|
9
10
|
}
|
10
11
|
|
11
12
|
STATUS_MAPPINGS = {
|
@@ -29,20 +30,20 @@ module Uberbringer
|
|
29
30
|
end
|
30
31
|
|
31
32
|
def all_closed_tickets
|
32
|
-
filter_by_status([STATUS_MAPPINGS[:closed]
|
33
|
+
filter_by_status([STATUS_MAPPINGS[:closed]])
|
33
34
|
end
|
34
35
|
|
35
36
|
def older_than(number_of_days)
|
36
37
|
self << {:field => FIELD_MAPPINGS[:submit_date], :value => date_format(Date.today - number_of_days), :operator => OPERATORS[:less_than]}
|
37
38
|
end
|
38
39
|
|
39
|
-
def
|
40
|
-
self << {:field => FIELD_MAPPINGS[:
|
40
|
+
def closed_this_week
|
41
|
+
self << {:field => FIELD_MAPPINGS[:closed_date], :value => date_format(this_past_sunday), :operator => OPERATORS[:greater_than]}
|
41
42
|
end
|
42
43
|
|
43
|
-
def
|
44
|
-
self << {:field => FIELD_MAPPINGS[:
|
45
|
-
self << {:field => FIELD_MAPPINGS[:
|
44
|
+
def closed_last_week
|
45
|
+
self << {:field => FIELD_MAPPINGS[:closed_date], :value => date_format(sunday_before_last), :operator => OPERATORS[:greater_than]}
|
46
|
+
self << {:field => FIELD_MAPPINGS[:closed_date], :value => date_format(this_past_sunday), :operator => OPERATORS[:less_than]}
|
46
47
|
end
|
47
48
|
|
48
49
|
def submitted_today
|
data/lib/uberbringer/version.rb
CHANGED