redmine_plugins_helper 0.8.2 → 0.9.2

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: 6bd2fb9c6119ae31d7206229047e53bff0cb40d42473765c4ee4165fbf28360a
4
- data.tar.gz: 720b3b87c426e00e130ff72ea821be40c0de1c75ede3e0a035cec9827d16469e
3
+ metadata.gz: 481537f4a06bd16612a60cef2b6b26aa8f0c9202b95b34a3e48d57283f8bd9a2
4
+ data.tar.gz: 462a62c7572f7a8c50ebf1a5acb7a049386a1e916613fa49de62d93d9dea6534
5
5
  SHA512:
6
- metadata.gz: f42a22d6ba7fa6bbaf935b3c7f6854e152675b7cf14169561a76c3aa655157b27e7ca845520b4dbf659ee9bbb28a18300cce5c93e6fe7fc77243e2c50749b8a9
7
- data.tar.gz: c87a5ca71788c001000fbd8a180baff7508d1d0f21ac0e48f8abb5bc7200b8fad5fe1841076ae7137c1f40e5abc02ae891ea25e2e274d3afcbf9858087c79742
6
+ metadata.gz: 6b235bd7f93b1eaeb612a7fcf654831155c49f60f2df87a573e957cac8ff6ecc39e97c04beacae96bcf71de5ae8451a3a528845a5c8c6af80a6342d942b00943
7
+ data.tar.gz: 58fdbc3306349598eb49025daa2229285c4a18c62b8364c27a6f4300b31044546f2c5cddca80c5e9b2ef11067c2f9f6164f45238ee047e80fafc754f5624bd13
@@ -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.2'
7
7
  end
metadata CHANGED
@@ -1,15 +1,29 @@
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.2
5
5
  platform: ruby
6
6
  authors:
7
- - 0.8.2
7
+ - 0.9.2
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-08-17 00:00:00.000000000 Z
11
+ date: 2022-06-22 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bigdecimal
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "<"
18
+ - !ruby/object:Gem::Version
19
+ version: '2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "<"
25
+ - !ruby/object:Gem::Version
26
+ version: '2'
13
27
  - !ruby/object:Gem::Dependency
14
28
  name: eac_ruby_utils
15
29
  requirement: !ruby/object:Gem::Requirement
@@ -109,6 +123,7 @@ files:
109
123
  - lib/redmine_plugins_helper/settings.rb
110
124
  - lib/redmine_plugins_helper/status_migrations.rb
111
125
  - lib/redmine_plugins_helper/test_config.rb
126
+ - lib/redmine_plugins_helper/test_helper.rb
112
127
  - lib/redmine_plugins_helper/version.rb
113
128
  - lib/tasks/redmine.rake
114
129
  - lib/tasks/redmine_plugins_helper.rake
@@ -130,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
145
  - !ruby/object:Gem::Version
131
146
  version: '0'
132
147
  requirements: []
133
- rubygems_version: 3.0.8
148
+ rubygems_version: 3.1.6
134
149
  signing_key:
135
150
  specification_version: 4
136
151
  summary: Helper for Redmine plugins