sonarqube 1.2.0 → 1.2.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: 2243cd4ce1e3bccfd8852b3e288aa93e1a0d161457c3902265e2b3539384997a
4
- data.tar.gz: 2059652b00336b55c9c4af3ea0d9d5eab29208f1944b5ae59b4f32c6fa5a9dd3
3
+ metadata.gz: 801fefe171e320dd14316a7c77780e29fcd1d48a42d0a72d95c82963dad8c295
4
+ data.tar.gz: 225697afc310666c0be1f710ed4be1f84d6e8fb16c2eddb66a19b170f279a74c
5
5
  SHA512:
6
- metadata.gz: b55245ca6385f98e50e861fb7fd5fba42e06c70c7d488cae559bb1e69d66cd57784944c274b6d432ca9ddc57de8a638327fa71a44c127eae4b07f3238936444c
7
- data.tar.gz: '0832fc8d69d1030b9e120e3463a3b59ddffd85dff8992331b8ad3ce7e49894b35dca566fa87cd0fc4d796553b3e8ea31fd0a856315484bac7934925c7d18dc89'
6
+ metadata.gz: f925f8ec8136457b91748054cf76a03a315187f0d7145163573821f8c5d2ab1d13c13f30e2afe0280f83e6fe4232c5fccd40e10803a03f86bcb44f66a4d061fb
7
+ data.tar.gz: 432d2e44abb168f23bc425c5e673edbea93bc06f55addd0a05863c734e5d2d4a5f1db812ea3c66595d2c46c5079d126c9b532099eca4892bd1789393af02dc8d
@@ -4,6 +4,11 @@
4
4
 
5
5
  Please see: https://github.com/psyreactor/sonarqube-ruby/releases
6
6
 
7
+ ### 1.2.1 (08/09/2020)
8
+
9
+ - Fix
10
+ * Fix groups parameter validation
11
+
7
12
  ### 1.2.0 (03/09/2020)
8
13
 
9
14
  - New features
data/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
  [documentation](https://www.rubydoc.info/gems/sonarqube/frames)
11
11
 
12
12
  Sonarqube is a Ruby wrapper and CLI for the Sonarqube API
13
- As of version `1.2.0` this gem only supports Sonarqube 7.9.
13
+ As of version `1.2.1` this gem only supports Sonarqube 7.9.
14
14
 
15
15
  ## Installation
16
16
 
@@ -79,7 +79,7 @@ class Sonarqube::Client
79
79
  # @option options [String] :name Optional name of group.
80
80
  # @return [Sonarqube::ObjectifiedHash]
81
81
  def add_member(id = nil, login = nil, options = {})
82
- raise ArgumentError, 'Missing required parameters' if id.nil? || login.nil?
82
+ raise ArgumentError, 'Missing required parameters' if id.nil? && login.nil?
83
83
 
84
84
  post('/api/user_groups/add_user', body: { id: id, login: login }.merge!(options))
85
85
  end
@@ -97,7 +97,7 @@ class Sonarqube::Client
97
97
  # @option options [String] :name Optional name of group.
98
98
  # @return [Sonarqube::ObjectifiedHash]
99
99
  def remove_member(id = nil, login = nil, options = {})
100
- raise ArgumentError, 'Missing required parameters' if id.nil? || login.nil?
100
+ raise ArgumentError, 'Missing required parameters' if id.nil? && login.nil?
101
101
 
102
102
  post('/api/user_groups/remove_user', body: { id: id, login: login }.merge!(options))
103
103
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Sonarqube
4
- VERSION = '1.2.0'
4
+ VERSION = '1.2.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sonarqube
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mariani Lucas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-04 00:00:00.000000000 Z
11
+ date: 2020-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty