asanban 0.0.5 → 0.0.6

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.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- Y2VmZjRhNTI3ZGE1OTUyZjYzYWE1OTliNDU1MmFlZWViNWU0OGIwMQ==
4
+ ZjZlMDhlMjIwOWQ1MzJhY2JjYTE1NjI0Mzg1NjhmZTkxYTIyMmIxYw==
5
5
  data.tar.gz: !binary |-
6
- MTkxMjA5OGQzMGM5NzBlODFiNjMyNmE2MDdmNDI2OTA2MTVlYzAwYQ==
6
+ MTNiNTg4Y2M5MGI1ZmQ2ZTk0MmEyMjdmOGMwYTIyNTM4ZTEyYjA2Mw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZjRhMTdkYjdhYmNmNTFkYzJkM2NmYjIwY2M1MjE5ZmVhNzFiMThlODc4M2Zi
10
- MWMyODJjNjYyY2I4MzY3NjY2ZjJlMTJjMDJkNGI5ZjgxNDBiNjU1ZDY0N2Ni
11
- YzAyMTU5OTBlZmJjYTExNDg3MWY1YzAzY2YxZTM5MmRlYjEwM2I=
9
+ ZjIxODYyNzE2M2JhNDJiZjRiMjY1ODk1Y2Y1MmRhM2ZiNzRlMjVkMmY0Zjky
10
+ MjZjNTJmODI0NGUyZjA4OGU1YmE3NmZlYzI1ZjY4ODJkOTYzNjg2NjJhZGIy
11
+ MzVjYTk2MGI0MmJjNzRmZDhiMWQ1MTA1YTkwOTA2YjkyZjNjNDg=
12
12
  data.tar.gz: !binary |-
13
- NGY3MDViYTU2ZDA0NDZjMDlkM2Y0ZjljNjUxODVlYjA5YWExZTAzN2JhYzI3
14
- ODE5NDZkZThlMmJjMjA0ZWE4MDdiMTJkNWJlNzBjYTQ0MDk2NDM3Yzk4NDRi
15
- ZTk0ZmQwOTYxOWQ2MDExOWYyOTYxY2MwNjhhNTBlZjk3ODNjYTI=
13
+ NWRlZmJmNWM5OTE3NWU2NjNlMmZhOTQyNmZmYjY4ZTAyNjYwODNhOTZiZTdj
14
+ M2Q2ODYyMjBlZjM2ZTAyMzZlZjgzODQ2MmQ0ZTJhMTg1YWI5ZmRkOWNmODNm
15
+ MWUwNmIzOTc5MmM3OTI0YjQzNjFlODhjNGYwNWYyYjYyNDlkNjc=
@@ -101,7 +101,7 @@ module Asanban
101
101
  task_completed = task["completed"]
102
102
  task_deleted = task["old"]
103
103
  stories.each do |story|
104
- if (story['text'] =~ /Moved from (.*)\(\d+\) to (.*)\(\d+\)/)
104
+ if (story['text'] =~ /Moved from (.*)\(\d+\) to (.*)\(\d+\)/i)
105
105
  start_milestone = $1.strip
106
106
  end_milestone = $2.strip
107
107
  timestamp = Time.parse(story["created_at"])
@@ -111,7 +111,7 @@ module Asanban
111
111
  end_story_id = story["id"]
112
112
  escaped_milestone = start_milestone.gsub('(', '\\(').gsub(')', '\\)')
113
113
 
114
- if (start_story = stories.find {|s| s['text'] =~ /Moved .*to #{escaped_milestone}/})
114
+ if (start_story = stories.find {|s| s['text'] =~ /Moved .*to #{escaped_milestone}/i})
115
115
  #TODO: Refactor to use record_time
116
116
  start_story_id = start_story["id"]
117
117
  start_timestamp = Time.parse(start_story["created_at"])
@@ -133,8 +133,8 @@ module Asanban
133
133
  end
134
134
  end
135
135
 
136
- if ((end_story = stories.find_all {|s| s['text'] =~ /Moved .*to #{config['asana_ending_milestone']}/}[-1]) &&
137
- (start_story = stories.find_all {|s| s['text'] =~ /Moved .*to #{config['asana_beginning_milestone']}/}[0]))
136
+ if ((end_story = stories.find_all {|s| s['text'] =~ /Moved .*to #{config['asana_ending_milestone']}/i}[-1]) &&
137
+ (start_story = stories.find_all {|s| s['text'] =~ /Moved .*to #{config['asana_beginning_milestone']}/i}[0]))
138
138
  lead_times_collection.remove("end_story_id" => end_story["id"])
139
139
  lead_time = record_time(task_id, task_completed, task_deleted, start_story, config['asana_beginning_milestone'], end_story, config['asana_ending_milestone'], lead_times_collection)
140
140
  puts "Inserted lead time: #{lead_time}"
@@ -1,3 +1,3 @@
1
1
  module Asanban
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asanban
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pat Gannon