clean-annotations 0.1.2 → 0.2.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: 74db9a7090b7480819a19a8cbd8b05b3f8284322b447381c3976f40499a81a78
4
- data.tar.gz: ab20371189f91a861308b864344cd9b7c1fa169fa105ff4c0f12a2d6017d8ac3
3
+ metadata.gz: 5f74077b036028e5f0f718c84721e72834896bf88562fca24d3ffcfca93c4d75
4
+ data.tar.gz: a14f988df6892020cc6428ac7442ffb5dc278948b6fcee9f9c5a851b3811c692
5
5
  SHA512:
6
- metadata.gz: 287e422e1bb5f4468b579718b3c2973ad52102255875a6f8321f020b787cebb2ddb5d659c219cbfc3d5560627f084d881a5d2a62eef65db14c23b953d9c6224f
7
- data.tar.gz: d936ec9f237cd161f284ecaf521e865c522767199410925f77ce4924c0022edb8ec1deb325aa4c1139455f5dcea625f06fcaa8a261934eab7965428b1edc5064
6
+ metadata.gz: f0925f798a35fb7cfd37c0f4ac25df6ba912f92e0fe311b6719d0a92220ceef0825ec703cd61d3ba82f304182f1c1267e8006fbb93a48553e2a24217ee115559
7
+ data.tar.gz: 07c63cc13717a79805789d04956020f07481b3e9f0ab619cb183e6a3743507e5c0133da38add93a86ea8f41f1cc2bab18a15d67c8ab63506db42415bffc3a7a1
data/.version CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.2.0
@@ -7,7 +7,7 @@ module MethodAttributes
7
7
  def define klass, param_name, &block
8
8
  klass.define_singleton_method(param_name) do |*args|
9
9
  @@METHOD_OPTS[param_name] ||= []
10
- @@METHOD_OPTS[param_name].push block ? block.call(*args) : args[0]
10
+ @@METHOD_OPTS[param_name].push block ? block.call(*args) : args
11
11
  end
12
12
 
13
13
  klass.define_singleton_method(:method_added) do |name|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: clean-annotations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dino Reic
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-11 00:00:00.000000000 Z
11
+ date: 2019-12-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Define annotatable attribute names and assign them to methods or classes,
14
14
  add callbacks to non-Rails classes. Void of dependencies.