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 +4 -4
- data/dryer_routes.gemspec +2 -1
- data/lib/dryer/routes/build_from_resource.rb +0 -1
- data/lib/dryer/routes/registry.rb +0 -5
- data/lib/dryer/routes/url_builder.rb +0 -1
- data/lib/dryer/routes.rb +25 -0
- data/lib/dryer_routes.rb +1 -1
- metadata +16 -3
- data/lib/dryer/routes/registries/create.rb +0 -11
- data/lib/dryer/routes/version.rb +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a8e8605f3d6633a41935ff3cc4c41bae7e52d88f64afa6ed95cf8b75e0a4182
|
4
|
+
data.tar.gz: 9c907db2f384c236a9227352697d4578c46f3fec6f5d64dbc17ccdf9aa9a1d5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
data/lib/dryer/routes.rb
ADDED
@@ -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
|
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.
|
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:
|