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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c77e29621138a7c5468d44f3753d6bb7e6ead353b384d2e10ed7230999323651
4
- data.tar.gz: 44831812bcb2d53fb7adad0762a7822ba00f0a0dc064afa0ae7a3cc53d9b3eb4
3
+ metadata.gz: 48548fb1b0cb1145ddc1591038d00e2e8cc9d77f2706b7fd1859f1c1cd86a5d0
4
+ data.tar.gz: d020265f65c8934d01084995a6158940c5202cf3dbb292b6f035083b8ea400fd
5
5
  SHA512:
6
- metadata.gz: bfb8f5b817ce9e73c35de24e28a9d5f98fdcdf2a1071f06cefaa238aec71f7e33eff9b5611f1d7cb0eac33a70baa87410a37536c1015a1d4663392dafb1fcca2
7
- data.tar.gz: 937c02a461ec9c6b472542ce4576296afe660c3797533fd6ad0d3dc93b5f78b44809bbdc2acfe1ba800125cb8e26d063a56bceca3b4f62d4bd2bacb95be09fcb
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/travis/NARKOZ/gitlab.svg)](https://travis-ci.org/NARKOZ/gitlab)
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)
@@ -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
- begin
210
- data = args.any? ? Gitlab.send(cmd, *args) : Gitlab.send(cmd)
211
- rescue StandardError => e
212
- puts e.message
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
- begin
225
- new_hash[key.to_sym] = symbolize_keys(value)
226
- rescue NoMethodError
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
 
@@ -80,6 +80,7 @@ module Gitlab::Help
80
80
 
81
81
  # Massage output from 'ri'.
82
82
  def change_help_output!(cmd, output_str)
83
+ output_str = +output_str
83
84
  output_str.gsub!(/#{cmd}\((.*?)\)/m, cmd + ' \1')
84
85
  output_str.gsub!(/\,[\s]*/, ' ')
85
86
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gitlab
4
- VERSION = '4.14.0'
4
+ VERSION = '4.14.1'
5
5
  end
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.0
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-11 00:00:00.000000000 Z
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.3'
194
+ version: '2.5'
223
195
  required_rubygems_version: !ruby/object:Gem::Requirement
224
196
  requirements:
225
197
  - - ">="