fusionauth_client 1.42.0 → 1.43.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: 4d7a14c355dc44a349a38f749dc8ffe085129d6d1bccfa5799be45968cc00f45
4
- data.tar.gz: 29fb4471d770b6b396424000c285b875e1204704cd09056bccb1ebed0b60e9f9
3
+ metadata.gz: 805e4a1ab84dc1ebb4409863e482ee254aded74c826b9070d42fe7abc14b820b
4
+ data.tar.gz: 4d8a5f7f2950332ec83a297c2e21752759bd1f931f70ed5aaa656b114f08824b
5
5
  SHA512:
6
- metadata.gz: 064ce98e40306be0049f7c715533d52d8e9b4c8c1bfe2502093cbde9e8d797c08bef2471e75ca84ab167facc6e3f2ced85ee54d3c69ae5340adcda62f89c0e39
7
- data.tar.gz: 07f3b6aaf676a468eeea4d9c758fa547a54d49e8062128209c432e1dfb99b30e61735cba55340df4afd5b8e65f9210558ec60d152b7f792f24a375c75dfff64e
6
+ metadata.gz: fc0f3953d05fd9e79e1c8430f76a0a9d951b1dc9836396c5a63c9eb5ea22aa1e218b59efa1e34a856ebf8783846fff771ca91ac1df9b59e566369c6e5b6be8ca
7
+ data.tar.gz: 72fa7def0622dadf6dd453d9c4656490f598c12b75af3f1c37835415575ef37188b01b938d395c06181792dbe291b9bfe945bd621c99936898b968ca64dea6ce
data/.gitignore CHANGED
@@ -2,10 +2,9 @@
2
2
  /.yardoc
3
3
  /_yardoc/
4
4
  /coverage/
5
- /doc/
6
5
  /pkg/
7
6
  /spec/reports/
8
7
  /tmp/
9
8
  .rakeTasks
10
9
  /build
11
- **/.DS_Store
10
+ **/.DS_Store
data/Gemfile CHANGED
@@ -20,3 +20,5 @@ gem "minitest", "5.8.3"
20
20
 
21
21
  # Specify your gem's dependencies in fusionauth_client.gemspec
22
22
  gemspec
23
+
24
+ gem "rdoc-markdown", "~> 0.4"
data/Gemfile.lock CHANGED
@@ -1,13 +1,40 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fusionauth_client (1.42.0)
4
+ fusionauth_client (1.43.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
8
8
  specs:
9
+ cgi (0.3.6)
10
+ erb (2.2.3)
11
+ cgi
12
+ extralite-bundle (1.19)
13
+ mini_portile2 (2.8.1)
9
14
  minitest (5.8.3)
15
+ nokogiri (1.13.10)
16
+ mini_portile2 (~> 2.8.0)
17
+ racc (~> 1.4)
18
+ nokogiri (1.13.10-x86_64-darwin)
19
+ racc (~> 1.4)
20
+ nokogiri (1.13.10-x86_64-linux)
21
+ racc (~> 1.4)
22
+ psych (5.0.1)
23
+ stringio
24
+ racc (1.6.2)
10
25
  rake (12.3.3)
26
+ rdoc (6.5.0)
27
+ psych (>= 4.0.0)
28
+ rdoc-markdown (0.4)
29
+ erb (~> 2.0)
30
+ extralite-bundle (~> 1.0)
31
+ rdoc (~> 6.0)
32
+ reverse_markdown (~> 2.0)
33
+ unindent (~> 1.0)
34
+ reverse_markdown (2.1.1)
35
+ nokogiri
36
+ stringio (3.0.4)
37
+ unindent (1.0)
11
38
 
12
39
  PLATFORMS
13
40
  ruby
@@ -19,9 +46,10 @@ DEPENDENCIES
19
46
  fusionauth_client!
20
47
  minitest (= 5.8.3)
21
48
  rake (= 12.3.3)
49
+ rdoc-markdown (~> 0.4)
22
50
 
23
51
  RUBY VERSION
24
- ruby 2.5.9p229
52
+ ruby 2.7.0p0
25
53
 
26
54
  BUNDLED WITH
27
55
  2.2.5
data/README.adoc ADDED
@@ -0,0 +1,106 @@
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
+ == Getting Started
6
+
7
+ === Installation
8
+
9
+ Add this line to your application’s Gemfile:
10
+
11
+ [source,ruby]
12
+ ----
13
+ gem 'fusionauth_client'
14
+ ----
15
+
16
+ And then execute:
17
+
18
+ [source,shell]
19
+ ----
20
+ bundle
21
+ ----
22
+
23
+ Or install it yourself as:
24
+
25
+ [source,shell]
26
+ ----
27
+ gem install fusionauth_client
28
+ ----
29
+
30
+ === Usage
31
+
32
+ Once the gem is installed, you can call FusionAuth APIs.
33
+
34
+ [source,ruby]
35
+ ----
36
+ require 'fusionauth/fusionauth_client'
37
+ require 'securerandom'
38
+ require 'pp'
39
+
40
+ # Construct the FusionAuth Client
41
+ client = FusionAuth::FusionAuthClient.new(
42
+ 'REPLACE_ME',
43
+ 'http://localhost:9011'
44
+ )
45
+
46
+ application_id = '85a03867-dccf-4882-adde-1a79aeec50df'
47
+
48
+ # Create a user + registration
49
+ id = SecureRandom.uuid
50
+ response = client.register(id, {
51
+ user: {
52
+ firstName: 'Ruby',
53
+ lastName: 'User',
54
+ email: 'ruby_user@example.com',
55
+ password: 'password'
56
+ },
57
+ registration: {
58
+ applicationId: application_id,
59
+ data: {
60
+ foo: 'bar'
61
+ },
62
+ preferredLanguages: %w(en fr),
63
+ roles: %w(dev)
64
+ }
65
+ })
66
+
67
+ #pp response
68
+ if response.success_response
69
+ pp response.success_response
70
+ else
71
+ if response.exception
72
+ # if we can't connect
73
+ print response.exception
74
+ end
75
+ print "status: #{response.status}"
76
+ print response.error_response
77
+ exit
78
+ end
79
+ ----
80
+
81
+ == Documentation
82
+
83
+ Documentation can be found at https://github.com/FusionAuth/fusionauth-ruby-client/tree/master/doc[doc].
84
+
85
+ === Questions and support
86
+
87
+ If you have a question or support issue regarding this client library, we’d love to hear from you.
88
+
89
+ If you have a paid edition with support included, please https://account.fusionauth.io/account/support/[open a ticket in your account portal]. Learn more about https://fusionauth.io/pricing[paid editions here].
90
+
91
+ Otherwise, please https://fusionauth.io/community/forum/[post your question in the community forum].
92
+
93
+ === Contributing
94
+
95
+ Bug reports and pull requests are welcome on GitHub at https://github.com/FusionAuth/fusionauth-ruby-client.
96
+
97
+ All issues filed in this repository must abide by the [FusionAuth community guidelines](https://fusionauth.io/community/forum/topic/1000/code-of-conduct).
98
+
99
+ === License
100
+
101
+ This code is available as open source under the terms of the https://opensource.org/licenses/Apache-2.0[Apache v2.0 License].
102
+
103
+ //tag::forDocSite[]
104
+
105
+ //end::forDocSite[]
106
+
data/build.savant CHANGED
@@ -15,7 +15,7 @@
15
15
  */
16
16
 
17
17
  pubVersion = ""
18
- project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.42.0", licenses: ["ApacheV2_0"]) {
18
+ project(group: "io.fusionauth", name: "fusionauth-ruby-client", version: "1.43.0", licenses: ["ApacheV2_0"]) {
19
19
  workflow {
20
20
  fetch {
21
21
  cache()