morphe_adapter_sdk 1.0.3 → 1.0.4

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: 53ce647bde3d2d7914bab8467f9c89769930dd8d347112c20ed69397afeac4b0
4
- data.tar.gz: 58d2745047fef7863ba23fae9e0fc39728e4e0c112344e22d7e642c8872fc508
3
+ metadata.gz: 7b9b5934056aa930b569c508fbfcdd564294b2275b1d87249ee55e82bcb7feb7
4
+ data.tar.gz: d79fc30c2473b428fb422779cfc12b66b0d9df23db52e7054a45e423fccfe20d
5
5
  SHA512:
6
- metadata.gz: f253e5faa86970539bd614d827fd331860a161ab2698e6a3b3b017fb3ffdeab11ec06c2f19c922c4662315d3f5c0f848210ee8e95acc45a226fc76f36b004ac7
7
- data.tar.gz: aaedd4f6158c71627c0f4da906fb29fda37e1006e3afdb422efd09178585e1a370ea552ba4ee20b0f4e340c69a5a12c599687001f68a9f4d084549937aa7cd82
6
+ metadata.gz: ad43411bd32965d87c5b5260e46d1f67487a15d5946bb82a1be17bfaa077cbbed261f6b617dd0b0d2105ad71db94e31ae126c51dfcd114d1fc244946acda4ea3
7
+ data.tar.gz: d309d01820f6fbda8b21b9b4382c6779122a3ec96b8252e490654c9c2d1c70c68d2f9662701686c574acbd078c3f9267a79458905a10668e0a12b9d6133c9cfb
@@ -5,7 +5,7 @@ require "net/http"
5
5
  require "uri"
6
6
 
7
7
  module MorpheAdapterSdk
8
- # Synchronous client for emitting events to the Morphe Control Plane.
8
+ # Synchronous client for emitting events to the Morphe Morphe OS.
9
9
  #
10
10
  # Supports:
11
11
  # - Optional pre-emit JSON Schema validation (+validate_schema: true+)
@@ -27,7 +27,7 @@ module MorpheAdapterSdk
27
27
  DEFAULT_BASE_DELAY = 0.5 # seconds
28
28
 
29
29
  # @!attribute [r] endpoint
30
- # @return [String] resolved Control Plane base URL
30
+ # @return [String] resolved Morphe OS base URL
31
31
  attr_reader :endpoint
32
32
 
33
33
  # @param token [String] JWT Bearer token
@@ -54,7 +54,7 @@ module MorpheAdapterSdk
54
54
  @schema_cache = {}
55
55
  end
56
56
 
57
- # Emit a single event to the Control Plane.
57
+ # Emit a single event to the Morphe OS.
58
58
  #
59
59
  # If +validate_schema+ was set at construction, the payload is validated
60
60
  # against the registered schema before any HTTP request is made.
@@ -62,7 +62,7 @@ module MorpheAdapterSdk
62
62
  #
63
63
  # Retries on 5xx responses and network failures with exponential backoff.
64
64
  # Raises +ApiError+ on non-retryable HTTP errors (4xx).
65
- # Raises +NetworkError+ when the Control Plane cannot be reached.
65
+ # Raises +NetworkError+ when the Morphe OS cannot be reached.
66
66
  #
67
67
  # @param event [Hash] event payload (symbol or string keys)
68
68
  # @return [EmitResult]
@@ -120,7 +120,7 @@ module MorpheAdapterSdk
120
120
  http.request(req)
121
121
  end
122
122
  rescue SocketError, Errno::ECONNREFUSED, Errno::ETIMEDOUT, Net::OpenTimeout, Net::ReadTimeout => e
123
- raise NetworkError.new("Failed to reach the Control Plane", e)
123
+ raise NetworkError.new("Failed to reach the Morphe OS", e)
124
124
  end
125
125
 
126
126
  def parse_errors(response)
@@ -5,7 +5,7 @@ module MorpheAdapterSdk
5
5
  # Callers can rescue MorpheAdapterSdk::Error to catch any SDK error.
6
6
  class Error < StandardError; end
7
7
 
8
- # Raised when the Control Plane returns a non-2xx response.
8
+ # Raised when the Morphe OS returns a non-2xx response.
9
9
  #
10
10
  # Exposes the first JSON:API error's +code+, +title+, and +detail+
11
11
  # fields as top-level attributes for easy exception handling, plus the
@@ -39,7 +39,7 @@ module MorpheAdapterSdk
39
39
  end
40
40
  end
41
41
 
42
- # Raised when a network-level failure prevents reaching the Control Plane.
42
+ # Raised when a network-level failure prevents reaching the Morphe OS.
43
43
  # Retries are already exhausted before this is raised.
44
44
  class NetworkError < Error
45
45
  attr_reader :original_error
@@ -3,7 +3,7 @@
3
3
  module MorpheAdapterSdk
4
4
  VERSION = "1.0.0"
5
5
 
6
- # Default production endpoint for the Morphe Control Plane.
6
+ # Default production endpoint for the Morphe Morphe OS.
7
7
  # Override via the MORPHE_ENDPOINT environment variable for development
8
8
  # or self-hosted deployments.
9
9
  DEFAULT_ENDPOINT = "https://api.morphe.io"
@@ -7,7 +7,7 @@ require_relative "morphe_adapter_sdk/retry"
7
7
  require_relative "morphe_adapter_sdk/client"
8
8
 
9
9
  # MorpheAdapterSdk — Ruby adapter for emitting governance events to the
10
- # Morphe Control Plane.
10
+ # Morphe Morphe OS.
11
11
  #
12
12
  # @example
13
13
  # client = MorpheAdapterSdk::Client.new(token: ENV["MORPHE_TOKEN"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morphe_adapter_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Morphe
@@ -100,5 +100,5 @@ requirements: []
100
100
  rubygems_version: 3.5.22
101
101
  signing_key:
102
102
  specification_version: 4
103
- summary: Ruby adapter SDK for emitting events to the Morphe Control Plane
103
+ summary: Ruby adapter SDK for emitting events to the Morphe OS
104
104
  test_files: []