tablesalt 0.26.0.2 → 0.26.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tablesalt/class_pass.rb +3 -3
- data/lib/tablesalt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 972b46f29c22433210be9d6db5001fdfba0095a798ae37f5cce7014a0736c544
|
4
|
+
data.tar.gz: 8cfe81e79cbf17603d36f64925d6570814e7626fb62919b2974366f7455caa0c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab361765fbe182c07b65a22b534be7117f8a1871328f8157defbcf35a8fada289e6df0a8a22c4641585b85abb9c66ade58537c4354313d46b6e9f889d486ce37
|
7
|
+
data.tar.gz: 2027ad3b826b4a22aa62c2d5b3087e94a2eceed617feec6c84d0295890e73ac59bc45806ce210368795df8cf00fee74dfe82b7f0c85eb4f5b77ab136a03e6489
|
data/lib/tablesalt/class_pass.rb
CHANGED
@@ -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
|
data/lib/tablesalt/version.rb
CHANGED
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.
|
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
|
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.
|
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:
|