dry_schema_rails 0.1.0 → 0.1.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: 6a4f36b5c56fee74bae96b4dc58ad417771401e43a3ad09ea82a1af3ede0796b
4
- data.tar.gz: 789431a29531e8bb001f4f5c59cf8edfa7f2a8d303a5ca8db2b5cace60a3dd85
3
+ metadata.gz: 5e0ab00d425f197732b212e89786fc907a79777a587553179f9bfb1f73fd0993
4
+ data.tar.gz: 9febc5e668f7baef5e14d586aa1defcc911bf5db669a27406127a3a59dba5d0b
5
5
  SHA512:
6
- metadata.gz: 4944f5d17da6df9265ebb55fbc03a9452ed74ef07eb05d95266e88f0247605c6846855aa74db3bb577653ca00d3991afdbe38e542b03404dd6af8ac169aa6acc
7
- data.tar.gz: 0ec54b772f7c76c3940aa36020d7cb89ab351734128f0c34e8c4538425114e838e32676ac43129bccab33195a2e40a4a7036de7ea49b2b55418bbd55ca225993
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 "dry_schema_rails" will be documented in this file.
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
- ## [Unreleased]
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
- - Bug that did Y under circumstance Z.
10
+ - Maintain errors
21
11
 
22
12
  ### Changed
23
- - Refactored module X for better readability and performance.
13
+ - class_method to instance class variables
24
14
 
25
15
  ### Removed
26
- - Deprecated methods in module Y.
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
- [Unreleased]: https://github.com/your_username/dry_schema_rails/compare/v0.2.0...HEAD
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
@@ -1,3 +1,3 @@
1
1
  module DrySchemaRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.2"
3
3
  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.0
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.19
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.