tablesalt 0.27.1 → 0.27.2

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: 6afc837476271cac528b32cc0eef83747d14bef637291e667322ade86735ad98
4
- data.tar.gz: bf1c5ca11e457c8a6f16ef30d84deb17ad66206cc55d8e42cf21ccc5978cb7e2
3
+ metadata.gz: cc111d64403cd9fcef78f5b7cae421eec2ceee71d0b6cbd2c8086d377d24b0ea
4
+ data.tar.gz: e40873a5d994488b689a1947c3aa81361ffef726436f5137de1230a487b285be
5
5
  SHA512:
6
- metadata.gz: 73f94eb9cab2f065eae115c5c8887d1565582d624afc86ae2d8cc50f81c36e2b725663e5dc3afb17cc26e10755009b8475c593f54366fac01ae2f83717dd9389
7
- data.tar.gz: b33354269fa7bd1aa40f63a559aae58477a147e7aacd405b4d5da128b5d1555d41c4f884587c980771e5263fd69e7ed76f7737d650959186fc079a58613f74e5
6
+ metadata.gz: dc117433c7977edad284df7d55ec9a95017f36a7e3fcdf3ae5be0c337aef0deafb7ce3e33cb8292ca6b2b58ea582583f3bdf8902decf0885aa8c92e4e68d7c51
7
+ data.tar.gz: 10b225e8d9e6e45588c7a7d35e181223053ad668ff57396c7774301db451f8df12bfa40ebb9c8dbea2ef9270e8e3157a3f9f6d6220cfad102017cb99a100620b
data/README.md CHANGED
@@ -33,7 +33,30 @@ Or install it yourself as:
33
33
 
34
34
  ### ClassPass
35
35
 
36
- TODO: write usage instructions
36
+ Utility for creating single-ingress service objects.
37
+
38
+ ```ruby
39
+ class MyClass
40
+ class << self
41
+ def call(foo:, bar:)
42
+ new(foo: foo, bar: bar).call
43
+ end
44
+ end
45
+
46
+ def call
47
+ ...
48
+ end
49
+
50
+ # Can be rewritten as:
51
+ class MyClass
52
+ include ClassPass
53
+
54
+ class_pass_method :call
55
+
56
+ def call
57
+ ...
58
+ end
59
+ ```
37
60
 
38
61
  ### DSLAccessor
39
62
 
@@ -25,6 +25,7 @@ module Tablesalt
25
25
  _class_pass_methods << method
26
26
 
27
27
  define_singleton_method method do |*args, **attrs|
28
+ # TODO: replace with ... when 2.6 support is removed
28
29
  if RUBY_VERSION < "2.7.0" && attrs.empty?
29
30
  new(*args).public_send(to || method)
30
31
  else
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Tablesalt
4
4
  # This constant is managed by spicerack
5
- VERSION = "0.27.1"
5
+ VERSION = "0.27.2"
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.27.1
4
+ version: 0.27.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Minneti
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-04 00:00:00.000000000 Z
11
+ date: 2022-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -76,8 +76,8 @@ metadata:
76
76
  homepage_uri: https://github.com/Freshly/spicerack/tree/main/tablesalt
77
77
  source_code_uri: https://github.com/Freshly/spicerack/tree/main/tablesalt
78
78
  changelog_uri: https://github.com/Freshly/spicerack/blob/main/tablesalt/CHANGELOG.md
79
- documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.27.1
80
- post_install_message:
79
+ documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.27.2
80
+ post_install_message:
81
81
  rdoc_options: []
82
82
  require_paths:
83
83
  - lib
@@ -92,8 +92,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
92
92
  - !ruby/object:Gem::Version
93
93
  version: '0'
94
94
  requirements: []
95
- rubygems_version: 3.2.26
96
- signing_key:
95
+ rubygems_version: 3.2.32
96
+ signing_key:
97
97
  specification_version: 4
98
98
  summary: Miscellaneous helper modules, POROs, and more, that standardize common behavior
99
99
  test_files: []