dude-cli 0.5.4 → 0.5.5

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
  SHA256:
3
- metadata.gz: d05073cdfdac16f265bda6ca838d2303c7bfbd4d2935ed6447f8c58e12f59fba
4
- data.tar.gz: f0afebc6b0bb422c2d9a70d60d5097630357579900bd54ebbc5b2f9bcaf8da21
3
+ metadata.gz: baa714098ced1d2a74c2e15015c0aa82e092d390a9fbd26c156587c59c130e7e
4
+ data.tar.gz: b4d3a9205facc7828ece0352aea4b926d3d1d57f543736e5e9093307f4c30154
5
5
  SHA512:
6
- metadata.gz: eea16fcf7d3afa0157994de88a03c8707f24306b9e9ace8e66f30144a7d83d7dec14b605f83dc53fbc17c41c54389d1f6fc6669b4c9ee33dcff44e4ed9c4e534
7
- data.tar.gz: 7cbcd6e7dc2d9719d905c6de0bd00381dad3bc8a538bd769b6d6214b27d4d89499e810c2a2a131c04334e13d79069751e80cb63f23a12306d94b74f3570c9194
6
+ metadata.gz: df918758478123b740874ff064bec9995678b92874594661bac2e255c4b3d119fb8aa275281ca85e5498c901f7922956e6dec1049e022c243f04f9e8a542964e
7
+ data.tar.gz: 8850cfa53d3f1eca39a170e6ca2208c757023f78a76271f0bd6db609101b658fa7359f7aabb17a740114f27a1f06d1a7b6273f9f95c9b8b1bb0a20675eb7a746
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dude-cli (0.5.2)
4
+ dude-cli (0.5.4)
5
5
  colorize (~> 0.8)
6
6
  git (~> 1.3)
7
7
  gitlab (~> 4.3)
data/lib/dude/gitlab.rb CHANGED
@@ -62,7 +62,13 @@ module Dude
62
62
  end
63
63
 
64
64
  def all_issues_on_project
65
- ::Gitlab.issues(project_id).map {|a| [a.iid, a.title, a.labels, a.assignee&.id]}
65
+ ::Gitlab.issues(project_id).map {|a| [a.iid, a.title, a.labels, assignees_id(a)]}
66
+ end
67
+
68
+ def assignees_id(issue)
69
+ issue&.assignees&.first['id']
70
+ rescue NoMethodError
71
+ nil
66
72
  end
67
73
 
68
74
  def user
data/lib/dude/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dude
2
- VERSION = "0.5.4"
2
+ VERSION = "0.5.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dude-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.4
4
+ version: 0.5.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nikita Pupko