lock_diff 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lock_diff/lockfile_comparator.rb +2 -0
- data/lib/lock_diff/pull_request.rb +2 -3
- data/lib/lock_diff/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: 0c7bd804fa5316442bf71a5a3fe750bc4b334232
|
4
|
+
data.tar.gz: 9fdde189528ae598bf4dd5a1cd553ff532acf983
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4384729b0e881dc10c2e91dab98c4557bb80d844c97eb434cccae85b703b060cf5ec5388f086217bca5856fd684f513239106bde46fa940cc113fdc282410d7
|
7
|
+
data.tar.gz: f0213b8d93832f2218ee0b379dde05e39d7a27ba1e76241122d635b2e1ac2a1314eeb134c474c67ad7ea5ce04fa2308d1c6c86d17f046fe35f4e208f92f870f5
|
@@ -1,14 +1,13 @@
|
|
1
1
|
module LockDiff
|
2
2
|
class PullRequest
|
3
3
|
extend Forwardable
|
4
|
+
class NotFoundPullRequest < StandardError; end
|
4
5
|
|
5
6
|
class << self
|
6
|
-
class NotChangedLockfile < StandardError; end
|
7
|
-
|
8
7
|
def find_by(repository:, number:)
|
9
8
|
client.pull_request(repository, number)
|
10
9
|
rescue => e
|
11
|
-
message = "Not found pull request by (repository: #{repository}, number: #{number}, client: #{
|
10
|
+
message = "Not found pull request by (repository: #{repository}, number: #{number}, client: #{client.class}). Becase of #{e.inspect}"
|
12
11
|
LockDiff.logger.warn(message)
|
13
12
|
raise NotFoundPullRequest.new(message)
|
14
13
|
end
|
data/lib/lock_diff/version.rb
CHANGED
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.
|
4
|
+
version: 0.3.6
|
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-
|
11
|
+
date: 2017-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: octokit
|