maintenance 0.0.1 → 0.0.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.
data/lib/maintenance.rb CHANGED
@@ -1,2 +1 @@
1
- require "maintenance/version"
2
- require "maintenance/engine"
1
+ require "maintenance/version"
@@ -1,3 +1,3 @@
1
1
  module Maintenance
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
data/maintenance.gemspec CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.version = Maintenance::VERSION
8
8
  s.authors = ["ready4god2513"]
9
9
  s.email = ["brandonh@ibethel.org"]
10
- s.homepage = ""
10
+ s.homepage = "https://github.com/ready4god2513/Maintenance"
11
11
  s.summary = %q{Maintenance Mode Simplified with Capistrano}
12
12
  s.description = %q{Use this gem, capistrano, and a few config settings in apache/nginx for easy maintenance mode}
13
13
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maintenance
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2011-08-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano
16
- requirement: &70295823117100 !ruby/object:Gem::Requirement
16
+ requirement: &70192525497020 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70295823117100
24
+ version_requirements: *70192525497020
25
25
  description: Use this gem, capistrano, and a few config settings in apache/nginx for
26
26
  easy maintenance mode
27
27
  email:
@@ -36,10 +36,9 @@ files:
36
36
  - Rakefile
37
37
  - config/deploy.rb
38
38
  - lib/maintenance.rb
39
- - lib/maintenance/maintenance_engine.rb
40
39
  - lib/maintenance/version.rb
41
40
  - maintenance.gemspec
42
- homepage: ''
41
+ homepage: https://github.com/ready4god2513/Maintenance
43
42
  licenses: []
44
43
  post_install_message:
45
44
  rdoc_options: []
@@ -1,34 +0,0 @@
1
- module Maintenance
2
-
3
- class Engine < Rails::Engine
4
-
5
- MyEngine::Engine.routes.draw do
6
- constraints MaintenanceMode do
7
- constraints IpRestrictor do
8
- match "*a" => "static#maintenance"
9
- end
10
- end
11
- end
12
-
13
- end
14
-
15
-
16
- class IpRestrictor
17
-
18
- def initialize(ip_addresses = {})
19
- @ip_addresses = ip_addresses
20
- end
21
-
22
- def self.matches?(request)
23
- request.ip =~ /127.0.0.1/
24
- end
25
- end
26
-
27
-
28
- class MaintenanceMode
29
- def self.matches?(request)
30
- FileTest.exist?("maintenance.html")
31
- end
32
- end
33
-
34
- end