tablesalt 0.27.1 → 0.29.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +25 -2
- data/lib/tablesalt/class_pass.rb +1 -0
- data/lib/tablesalt/rspec/config.rb +1 -1
- data/lib/tablesalt/version.rb +1 -1
- metadata +11 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe60f1950e5b372dae50b5d8dbff5c61e029dbc054662f1f0867979a2c312558
|
4
|
+
data.tar.gz: 69f35a694fa593a189ed51cfd3a29ea29f21d62ba490782a01a8980788e39da0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a633dab77d9866b0ba8fecdf2449c0b27c9163d85d5f7b35a6f7a77dd75a1540304898d7f7a5977e09d91e78a981e868ab0ca3bea2dcc1ffa5c0761dd3946fc
|
7
|
+
data.tar.gz: 312b001dee6cba22ed0bdcebe783d233ac988f99d97229dc9b526748fbb3b92c4eadb9983d952dda50d74caca42a7df9960679dc810aa20254c7a6c023957774
|
data/README.md
CHANGED
@@ -33,7 +33,30 @@ Or install it yourself as:
|
|
33
33
|
|
34
34
|
### ClassPass
|
35
35
|
|
36
|
-
|
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
|
|
@@ -172,7 +195,7 @@ Consult Spicerack's [development instructions](../README.md#development) for mor
|
|
172
195
|
|
173
196
|
## Contributing
|
174
197
|
|
175
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
198
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/RubyAfterAll/spicerack.
|
176
199
|
|
177
200
|
## License
|
178
201
|
|
data/lib/tablesalt/class_pass.rb
CHANGED
@@ -2,6 +2,6 @@
|
|
2
2
|
|
3
3
|
RSpec.configure do |config|
|
4
4
|
config.after(:each) do
|
5
|
-
Thread.current[Tablesalt::ThreadAccessor::THREAD_ACCESSOR_STORE_THREAD_KEY] = nil
|
5
|
+
Thread.current[Tablesalt::ThreadAccessor::THREAD_ACCESSOR_STORE_THREAD_KEY] = nil if defined?(Tablesalt::ThreadAccessor)
|
6
6
|
end
|
7
7
|
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.
|
4
|
+
version: 0.29.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:
|
11
|
+
date: 2022-04-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -69,15 +69,15 @@ files:
|
|
69
69
|
- lib/tablesalt/thread_accessor/thread_store.rb
|
70
70
|
- lib/tablesalt/uses_hash_for_equality.rb
|
71
71
|
- lib/tablesalt/version.rb
|
72
|
-
homepage: https://github.com/
|
72
|
+
homepage: https://github.com/RubyAfterAll/spicerack/tree/main/tablesalt
|
73
73
|
licenses:
|
74
74
|
- MIT
|
75
75
|
metadata:
|
76
|
-
homepage_uri: https://github.com/
|
77
|
-
source_code_uri: https://github.com/
|
78
|
-
changelog_uri: https://github.com/
|
79
|
-
documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.
|
80
|
-
post_install_message:
|
76
|
+
homepage_uri: https://github.com/RubyAfterAll/spicerack/tree/main/tablesalt
|
77
|
+
source_code_uri: https://github.com/RubyAfterAll/spicerack/tree/main/tablesalt
|
78
|
+
changelog_uri: https://github.com/RubyAfterAll/spicerack/blob/main/tablesalt/CHANGELOG.md
|
79
|
+
documentation_uri: https://www.rubydoc.info/gems/tablesalt/0.29.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.
|
96
|
-
signing_key:
|
95
|
+
rubygems_version: 3.3.8
|
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: []
|