dryer_routes 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a0daf5be57e9f83be3336908b4c91e317c379125dfe7ebf169d871069cbbc191
4
- data.tar.gz: d7993a1caac99edfd196e4bfa9ed46b3e0c3f790d78e57759b4645939d6b07f2
3
+ metadata.gz: 5c4ab11a10ae2c4b6cdfe2c82e054e1e9ef730ff3bf10c123bb0dfe8bbab05b2
4
+ data.tar.gz: 2d3f288428329f0c3b8f42f52fc0aead1830db85bc4ec02919bed1ed303ec877
5
5
  SHA512:
6
- metadata.gz: 01035ae9c9ac7ddd871d4f255222af12ffcda7f6b8559669ab33ef442110afdff4683ff722507c43606c57047170500fc8e8410279a8e984a0afd091b2db977f
7
- data.tar.gz: 8629dc965328f7e627e8436e34cb4b20ef7ac00b291eed061d9959c43ec3df07a6d366b2f360bc615c4b9e33b8369ff1fa49e74f4363c984f4b686ba520bd6ca
6
+ metadata.gz: 80149658ca6548e6f20eec62f6b8aef9678b83d8facc163e9107a04b18f0b1094f6c36055bca64d43a3667a7f608930769a9d4ea6be87f4697e6289883eaad39
7
+ data.tar.gz: f814d934d8102e65e29f80d78df36068c63342d1b33bc3a0c5c3805bfaffaecb2cac7624394a14a93a3118359404fa4a7d0bce1cd0ff2386b0aa11fc7a4d4913
data/dryer_routes.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |spec|
2
2
  spec.name = 'dryer_routes'
3
- spec.version = "0.0.1"
3
+ spec.version = "0.1.0"
4
4
  spec.authors = ['John Bernier']
5
5
  spec.email = ['john.b.bernier@gmail.com']
6
6
  spec.summary = 'Typed routing for rails leveraging dry-validation contracts'
@@ -24,6 +24,7 @@ Gem::Specification.new do |spec|
24
24
  ]
25
25
  spec.add_dependency "dry-validation", "~> 1.10"
26
26
  spec.add_dependency "dry-types", "~> 1.7"
27
+ spec.add_dependency "dryer_services", "~> 1.0"
27
28
  spec.add_development_dependency "rspec", "~> 3.10"
28
29
  spec.add_development_dependency "debug", "~> 1.8"
29
30
  end
@@ -1,9 +1,9 @@
1
- require_relative "./simple_service"
2
1
  require_relative "./route"
2
+ require "dryer_services"
3
3
 
4
4
  module Dryer
5
5
  module Routes
6
- class BuildFromResource < SimpleService
6
+ class BuildFromResource < Dryer::Services::SimpleService
7
7
  def initialize(resource)
8
8
  @resource = resource
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryer_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bernier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-01 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dry-validation
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.7'
41
+ - !ruby/object:Gem::Dependency
42
+ name: dryer_services
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rspec
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -84,7 +98,6 @@ files:
84
98
  - lib/dryer/routes/registry.rb
85
99
  - lib/dryer/routes/resource_schema.rb
86
100
  - lib/dryer/routes/route.rb
87
- - lib/dryer/routes/simple_service.rb
88
101
  - lib/dryer/routes/version.rb
89
102
  - lib/dryer_routes.rb
90
103
  homepage: https://github.com/jbernie2/dryer-routes
@@ -1,13 +0,0 @@
1
- module Dryer
2
- module Routes
3
- class SimpleService
4
- def self.call(*args)
5
- if args.length == 1 && args[0].is_a?(Hash)
6
- new(**args[0]).call
7
- else
8
- new(*args).call
9
- end
10
- end
11
- end
12
- end
13
- end