tablesalt 0.27.0 → 0.28.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: 903ef715b92c22c371b74ed976cf05d459eb8cf5ccfc8c026958dd5551a22f45
4
- data.tar.gz: 55db6947da0c3642ba8735d39255b60f2ae110f65ddd78bf7f3071ac47f2d328
3
+ metadata.gz: dab94c5ff40879937bae6a77ee8352adec9d4de48f7495360dc2507ef500dc77
4
+ data.tar.gz: d3652975e9d346f035837fcfdf0bb16c18a3564d92af422d4293dee3f2c341fb
5
5
  SHA512:
6
- metadata.gz: '08c265694d36c0a64a790a9a5796ed52fe5e2b4ad19aaf30fbc30782f79c87cca80773655cc2a39d72825afbfef2f55ce620f179d27146b0c9c2ee788f4c959a'
7
- data.tar.gz: 19f07e26b872e1e2df3c38beb0c6851b106f4501da251a27f92fe397aeea49b3e8d0b865e4a04a2a639caaa160b32427b1edcec6da1b35b24cdfdd8229d48975
6
+ metadata.gz: cf7b8bc17d55e8e19fcdd37e4bbbdc1d7e55682742118ae53a80556d6505111c44748dd131b9186de1490d91b1ae0ea36a62e85778832f4bff1f8eece6662f55
7
+ data.tar.gz: 4f47fd87b9e5a97bf649269e7a8f1d4710b6b57366eaa7be24dfba53e328ac875b967acee2e36264a824cff970e3e0a3972c2ba5d232018d13cd6c8fdd6c4ec0
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.0"
5
+ VERSION = "0.28.0"
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.0
4
+ version: 0.28.0
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-08-24 00:00:00.000000000 Z
11
+ date: 2022-04-06 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.0
80
- post_install_message:
79
+ documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.28.0
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.25
96
- signing_key:
95
+ rubygems_version: 3.3.9
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: []