redmine-installer 1.0.7 → 2.0.0.rc1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +4 -0
  3. data/.travis.yml +7 -0
  4. data/Gemfile +3 -15
  5. data/README.md +49 -177
  6. data/bin/redmine +4 -5
  7. data/lib/redmine-installer/backup.rb +13 -40
  8. data/lib/redmine-installer/cli.rb +92 -61
  9. data/lib/redmine-installer/command.rb +63 -117
  10. data/lib/redmine-installer/configuration.rb +148 -0
  11. data/lib/redmine-installer/database.rb +204 -0
  12. data/lib/redmine-installer/environment.rb +21 -0
  13. data/lib/redmine-installer/errors.rb +7 -0
  14. data/lib/redmine-installer/install.rb +37 -42
  15. data/lib/redmine-installer/logger.rb +83 -0
  16. data/lib/redmine-installer/package.rb +180 -0
  17. data/lib/redmine-installer/patches/ruby.rb +35 -0
  18. data/lib/redmine-installer/patches/tty.rb +16 -0
  19. data/lib/redmine-installer/profile.rb +24 -55
  20. data/lib/redmine-installer/redmine.rb +551 -0
  21. data/lib/redmine-installer/spec/spec.rb +81 -0
  22. data/lib/redmine-installer/task.rb +18 -77
  23. data/lib/redmine-installer/task_module.rb +12 -0
  24. data/lib/redmine-installer/upgrade.rb +51 -59
  25. data/lib/redmine-installer/utils.rb +46 -233
  26. data/lib/redmine-installer/version.rb +2 -4
  27. data/lib/redmine-installer.rb +69 -56
  28. data/redmine-installer.gemspec +20 -19
  29. data/spec/custom_matchers.rb +21 -0
  30. data/spec/installer_helper.rb +107 -0
  31. data/spec/installer_process.rb +82 -0
  32. data/spec/lib/backup_restore_spec.rb +81 -0
  33. data/spec/lib/install_spec.rb +125 -36
  34. data/spec/lib/upgrade_spec.rb +73 -52
  35. data/spec/packages/redmine-3.1.0.zip +0 -0
  36. data/spec/packages/redmine-3.2.0.zip +0 -0
  37. data/spec/packages/redmine-3.3.0-bad-migration.zip +0 -0
  38. data/spec/packages/redmine-3.3.0.zip +0 -0
  39. data/spec/packages/something-else.zip +0 -0
  40. data/spec/packages_helper.rb +19 -0
  41. data/spec/shared_contexts.rb +13 -0
  42. data/spec/spec_helper.rb +34 -18
  43. metadata +62 -63
  44. data/lib/redmine-installer/config_param.rb +0 -100
  45. data/lib/redmine-installer/error.rb +0 -5
  46. data/lib/redmine-installer/exec.rb +0 -158
  47. data/lib/redmine-installer/ext/module.rb +0 -7
  48. data/lib/redmine-installer/ext/string.rb +0 -15
  49. data/lib/redmine-installer/git.rb +0 -51
  50. data/lib/redmine-installer/helper.rb +0 -5
  51. data/lib/redmine-installer/helpers/generate_config.rb +0 -29
  52. data/lib/redmine-installer/locales/cs.yml +0 -147
  53. data/lib/redmine-installer/locales/en.yml +0 -154
  54. data/lib/redmine-installer/plugin.rb +0 -9
  55. data/lib/redmine-installer/plugins/base.rb +0 -24
  56. data/lib/redmine-installer/plugins/database.rb +0 -180
  57. data/lib/redmine-installer/plugins/email_sending.rb +0 -82
  58. data/lib/redmine-installer/plugins/redmine_plugin.rb +0 -82
  59. data/lib/redmine-installer/plugins/web_server.rb +0 -26
  60. data/lib/redmine-installer/step.rb +0 -16
  61. data/lib/redmine-installer/steps/backup.rb +0 -125
  62. data/lib/redmine-installer/steps/base.rb +0 -79
  63. data/lib/redmine-installer/steps/database_config.rb +0 -15
  64. data/lib/redmine-installer/steps/email_config.rb +0 -11
  65. data/lib/redmine-installer/steps/env_check.rb +0 -20
  66. data/lib/redmine-installer/steps/install.rb +0 -23
  67. data/lib/redmine-installer/steps/load_package.rb +0 -226
  68. data/lib/redmine-installer/steps/move_redmine.rb +0 -22
  69. data/lib/redmine-installer/steps/redmine_root.rb +0 -52
  70. data/lib/redmine-installer/steps/upgrade.rb +0 -57
  71. data/lib/redmine-installer/steps/validation.rb +0 -38
  72. data/lib/redmine-installer/steps/webserver_config.rb +0 -22
  73. data/spec/load_redmine.rb +0 -24
@@ -1,46 +1,135 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Redmine::Installer::Install do
3
+ RSpec.describe RedmineInstaller::Install, command: 'install' do
4
4
 
5
- before(:example) do
6
- @dir = Dir.mktmpdir
5
+ it 'bad permission', args: [] do
6
+ FileUtils.chmod(0000, @redmine_root)
7
+
8
+ expected_output('Path to redmine root:')
9
+ write(@redmine_root)
10
+
11
+ expected_output('Redmine root contains inaccessible files')
12
+
13
+ FileUtils.chmod(0600, @redmine_root)
14
+ end
15
+
16
+ it 'non-existinig package', args: [] do
17
+ this_file = File.expand_path(File.join(File.dirname(__FILE__)))
18
+
19
+ expected_output('Path to redmine root:')
20
+ write(@redmine_root)
21
+
22
+ expected_output('Path to package:')
23
+ write(this_file)
24
+
25
+ expected_output("File #{this_file} must have format: .zip, .gz, .tgz")
26
+ end
27
+
28
+ it 'non-existinig zip package', args: [] do
29
+ expected_output('Path to redmine root:')
30
+ write(@redmine_root)
31
+
32
+ expected_output('Path to package:')
33
+ write('aaa.zip')
34
+
35
+ expected_output("File doesn't exist")
7
36
  end
8
37
 
9
- after(:example) do
10
- FileUtils.remove_entry_secure(@dir)
38
+ it 'install without arguments', args: [] do
39
+ regular_package = File.expand_path(File.join(File.dirname(__FILE__), '..', 'packages', 'redmine-3.1.0.zip'))
40
+
41
+ expected_output('Path to redmine root:')
42
+ write(@redmine_root)
43
+
44
+ expected_output('Path to package:')
45
+ write(regular_package)
46
+
47
+ expected_output('Extracting redmine package')
48
+
49
+ expected_successful_configuration
50
+ expected_successful_installation
51
+
52
+ expected_redmine_version('3.1.0')
11
53
  end
12
54
 
13
- let(:package1) { LoadRedmine.get('2.4.7') }
14
-
15
- context 'mysql' do
16
- let(:host) { RSpec.configuration.mysql[:host] }
17
- let(:port) { RSpec.configuration.mysql[:port] }
18
- let(:username) { RSpec.configuration.mysql[:username] }
19
- let(:password) { RSpec.configuration.mysql[:password] }
20
-
21
- before(:example) do
22
- system("mysql -h #{host} --port #{port} -u #{username} -p#{password} -e 'drop database test1'")
23
- end
24
-
25
- it 'install' do
26
- # redmine root -> temp dir
27
- # type of db -> mysql
28
- # database -> test1
29
- # host -> configuration
30
- # username -> configuration
31
- # password -> configuration
32
- # encoding -> utf8
33
- # port -> configuration
34
- # email configuration -> skip
35
- # webserver -> skip
36
-
37
- allow($stdin).to receive(:gets).and_return(
38
- @dir, '1', 'test1', host, username, password, 'utf8', port, '999', '999'
39
- )
40
-
41
- r_installer = Redmine::Installer::Install.new(package1, {})
42
- expect { r_installer.run }.to_not raise_error
43
- end
55
+ it 'download redmine', args: ['v3.1.1'] do
56
+ expected_output('Path to redmine root:')
57
+ write(@redmine_root)
58
+
59
+ expected_output_in('Downloading redmine 3.1.1', 20)
60
+ expected_output('Extracting redmine package')
61
+
62
+ expected_successful_configuration
63
+ expected_successful_installation
64
+
65
+ expected_redmine_version('3.1.1')
66
+ end
67
+
68
+ it 'installing something else', args: [package_someting_else] do
69
+ write(@redmine_root)
70
+
71
+ expected_successful_configuration
72
+
73
+ expected_output('Redmine installing')
74
+ expected_output_in('--> Bundle install', 50)
75
+
76
+ expected_output('Gemfile not found')
77
+ expected_output('‣ Try again')
78
+
79
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
80
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
81
+ expected_output('‣ Cancel')
82
+ write(' ')
83
+
84
+ expected_output('Operation canceled by user')
85
+ end
86
+
87
+ it 'bad database settings', args: [package_v310] do
88
+ write(@redmine_root)
89
+
90
+ expected_output('Creating database configuration')
91
+
92
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
93
+ expected_output('‣ PostgreSQL')
94
+ write(' ')
95
+
96
+ write('test')
97
+ write('')
98
+ write('testtesttest')
99
+ sleep 0.5 # wait for buffer
100
+ write(db_password)
101
+ write('')
102
+ write('')
103
+
104
+ expected_output('Creating email configuration')
105
+ write(' ')
106
+
107
+ expected_output('Redmine installing')
108
+ expected_output_in('--> Database migrating', 60)
109
+ expected_output('Migration end with error')
110
+ expected_output('‣ Try again')
111
+
112
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
113
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
114
+ expected_output('‣ Change database configuration')
115
+ write(' ')
116
+
117
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
118
+ expected_output('‣ PostgreSQL')
119
+ write(' ')
120
+
121
+ write('test')
122
+ write('')
123
+ write(db_username)
124
+ sleep 0.5 # wait for buffer
125
+ write(db_password)
126
+ write('')
127
+ write('')
128
+
129
+ expected_output('--> Database migrating')
130
+ expected_output_in('Redmine was installed', 60)
131
+
132
+ expected_redmine_version('3.1.0')
44
133
  end
45
134
 
46
135
  end
@@ -1,62 +1,83 @@
1
1
  require 'spec_helper'
2
2
 
3
- RSpec.describe Redmine::Installer::Upgrade do
3
+ RSpec.describe RedmineInstaller::Upgrade, :install_first, command: 'upgrade' do
4
4
 
5
- before(:example) do
6
- @dir1 = Dir.mktmpdir
7
- @dir2 = Dir.mktmpdir
5
+ it 'bad redmine root', args: [] do
6
+ FileUtils.remove_entry(File.join(@redmine_root, 'app'))
7
+ write(@redmine_root)
8
+
9
+ expected_output("Redmine #{@redmine_root} is not valid.")
8
10
  end
9
11
 
10
- after(:example) do
11
- FileUtils.remove_entry_secure(@dir1)
12
- FileUtils.remove_entry_secure(@dir2)
12
+ it 'upgrading with full backup' do
13
+ test_test_dir = File.join(@redmine_root, 'test_test')
14
+ test_test_file = File.join(test_test_dir, 'test.txt')
15
+ FileUtils.mkdir_p(test_test_dir)
16
+ FileUtils.touch(test_test_file)
17
+
18
+ expect(File.exist?(test_test_file)).to be_truthy
19
+
20
+ expected_output('Path to redmine root:')
21
+ write(@redmine_root)
22
+
23
+ expected_output('Path to package:')
24
+ write(package_v320)
25
+
26
+ expected_output('Extracting redmine package')
27
+ expected_output('Data backup')
28
+
29
+ expected_output('‣ Full (redmine root and database)')
30
+ select_choice
31
+
32
+ expected_output('Where to save backup:')
33
+ write(@backup_dir)
34
+
35
+ expected_output('Files backuping')
36
+ expected_output('Files backed up')
37
+ expected_output('Database backuping')
38
+ expected_output('Database backed up')
39
+
40
+ expected_successful_upgrade
41
+
42
+ expected_redmine_version('3.2.0')
43
+
44
+ expect(File.exist?(test_test_file)).to be_falsey
45
+
46
+ last_backup = Dir.glob(File.join(@backup_dir, '*')).sort.last
47
+ backuped = Dir.glob(File.join(last_backup, '*'))
48
+
49
+ expect(backuped.map{|f| File.zero?(f) }).to all(be_falsey)
13
50
  end
14
51
 
15
- let(:package1) { LoadRedmine.get('2.4.7') }
16
- let(:package2) { LoadRedmine.get('2.5.0') }
17
-
18
- context 'mysql' do
19
- let(:host) { RSpec.configuration.mysql[:host] }
20
- let(:port) { RSpec.configuration.mysql[:port] }
21
- let(:username) { RSpec.configuration.mysql[:username] }
22
- let(:password) { RSpec.configuration.mysql[:password] }
23
-
24
- before(:example) do
25
- system("mysql -h #{host} --port #{port} -u #{username} -p#{password} -e 'drop database test1'")
26
- end
27
-
28
- it 'install' do
29
- # redmine root -> tempdir1
30
- # type of db -> mysql
31
- # database -> test1
32
- # host -> configuration
33
- # username -> configuration
34
- # password -> configuration
35
- # encoding -> utf8
36
- # port -> configuration
37
- # email configuration -> skip
38
- # webserver -> skip
39
-
40
- allow($stdin).to receive(:gets).and_return(
41
- @dir1, '1', 'test1', host, username, password, 'utf8', port, '999', '999'
42
- )
43
-
44
- r_installer = Redmine::Installer::Install.new(package1, {})
45
- expect { r_installer.run }.to_not raise_error
46
-
47
-
48
- # redmine root -> tempdir1
49
- # backup -> backup
50
- # backup dir -> tempdir2
51
- # save steps -> yes
52
-
53
- allow($stdin).to receive(:gets).and_return(
54
- @dir1, '2', @dir2, 'y'
55
- )
56
-
57
- r_upgrader = Redmine::Installer::Upgrade.new(package2, {})
58
- expect { r_upgrader.run }.to_not raise_error
59
- end
52
+ it 'upgrade with no backup and files keeping', args: ['--keep', 'test_test'] do
53
+ test_test_dir = File.join(@redmine_root, 'test_test')
54
+ test_test_file = File.join(test_test_dir, 'test.txt')
55
+ FileUtils.mkdir_p(test_test_dir)
56
+ FileUtils.touch(test_test_file)
57
+
58
+ expect(File.exist?(test_test_file)).to be_truthy
59
+
60
+ wait_for_stdin_buffer
61
+ write(@redmine_root)
62
+
63
+ wait_for_stdin_buffer
64
+ write(package_v320)
65
+
66
+ wait_for_stdin_buffer
67
+
68
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
69
+ write(TTY::Prompt::Reader::Codes::KEY_DOWN)
70
+ expected_output('‣ Nothing')
71
+ select_choice
72
+
73
+ expected_output('Are you sure you dont want backup?')
74
+ write('y')
75
+
76
+ expected_successful_upgrade
77
+
78
+ expected_redmine_version('3.2.0')
79
+
80
+ expect(File.exist?(test_test_file)).to be_truthy
60
81
  end
61
82
 
62
83
  end
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,19 @@
1
+ module PackagesHelper
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
14
+
15
+ def package_someting_else
16
+ File.expand_path(File.join(File.dirname(__FILE__), 'packages', 'something-else.zip'))
17
+ end
18
+
19
+ end
@@ -0,0 +1,13 @@
1
+ RSpec.shared_context 'run installer' do
2
+
3
+ around(:each) do |example|
4
+ @process = InstallerProcess.new(example.metadata[:command], example.metadata[:args])
5
+ @process.run do
6
+ Dir.mktmpdir('redmine_root') do |dir|
7
+ @redmine_root = dir
8
+ example.run
9
+ end
10
+ end
11
+ end
12
+
13
+ end
data/spec/spec_helper.rb CHANGED
@@ -1,30 +1,46 @@
1
- # require 'simplecov'
2
- # SimpleCov.start
1
+ lib = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(lib) if !$LOAD_PATH.include?(lib)
3
3
 
4
- require 'tmpdir'
5
- require 'tempfile'
6
- require 'fileutils'
7
-
8
- $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
9
4
  require 'redmine-installer'
10
- require 'load_redmine'
11
5
 
12
- I18n.locale = :en
6
+ require 'custom_matchers'
7
+ require 'shared_contexts'
8
+
9
+ require 'installer_process'
10
+ require 'installer_helper'
11
+ require 'packages_helper'
13
12
 
14
13
  RSpec.configure do |config|
15
14
  config.default_formatter = 'doc'
16
15
  config.color = true
17
16
  config.tty = true
18
17
 
19
- config.add_setting :mysql
20
- config.mysql = {
21
- host: 'localhost',
22
- port: '3306',
23
- username: 'root',
24
- password: 'root'
25
- }
18
+ config.disable_monkey_patching!
19
+
20
+ config.include_context 'run installer', :command
21
+
22
+ config.include PackagesHelper
23
+ config.extend PackagesHelper
24
+ config.include InstallerHelper
25
+
26
+ config.before(:all, :install_first) do
27
+ @redmine_root = @origin_redmine = Dir.mktmpdir('redmine_root')
28
+ @process = InstallerProcess.new('install', package_v310, @origin_redmine)
29
+ @process.run do
30
+ expected_successful_configuration
31
+ expected_successful_installation
32
+
33
+ expected_redmine_version('3.1.0')
34
+ end
35
+ @backup_dir = Dir.mktmpdir('backup_dir')
36
+ end
37
+
38
+ config.after(:all, :install_first) do
39
+ FileUtils.remove_entry(@origin_redmine)
40
+ FileUtils.remove_entry(@backup_dir)
41
+ end
26
42
 
27
- config.after(:suite) do
28
- LoadRedmine.clean
43
+ config.before(:each, :install_first) do
44
+ FileUtils.cp_r(File.join(@origin_redmine, '.'), @redmine_root)
29
45
  end
30
46
  end
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.7
4
+ version: 2.0.0.rc1
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: 2016-07-20 00:00:00.000000000 Z
11
+ date: 2017-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: ansi
14
+ name: commander
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - ">="
@@ -25,49 +25,49 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
- name: gli
28
+ name: tty-prompt
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 0.10.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 0.10.0
41
41
  - !ruby/object:Gem::Dependency
42
- name: i18n
42
+ name: tty-spinner
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.4.1
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.4.1
55
55
  - !ruby/object:Gem::Dependency
56
- name: notifier
56
+ name: tty-progressbar
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.10.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.10.1
69
69
  - !ruby/object:Gem::Dependency
70
- name: ruby-progressbar
70
+ name: rubyzip
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
73
  - - ">="
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
- name: rubyzip
84
+ name: pastel
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
87
  - - ">="
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: '1.6'
103
+ version: '1.11'
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '1.6'
110
+ version: '1.11'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -122,10 +122,7 @@ dependencies:
122
122
  - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
- description: |-
126
- Redmine-installer can fully install/upgrade redmine and will
127
- generate template for different server. All actions can be saved
128
- for further use.
125
+ description: ''
129
126
  email:
130
127
  - moravcik.ondrej@gmail.com
131
128
  executables:
@@ -134,6 +131,7 @@ extensions: []
134
131
  extra_rdoc_files: []
135
132
  files:
136
133
  - ".gitignore"
134
+ - ".travis.yml"
137
135
  - Gemfile
138
136
  - LICENSE.txt
139
137
  - README.md
@@ -143,45 +141,37 @@ files:
143
141
  - lib/redmine-installer/backup.rb
144
142
  - lib/redmine-installer/cli.rb
145
143
  - lib/redmine-installer/command.rb
146
- - lib/redmine-installer/config_param.rb
147
- - lib/redmine-installer/error.rb
148
- - lib/redmine-installer/exec.rb
149
- - lib/redmine-installer/ext/module.rb
150
- - lib/redmine-installer/ext/string.rb
151
- - lib/redmine-installer/git.rb
152
- - lib/redmine-installer/helper.rb
153
- - lib/redmine-installer/helpers/generate_config.rb
144
+ - lib/redmine-installer/configuration.rb
145
+ - lib/redmine-installer/database.rb
146
+ - lib/redmine-installer/environment.rb
147
+ - lib/redmine-installer/errors.rb
154
148
  - lib/redmine-installer/install.rb
155
- - lib/redmine-installer/locales/cs.yml
156
- - lib/redmine-installer/locales/en.yml
157
- - lib/redmine-installer/plugin.rb
158
- - lib/redmine-installer/plugins/base.rb
159
- - lib/redmine-installer/plugins/database.rb
160
- - lib/redmine-installer/plugins/email_sending.rb
161
- - lib/redmine-installer/plugins/redmine_plugin.rb
162
- - lib/redmine-installer/plugins/web_server.rb
149
+ - lib/redmine-installer/logger.rb
150
+ - lib/redmine-installer/package.rb
151
+ - lib/redmine-installer/patches/ruby.rb
152
+ - lib/redmine-installer/patches/tty.rb
163
153
  - lib/redmine-installer/profile.rb
164
- - lib/redmine-installer/step.rb
165
- - lib/redmine-installer/steps/backup.rb
166
- - lib/redmine-installer/steps/base.rb
167
- - lib/redmine-installer/steps/database_config.rb
168
- - lib/redmine-installer/steps/email_config.rb
169
- - lib/redmine-installer/steps/env_check.rb
170
- - lib/redmine-installer/steps/install.rb
171
- - lib/redmine-installer/steps/load_package.rb
172
- - lib/redmine-installer/steps/move_redmine.rb
173
- - lib/redmine-installer/steps/redmine_root.rb
174
- - lib/redmine-installer/steps/upgrade.rb
175
- - lib/redmine-installer/steps/validation.rb
176
- - lib/redmine-installer/steps/webserver_config.rb
154
+ - lib/redmine-installer/redmine.rb
155
+ - lib/redmine-installer/spec/spec.rb
177
156
  - lib/redmine-installer/task.rb
157
+ - lib/redmine-installer/task_module.rb
178
158
  - lib/redmine-installer/upgrade.rb
179
159
  - lib/redmine-installer/utils.rb
180
160
  - lib/redmine-installer/version.rb
181
161
  - redmine-installer.gemspec
162
+ - spec/custom_matchers.rb
163
+ - spec/installer_helper.rb
164
+ - spec/installer_process.rb
165
+ - spec/lib/backup_restore_spec.rb
182
166
  - spec/lib/install_spec.rb
183
167
  - spec/lib/upgrade_spec.rb
184
- - spec/load_redmine.rb
168
+ - spec/packages/redmine-3.1.0.zip
169
+ - spec/packages/redmine-3.2.0.zip
170
+ - spec/packages/redmine-3.3.0-bad-migration.zip
171
+ - spec/packages/redmine-3.3.0.zip
172
+ - spec/packages/something-else.zip
173
+ - spec/packages_helper.rb
174
+ - spec/shared_contexts.rb
185
175
  - spec/spec_helper.rb
186
176
  homepage: https://github.com/easyredmine/redmine-installer
187
177
  licenses:
@@ -195,21 +185,30 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
185
  requirements:
196
186
  - - ">="
197
187
  - !ruby/object:Gem::Version
198
- version: '0'
188
+ version: 2.1.0
199
189
  required_rubygems_version: !ruby/object:Gem::Requirement
200
190
  requirements:
201
- - - ">="
191
+ - - ">"
202
192
  - !ruby/object:Gem::Version
203
- version: '0'
193
+ version: 1.3.1
204
194
  requirements: []
205
195
  rubyforge_project:
206
- rubygems_version: 2.5.1
196
+ rubygems_version: 2.5.2
207
197
  signing_key:
208
198
  specification_version: 4
209
- summary: Easy way how install/upgrade redmine or plugin.
199
+ summary: Easy way how install/upgrade Redmine, EasyRedmine or EasyProject.
210
200
  test_files:
201
+ - spec/custom_matchers.rb
202
+ - spec/installer_helper.rb
203
+ - spec/installer_process.rb
204
+ - spec/lib/backup_restore_spec.rb
211
205
  - spec/lib/install_spec.rb
212
206
  - spec/lib/upgrade_spec.rb
213
- - spec/load_redmine.rb
207
+ - spec/packages/redmine-3.1.0.zip
208
+ - spec/packages/redmine-3.2.0.zip
209
+ - spec/packages/redmine-3.3.0-bad-migration.zip
210
+ - spec/packages/redmine-3.3.0.zip
211
+ - spec/packages/something-else.zip
212
+ - spec/packages_helper.rb
213
+ - spec/shared_contexts.rb
214
214
  - spec/spec_helper.rb
215
- has_rdoc: