Upgrade dry-struct to 0.7.0 (#2530) [ci skip]
This commit is contained in:
parent
c4f177c72f
commit
33a0fe05ed
4 changed files with 11 additions and 17 deletions
2
Gemfile
2
Gemfile
|
|
@ -39,7 +39,7 @@ gem "delayed_job_active_record", "~> 4.1" # ActiveRecord backend for Delayed::Jo
|
|||
gem "delayed_job_web", "~> 1.4" # Web interface for delayed_job
|
||||
gem "devise", "~> 4.6" # Flexible authentication solution for Rails
|
||||
gem "draper", "~> 3.0" # Draper adds an object-oriented layer of presentation logic to your Rails apps
|
||||
gem "dry-struct", "~> 0.6" # Typed structs and value objects
|
||||
gem "dry-struct", "~> 0.7" # Typed structs and value objects
|
||||
gem "email_validator", "~> 2.0" # Email validator for Rails and ActiveModel
|
||||
gem "emoji_regex", "~> 2.0" # A pair of Ruby regular expressions for matching Unicode Emoji symbols
|
||||
gem "envied", "~> 0.9" # Ensure presence and type of your app's ENV-variables
|
||||
|
|
|
|||
14
Gemfile.lock
14
Gemfile.lock
|
|
@ -267,20 +267,20 @@ GEM
|
|||
concurrent-ruby (~> 1.0)
|
||||
dry-equalizer (0.2.2)
|
||||
dry-inflector (0.1.2)
|
||||
dry-logic (0.5.0)
|
||||
dry-container (~> 0.2, >= 0.2.6)
|
||||
dry-logic (0.6.1)
|
||||
concurrent-ruby (~> 1.0)
|
||||
dry-core (~> 0.2)
|
||||
dry-equalizer (~> 0.2)
|
||||
dry-struct (0.6.0)
|
||||
dry-struct (0.7.0)
|
||||
dry-core (~> 0.4, >= 0.4.3)
|
||||
dry-equalizer (~> 0.2)
|
||||
dry-types (~> 0.13)
|
||||
dry-types (~> 0.15)
|
||||
ice_nine (~> 0.11)
|
||||
dry-types (0.14.0)
|
||||
dry-types (0.15.0)
|
||||
concurrent-ruby (~> 1.0)
|
||||
dry-container (~> 0.3)
|
||||
dry-core (~> 0.4, >= 0.4.4)
|
||||
dry-equalizer (~> 0.2)
|
||||
dry-equalizer (~> 0.2, >= 0.2.2)
|
||||
dry-inflector (~> 0.1, >= 0.1.2)
|
||||
dry-logic (~> 0.5, >= 0.5)
|
||||
em-websocket (0.5.1)
|
||||
|
|
@ -994,7 +994,7 @@ DEPENDENCIES
|
|||
derailed_benchmarks (~> 1.3)
|
||||
devise (~> 4.6)
|
||||
draper (~> 3.0)
|
||||
dry-struct (~> 0.6)
|
||||
dry-struct (~> 0.7)
|
||||
email_validator (~> 2.0)
|
||||
emoji_regex (~> 2.0)
|
||||
envied (~> 0.9)
|
||||
|
|
|
|||
|
|
@ -1,10 +1,7 @@
|
|||
require "dry-types"
|
||||
require "dry-struct"
|
||||
|
||||
module Notifications
|
||||
module NewFollower
|
||||
module Types
|
||||
include Dry::Types.module
|
||||
include Dry.Types
|
||||
end
|
||||
|
||||
class FollowData < Dry::Struct
|
||||
|
|
|
|||
|
|
@ -1,15 +1,12 @@
|
|||
require "dry-types"
|
||||
require "dry-struct"
|
||||
|
||||
module Notifications
|
||||
module Reactions
|
||||
module Types
|
||||
include Dry::Types.module
|
||||
include Dry.Types
|
||||
end
|
||||
|
||||
class ReactionData < Dry::Struct
|
||||
attribute :reactable_id, Types::Strict::Integer
|
||||
attribute :reactable_type, Types::Strict::String
|
||||
attribute :reactable_type, Types::Strict::String.enum("Article", "Comment")
|
||||
attribute :reactable_user_id, Types::Strict::Integer
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue