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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 62af29db2b77e785b80d150ab1270f3af5a1dfac
4
- data.tar.gz: 8e02ae7ba06a7d4741fb227b09f432d15ba9c331
3
+ metadata.gz: 82d9d67cb3f9da0e3200ab9737d7cae2b0c96550
4
+ data.tar.gz: eb111a82c59f1c2c3629f35cb4f349f1a7344b88
5
5
  SHA512:
6
- metadata.gz: 7c90b297ae05678c0e753f6ee77b52d6696a702fb09b582b485a13db846f36cee58e1a7be933456639f5266b9df73768117995c6e7e66f9aa5d3db0c11a98351
7
- data.tar.gz: e00dad87094dcbfa8dd3b82138bec5a66a1119e89f0b17a533e3844284b860a8ec0e2954c64f78a69c9c32dc051a1dde69645553d94b92315d25b5f30e8f56f8
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 == (github_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, github_issue.body)
31
+ unless content_matches?(issue.content, @content)
33
32
  @changed << 'body'
34
33
  @content = issue.content
35
34
  end
@@ -1,4 +1,4 @@
1
1
  # SyncIssues
2
2
  module SyncIssues
3
- VERSION = '0.4.0'.freeze
3
+ VERSION = '0.4.1'.freeze
4
4
  end
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.0
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-20 00:00:00.000000000 Z
11
+ date: 2016-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: docopt