fedux_org-stdlib 0.7.15 → 0.7.16

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
  SHA1:
3
- metadata.gz: b3620db0d8a2e9c953b9f301958a36df12ca6bf6
4
- data.tar.gz: 32d8f81fb9168468a6dfddb5da3a60274e3f3b11
3
+ metadata.gz: 64dbc6097497bcaa8993b41c1c3652946056aebb
4
+ data.tar.gz: f9fda713e22ed13a0c9508eecd1a3e0e759d2e57
5
5
  SHA512:
6
- metadata.gz: 6f869c2fe0adfa38bd8e471ee82c19bbdce4e69c580ac25fa0a7caa42e866cf3a61cf3351ad3c5f30c4314c740727bb325f9df357b1c60e8407fd2cd2dfb2c3e
7
- data.tar.gz: 875b121ef2709c192360252f53973a8a64ca870a497cc655ef128aa05f5f8b3140b2b9aecff2261851c806a1e7f85d83a5d21406c366a27e59ff4a1e3cf76ca7
6
+ metadata.gz: 2d4262771a40968e48c80fab8b6c1353a7295d581e0fde5307a578cb4ea227595d4d4c7d2ef14b7a81c5b8ff90a889acb24922bb498acfd309cc6ff5f0c1bb18
7
+ data.tar.gz: afb8467ea171c53dfab51cf3ff6cfd4b7f07ce98fd5c767c31bbb7e3a58f2aff1d262f6557f0e21a46ee611faff5bc30c7f838b890e4164c9046ef7769e02c87
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.7.14)
4
+ fedux_org-stdlib (0.7.15)
5
5
  activesupport
6
6
 
7
7
  PATH
@@ -16,7 +16,7 @@ module FeduxOrgStdlib
16
16
 
17
17
  public
18
18
 
19
- attr_reader :name, :gem_name
19
+ attr_reader :name, :gem_name, :required_file
20
20
 
21
21
  def initialize(name, gem_name:, enabled:, prefix: nil)
22
22
  @name = name
@@ -51,7 +51,10 @@ module FeduxOrgStdlib
51
51
  begin
52
52
  if !active?
53
53
  begin
54
- require variants.shift
54
+ required_file = variants.shift
55
+ require required_file
56
+
57
+ @required_file = required_file
55
58
  rescue LoadError
56
59
  retry unless variants.blank?
57
60
 
@@ -104,10 +104,10 @@ module FeduxOrgStdlib
104
104
 
105
105
  # String representation
106
106
  def to_s
107
- data = plugins.sort.inject([]) { |a, e| a << {name: e.name, enabled: e.enabled?, gem_name: e.gem_name} }
107
+ data = plugins.sort.inject([]) { |a, e| a << {name: e.name, enabled: e.enabled?, gem_name: e.gem_name, required_file: e.required_file} }
108
108
 
109
109
  List.new(data).to_s(
110
- fields: [:name, :gem_name, :enabled]
110
+ fields: [:name, :gem_name, :enabled, :required_file]
111
111
  )
112
112
  end
113
113
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.7.15'
4
+ VERSION = '0.7.16'
5
5
  end
@@ -38,6 +38,7 @@ RSpec.describe GemPlugins::PluginManager do
38
38
  manager.disable_plugin 'plugin-no_load'
39
39
  manager.load_plugins
40
40
 
41
+ binding.pry
41
42
  expect(manager.to_s).to include 'plugin'
42
43
  end
43
44
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.15
4
+ version: 0.7.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
@@ -174,6 +174,7 @@ files:
174
174
  - spec/examples/models/filesystem_based/find_files/abc.rb.swp
175
175
  - spec/examples/models/filesystem_based/find_files/cde.rb
176
176
  - spec/examples/project/plan.tjp
177
+ - spec/gem_plugins/plugin_manager_spec.rb
177
178
  - spec/list_spec.rb
178
179
  - spec/logger/logger_spec.rb
179
180
  - spec/logic_converters/on_off_converter_spec.rb
@@ -184,7 +185,6 @@ files:
184
185
  - spec/models/base_model_spec.rb
185
186
  - spec/models/class_based_model_spec.rb
186
187
  - spec/models/filesystem_based_model_spec.rb
187
- - spec/plugins/plugin_manager_spec.rb
188
188
  - spec/project/plan_spec.rb
189
189
  - spec/project/report_spec.rb
190
190
  - spec/project/taskjuggler_spec.rb
@@ -251,6 +251,7 @@ test_files:
251
251
  - spec/examples/models/filesystem_based/find_files/abc.rb.swp
252
252
  - spec/examples/models/filesystem_based/find_files/cde.rb
253
253
  - spec/examples/project/plan.tjp
254
+ - spec/gem_plugins/plugin_manager_spec.rb
254
255
  - spec/list_spec.rb
255
256
  - spec/logger/logger_spec.rb
256
257
  - spec/logic_converters/on_off_converter_spec.rb
@@ -261,7 +262,6 @@ test_files:
261
262
  - spec/models/base_model_spec.rb
262
263
  - spec/models/class_based_model_spec.rb
263
264
  - spec/models/filesystem_based_model_spec.rb
264
- - spec/plugins/plugin_manager_spec.rb
265
265
  - spec/project/plan_spec.rb
266
266
  - spec/project/report_spec.rb
267
267
  - spec/project/taskjuggler_spec.rb