Skip to content

Commit

Permalink
Merge pull request #117 from sideshowbandana/dry_types_to_0_15
Browse files Browse the repository at this point in the history
Update DryTypes to 0.15
  • Loading branch information
richmolj authored Mar 30, 2019
2 parents b101b03 + 5618560 commit f6f10f9
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion graphiti.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Gem::Specification.new do |spec|
spec.required_ruby_version = "~> 2.3"

spec.add_dependency "jsonapi-serializable", "~> 0.3.0"
spec.add_dependency "dry-types", "~> 0.13"
spec.add_dependency "dry-types", "~> 0.15"
spec.add_dependency "graphiti_errors", "~> 1.0.beta.1"
spec.add_dependency "concurrent-ruby", "~> 1.0"
spec.add_dependency "activesupport", [">= 4.1", "< 6"]
Expand Down
2 changes: 1 addition & 1 deletion lib/graphiti/types.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module Graphiti
class Types
def self.create(primitive, &blk)
definition = Dry::Types::Definition.new(primitive)
definition = Dry::Types::Nominal.new(primitive)
definition.constructor(&blk)
end

Expand Down
2 changes: 1 addition & 1 deletion spec/filtering_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1120,7 +1120,7 @@ def assert_filter_value(value)

context "when custom type" do
before do
type = Dry::Types::Definition
type = Dry::Types::Nominal
.new(nil)
.constructor { |input|
"custom!"
Expand Down
2 changes: 1 addition & 1 deletion spec/persistence_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2102,7 +2102,7 @@ def save(value)

context "when custom type" do
before do
type = Dry::Types::Definition
type = Dry::Types::Nominal
.new(nil)
.constructor { |input|
"custom!"
Expand Down
4 changes: 2 additions & 2 deletions spec/serialization_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def self.name

context "when id is custom type" do
before do
type = Dry::Types::Definition.new(String).constructor { |input|
type = Dry::Types::Nominal.new(String).constructor { |input|
"custom!"
}
Graphiti::Types[:custom] = {
Expand Down Expand Up @@ -555,7 +555,7 @@ def my_method

context "when custom type" do
before do
type = Dry::Types::Definition
type = Dry::Types::Nominal
.new(nil)
.constructor { |input|
"custom!"
Expand Down

0 comments on commit f6f10f9

Please sign in to comment.