trackman 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock
CHANGED
@@ -9,7 +9,7 @@ GIT
|
|
9
9
|
PATH
|
10
10
|
remote: .
|
11
11
|
specs:
|
12
|
-
trackman (0.6.
|
12
|
+
trackman (0.6.2)
|
13
13
|
heroku (>= 2.26.2)
|
14
14
|
json
|
15
15
|
nokogiri
|
@@ -24,7 +24,7 @@ GEM
|
|
24
24
|
blockenspiel (0.4.5)
|
25
25
|
diff-lcs (1.1.3)
|
26
26
|
excon (0.16.4)
|
27
|
-
heroku (2.32.
|
27
|
+
heroku (2.32.13)
|
28
28
|
heroku-api (~> 0.3.5)
|
29
29
|
launchy (>= 0.3.2)
|
30
30
|
netrc (~> 0.7.7)
|
@@ -4,8 +4,6 @@ module Trackman
|
|
4
4
|
source_root File.expand_path('../templates', __FILE__)
|
5
5
|
argument :controller_name, :type => :string, :default => 'errors'
|
6
6
|
|
7
|
-
desc "Generates a controller to generate your static pages"
|
8
|
-
|
9
7
|
@@actions = ['not_found', 'error', 'maintenance', 'maintenance_error']
|
10
8
|
@@routes = {'not-found' => 'not_found', 'error' => 'error', 'maintenance' => 'maintenance', 'maintenance-error' => 'maintenance_error'}
|
11
9
|
|
@@ -13,15 +11,6 @@ module Trackman
|
|
13
11
|
template "controller_layout.rb.erb", "app/controllers/#{controller_name}_controller.rb"
|
14
12
|
end
|
15
13
|
|
16
|
-
def create_app_config
|
17
|
-
puts "
|
18
|
-
------
|
19
|
-
Trackman added \"config.exceptions_app = self.routes\" in config/application.rb
|
20
|
-
------\n"
|
21
|
-
application do
|
22
|
-
"config.exceptions_app = self.routes"
|
23
|
-
end
|
24
|
-
end
|
25
14
|
def create_views
|
26
15
|
create_views_for(:erb)
|
27
16
|
end
|
@@ -9,8 +9,7 @@ module Trackman
|
|
9
9
|
base.nodes_to_edit = {}
|
10
10
|
|
11
11
|
if defined?(Rails)
|
12
|
-
base.mappings = { :maintenance => '503', :maintenance_error => '503-error' }
|
13
|
-
base.mappings.merge!({:not_found => '404', :error => '500'}) if ::Rails::VERSION::STRING =~ /^2\./
|
12
|
+
base.mappings = { :maintenance => '503', :maintenance_error => '503-error', :not_found => '404', :error => '500' }
|
14
13
|
else
|
15
14
|
base.mappings = {}
|
16
15
|
end
|
data/lib/trackman/version.rb
CHANGED