maintenance_mode_simple 0.1.3 → 0.1.4

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: 2bea7935470a5421773983482d49cb9b561e3aabd0b63624ccf2490ccb5c2b4a
4
- data.tar.gz: 2fa277ce17e36d42126208b539a3ba5a4bf8a04dff66b1f9566c63777f765e6f
3
+ metadata.gz: 623109ebcb745bad58f035f784f7d86d6a34d10d8ea5e1b858f7b126e4385f94
4
+ data.tar.gz: e6b88880052cffcd2ff4b2931807d62f9e5490af4e83047f0d87fa3781600845
5
5
  SHA512:
6
- metadata.gz: 9d1a85f902052db264c1cc83f7eecd5ac2c70bac628dd2ba5bf1844b27a56b4d622a0301498c433c10f5303074e60ae3d302bf72d3d0cf104b2fa1ec281bb2de
7
- data.tar.gz: e0edd91f17dc6ed1caf40059a59dd4ab0bbdbaec1705c3e8816ff9d1e2ab48d706992732013d437d8d66a8fa0b4c1cc230b3b45b8b95680179e29d8df5f3c1bc
6
+ metadata.gz: eed601791c83c4f3822305e38836c83c143829553c2c6f460d89d89e091d1e08f86f4ea50e82a7d6726c35bd4f94f8a580b6ba2cbee7bfd4130f7863e9809d0b
7
+ data.tar.gz: 70c7f046161f1699a05f7add3ed6a682f1dfcacaa544a571d3162080e701797024a1baa72133ae3b7361047bc3a049121cdf670f288825a1f2aff8ae79e3d489
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module MaintenanceModeSimple
4
- VERSION = "0.1.3"
4
+ VERSION = "0.1.4"
5
5
  end
@@ -1,13 +1,13 @@
1
1
  namespace :maintenance do
2
2
  desc "Enable maintenance mode"
3
3
  task :start do
4
- FileUtils.touch(Rails.root.join('tmp', 'maintenance.yml'))
4
+ File.write(Rails.root.join('tmp', 'maintenance.yml'), "enabled: true")
5
5
  puts "Maintenance mode enabled"
6
6
  end
7
7
 
8
8
  desc "Disable maintenance mode"
9
9
  task :stop do
10
- FileUtils.rm(Rails.root.join('tmp', 'maintenance.yml'))
10
+ File.delete(Rails.root.join('tmp', 'maintenance.yml')) if File.exist?(Rails.root.join('tmp', 'maintenance.yml'))
11
11
  puts "Maintenance mode disabled"
12
12
  end
13
13
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintenance_mode_simple
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - bogdancojan
@@ -73,6 +73,7 @@ files:
73
73
  - maintenance_mode_simple-0.1.0.gem
74
74
  - maintenance_mode_simple-0.1.1.gem
75
75
  - maintenance_mode_simple-0.1.2.gem
76
+ - maintenance_mode_simple-0.1.3.gem
76
77
  - maintenance_mode_simple.gemspec
77
78
  - sig/maintenance_mode_simple.rbs
78
79
  homepage: https://github.com/bogdancojan/Maintenance-Mode