dryer_routes 0.5.0 → 0.5.2

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: 1111d6f7ed55f154190ba49699ebc7cbb8dc1d960709557907b2577ddca7f6b4
4
- data.tar.gz: 0deee81d1747cfc58c5810ca52841e6138c3b0fe0346b924436cb7882a9d5b7a
3
+ metadata.gz: 3a8e8605f3d6633a41935ff3cc4c41bae7e52d88f64afa6ed95cf8b75e0a4182
4
+ data.tar.gz: 9c907db2f384c236a9227352697d4578c46f3fec6f5d64dbc17ccdf9aa9a1d5f
5
5
  SHA512:
6
- metadata.gz: c7b1a039f2781bc101392ca06b5722cd5bd545bd585c8459a7e6328a67c02eefec0f79d833fdc85a3b105ccfb29e58355d50a9f6ccca600be82771682d117bee
7
- data.tar.gz: 3eacb0a2685e42e4a96d6ce7cfb26714bb640713b5c1cd3aff146e21f1ff918c65ed75717342f9cb92ea6984c58f4ac59355ef696f6e3e1631023eada3bc2cb7
6
+ metadata.gz: afaf9df048ec4dbafb3dce59b78b37853e345b99d94f9bce63123dae394c25a558d0311d54fd35417ae407d8c7edd3052ef18bda498e80cac0c4550f47f5d9d5
7
+ data.tar.gz: fe0122aaa65830092dae8a49e311608fab3cff6714722c8ff25c4437e495432a7784e41e41a740f44834493c7ae8ddb24923efa8065cc1505cdce5485d8e9177
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.5.0"
3
+ spec.version = "0.5.2"
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'
@@ -25,6 +25,7 @@ Gem::Specification.new do |spec|
25
25
  spec.add_dependency "dry-validation", "~> 1.10"
26
26
  spec.add_dependency "dry-types", "~> 1.7"
27
27
  spec.add_dependency "dryer_services", "~> 2.0"
28
+ spec.add_dependency "zeitwerk", "~> 2.6"
28
29
  spec.add_development_dependency "rspec", "~> 3.10"
29
30
  spec.add_development_dependency "debug", "~> 1.8"
30
31
  end
@@ -1,4 +1,3 @@
1
- require_relative "./route"
2
1
  require "dryer_services"
3
2
 
4
3
  module Dryer
@@ -1,8 +1,3 @@
1
- require_relative "./build_from_resource.rb"
2
- require_relative "./hash_object.rb"
3
- require_relative "./resource_schema.rb"
4
- require_relative "./extract_validated_keys.rb"
5
-
6
1
  module Dryer
7
2
  module Routes
8
3
  class Registry
@@ -1,5 +1,4 @@
1
1
  require "dryer_services"
2
- require "debug"
3
2
 
4
3
  module Dryer
5
4
  module Routes
@@ -0,0 +1,25 @@
1
+ require "zeitwerk"
2
+ require "rubygems"
3
+
4
+ module Dryer
5
+ module Routes
6
+ def self.version
7
+ Gem::Specification::load(
8
+ "./dryer_routes.gemspec"
9
+ ).version
10
+ end
11
+
12
+ def self.loader
13
+ @loader ||= Zeitwerk::Loader.new.tap do |loader|
14
+ root = File.expand_path("..", __dir__)
15
+ loader.tag = "dryer_routes"
16
+ loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry_routes.rb")
17
+ loader.push_dir(root)
18
+ loader.ignore(
19
+ "#{root}/dry_routes.rb",
20
+ )
21
+ end
22
+ end
23
+ loader.setup
24
+ end
25
+ end
data/lib/dryer_routes.rb CHANGED
@@ -1 +1 @@
1
- require_relative "./dryer/routes/registry.rb"
1
+ require_relative "./dryer/routes.rb"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryer_routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Bernier
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: zeitwerk
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.6'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.6'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: rspec
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -92,15 +106,14 @@ files:
92
106
  - LICENSE
93
107
  - README.md
94
108
  - dryer_routes.gemspec
109
+ - lib/dryer/routes.rb
95
110
  - lib/dryer/routes/build_from_resource.rb
96
111
  - lib/dryer/routes/extract_validated_keys.rb
97
112
  - lib/dryer/routes/hash_object.rb
98
- - lib/dryer/routes/registries/create.rb
99
113
  - lib/dryer/routes/registry.rb
100
114
  - lib/dryer/routes/resource_schema.rb
101
115
  - lib/dryer/routes/route.rb
102
116
  - lib/dryer/routes/url_builder.rb
103
- - lib/dryer/routes/version.rb
104
117
  - lib/dryer_routes.rb
105
118
  homepage: https://github.com/jbernie2/dryer-routes
106
119
  licenses:
@@ -1,11 +0,0 @@
1
- module Dryer
2
- module Routes
3
- module Registries
4
- class Create < SimpleService
5
- def call
6
-
7
- end
8
- end
9
- end
10
- end
11
- end
@@ -1,9 +0,0 @@
1
- require "rubygems"
2
-
3
- module Dryer
4
- module Routes
5
- VERSION = Gem::Specification::load(
6
- "./dryer_routes.gemspec"
7
- ).version
8
- end
9
- end