Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions features/stoplight/support/stoplight_world.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,44 +10,36 @@
module StoplightWorld
# @!attribute data_store
# @return [Stoplight::DataStore::Base]
# @dynamic data_store
attr_reader :data_store

# @!attribute notifiers
# @return [<Stoplight::Notifier::Base>]
# @dynamic notifiers
attr_reader :notifiers

# Provides access to the notifications system used for testing.
#
# @return [Notifications] The notifications instance.
# @dynamic notifications
attr_reader :notifications

# @!attribute current_light
# @return [Stoplight::Light, nil] The current Stoplight instance being tested
# @dynamic current_light
attr_accessor :current_light

# @!attribute last_result
# @return [Object, nil] The result of the last operation performed in the Stoplight
# @dynamic last_result
attr_reader :last_result

# @!attribute last_exception
# @return [StandardError, nil] The last exception raised during the operation
# @dynamic last_exception
attr_reader :last_exception

# @!attribute last_fallback_received_argument
# @return [any] the last argument received by a fallback function
# @dynamic last_fallback_received_argument
attr_accessor :last_fallback_received_argument

# Provides access to the echo service used for testing.
#
# @return [EchoService] The echo service instance.
# @dynamic echo_service
attr_reader :echo_service

# Captures the result of a block execution, storing the result or exception.
Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/admin/actions/action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ module Actions
class Action
# @!attribute lights_repository
# @return [Stoplight::Admin::LightsRepository]
# @dynamic lights_repository
attr_reader :lights_repository
private :lights_repository

Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/admin/actions/stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ module Actions
class Stats < Action
# @!attribute lights_stats
# @return [Class<Stoplight::Admin::LightsStats>]
# @dynamic lights_stats
attr_reader :lights_stats
private :lights_stats

Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/admin/dependencies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class Admin
class Dependencies
# @!attribute data_store
# @return [Stoplight::DataStore::Base]
# @dynamic data_store
attr_reader :data_store
private :data_store

Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/admin/lights_repository.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ class Admin
class LightsRepository
# @!attribute data_store
# @return [Stoplight::Domain::_DataStore]
# @dynamic data_store
attr_reader :data_store
private :data_store

Expand Down
6 changes: 0 additions & 6 deletions lib/stoplight/admin/lights_repository/light.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,32 +14,26 @@ class Light

# @!attribute id
# @return [String]
# @dynamic id
attr_reader :id

# @!attribute name
# @return [String]
# @dynamic name
attr_reader :name

# @!attribute color
# @return [String]
# @dynamic color
attr_reader :color

# @!attribute state
# @return [String]
# @dynamic state
attr_reader :state

# @!attribute failures
# @return [<Stoplight::Failure>]
# @dynamic failures
attr_reader :failures

# @!attribute failure_count
# @return [Integer]
# @dynamic failure_count
attr_reader :failure_count

# @param name [String]
Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/admin/lights_stats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ class LightsStats

# @!attribute lights
# @return [<Stoplight::Admin::LightsRepository::Light>]
# @dynamic lights
attr_reader :lights
private :lights

Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/domain/compatibility_result.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def incompatible? = !compatible?

# Retrieves the list of error messages.
# @return The list of error messages.
# @dynamic errors
attr_reader :errors

# Retrieves a concatenated error message string.
Expand Down
3 changes: 0 additions & 3 deletions lib/stoplight/domain/failure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,10 @@ module Domain
# @api private
class Failure
# @return [String]
# @dynamic error_class
attr_reader :error_class
# @return [String]
# @dynamic error_message
attr_reader :error_message
# @return [Time]
# @dynamic time
attr_reader :time

# @param error [Exception]
Expand Down
3 changes: 0 additions & 3 deletions lib/stoplight/error.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,15 @@ class IncorrectColor < Base
class RedLight < Base
# @!attribute light_name
# @return [String] The light's name
# @dynamic light_name
attr_reader :light_name

# @!attribute cool_off_time
# @return [Numeric] Cool-off period in seconds
# @dynamic cool_off_time
attr_reader :cool_off_time

# @!attribute retry_after
# @return [Time | nil] Absolute Time after which a recovery attempt can occur
# could be nil if the light is locked red
# @dynamic retry_after
attr_reader :retry_after

# Initializes a new RedLight error.
Expand Down
2 changes: 0 additions & 2 deletions lib/stoplight/infrastructure/memory/data_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,10 @@ class DataStore
# @!attribute recovery_lock_store
# @return [Stoplight::Infrastructure::Memory::DataStore::RecoveryLockStore]
# @api private
# @dynamic recovery_lock_store
private attr_reader :recovery_lock_store

# @!attribute clock
# @return [Stoplight::Domain::_Clock]
# @dynamic clock
private attr_reader :clock

# @param recovery_lock_store [Stoplight::Infrastructure::Memory::DataStore::RecoveryLockStore]
Expand Down
5 changes: 0 additions & 5 deletions lib/stoplight/infrastructure/redis/data_store.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,27 +79,22 @@ def bucket_key(light_name, metric:, time:)

# @!attribute recovery_lock_store
# @return [Stoplight::Infrastructure::Redis::DataStore::RecoveryLockStore]
# @dynamic recovery_lock_store
protected attr_reader :recovery_lock_store

# @!attribute scripting
# @return [Stoplight::Infrastructure::Redis::DataStore::Scripting]
# @dynamic scripting
protected attr_reader :scripting

# @!attribute redis
# @return [::Redis | ConnectionPool<::Redis>]
# @dynamic redis
protected attr_reader :redis

# @!attribute warn_on_clock_skew
# @return [Boolean]
# @dynamic warn_on_clock_skew
protected attr_reader :warn_on_clock_skew

# @!attribute clock
# @return [Stoplight::Domain::_Clock]
# @dynamic clock
private attr_reader :clock

# @param redis [::Redis, ConnectionPool<::Redis>]
Expand Down
1 change: 0 additions & 1 deletion lib/stoplight/wiring/system/light_factory.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ module Stoplight
module Wiring
class System
class LightFactory < Wiring::LightFactory
# @dynamic system
attr_reader :system

def initialize(system:, config:)
Expand Down