redmine-installer 2.1.1 → 2.1.2

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: 8df0fba97f5e12bdc71ae4ccb50d545ea9b59bfb1bd381ae6b468e9b7503a908
4
- data.tar.gz: 721c4282b6a92b134ca396b3354d8d9f370e2861dd8ab8968222aa4a8cfc9f55
3
+ metadata.gz: 13628cf37fa9316b7aa4203259f0d6ae0ca51f1d3d0f8315c1a6a2ebe08eaca3
4
+ data.tar.gz: 9b29774377cf398b1ef1cf47e827391bc51ee8d04d756436a1957cfcf80d3ce2
5
5
  SHA512:
6
- metadata.gz: 9a7ff5417892950a1d1d43e925c230b6e23af792c63f4319c54479e5dfba8e3c1352e5a5fcf0319c19d9bf7f37c70dc072f3b06a2d56901503088df492d130c2
7
- data.tar.gz: 93e2cd5ae672399e372d5478d2786dc3c23a438e33c66d03ea06d2cb75a1be36d2f7ea76b5ccb60ff0f9fe2408cfdfa629fad503e38a0cb1997847e1c4a7148b
6
+ metadata.gz: 7af712fa35ef706b9bc6ef0fa97a069ded057c8af5ea068850dc16412de8c9ac5cc079e28ec6be245f08a619eca473f86ddbbecef471a0bee38e4d3cda63e8bd
7
+ data.tar.gz: '0996549d0bbd6a2f8a129923e2a0f92d619585bc4be77cad597330ae2dae89839ed2021b8d7b5f9ea8cce19d1db63865756a65960e45c8fab70b1616b794c1d0'
@@ -603,7 +603,9 @@ module RedmineInstaller
603
603
  end
604
604
 
605
605
  def rake_easyproject_install
606
- status = run_command('RAILS_ENV=production bundle exec rake easyproject:install', 'Installing easyproject')
606
+ status = without_env('NAME') {
607
+ run_command('RAILS_ENV=production bundle exec rake easyproject:install', 'Installing easyproject')
608
+ }
607
609
 
608
610
  unless status
609
611
  puts
@@ -639,5 +641,13 @@ module RedmineInstaller
639
641
  end
640
642
  end
641
643
 
644
+ def without_env(*names)
645
+ backup = ENV.clone.to_hash
646
+ ENV.delete_if {|key, _| names.include?(key) }
647
+ yield
648
+ ensure
649
+ ENV.replace(backup)
650
+ end
651
+
642
652
  end
643
653
  end
@@ -1,3 +1,3 @@
1
1
  module RedmineInstaller
2
- VERSION = '2.1.1'
2
+ VERSION = '2.1.2'
3
3
  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.1
4
+ version: 2.1.2
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-07-18 00:00:00.000000000 Z
11
+ date: 2018-08-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander