fusionauth_client 1.42.0 → 1.42.1

Sign up to get free protection for your applications and to get access to all the features.
data/doc/FusionAuth.md ADDED
@@ -0,0 +1,12 @@
1
+ # module FusionAuth [](#module-FusionAuth) [](#top)
2
+ Copyright © 2018-2022, [`FusionAuth`](FusionAuth.html), All Rights Reserved
3
+
4
+ Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at
5
+
6
+ ```
7
+ http://www.apache.org/licenses/LICENSE-2.0
8
+ ```
9
+
10
+ Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
11
+
12
+
data/doc/created.rid ADDED
@@ -0,0 +1,2 @@
1
+ Fri, 06 Jan 2023 23:16:10 -0000
2
+ lib/fusionauth/fusionauth_client.rb Fri, 06 Jan 2023 14:32:45 -0700
data/doc/index.db ADDED
Binary file
@@ -1,6 +1,6 @@
1
1
  # coding: utf-8
2
2
 
3
- # Copyright (c) 2022, FusionAuth, All Rights Reserved
3
+ # Copyright (c) 2022-2023, FusionAuth, All Rights Reserved
4
4
  #
5
5
  # Licensed under the Apache License, Version 2.0 (the "License");
6
6
  # you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
19
19
 
20
20
  Gem::Specification.new do |spec|
21
21
  spec.name = 'fusionauth_client'
22
- spec.version = '1.42.0'
22
+ spec.version = '1.42.1'
23
23
  spec.authors = ['Brian Pontarelli', 'Daniel DeGroff']
24
24
  spec.email = %w(brian@fusionauth.io daniel@fusionauth.io)
25
25
 
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2019, FusionAuth, All Rights Reserved
1
+ # Copyright (c) 2019-2023, FusionAuth, All Rights Reserved
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License");
4
4
  # you may not use this file except in compliance with the License.
@@ -131,6 +131,21 @@ module FusionAuth
131
131
  @body_handler.set_headers(@headers)
132
132
  end
133
133
 
134
+ # Temporary hack. In version 1.43.0 of FusionAuth, we will no longer validate the Content-Type when there does not appear to be a payload.
135
+ if @body_handler == nil && (@method == 'POST' || @method == "PUT")
136
+ hasContentType = false
137
+ @headers.each_key do |k|
138
+ if k.casecmp("Content-Type") == 0
139
+ hasContentType = true
140
+ break
141
+ end
142
+ end
143
+
144
+ unless hasContentType
145
+ @headers['Content-Type'] = 'application/json'
146
+ end
147
+ end
148
+
134
149
  http_response = nil
135
150
  Net::HTTP.start(response.url.hostname, response.url.port, opts) { |http|
136
151
  request = nil
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fusionauth_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.42.0
4
+ version: 1.42.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pontarelli
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2022-12-08 00:00:00.000000000 Z
12
+ date: 2023-01-27 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: This library contains the Ruby client library that helps you connect
15
15
  your application to FusionAuth.
@@ -25,9 +25,13 @@ files:
25
25
  - Gemfile
26
26
  - Gemfile.lock
27
27
  - LICENSE.txt
28
- - README.md
28
+ - README.adoc
29
29
  - Rakefile
30
30
  - build.savant
31
+ - doc/FusionAuth.md
32
+ - doc/FusionAuth/FusionAuthClient.md
33
+ - doc/created.rid
34
+ - doc/index.db
31
35
  - examples/create_user.rb
32
36
  - examples/login.rb
33
37
  - fusionauth-ruby-client.iml
data/README.md DELETED
@@ -1,42 +0,0 @@
1
- # FusionAuth::FusionAuthClient
2
-
3
- This gem is the Ruby client library that helps connect Ruby applications to the FusionAuth (https://fusionauth.io) Identity and User Management platform.
4
-
5
- ## Installation
6
-
7
- Add this line to your application's Gemfile:
8
-
9
- ```ruby
10
- gem 'fusionauth_client'
11
- ```
12
-
13
- And then execute:
14
-
15
- $ bundle
16
-
17
- Or install it yourself as:
18
-
19
- $ gem install fusionauth_client
20
-
21
- ## Usage
22
-
23
- Once the gem is installed, you can call FusionAuth APIs.
24
-
25
- See examples in the `examples` directory.
26
-
27
- ## Questions and support
28
-
29
- If you have a question or support issue regarding this client library, we'd love to hear from you.
30
-
31
- If you have a paid edition with support included, please [open a ticket in your account portal](https://account.fusionauth.io/account/support/). Learn more about [paid editions here](https://fusionauth.io/pricing).
32
-
33
- Otherwise, please [post your question in the community forum](https://fusionauth.io/community/forum/).
34
-
35
- ## Contributing
36
-
37
- Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client.
38
-
39
- ## License
40
-
41
- This code is available as open source under the terms of the [Apache v2.0 License](https://opensource.org/licenses/Apache-2.0).
42
-