lock_diff 0.3.6 → 0.3.7

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,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c7bd804fa5316442bf71a5a3fe750bc4b334232
4
- data.tar.gz: 9fdde189528ae598bf4dd5a1cd553ff532acf983
3
+ metadata.gz: 4bd53748cc250bef15eff5a49da0a505faa84d24
4
+ data.tar.gz: 528f3e74318971a0d942539964ab4b8c90796e1a
5
5
  SHA512:
6
- metadata.gz: c4384729b0e881dc10c2e91dab98c4557bb80d844c97eb434cccae85b703b060cf5ec5388f086217bca5856fd684f513239106bde46fa940cc113fdc282410d7
7
- data.tar.gz: f0213b8d93832f2218ee0b379dde05e39d7a27ba1e76241122d635b2e1ac2a1314eeb134c474c67ad7ea5ce04fa2308d1c6c86d17f046fe35f4e208f92f870f5
6
+ metadata.gz: 4d91859144482b359679a161f24d1f98b3ee83c259a7344d73df64175b12023104dff90257bac38f4c88a31a1e222ae403e87eed70b74a12bd5ac82f9f29c119
7
+ data.tar.gz: 0c0b50ccd947fca8f228f0e67da4896dbc5c0c73a1062edc7775805e46e261a67b6c2f44ec1dc3e49268450db6d3222907cbb6a15a93c682ae00002c31b43901
data/lib/lock_diff.rb CHANGED
@@ -40,6 +40,12 @@ module LockDiff
40
40
 
41
41
  def _run(pull_request:, post_comment: false)
42
42
  lockfile_diff_infos = LockfileComparator.compare_by(pull_request)
43
+
44
+ if lockfile_diff_infos.empty?
45
+ LockDiff.logger.info("Lock file is changed but changed gem does not exist.")
46
+ return
47
+ end
48
+
43
49
  result = config.formatter.format(lockfile_diff_infos)
44
50
 
45
51
  if post_comment
@@ -10,7 +10,10 @@ module LockDiff
10
10
  end
11
11
 
12
12
  def call
13
- (headers + body).join("\n")
13
+ _body = body
14
+ if _body
15
+ (headers + _body).join("\n")
16
+ end
14
17
  end
15
18
 
16
19
  private
@@ -1,3 +1,3 @@
1
1
  module LockDiff
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lock_diff
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - vividmuimui
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-09-25 00:00:00.000000000 Z
11
+ date: 2017-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit