redmine-installer 2.1.0 → 2.1.1
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 +4 -4
- data/lib/redmine-installer/redmine.rb +2 -0
- data/lib/redmine-installer/task.rb +1 -0
- data/lib/redmine-installer/version.rb +1 -1
- data/spec/lib/install_spec.rb +1 -3
- data/spec/lib/upgrade_spec.rb +33 -0
- data/spec/packages_helper.rb +9 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8df0fba97f5e12bdc71ae4ccb50d545ea9b59bfb1bd381ae6b468e9b7503a908
|
4
|
+
data.tar.gz: 721c4282b6a92b134ca396b3354d8d9f370e2861dd8ab8968222aa4a8cfc9f55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a7ff5417892950a1d1d43e925c230b6e23af792c63f4319c54479e5dfba8e3c1352e5a5fcf0319c19d9bf7f37c70dc072f3b06a2d56901503088df492d130c2
|
7
|
+
data.tar.gz: 93e2cd5ae672399e372d5478d2786dc3c23a438e33c66d03ea06d2cb75a1be36d2f7ea76b5ccb60ff0f9fe2408cfdfa629fad503e38a0cb1997847e1c4a7148b
|
@@ -295,6 +295,8 @@ module RedmineInstaller
|
|
295
295
|
File.write(bundle_index, index.to_yaml)
|
296
296
|
|
297
297
|
logger.info("Bundler plugin index from #{other_redmine.root} into #{root}")
|
298
|
+
else
|
299
|
+
logger.info("Bundler plugin index from #{other_redmine.root} not found")
|
298
300
|
end
|
299
301
|
|
300
302
|
Dir.entries('.').each do |entry|
|
data/spec/lib/install_spec.rb
CHANGED
@@ -36,13 +36,11 @@ RSpec.describe RedmineInstaller::Install, command: 'install' do
|
|
36
36
|
end
|
37
37
|
|
38
38
|
it 'install without arguments', args: [] do
|
39
|
-
regular_package = File.expand_path(File.join(File.dirname(__FILE__), '..', 'packages', 'redmine-3.4.5.zip'))
|
40
|
-
|
41
39
|
expected_output('Path to redmine root:')
|
42
40
|
write(@redmine_root)
|
43
41
|
|
44
42
|
expected_output('Path to package:')
|
45
|
-
write(
|
43
|
+
write(package_v345)
|
46
44
|
|
47
45
|
expected_output('Extracting redmine package')
|
48
46
|
|
data/spec/lib/upgrade_spec.rb
CHANGED
@@ -109,4 +109,37 @@ RSpec.describe RedmineInstaller::Upgrade, :install_first, command: 'upgrade' do
|
|
109
109
|
expect(Dir.glob(File.join(files_dir, '*.txt')).sort).to eq(files.sort)
|
110
110
|
end
|
111
111
|
|
112
|
+
it 'upgrade rys and modify bundle/index' do
|
113
|
+
wait_for_stdin_buffer
|
114
|
+
write(@redmine_root)
|
115
|
+
|
116
|
+
wait_for_stdin_buffer
|
117
|
+
write(package_v345_rys)
|
118
|
+
|
119
|
+
wait_for_stdin_buffer
|
120
|
+
|
121
|
+
go_down
|
122
|
+
go_down
|
123
|
+
expected_output('‣ Nothing')
|
124
|
+
select_choice
|
125
|
+
|
126
|
+
expected_output('Are you sure you dont want backup?')
|
127
|
+
write('y')
|
128
|
+
|
129
|
+
expected_successful_upgrade
|
130
|
+
|
131
|
+
expected_redmine_version('3.4.5')
|
132
|
+
|
133
|
+
index = YAML.load_file(File.join(@redmine_root, '.bundle/plugin/index'))
|
134
|
+
|
135
|
+
load_paths = index['load_paths']['rys-bundler']
|
136
|
+
expect(load_paths.size).to eq(1)
|
137
|
+
|
138
|
+
load_path = load_paths.first
|
139
|
+
expect(load_path).to start_with(@redmine_root)
|
140
|
+
|
141
|
+
plugin_paths = index['plugin_paths']['rys-bundler']
|
142
|
+
expect(plugin_paths).to start_with(@redmine_root)
|
143
|
+
end
|
144
|
+
|
112
145
|
end
|
data/spec/packages_helper.rb
CHANGED
@@ -1,23 +1,19 @@
|
|
1
1
|
module PackagesHelper
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# def package_v320
|
8
|
-
# File.expand_path(File.join(File.dirname(__FILE__), 'packages', 'redmine-3.2.0.zip'))
|
9
|
-
# end
|
10
|
-
|
11
|
-
# def package_v330
|
12
|
-
# File.expand_path(File.join(File.dirname(__FILE__), 'packages', 'redmine-3.3.0.zip'))
|
13
|
-
# end
|
3
|
+
def packages_dir
|
4
|
+
File.expand_path(File.join(__dir__, 'packages'))
|
5
|
+
end
|
14
6
|
|
15
7
|
def package_v345
|
16
|
-
File.
|
8
|
+
File.join(packages_dir, 'redmine-3.4.5.zip')
|
9
|
+
end
|
10
|
+
|
11
|
+
def package_v345_rys
|
12
|
+
File.join(packages_dir, 'redmine-3.4.5-rys.zip')
|
17
13
|
end
|
18
14
|
|
19
15
|
def package_someting_else
|
20
|
-
File.
|
16
|
+
File.join(packages_dir, 'something-else.zip')
|
21
17
|
end
|
22
18
|
|
23
19
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redmine-installer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondřej Moravčík
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|