gitlab 4.14.0 → 4.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/gitlab/cli_helpers.rb +7 -13
- data/lib/gitlab/help.rb +1 -0
- data/lib/gitlab/version.rb +1 -1
- metadata +3 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48548fb1b0cb1145ddc1591038d00e2e8cc9d77f2706b7fd1859f1c1cd86a5d0
|
4
|
+
data.tar.gz: d020265f65c8934d01084995a6158940c5202cf3dbb292b6f035083b8ea400fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3af0c595e321a96ef904347bcbca00cd7644ea5a2583f45be1a89488075257a2d71148bec458fa044192c434184ad9d80377ef5123d55a6a24962566c0727447
|
7
|
+
data.tar.gz: e45b946e1d380fe4a9312f33cf828ea1c446b10eea13d88822a24879358db89c937ba4634c2dd6bb4fa866a8b61368cbecad97aa7820ce2343fb01386cb102d6
|
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Gitlab
|
2
2
|
|
3
|
-
[![Build Status](https://img.shields.io/
|
3
|
+
[![Build Status](https://img.shields.io/github/workflow/status/NARKOZ/gitlab/Ruby/master)](https://github.com/NARKOZ/gitlab/actions?query=workflow%3ARuby)
|
4
4
|
[![Maintainability](https://api.codeclimate.com/v1/badges/2e310b334b1b5db4a7e1/maintainability)](https://codeclimate.com/github/NARKOZ/gitlab)
|
5
5
|
[![Inline docs](https://inch-ci.org/github/NARKOZ/gitlab.svg)](https://inch-ci.org/github/NARKOZ/gitlab)
|
6
6
|
[![Gem version](https://img.shields.io/gem/v/gitlab.svg)](https://rubygems.org/gems/gitlab)
|
data/lib/gitlab/cli_helpers.rb
CHANGED
@@ -206,14 +206,10 @@ class Gitlab::CLI
|
|
206
206
|
|
207
207
|
# Helper function to call Gitlab commands with args.
|
208
208
|
def gitlab_helper(cmd, args = [])
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
yield if block_given?
|
214
|
-
end
|
215
|
-
|
216
|
-
data
|
209
|
+
args.any? ? Gitlab.send(cmd, *args) : Gitlab.send(cmd)
|
210
|
+
rescue StandardError => e
|
211
|
+
puts e.message
|
212
|
+
yield if block_given?
|
217
213
|
end
|
218
214
|
|
219
215
|
# Convert a hash (recursively) to use symbol hash keys
|
@@ -221,11 +217,9 @@ class Gitlab::CLI
|
|
221
217
|
def symbolize_keys(hash)
|
222
218
|
if hash.is_a?(Hash)
|
223
219
|
hash = hash.each_with_object({}) do |(key, value), new_hash|
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
raise "Error: cannot convert hash key to symbol: #{key}"
|
228
|
-
end
|
220
|
+
new_hash[key.to_sym] = symbolize_keys(value)
|
221
|
+
rescue NoMethodError
|
222
|
+
raise "Error: cannot convert hash key to symbol: #{key}"
|
229
223
|
end
|
230
224
|
end
|
231
225
|
|
data/lib/gitlab/help.rb
CHANGED
data/lib/gitlab/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitlab
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.14.
|
4
|
+
version: 4.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nihad Abbasov
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2020-03-
|
12
|
+
date: 2020-03-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|
@@ -51,20 +51,6 @@ dependencies:
|
|
51
51
|
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: 1.5.1
|
54
|
-
- !ruby/object:Gem::Dependency
|
55
|
-
name: pry
|
56
|
-
requirement: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - ">="
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: '0'
|
61
|
-
type: :development
|
62
|
-
prerelease: false
|
63
|
-
version_requirements: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - ">="
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '0'
|
68
54
|
- !ruby/object:Gem::Dependency
|
69
55
|
name: rake
|
70
56
|
requirement: !ruby/object:Gem::Requirement
|
@@ -93,20 +79,6 @@ dependencies:
|
|
93
79
|
- - ">="
|
94
80
|
- !ruby/object:Gem::Version
|
95
81
|
version: '0'
|
96
|
-
- !ruby/object:Gem::Dependency
|
97
|
-
name: rubocop
|
98
|
-
requirement: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - ">="
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '0'
|
103
|
-
type: :development
|
104
|
-
prerelease: false
|
105
|
-
version_requirements: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '0'
|
110
82
|
- !ruby/object:Gem::Dependency
|
111
83
|
name: webmock
|
112
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -219,7 +191,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
219
191
|
requirements:
|
220
192
|
- - ">="
|
221
193
|
- !ruby/object:Gem::Version
|
222
|
-
version: '2.
|
194
|
+
version: '2.5'
|
223
195
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
224
196
|
requirements:
|
225
197
|
- - ">="
|