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.1)
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.6)
27
+ heroku (2.32.13)
28
28
  heroku-api (~> 0.3.5)
29
29
  launchy (>= 0.3.2)
30
30
  netrc (~> 0.7.7)
@@ -9,4 +9,4 @@ Examples:
9
9
  rails generate trackman:controller abc
10
10
 
11
11
  Will create a controller called "abc". It will contain four GET methods to
12
- access your error pages and generate your static pages.
12
+ access your error pages and generate your static pages.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Trackman
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.2"
3
3
  end
@@ -10,4 +10,4 @@ Examples:
10
10
  rails generate trackman_controller abc
11
11
 
12
12
  Will create a controller called "abc". It will contain four GET methods to
13
- generate your error and maintenance pages.
13
+ generate your error and maintenance pages.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: trackman
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: