redmine_plugins_helper 0.8.1 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/redmine_plugins_helper/patches/test_case_patch.rb +1 -12
- data/lib/redmine_plugins_helper/plugin_rake_task.rb +1 -0
- data/lib/redmine_plugins_helper/status_migrations.rb +1 -1
- data/lib/redmine_plugins_helper/test_helper.rb +14 -0
- data/lib/redmine_plugins_helper/version.rb +1 -1
- metadata +47 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db16a5f38c9d90874fb3316bb44db11f0c9e6ce46bec5fec7eaaaae703cfe66f
|
4
|
+
data.tar.gz: b31adee69d7429b256bf583592844952915d00a21264f7b6d0546cc17fc188f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4620c248234566fb5e14e9901e0b70e426ff56250b3301ea3f8e91089e948a2ba27b18c985dfc0f8deb0abf2dd75f3859482a7c13549131fe3514bc13b5e08eb
|
7
|
+
data.tar.gz: 709258429c588fc72d80b4357b4639547e80d83f77e8ddb98b4481a6965d054323cd711e30928c6808c4a39d5568faa47704ef8d803b222e2c8041dec4be9114
|
@@ -8,23 +8,12 @@ module RedminePluginsHelper
|
|
8
8
|
extend ActiveSupport::Concern
|
9
9
|
|
10
10
|
included do
|
11
|
-
extend
|
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
|
@@ -12,7 +12,7 @@ module RedminePluginsHelper
|
|
12
12
|
local_versions.each do |plugin, timestamps|
|
13
13
|
timestamps.each do |timestamp|
|
14
14
|
m = migrated_version?(plugin, timestamp) ? 'up' : 'down'
|
15
|
-
|
15
|
+
puts "#{m}\t#{plugin}\t#{timestamp}" # rubocop:disable Rails/Output
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -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
|
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.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
- 0.
|
7
|
+
- 0.9.1
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-05-24 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
|
@@ -24,6 +38,34 @@ dependencies:
|
|
24
38
|
- - "~>"
|
25
39
|
- !ruby/object:Gem::Version
|
26
40
|
version: '0.43'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: launchy
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
27
69
|
- !ruby/object:Gem::Dependency
|
28
70
|
name: sass-rails
|
29
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -81,6 +123,7 @@ files:
|
|
81
123
|
- lib/redmine_plugins_helper/settings.rb
|
82
124
|
- lib/redmine_plugins_helper/status_migrations.rb
|
83
125
|
- lib/redmine_plugins_helper/test_config.rb
|
126
|
+
- lib/redmine_plugins_helper/test_helper.rb
|
84
127
|
- lib/redmine_plugins_helper/version.rb
|
85
128
|
- lib/tasks/redmine.rake
|
86
129
|
- lib/tasks/redmine_plugins_helper.rake
|
@@ -102,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
102
145
|
- !ruby/object:Gem::Version
|
103
146
|
version: '0'
|
104
147
|
requirements: []
|
105
|
-
rubygems_version: 3.
|
148
|
+
rubygems_version: 3.1.6
|
106
149
|
signing_key:
|
107
150
|
specification_version: 4
|
108
151
|
summary: Helper for Redmine plugins
|