servactory 1.6.10 → 1.6.12
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ccc9a97612c6e1ceabdc7af5cf7721db8e6cf69f6a4028b040937b70a666455
|
4
|
+
data.tar.gz: d40c5f206135cd7b2c4f0e2d58cdb0cb5ac147c44c06fb270ed55dd0361c1f2a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b2e77ca62432273803111620519934121c5ece37f689b264814a5ea0f97382a3b046a969d4c6385080aa48a13627929c26f4d7a44c4afe6baf481a9bc372ed9
|
7
|
+
data.tar.gz: 2dc3b575db383250a16a30c287a2f2349864889ec66469ad6ed544dc6db3c12a1fc56e434ed36fcab45572c8ab3341974e629c489e93fe6df647f07381246004
|
@@ -78,16 +78,12 @@ module Servactory
|
|
78
78
|
|
79
79
|
# EXAMPLE:
|
80
80
|
#
|
81
|
-
# private
|
82
|
-
#
|
83
81
|
# attr_reader(*[:attr_1])
|
84
82
|
#
|
85
83
|
def context_internal_variables_template
|
86
84
|
return if @internal_variables.blank?
|
87
85
|
|
88
86
|
@context_internal_variables_template ||= <<-RUBY
|
89
|
-
private
|
90
|
-
|
91
87
|
attr_reader(*#{@internal_variables.keys})
|
92
88
|
RUBY
|
93
89
|
end
|
@@ -22,8 +22,6 @@ module Servactory
|
|
22
22
|
private
|
23
23
|
|
24
24
|
def create_instance_variable_for(output)
|
25
|
-
@context.instance_variable_set(:"@#{output.name}", nil)
|
26
|
-
|
27
25
|
@context.class.class_eval(context_output_template_for(output))
|
28
26
|
end
|
29
27
|
|
@@ -35,10 +33,6 @@ module Servactory
|
|
35
33
|
# instance_variable_set(:@user, value)
|
36
34
|
# end
|
37
35
|
#
|
38
|
-
# private
|
39
|
-
#
|
40
|
-
# attr_reader :user
|
41
|
-
#
|
42
36
|
def context_output_template_for(output)
|
43
37
|
<<-RUBY
|
44
38
|
define_method(:#{output.name}=) do |value|
|
@@ -51,8 +45,6 @@ module Servactory
|
|
51
45
|
instance_variable_set(:@#{output.name}, value)
|
52
46
|
end
|
53
47
|
|
54
|
-
private
|
55
|
-
|
56
48
|
attr_reader :#{output.name}
|
57
49
|
RUBY
|
58
50
|
end
|
data/lib/servactory/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: servactory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Sokolov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|