hub_link 0.9.0 → 0.9.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: '0909b5fdfd57ee21b4640b6cb5bf29d3fadf9f09'
4
- data.tar.gz: 0543a9f73db33af1d78403a48cbe0d390ec19173
3
+ metadata.gz: 9919e3d917fadaa8bf596d6b215e3585ba0e58ef
4
+ data.tar.gz: 3e566b33f29e2db85da70f4ebd2dface2a8cb123
5
5
  SHA512:
6
- metadata.gz: '0987920a6abab13ac7666b36ad79df652c15f338d683da341a1a47a83e16735a4f9555112666f2c9257cf4488b80cc2cbdaa08ff7256e13dc126fd1c2584a3cf'
7
- data.tar.gz: bd7e0ac5b69ba80d3d55dcfa0b362d550e70a4e0044aef930a36ebeb2ae5c534f3baa28b5d000112a802817eff438655d7de2b00e7c79d8b852d75a8561c7d35
6
+ metadata.gz: 0c1773b7f54b6c3f9a20e9010f759da5fe7c8718a0078d612d6f2fb4905d5bea2e3738f358b287ed3ad665cb921bf946fde260508332e33dfd15f51fd051567b
7
+ data.tar.gz: 60b18d0891462a141d52ebf98cbb5f6a7a93ea020f5222f9b329969c26af1b59f87f9aa76b23ae31902fcd84a7910a5874affe8f749a76c4cf807665f08ac6b7
@@ -4,7 +4,7 @@ module HubLink
4
4
  BOTS = %w(houndci-bot cookpad-devel)
5
5
 
6
6
  def reviewer
7
- user.login
7
+ user&.login
8
8
  end
9
9
 
10
10
  def approval?
@@ -22,7 +22,7 @@ module HubLink
22
22
  private
23
23
 
24
24
  def bot?
25
- BOTS.include?(user.login)
25
+ BOTS.include?(reviewer)
26
26
  end
27
27
 
28
28
  def driveby?
@@ -1,3 +1,3 @@
1
1
  module HubLink
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hub_link
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-04-24 00:00:00.000000000 Z
11
+ date: 2019-04-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport