jirasync 0.4.4 → 0.4.5

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.
@@ -94,10 +94,7 @@ class IssueRenderer
94
94
  filename = attachment['filename']
95
95
  content_url = find_attachment(attachment, issue)
96
96
  extension = File.extname(filename)
97
- STDERR.puts("extension: " + extension)
98
97
  image_marker = [".png", ".jpg"].include?(extension) ? "!": ""
99
-
100
- STDERR.puts("marker: " + image_marker)
101
98
  "* #{image_marker}[#{filename}](#{content_url})"
102
99
  }.join("\n" * 2)
103
100
  end
@@ -49,7 +49,9 @@ module JiraSync
49
49
  end
50
50
  end
51
51
  keys_with_errors.sort!
52
- STDERR.puts("Errors fetching these tickets: #{keys_with_errors.join(",")}")
52
+ if !keys_with_errors.empty?
53
+ STDERR.puts("Errors fetching these tickets: #{keys_with_errors.join(",")}")
54
+ end
53
55
  keys_with_errors
54
56
  end
55
57
 
@@ -68,11 +70,13 @@ module JiraSync
68
70
  state = @repo.load_state()
69
71
  start_time = DateTime.now
70
72
  since = DateTime.parse(state['time']).new_offset(0)
71
- STDERR.puts("Fetching issues that have changes since #{since.to_s}")
73
+ STDERR.puts("Fetching issues that have been changed/ added since #{since.to_s}")
72
74
  issues = @client.changed_since(@project_key, since)['issues'].map { |issue| issue['key'] }
73
75
  STDERR.puts("Updated Issues: #{issues.empty? ? "None" : issues.join(",")}")
74
- STDERR.print("Retrying issues with earlier errors: ")
75
- STDERR.puts(state['errors'].empty? ? "None" : state['errors'].join(","))
76
+ if !state['errors'].empty?
77
+ STDERR.print("Retrying issues with earlier errors: ")
78
+ STDERR.puts( state['errors'].join(","))
79
+ end
76
80
  keys_with_errors = fetch(issues + state['errors'])
77
81
  @repo.save_state({"time" => start_time, "errors" => keys_with_errors})
78
82
  end
@@ -1,3 +1,3 @@
1
1
  module JiraSync
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jirasync
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-21 00:00:00.000000000 Z
12
+ date: 2015-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: trollop