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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 51d595ff6d5efc0b32f4e95ea029d92575dcf251
4
- data.tar.gz: 93fcd76f198bbdad24068cfbcf33d9458047a034
3
+ metadata.gz: b56a8413abe4f44a4057a1fc9e632e17d939f2f1
4
+ data.tar.gz: 825d1c12a28ce32bbfe99c3100a613dd0d558b41
5
5
  SHA512:
6
- metadata.gz: c1c01a157aad385f9014a1679ebfcbbe1c32b8a7b9fd422ea63bc5f59c81f22c7d6ac59f932fbaac41fcfa49fff406368b7c78a27a270b45ca6908f0a18ffd4f
7
- data.tar.gz: 9cae91c3e656e5801517cced9e72e17445b5b58e00b82b69e3bec65a193a53d7c71652069546b156e8ffa90cde967eb70063e10a683d142a4d1d831b700ae747
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.2)
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.1)
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],STATUS_MAPPINGS[:resolved]])
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 this_week
40
- self << {:field => FIELD_MAPPINGS[:submit_date], :value => date_format(this_past_sunday), :operator => OPERATORS[:greater_than]}
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 last_week
44
- self << {:field => FIELD_MAPPINGS[:submit_date], :value => date_format(sunday_before_last), :operator => OPERATORS[:greater_than]}
45
- self << {:field => FIELD_MAPPINGS[:submit_date], :value => date_format(this_past_sunday), :operator => OPERATORS[:less_than]}
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
@@ -1,3 +1,3 @@
1
1
  module Uberbringer
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: uberbringer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - mosaic