fastcomments 3.0.0 → 3.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4d61f66ef004014dd5e6610b8cfd069ef2c64c8c266d3992cc51d38b54738018
4
- data.tar.gz: 9a0d9c2a4bb92ddc3750fe45bfb109f1769d8b1232cae194ab3100e45a93741d
3
+ metadata.gz: 45f73c8275559e6073759d1437344b990f721bd08628e6101be1e3277c645302
4
+ data.tar.gz: f3178c19e05f6199eeaf899dc4f61deb3a875a6c73d77d9e98bf7fe3757f1cd0
5
5
  SHA512:
6
- metadata.gz: 5b648c0d71d7aeb35a05f2ff33f1cb8dacd2e35d8784ddf7c30cd4d8c75728c108489cf5986438d23181dd3a94b5a28e7567abb4894869ee7f97b283e8983b5b
7
- data.tar.gz: 8b56f3aff1653c9e8c94cdd007b115f9ec293c8b1048135e2bdfea6a57695f09760ba59098ada4fa4ba5aa804911f742c6e00428e785d6b60f64fba3133680c8
6
+ metadata.gz: 1416df745dfce9fea2912e42b362d7212b2db4ce37913fc5123264ccb1977d53417c3d1506cfa5b8feb63760e6c9b8522de9ec63da0f5c5b3a094e6c8b3a25d5
7
+ data.tar.gz: d8abed7e06a3ee52bf61562a52eb79c8778bee768b5893d765e69dfc4cb0c378c072527fcf89071f1b25f829ee3cdf84b953e5afb9903cbef7a46873a7c7cad5
data/README.md CHANGED
@@ -1,6 +1,18 @@
1
1
  # fastcomments
2
2
  The FastComments Ruby SDK. You can use this to build secure and scalable backend applications that interact with FastComments, or build reactive client applications.
3
3
 
4
+ ## AI coding agents
5
+
6
+ [![skills.sh](https://skills.sh/b/fastcomments/skills)](https://skills.sh/fastcomments/skills)
7
+
8
+ Give your coding agent the FastComments context it needs - widgets, configuration, Secure SSO, the REST API, and the SDKs:
9
+
10
+ ```bash
11
+ npx skills add fastcomments/skills
12
+ ```
13
+
14
+ Works with Claude Code, Codex, Cursor, Copilot, Gemini, and every other agent the [skills CLI](https://github.com/vercel-labs/skills) supports.
15
+
4
16
  ## Installation
5
17
 
6
18
  Add this line to your application's Gemfile:
@@ -141,7 +153,8 @@ require 'fastcomments'
141
153
  user = FastComments::SSO::SimpleSSOUserData.new(
142
154
  user_id: 'user-123',
143
155
  email: 'user@example.com',
144
- avatar: 'https://example.com/avatar.jpg'
156
+ avatar: 'https://example.com/avatar.jpg',
157
+ username: 'johndoe'
145
158
  )
146
159
 
147
160
  sso = FastComments::SSO::FastCommentsSSO.new_simple(user)
data/client/README.md CHANGED
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 0.0.0
10
- - Package version: 3.0.0
10
+ - Package version: 3.0.1
11
11
  - Generator version: 7.23.0-SNAPSHOT
12
12
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
13
13
 
@@ -24,16 +24,16 @@ gem build fastcomments-client.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./fastcomments-client-3.0.0.gem
27
+ gem install ./fastcomments-client-3.0.1.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./fastcomments-client-3.0.0.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./fastcomments-client-3.0.1.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'fastcomments-client', '~> 3.0.0'
36
+ gem 'fastcomments-client', '~> 3.0.1'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -11,5 +11,5 @@ Generator version: 7.23.0-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module FastCommentsClient
14
- VERSION = '3.0.0'
14
+ VERSION = '3.0.1'
15
15
  end
@@ -18,7 +18,7 @@ module FastComments
18
18
  end
19
19
 
20
20
  def self.new_secure(api_key, secure_sso_user_data)
21
- timestamp = Time.now.to_i
21
+ timestamp = (Time.now.to_f * 1000).to_i
22
22
 
23
23
  user_data_str = secure_sso_user_data.as_json_base64
24
24
  hash = Helpers.create_verification_hash(api_key, timestamp, user_data_str)
@@ -48,7 +48,7 @@ module FastComments
48
48
  if @secure_sso_payload
49
49
  @secure_sso_payload.to_json
50
50
  elsif @simple_sso_user_data
51
- @simple_sso_user_data.to_json
51
+ { simpleSSOUser: @simple_sso_user_data }.to_json
52
52
  else
53
53
  raise StandardError, 'No user data provided'
54
54
  end
@@ -13,8 +13,8 @@ module FastComments
13
13
 
14
14
  def to_json(*args)
15
15
  {
16
- user_data_json_base64: @user_data_json_base64,
17
- verification_hash: @verification_hash,
16
+ userDataJSONBase64: @user_data_json_base64,
17
+ verificationHash: @verification_hash,
18
18
  timestamp: @timestamp
19
19
  }.to_json(*args)
20
20
  end
@@ -15,7 +15,7 @@ module FastComments
15
15
 
16
16
  def to_json(*args)
17
17
  {
18
- user_id: @user_id,
18
+ id: @user_id,
19
19
  email: @email,
20
20
  username: @username,
21
21
  avatar: @avatar
@@ -3,20 +3,24 @@ require 'json'
3
3
  module FastComments
4
4
  module SSO
5
5
  class SimpleSSOUserData
6
- attr_accessor :user_id, :email, :avatar
6
+ attr_accessor :user_id, :email, :avatar, :username
7
7
 
8
- def initialize(user_id:, email:, avatar:)
8
+ # The server requires a username to authenticate the user.
9
+ def initialize(user_id:, email:, avatar:, username: nil)
9
10
  @user_id = user_id
10
11
  @email = email
11
12
  @avatar = avatar
13
+ @username = username
12
14
  end
13
15
 
14
16
  def to_json(*args)
15
- {
16
- user_id: @user_id,
17
+ data = {
18
+ id: @user_id,
17
19
  email: @email,
18
20
  avatar: @avatar
19
- }.to_json(*args)
21
+ }
22
+ data[:username] = @username if @username
23
+ data.to_json(*args)
20
24
  end
21
25
  end
22
26
  end
data/lib/fastcomments.rb CHANGED
@@ -6,5 +6,5 @@ require_relative 'fastcomments/sso/fastcomments_sso'
6
6
  require 'fastcomments-client'
7
7
 
8
8
  module FastComments
9
- VERSION = '3.0.0'
9
+ VERSION = '3.0.1'
10
10
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fastcomments
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - FastComments
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-06-30 00:00:00.000000000 Z
11
+ date: 2026-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus