dryer_routes 0.5.0 → 0.5.1

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: db3c5e4d0a5b6da6c17cd4c52744a5ef90382e6de723d17a3b8661408033c4df
4
+ data.tar.gz: 409d7ba0396eea7e623d719861cd030438fa7dde30fbe7b71c72536acb962d6b
5
5
  SHA512:
6
- metadata.gz: c7b1a039f2781bc101392ca06b5722cd5bd545bd585c8459a7e6328a67c02eefec0f79d833fdc85a3b105ccfb29e58355d50a9f6ccca600be82771682d117bee
7
- data.tar.gz: 3eacb0a2685e42e4a96d6ce7cfb26714bb640713b5c1cd3aff146e21f1ff918c65ed75717342f9cb92ea6984c58f4ac59355ef696f6e3e1631023eada3bc2cb7
6
+ metadata.gz: 062e66fb4a47a501e52bc88764c774ff8a2715b5fe0445bf33c3ca11436ada9846c79cc734f984f219b668845a41087b48614b04004d0fec82db8fc0b73e6861
7
+ data.tar.gz: cecbf962ae3c78329a2a0aa2bc8da858cc15942ca1f07b60d1178bb32c86226b2aa69a6ed15b13c4d90617b83f441a00b37287227e6ace70770227224d5c57af
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.1"
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,23 @@
1
+ require "zeitwerk"
2
+ require "rubygems"
3
+
4
+ module Dryer
5
+ module Routes
6
+ VERSION = Gem::Specification::load(
7
+ "./dryer_routes.gemspec"
8
+ ).version
9
+
10
+ def self.loader
11
+ @loader ||= Zeitwerk::Loader.new.tap do |loader|
12
+ root = File.expand_path("..", __dir__)
13
+ loader.tag = "dryer_routes"
14
+ loader.inflector = Zeitwerk::GemInflector.new("#{root}/dry_routes.rb")
15
+ loader.push_dir(root)
16
+ loader.ignore(
17
+ "#{root}/dry_routes.rb",
18
+ )
19
+ end
20
+ end
21
+ loader.setup
22
+ end
23
+ 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.1
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