light-services 0.5.2 → 0.5.3

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 05ce0c36e5b8a75364adec422e610b1b8bccdd2e
4
- data.tar.gz: d0cfe9bbaaddf10fd463657f02de9e02722e679f
3
+ metadata.gz: 217fd9eaf9ccdd1c33fd07839708c21c4ac61388
4
+ data.tar.gz: d453c8353a7359d1bd4aea08056a07f7cdc3681f
5
5
  SHA512:
6
- metadata.gz: 2c1f571cfeff5363cad4c10c411aa9a0118adb0574a959108d47fb2ebc6c5a931faea6eaae471ca5b28d824648c5ede76ab21f39f27953c56d3251011a1e90fe
7
- data.tar.gz: 7e3399086f1e8e1d9b80616d83aa28111e25554b9612176d46ef7c6939375326ad6ac15f52a561985a1ab4cb0411a3fc984a0f8779f573ade114ccb9d5cfef4f
6
+ metadata.gz: 060477a1e5c5c45448e400b2afe85dcb64aa40d8e8f986ebd593ba463d741c9601c6d2521ed756c22652ce458a08890b71cf824730704e9d313843cf44f846cc
7
+ data.tar.gz: b2a765bab4608b78c5299b96350a5c9bdcd8c46d26e154d3075545dd569b48a23a67885b92a575bd9b66b11e21dfebf63f93c3c5c174be30a7523ddb729ad7ef
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.5.2)
4
+ light-services (0.5.3)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.5.2)
4
+ light-services (0.5.3)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.5.2)
4
+ light-services (0.5.3)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.5.2)
4
+ light-services (0.5.3)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- light-services (0.5.2)
4
+ light-services (0.5.3)
5
5
  rails (> 4.0)
6
6
 
7
7
  GEM
@@ -23,13 +23,19 @@ module Light
23
23
  def initialize_outputs
24
24
  self.outputs = {}
25
25
 
26
- (self.class.outputs || []).each do |options|
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]
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Light
4
4
  module Services
5
- VERSION = '0.5.2'
5
+ VERSION = '0.5.3'
6
6
  end
7
7
  end
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.2
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-08-30 00:00:00.000000000 Z
11
+ date: 2017-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails