as_method 0.3.0 → 0.3.1

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: 2d9af230121d5102e4fe40bad36aa60286115dd5ffc13fb69c2f7228d3d27d7a
4
- data.tar.gz: 53d7e4db5c3ea9c77d767794fbee5466f205aa4038e2e25753a605dc40ae6813
3
+ metadata.gz: b333db53f2557a64198bbd51b766bd2aa2335703bef4f294e3afc92b8dbeb51c
4
+ data.tar.gz: a81108e81da82e920f4b1c5818fdced96800e44bc1e2ecb33110e00b78c51eb3
5
5
  SHA512:
6
- metadata.gz: 0b76457eed2af6cc5ef73eaa254d3beb927bfe06bd3a1fed6b4eb9ddc6e01e3767ec3585b13e14885594bd11b61f2ec0ab3aec8cf1b562f278a0c2092b877b88
7
- data.tar.gz: e8dd515b04ee6afd28b7b18ff8e2f0a32f0f0ef7f64636517c9b99f40ae66b25780a81118eab4c0dbd8c54a4ba1fad950a7421503799d58f9b494d254509a33c
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module AsMethod
4
4
 
5
- VERSION = "0.3.0"
5
+ VERSION = "0.3.1"
6
6
 
7
7
  end
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.0
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-09 00:00:00.000000000 Z
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.4.22
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: []