dry_schema_rails 0.1.0 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -17
- data/lib/dry_schema_rails/base.rb +9 -4
- data/lib/dry_schema_rails/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e0ab00d425f197732b212e89786fc907a79777a587553179f9bfb1f73fd0993
|
|
4
|
+
data.tar.gz: 9febc5e668f7baef5e14d586aa1defcc911bf5db669a27406127a3a59dba5d0b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 55cf34abdd81b67cd17bee24148f6ad759e94534b72da8987f08459446066bd1066f16d99067600e5b0de25bb853dbda6a52a1168d2c4a258873a8fa62b35df1
|
|
7
|
+
data.tar.gz: b86a495286b57a8b88ae35a1c355cf36f0fa62e3b431429493e827242feb29240500c933bbb72ce4d6a08677214c86699c0f4b8b690d508efdd2a08db32d1a36
|
data/CHANGELOG.md
CHANGED
|
@@ -1,29 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
-
All notable changes to
|
|
3
|
+
All notable changes to [dry_schema_rails](https://github.com/golifox/dry_schema_rails) will be documented in this file.
|
|
4
4
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
-
## [
|
|
9
|
-
|
|
10
|
-
### Added
|
|
11
|
-
- Initial development and features yet to be released.
|
|
12
|
-
|
|
13
|
-
## [0.2.0] - 2023-10-20
|
|
14
|
-
|
|
15
|
-
### Added
|
|
16
|
-
- Feature X that does Y.
|
|
17
|
-
- Improved documentation for feature Z.
|
|
18
|
-
|
|
8
|
+
## [0.1.1] - 2023-10-12
|
|
19
9
|
### Fixed
|
|
20
|
-
-
|
|
10
|
+
- Maintain errors
|
|
21
11
|
|
|
22
12
|
### Changed
|
|
23
|
-
-
|
|
13
|
+
- class_method to instance class variables
|
|
24
14
|
|
|
25
15
|
### Removed
|
|
26
|
-
-
|
|
16
|
+
- Gem active-support
|
|
27
17
|
|
|
28
18
|
## [0.1.0] - 2023-10-10
|
|
29
19
|
|
|
@@ -35,6 +25,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
35
25
|
### Notes
|
|
36
26
|
- This version serves as the foundational architecture for future features.
|
|
37
27
|
|
|
38
|
-
[
|
|
39
|
-
[0.2.0]: https://github.com/your_username/dry_schema_rails/compare/v0.1.0...v0.2.0
|
|
28
|
+
[0.1.1]: https://github.com/your_username/dry_schema_rails/compare/v0.1.0...v0.1.1
|
|
40
29
|
[0.1.0]: https://github.com/your_username/dry_schema_rails/releases/tag/v0.1.0
|
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
require 'dry-schema'
|
|
2
|
-
require 'active_support/core_ext/class/attribute'
|
|
3
2
|
|
|
4
3
|
module DrySchemaRails
|
|
5
4
|
class Base
|
|
6
|
-
class_attribute :_schema_proc, default: -> {}
|
|
7
|
-
|
|
8
5
|
class << self
|
|
6
|
+
def _schema_proc
|
|
7
|
+
@_schema_proc ||= -> {}
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def _schema_proc=(proc)
|
|
11
|
+
@_schema_proc = proc
|
|
12
|
+
end
|
|
13
|
+
|
|
9
14
|
def call(*args)
|
|
10
15
|
params.call(*args)
|
|
11
16
|
end
|
|
@@ -25,4 +30,4 @@ module DrySchemaRails
|
|
|
25
30
|
end
|
|
26
31
|
end
|
|
27
32
|
end
|
|
28
|
-
end
|
|
33
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dry_schema_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- David Rybolovlev
|
|
@@ -24,20 +24,6 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: '1.5'
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: activesupport
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: '6.1'
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: '6.1'
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
42
28
|
name: rspec
|
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -97,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
97
83
|
- !ruby/object:Gem::Version
|
|
98
84
|
version: '0'
|
|
99
85
|
requirements: []
|
|
100
|
-
rubygems_version: 3.4
|
|
86
|
+
rubygems_version: 3.1.4
|
|
101
87
|
signing_key:
|
|
102
88
|
specification_version: 4
|
|
103
89
|
summary: Simple DSL for reusing dry-schema in Rails.
|