methodist 1.2.0 → 2.0.0

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: db3327d005f3ea2e87b22fa4db36cd4a1ebf6183018c4bb3e0f87635f6e1bd69
4
- data.tar.gz: 53582ce20974c015108001d61c82f82119709208702c423061aa1591ecae678c
3
+ metadata.gz: 41e4246fff352e5067caf807d3428d98bae6c175a8179b78a90fed386e88fdfa
4
+ data.tar.gz: 2754ff544b4faf41cb04154a4095c5df231ee0071d3fe7a0b4971aeabcb77bab
5
5
  SHA512:
6
- metadata.gz: 82bc591f3fba95fa0237c194819891ea8f77c4d4fdc15e1164e8faa00f7201073136e2cf99a2f94d95f384133bfaaf4b80506d6998aa8075faf71e9e1b360f7b
7
- data.tar.gz: a200d6b5ac5c21ce92a937de325780663fcba50b5a1c1263c880aab63087e54c8d3d65b21579e844b2d5c831a6c2319fb0e4334314cf7f02aecb854e91053a90
6
+ metadata.gz: a3e9597a39f5de75c9368900ae9058219fd94c9c27d081455bafb949daa5245b34761d12a4869e51393881463f2174a3b4a609fdc704956e089dee3d6e200c0c
7
+ data.tar.gz: 0a9dea8aef09e700df2ce25ce4ca98941de39d2ec6f2380c1be369b31b19891dcff56e1c1fb1a82dbbd78ad28cc5e39371830d4c57c0b4acb7a0e57f2ebf38a3
@@ -66,6 +66,7 @@ class Methodist::Builder < Methodist::Pattern
66
66
  set_proc_to_const(proc, attr_name) if proc
67
67
 
68
68
  define_method("#{attr_name}=") do |val|
69
+ val = options[:prepare].call(val) if options[:prepare]
69
70
  instance_variable_set("@#{attr_name}".to_sym, val)
70
71
  return val if valid_attr?(attr_name)
71
72
  instance_variable_set("@#{attr_name}".to_sym, nil)
@@ -1,3 +1,3 @@
1
1
  module Methodist
2
- VERSION = '1.2.0'
2
+ VERSION = '2.0.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methodist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Nesterov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-11 00:00:00.000000000 Z
11
+ date: 2022-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '5.2'
19
+ version: '6.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '5.2'
26
+ version: '6.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dry-validation
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,14 +44,14 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0.13'
47
+ version: '0.15'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0.13'
54
+ version: '0.15'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sqlite3
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -72,14 +72,14 @@ dependencies:
72
72
  requirements:
73
73
  - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '3.7'
75
+ version: '4.1'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '3.7'
82
+ version: '4.1'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: generator_spec
85
85
  requirement: !ruby/object:Gem::Requirement
@@ -155,7 +155,7 @@ homepage: https://github.com/QNester/methodist
155
155
  licenses:
156
156
  - MIT
157
157
  metadata: {}
158
- post_install_message:
158
+ post_install_message:
159
159
  rdoc_options: []
160
160
  require_paths:
161
161
  - lib
@@ -170,8 +170,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
170
170
  - !ruby/object:Gem::Version
171
171
  version: '0'
172
172
  requirements: []
173
- rubygems_version: 3.0.8
174
- signing_key:
173
+ rubygems_version: 3.3.26
174
+ signing_key:
175
175
  specification_version: 4
176
176
  summary: Gem for Ruby on Rails created to stop chaos in your buisness logic.
177
177
  test_files: []