redmine_plugins_helper 0.8.2 → 0.9.0

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
  SHA256:
3
- metadata.gz: 6bd2fb9c6119ae31d7206229047e53bff0cb40d42473765c4ee4165fbf28360a
4
- data.tar.gz: 720b3b87c426e00e130ff72ea821be40c0de1c75ede3e0a035cec9827d16469e
3
+ metadata.gz: e85f357f0bcab7126a87e73c6024417f999db4b657e39371ddc492107a6b6287
4
+ data.tar.gz: 85038fc7bae3559703d6f2a728a74cf8d336831c5c7ede88d4216a6b9ee26183
5
5
  SHA512:
6
- metadata.gz: f42a22d6ba7fa6bbaf935b3c7f6854e152675b7cf14169561a76c3aa655157b27e7ca845520b4dbf659ee9bbb28a18300cce5c93e6fe7fc77243e2c50749b8a9
7
- data.tar.gz: c87a5ca71788c001000fbd8a180baff7508d1d0f21ac0e48f8abb5bc7200b8fad5fe1841076ae7137c1f40e5abc02ae891ea25e2e274d3afcbf9858087c79742
6
+ metadata.gz: e7b9cf889a34e7ef54f69d07175bead407b641972c0d03a7b32394758532a6944940302cafa07e29c810674935293b94a5ff2a84841bfe755f4c26720887f43d
7
+ data.tar.gz: cc69bb1784ad3eaa8e7a21b187dea155aabff4bea75f0611d59bf4d013a58b832a020bf15ea9ca9e8d7710cc2ddc256e87edb09410f6b2e4b7ba0456d6408fee
@@ -8,23 +8,12 @@ module RedminePluginsHelper
8
8
  extend ActiveSupport::Concern
9
9
 
10
10
  included do
11
- extend ClassMethods
11
+ extend ::RedminePluginsHelper::TestHelper
12
12
  include InstanceMethods
13
13
  setup { the_test_config.before_each }
14
14
  teardown { the_test_config.after_each }
15
15
  end
16
16
 
17
- module ClassMethods
18
- def plugin_fixtures(plugin_name, *files)
19
- fixtures_dir = File.expand_path(
20
- 'test/fixtures',
21
- ::Redmine::Plugin.registered_plugins[plugin_name].directory
22
- )
23
- ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, files)
24
- fixtures(*files)
25
- end
26
- end
27
-
28
17
  module InstanceMethods
29
18
  def the_test_config
30
19
  @the_test_config ||= ::RedminePluginsHelper::TestConfig.new
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module RedminePluginsHelper
4
+ module TestHelper
5
+ def plugin_fixtures(plugin_name, *files)
6
+ fixtures_dir = File.expand_path(
7
+ 'test/fixtures',
8
+ ::Redmine::Plugin.registered_plugins[plugin_name].directory
9
+ )
10
+ ActiveRecord::FixtureSet.create_fixtures(fixtures_dir, files)
11
+ fixtures(*files)
12
+ end
13
+ end
14
+ end
@@ -3,5 +3,5 @@
3
3
  module RedminePluginsHelper
4
4
  AUTHOR = 'Eduardo Henrique Bogoni'
5
5
  SUMMARY = 'Helper for Redmine plugins'
6
- VERSION = '0.8.2'
6
+ VERSION = '0.9.0'
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_plugins_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
- - 0.8.2
7
+ - 0.9.0
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2020-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: eac_ruby_utils
@@ -109,6 +109,7 @@ files:
109
109
  - lib/redmine_plugins_helper/settings.rb
110
110
  - lib/redmine_plugins_helper/status_migrations.rb
111
111
  - lib/redmine_plugins_helper/test_config.rb
112
+ - lib/redmine_plugins_helper/test_helper.rb
112
113
  - lib/redmine_plugins_helper/version.rb
113
114
  - lib/tasks/redmine.rake
114
115
  - lib/tasks/redmine_plugins_helper.rake