redmine-installer 1.0.3 → 1.0.4

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
  SHA1:
3
- metadata.gz: 1cbbf5830bfd93d5c77dc0a7800c86a1b5a18d02
4
- data.tar.gz: b1eae7e8eba3dbd5b4087a31a4401c295532f886
3
+ metadata.gz: bf4c9b2139402f260abc11c1a6df7d587640273a
4
+ data.tar.gz: c1be909a5caecc19b023c665e79aa849a3e526f8
5
5
  SHA512:
6
- metadata.gz: a95f8f3bee4ebe2382286580db9dab236c2b41fe6f923989984db5e9f79dab8ea6525d00f389aa48e5cbb32853e200bc770176bce0550346269352acf004f958
7
- data.tar.gz: 67e5b24065eb29494644ca2c0d4a070933c4ad2def7c2a50993524fa17ae3d13566a1daa2e11909c7be615ef7b06c5a85c17608f65e67665bb326cbbc85262e7
6
+ metadata.gz: 1b2aeb3bd1a57421b47411cd6d735454146cb0df36b92fdc472610e8802ffdacb2767dd918c004a4b11c25a8f4f429d5e7bad488446025d4dde383889dc96d34
7
+ data.tar.gz: ba426bac1c039dccac92a8471dba5384ef7b113c0bec6f655e24f5ba388cdada5d46547a67ab6c48952d82653118b1e7927efecc835d3b9008aee64e7ba0e442
data/README.md CHANGED
@@ -236,6 +236,10 @@ redmine upgrade --source git
236
236
  redmine upgrade --source git --env environment
237
237
  ```
238
238
 
239
+ ### Easyproject
240
+
241
+ If you are using easyproject plugin and you dont want copy client modifications from old instance use switch `--skip-old-modifications`.
242
+
239
243
 
240
244
  ## Backup
241
245
 
@@ -284,6 +288,3 @@ You can choose one of 3 types.
284
288
  </tr>
285
289
  </tbody>
286
290
  </table>
287
-
288
-
289
-
@@ -5,5 +5,6 @@ $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib)
5
5
 
6
6
  require 'redmine-installer'
7
7
 
8
+ Redmine::Installer.set_i18n
8
9
  Redmine::Installer.print_logo
9
10
  Redmine::Installer::CLI.start(ARGV)
@@ -65,6 +65,3 @@ require 'redmine-installer/ext/module'
65
65
  require 'redmine-installer/install'
66
66
  require 'redmine-installer/upgrade'
67
67
  require 'redmine-installer/backup'
68
-
69
- # Default configurations
70
- Redmine::Installer.set_i18n
@@ -64,6 +64,8 @@ module Redmine::Installer
64
64
  desc: I18n.translate(:cli_flag_environment),
65
65
  type: Array
66
66
 
67
+ c.switch 'skip-old-modifications', default_value: false
68
+
67
69
  c.action do |global_options, options, args|
68
70
  run_action('upgrade', args.first, options)
69
71
  end
@@ -32,13 +32,24 @@ class EasyProject < Redmine::Installer::Plugin::RedminePlugin
32
32
  end
33
33
  end
34
34
 
35
- RAKE_EASYPROJECT_INSTALL = 'bundle exec rake RAILS_ENV=production'
36
-
37
35
  def self.install(base)
38
36
  command.rake_easyproject_install(base.env) if am_i_there?
39
37
  end
40
38
 
41
39
  def self.upgrade(base)
40
+ # Copy client modification folders
41
+ # plugins/easyproject/easy_plugins/modification_*
42
+ unless base.options['skip-old-modifications']
43
+ easy_plugins_dir = File.join('plugins', 'easyproject', 'easy_plugins')
44
+ old_modifications = Dir.glob(File.join(base.redmine_root, easy_plugins_dir, 'modification_*'))
45
+ new_modifications = Dir.glob(File.join(base.tmp_redmine_root, easy_plugins_dir, 'modification_*'))
46
+
47
+ # Modifications which are on old redmine but not new
48
+ missing_modifications = old_modifications - new_modifications
49
+
50
+ FileUtils.cp_r(missing_modifications, File.join(base.tmp_redmine_root, easy_plugins_dir))
51
+ end
52
+
42
53
  install(base)
43
54
  end
44
55
  end
@@ -1,5 +1,5 @@
1
1
  module Redmine
2
2
  module Installer
3
- VERSION = '1.0.3'
3
+ VERSION = '1.0.4'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,125 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine-installer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
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: 2014-11-21 00:00:00.000000000 Z
11
+ date: 2015-02-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ansi
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: gli
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '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
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: i18n
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
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
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: notifier
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
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
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: ruby-progressbar
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: rubyzip
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ">="
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ">="
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: bundler
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ~>
101
+ - - "~>"
102
102
  - !ruby/object:Gem::Version
103
103
  version: '1.6'
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
110
  version: '1.6'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ">="
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ">="
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  description: |-
@@ -133,7 +133,7 @@ executables:
133
133
  extensions: []
134
134
  extra_rdoc_files: []
135
135
  files:
136
- - .gitignore
136
+ - ".gitignore"
137
137
  - Gemfile
138
138
  - LICENSE.txt
139
139
  - README.md
@@ -192,17 +192,17 @@ require_paths:
192
192
  - lib
193
193
  required_ruby_version: !ruby/object:Gem::Requirement
194
194
  requirements:
195
- - - '>='
195
+ - - ">="
196
196
  - !ruby/object:Gem::Version
197
197
  version: '0'
198
198
  required_rubygems_version: !ruby/object:Gem::Requirement
199
199
  requirements:
200
- - - '>='
200
+ - - ">="
201
201
  - !ruby/object:Gem::Version
202
202
  version: '0'
203
203
  requirements: []
204
204
  rubyforge_project:
205
- rubygems_version: 2.0.14
205
+ rubygems_version: 2.2.2
206
206
  signing_key:
207
207
  specification_version: 4
208
208
  summary: Easy way how install/upgrade redmine or plugin.