ripple_keycloak 0.2.1 → 0.4.0

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: 8893e58451b389b4867b545d1ff890d7bc140f833116b216d38553b40ffac583
4
- data.tar.gz: e602c7bd2fd40125b8f856cd7cfd9ff501b48bdc1f83d2060d1a1c08ff3f2211
3
+ metadata.gz: 64e860ce988aa48ba826135a6a64201b222ac3c4e837d441e52e7dc3598a97cd
4
+ data.tar.gz: d6bf62c5eef815f0abeb1ccecef38772be4dbf97969b9bf480bfb811b5b812e7
5
5
  SHA512:
6
- metadata.gz: 6ba0407487a1ceba861d76659fd75ab2f17ad7750c4f218a849fb6960b4ad7786abb54f8e974fbc3fd1e6df6af869095f4f73e3f2958cfab00654744f09e3691
7
- data.tar.gz: 4658fabe913152430cf7d497ded5db0a20407da45dbd7feb6a1a995020ed892ebf10b2613b049bc521221756cc82cabb1ce581cd65cdc963d3ed106506a8ab40
6
+ metadata.gz: 855513973954365758ce5a6fb22ead6d422a93a3dee4ee661d2741ca13c432155be0248c5c90ac1502e6dcd12505f404feaecc660c64bf85fda345128a24db3b
7
+ data.tar.gz: 3b57e8b24163d1bdbffc5c961d75e75f5175d51810012f61c648906d9d0ab66cef97320ad24d19164f04558e4000e72ea47e22abb44f095fad902cd11a68925b
@@ -3,7 +3,7 @@ name: Ruby Gem
3
3
  on:
4
4
  push:
5
5
  tags:
6
- - v*
6
+ - 'v*'
7
7
 
8
8
  jobs:
9
9
  build:
File without changes
data/.gitignore CHANGED
File without changes
data/.rspec CHANGED
File without changes
@@ -40,3 +40,6 @@ AllCops:
40
40
  Exclude:
41
41
  - bin/**
42
42
  - vendor/**/**
43
+
44
+ Lint/ScriptPermission:
45
+ Enabled: false
File without changes
data/Gemfile CHANGED
File without changes
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2020 Ollie Nye
3
+ Copyright (c) 2020 Hex Event Solutions Limited
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,7 @@
1
1
  # Ripple Keycloak
2
2
 
3
3
  ![Lint and test](https://github.com/hex-event-solutions/ripple_keycloak/workflows/Lint%20and%20test/badge.svg)
4
+ [![Gem Version](https://badge.fury.io/rb/ripple_keycloak.svg)](https://badge.fury.io/rb/ripple_keycloak)
4
5
 
5
6
  Slim interface focused on groups, roles and users for Keycloak's Admin REST API
6
7
 
data/Rakefile CHANGED
File without changes
File without changes
data/bin/setup CHANGED
File without changes
File without changes
@@ -10,7 +10,7 @@ module RippleKeycloak
10
10
  end
11
11
 
12
12
  def search(value)
13
- client.get("#{@object_type}?search=#{value}")
13
+ client.get("#{@object_type}?search=#{value}").parsed_response
14
14
  end
15
15
 
16
16
  def all(first: nil, max: nil)
@@ -18,11 +18,11 @@ module RippleKeycloak
18
18
  url += "first=#{first}&" if first
19
19
  url += "max=#{max}" if max
20
20
 
21
- client.get(url)
21
+ client.get(url).parsed_response
22
22
  end
23
23
 
24
24
  def find(id)
25
- client.get("#{@object_type}/#{id}")
25
+ client.get("#{@object_type}/#{id}").parsed_response
26
26
  end
27
27
 
28
28
  def find_by(field:, value:)
@@ -36,7 +36,7 @@ module RippleKeycloak
36
36
  end
37
37
 
38
38
  def delete(id)
39
- client.delete("#{@object_type}/#{id}")
39
+ client.delete("#{@object_type}/#{id}").parsed_response
40
40
  end
41
41
 
42
42
  private
File without changes
File without changes
@@ -25,7 +25,9 @@ module RippleKeycloak
25
25
 
26
26
  error_class = error_map[response['error']]
27
27
 
28
- raise error_class, formatted_error
28
+ raise error_class, formatted_error unless error_class.nil?
29
+
30
+ raise RippleKeycloak::Error, formatted_error
29
31
  end
30
32
  end
31
33
  end
File without changes
File without changes
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RippleKeycloak
4
- VERSION = '0.2.1'
4
+ VERSION = '0.4.0'
5
5
  end
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
2
3
 
3
4
  require_relative 'lib/ripple_keycloak/version'
4
5
  puts RippleKeycloak::VERSION
@@ -26,7 +26,7 @@ Gem::Specification.new do |spec|
26
26
  spec.require_paths = ['lib']
27
27
 
28
28
  spec.add_dependency('activesupport', '6.0.3.1')
29
- spec.add_dependency('httparty', '0.18.0')
29
+ spec.add_dependency('httparty', '0.18.1')
30
30
 
31
31
  spec.add_development_dependency('rspec', '3.9.0')
32
32
  spec.add_development_dependency('rubocop', '0.85.1')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ripple_keycloak
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hex Event Solutions Limited
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-18 00:00:00.000000000 Z
11
+ date: 2020-06-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.18.0
33
+ version: 0.18.1
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.18.0
40
+ version: 0.18.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +73,6 @@ executables: []
73
73
  extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
- - ".github/workflows/bump-version.yml"
77
76
  - ".github/workflows/gem-push.yml"
78
77
  - ".github/workflows/lint-and-test.yml"
79
78
  - ".gitignore"
@@ -1,17 +0,0 @@
1
- name: Bump gem version tag
2
-
3
- on:
4
- push:
5
- branches: [ master ]
6
-
7
- jobs:
8
- tag-new-versions:
9
- runs-on: ubuntu-latest
10
- steps:
11
- - uses: actions/checkout@v2
12
- with:
13
- fetch-depth: 2
14
- - uses: salsify/action-detect-and-tag-new-version@v1
15
- with:
16
- version-command: |
17
- ruby print_version.rb