methodist 1.2.0 → 1.2.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: db3327d005f3ea2e87b22fa4db36cd4a1ebf6183018c4bb3e0f87635f6e1bd69
4
- data.tar.gz: 53582ce20974c015108001d61c82f82119709208702c423061aa1591ecae678c
3
+ metadata.gz: f42b963657c666566a87e2cd6a597aa18df2c97a74e394e395acfcf4972fa465
4
+ data.tar.gz: ed594821a5e380626a43a738c2fcb72d1c92597c8fd655555ee0e9624176b689
5
5
  SHA512:
6
- metadata.gz: 82bc591f3fba95fa0237c194819891ea8f77c4d4fdc15e1164e8faa00f7201073136e2cf99a2f94d95f384133bfaaf4b80506d6998aa8075faf71e9e1b360f7b
7
- data.tar.gz: a200d6b5ac5c21ce92a937de325780663fcba50b5a1c1263c880aab63087e54c8d3d65b21579e844b2d5c831a6c2319fb0e4334314cf7f02aecb854e91053a90
6
+ metadata.gz: 307d0e9d42368f81b741a590afb5fe358041eec38ca0f4ee0c38a61f9100d1ddafe3c8fa059068d16286a47ea263d19554d777cf13a73c37591c265eac558731
7
+ data.tar.gz: a28836d0f23724df4dc0e6374054b1281ec4cdeec2a7537e7fbb060e6615d4914e032edb6c0678314787f2a82b5050a645c2cda8b8045c7df972e3e1b14df22b
@@ -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 = '1.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: methodist
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergey Nesterov