sync_issues 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sync_issues/comparison.rb +3 -4
- data/lib/sync_issues/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82d9d67cb3f9da0e3200ab9737d7cae2b0c96550
|
4
|
+
data.tar.gz: eb111a82c59f1c2c3629f35cb4f349f1a7344b88
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6f42546b6a5c5267218785049b8125e4fc42babb260f87e35ddce7d82125c2c3e19bb7b03cf98ba4c74b647e421bd9c01d03eacec6eaad170371d5f7e1e16e1
|
7
|
+
data.tar.gz: 64d9f73bd226f8466dd44d55bd1439c385dcc61a044e997d20512e202ab89177c78a7ff1c321a35c292de222e2c88337e53f357db5c9d154c2ee9a677ca98fb1
|
@@ -7,7 +7,7 @@ module SyncIssues
|
|
7
7
|
|
8
8
|
def initialize(issue, github_issue)
|
9
9
|
@changed = []
|
10
|
-
@assignee = github_issue.assignee
|
10
|
+
@assignee = github_issue.assignee && github_issue.assignee.login
|
11
11
|
@content = github_issue.body
|
12
12
|
@title = github_issue.title
|
13
13
|
compare(issue, github_issue)
|
@@ -20,8 +20,7 @@ module SyncIssues
|
|
20
20
|
private
|
21
21
|
|
22
22
|
def compare(issue, github_issue)
|
23
|
-
unless issue.assignee ==
|
24
|
-
github_issue.assignee.login)
|
23
|
+
unless issue.assignee == @assignee
|
25
24
|
@changed << 'assignee'
|
26
25
|
@assignee = issue.assignee
|
27
26
|
end
|
@@ -29,7 +28,7 @@ module SyncIssues
|
|
29
28
|
@changed << 'title'
|
30
29
|
@title = issue.new_title
|
31
30
|
end
|
32
|
-
unless content_matches?(issue.content,
|
31
|
+
unless content_matches?(issue.content, @content)
|
33
32
|
@changed << 'body'
|
34
33
|
@content = issue.content
|
35
34
|
end
|
data/lib/sync_issues/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sync_issues
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bryce Boe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-02-
|
11
|
+
date: 2016-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: docopt
|