as_method 0.3.0 → 0.3.1
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 +4 -4
- data/README.md +0 -6
- data/lib/as_method/templates/includable_module.rb.erb +15 -0
- data/lib/as_method/version.rb +1 -1
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b333db53f2557a64198bbd51b766bd2aa2335703bef4f294e3afc92b8dbeb51c
|
|
4
|
+
data.tar.gz: a81108e81da82e920f4b1c5818fdced96800e44bc1e2ecb33110e00b78c51eb3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bfeb95266b9c1a2895d4a6daee298f0538c552035fabadb47b7997aaacd33306be68e92f96794ed9295915583203787693ab4721ebba5e265a597ab2bfe64b75
|
|
7
|
+
data.tar.gz: fcdff0761a4717339688d8787d8baaa8fbdb1038d5fbefd5f8ac9b21d0621e4cf3ed9f2a80469b6b182e468aa902c04535f44b7ccdce1f01a200fd2a8f96b6b0
|
data/README.md
CHANGED
|
@@ -55,12 +55,6 @@ Tested on Ruby v2.4 .. v3.x, but it is expected to work on all 2.x versions.
|
|
|
55
55
|
|
|
56
56
|
## Installation
|
|
57
57
|
|
|
58
|
-
> [!IMPORTANT]
|
|
59
|
-
> Due to a temporary issue the RubyGems currently installs an outdated version of the gem.
|
|
60
|
-
>
|
|
61
|
-
> **For the Latest Version:** To access the most recent version of the gem, please clone it directly from this GitHub repository.
|
|
62
|
-
|
|
63
|
-
|
|
64
58
|
Add to your `Gemfile`
|
|
65
59
|
|
|
66
60
|
```ruby
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
|
|
2
|
+
module <%= module_name %>
|
|
3
|
+
|
|
4
|
+
@_injectable_method = "<%= method_name %>"
|
|
5
|
+
@_injectable_object = <%= object %>
|
|
6
|
+
|
|
7
|
+
def self.ruby2_keywords(*); end if RUBY_VERSION < "2.7"
|
|
8
|
+
|
|
9
|
+
ruby2_keywords def <%= method_name %>(*args, &block)
|
|
10
|
+
::<%= object %>.call(*args, &block)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
<%= method_access %> :<%= method_name %>
|
|
14
|
+
|
|
15
|
+
end
|
data/lib/as_method/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: as_method
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Vladimir Gorodulin
|
|
8
|
-
autorequire:
|
|
8
|
+
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2024-01-
|
|
11
|
+
date: 2024-01-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Bring Service Objects to your classes as methods.
|
|
14
14
|
email:
|
|
@@ -30,6 +30,7 @@ files:
|
|
|
30
30
|
- lib/as_method/module_name/generate_from_snake_case.rb
|
|
31
31
|
- lib/as_method/module_name/strip_namespace.rb
|
|
32
32
|
- lib/as_method/setup.rb
|
|
33
|
+
- lib/as_method/templates/includable_module.rb.erb
|
|
33
34
|
- lib/as_method/validate_service_object.rb
|
|
34
35
|
- lib/as_method/version.rb
|
|
35
36
|
homepage: https://github.com/gorodulin/as_method
|
|
@@ -39,7 +40,7 @@ metadata:
|
|
|
39
40
|
changelog_uri: https://github.com/gorodulin/as_method/blob/main/CHANGELOG.md
|
|
40
41
|
homepage_uri: https://github.com/gorodulin/as_method
|
|
41
42
|
source_code_uri: https://github.com/gorodulin/as_method
|
|
42
|
-
post_install_message:
|
|
43
|
+
post_install_message:
|
|
43
44
|
rdoc_options: []
|
|
44
45
|
require_paths:
|
|
45
46
|
- lib
|
|
@@ -54,8 +55,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
54
55
|
- !ruby/object:Gem::Version
|
|
55
56
|
version: '0'
|
|
56
57
|
requirements: []
|
|
57
|
-
rubygems_version: 3.
|
|
58
|
-
signing_key:
|
|
58
|
+
rubygems_version: 3.0.3.1
|
|
59
|
+
signing_key:
|
|
59
60
|
specification_version: 4
|
|
60
61
|
summary: Call Service Objects with ease. Include them to your classes as methods!
|
|
61
62
|
test_files: []
|