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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6aaf1637a3a7281040d90412cfc4a3fd0e2a981276539209cabd3f7d52182abf
4
- data.tar.gz: 772331932c5e7a7e06fc8cb1ba5c1ccb48fcf304f48b9d23af5becad6b8c6d81
3
+ metadata.gz: 8df0fba97f5e12bdc71ae4ccb50d545ea9b59bfb1bd381ae6b468e9b7503a908
4
+ data.tar.gz: 721c4282b6a92b134ca396b3354d8d9f370e2861dd8ab8968222aa4a8cfc9f55
5
5
  SHA512:
6
- metadata.gz: 488064884bcd5635fabb3b0cd1dc14a58e32685d1f500c6acc703bfbdc7a89e751066410d8c4f32037c14f305377a24d6e0a871ed52caf22017f2245d76c157c
7
- data.tar.gz: f87dc2402d20ce941b93190593b2403535de2d79f0360f45d2babbb4bcd8437eaf0b32b0556e7b9c121428c965521ed809158fc9c189306f3951cf77ed0d9fdf
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|
@@ -9,6 +9,7 @@ module RedmineInstaller
9
9
 
10
10
  logger.info "#{class_name} initialized with #{options}"
11
11
  logger.info "RUBY_VERSION: #{RUBY_VERSION}"
12
+ logger.info "VERSION: #{RedmineInstaller::VERSION}"
12
13
  logger.info "USER: #{env_user}"
13
14
  end
14
15
 
@@ -1,3 +1,3 @@
1
1
  module RedmineInstaller
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
@@ -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(regular_package)
43
+ write(package_v345)
46
44
 
47
45
  expected_output('Extracting redmine package')
48
46
 
@@ -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
@@ -1,23 +1,19 @@
1
1
  module PackagesHelper
2
2
 
3
- # def package_v310
4
- # File.expand_path(File.join(File.dirname(__FILE__), 'packages', 'redmine-3.1.0.zip'))
5
- # end
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.expand_path(File.join(File.dirname(__FILE__), 'packages', 'redmine-3.4.5.zip'))
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.expand_path(File.join(File.dirname(__FILE__), 'packages', 'something-else.zip'))
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.0
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-06-08 00:00:00.000000000 Z
11
+ date: 2018-07-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander