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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 99d71b865926784f4d4eeabffc55868d5ca2092b
4
- data.tar.gz: 212ca9943ff2f86162986bc0e186c1f8c9519286
3
+ metadata.gz: 0c7bd804fa5316442bf71a5a3fe750bc4b334232
4
+ data.tar.gz: 9fdde189528ae598bf4dd5a1cd553ff532acf983
5
5
  SHA512:
6
- metadata.gz: 86a0075919a9d74e950178f69327fbbf0149aea3116cb3728e19b7a2a69524b4d835e3b74b6927945d79bb4a42b73729bf993826ccf726b7113c88040bf0d566
7
- data.tar.gz: 4a5122095475b6476ee07406a4b82d893ced18655c83d1ad9d2bc326d64bde39ce08b9fac81d72daf4aba906e2ad17af8493f443a0c8015e3f51e109ed7fbcd2
6
+ metadata.gz: c4384729b0e881dc10c2e91dab98c4557bb80d844c97eb434cccae85b703b060cf5ec5388f086217bca5856fd684f513239106bde46fa940cc113fdc282410d7
7
+ data.tar.gz: f0213b8d93832f2218ee0b379dde05e39d7a27ba1e76241122d635b2e1ac2a1314eeb134c474c67ad7ea5ce04fa2308d1c6c86d17f046fe35f4e208f92f870f5
@@ -1,5 +1,7 @@
1
1
  module LockDiff
2
2
  class LockfileComparator
3
+ class NotChangedLockfile < StandardError; end
4
+
3
5
  class << self
4
6
  def compare_by(pull_request)
5
7
  file_path = pull_request.find_content_path(lockfile_name)
@@ -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: #{LockDiff.client.class}). Becase of #{e.inspect}"
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
@@ -1,3 +1,3 @@
1
1
  module LockDiff
2
- VERSION = "0.3.5"
2
+ VERSION = "0.3.6"
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.5
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-13 00:00:00.000000000 Z
11
+ date: 2017-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit