light-services 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/gemfiles/rails_4_0.gemfile.lock +1 -1
- data/gemfiles/rails_4_1.gemfile.lock +1 -1
- data/gemfiles/rails_4_2.gemfile.lock +1 -1
- data/gemfiles/rails_5_0.gemfile.lock +1 -1
- data/gemfiles/rails_5_1.gemfile.lock +1 -1
- data/lib/light/services/outputs.rb +7 -1
- data/lib/light/services/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 217fd9eaf9ccdd1c33fd07839708c21c4ac61388
|
4
|
+
data.tar.gz: d453c8353a7359d1bd4aea08056a07f7cdc3681f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 060477a1e5c5c45448e400b2afe85dcb64aa40d8e8f986ebd593ba463d741c9601c6d2521ed756c22652ce458a08890b71cf824730704e9d313843cf44f846cc
|
7
|
+
data.tar.gz: b2a765bab4608b78c5299b96350a5c9bdcd8c46d26e154d3075545dd569b48a23a67885b92a575bd9b66b11e21dfebf63f93c3c5c174be30a7523ddb729ad7ef
|
@@ -23,13 +23,19 @@ module Light
|
|
23
23
|
def initialize_outputs
|
24
24
|
self.outputs = {}
|
25
25
|
|
26
|
-
|
26
|
+
all_outputs.each do |options|
|
27
27
|
store_output(options)
|
28
28
|
end
|
29
29
|
|
30
30
|
generate_outputs_methods
|
31
31
|
end
|
32
32
|
|
33
|
+
def all_outputs
|
34
|
+
return @_all_outputs if defined?(@_all_outputs)
|
35
|
+
@_all_outputs = self.class.ancestors.select { |klass| klass.ancestors.include?(::Light::Services::Base) }
|
36
|
+
.map(&:outputs).compact.flatten.uniq
|
37
|
+
end
|
38
|
+
|
33
39
|
def store_output(options)
|
34
40
|
output_name = options[:name]
|
35
41
|
output_value = options[:value]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: light-services
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Emelianenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|