tablesalt 0.26.0.2 → 0.26.0.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b5a2ac1d35f932b3a53828157c6d1bcaa4d5fd43659ef216b2b4db1dc6c8d414
4
- data.tar.gz: a41494e1189416e3f6a79dee3bd7c9f91d96c1c996ec3cf391df3c30322b714b
3
+ metadata.gz: 972b46f29c22433210be9d6db5001fdfba0095a798ae37f5cce7014a0736c544
4
+ data.tar.gz: 8cfe81e79cbf17603d36f64925d6570814e7626fb62919b2974366f7455caa0c
5
5
  SHA512:
6
- metadata.gz: c0330a1d4a2504237b30be4ed6c4acf585e24a5918ed7ccd0284aba02652cb78c92fd2a0966ed92b2e477acc01b5d17c1b229b215b748482024ed302c98bda59
7
- data.tar.gz: 022a6d37cfd878368676f61c50adcbbb6d9c49835c8a5e913af2257caee0c030f23316e6692d119abd6f346d67eb9beb61fdf0e2b2488d0a36ff2c3f96d35cc3
6
+ metadata.gz: ab361765fbe182c07b65a22b534be7117f8a1871328f8157defbcf35a8fada289e6df0a8a22c4641585b85abb9c66ade58537c4354313d46b6e9f889d486ce37
7
+ data.tar.gz: 2027ad3b826b4a22aa62c2d5b3087e94a2eceed617feec6c84d0295890e73ac59bc45806ce210368795df8cf00fee74dfe82b7f0c85eb4f5b77ab136a03e6489
@@ -18,7 +18,7 @@ module Tablesalt
18
18
 
19
19
  private
20
20
 
21
- def class_pass_method(*methods)
21
+ def class_pass_method(*methods, to: nil)
22
22
  methods.each do |method|
23
23
  next if _class_pass_methods.include?(method)
24
24
 
@@ -26,9 +26,9 @@ module Tablesalt
26
26
 
27
27
  define_singleton_method method do |*args, **attrs|
28
28
  if RUBY_VERSION < "2.7.0" && attrs.empty?
29
- new(*args).public_send(method)
29
+ new(*args).public_send(to || method)
30
30
  else
31
- new(*args, **attrs).public_send(method)
31
+ new(*args, **attrs).public_send(to || method)
32
32
  end
33
33
  end
34
34
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Tablesalt
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.26.0.2"
5
+ VERSION = "0.26.0.3"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tablesalt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.26.0.2
4
+ version: 0.26.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Minneti
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-28 00:00:00.000000000 Z
11
+ date: 2021-05-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -68,7 +68,7 @@ metadata:
68
68
  homepage_uri: https://github.com/Freshly/spicerack/tree/main/tablesalt
69
69
  source_code_uri: https://github.com/Freshly/spicerack/tree/main/tablesalt
70
70
  changelog_uri: https://github.com/Freshly/spicerack/blob/main/tablesalt/CHANGELOG.md
71
- documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.26.0.2
71
+ documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.26.0.3
72
72
  post_install_message:
73
73
  rdoc_options: []
74
74
  require_paths: