nswebgen 0.8.5 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,7 @@ class AppBuilder < Rails::AppBuilder
15
15
  inside 'app/assets/stylesheets' do
16
16
  gsub_file 'application.css', /(require_tree.*)/, 'require_directory ./application'
17
17
  end
18
+ template 'layouts/maintenance.html.erb', 'app/views/layouts/maintenance.html.erb'
18
19
  git_keep 'app/mailers'
19
20
  git_keep 'app/models'
20
21
  end
@@ -1,4 +1,4 @@
1
- source 'http://rubygems.org'
1
+ source 'https://rubygems.org'
2
2
 
3
3
  <%= database_gemfile_entry %>
4
4
 
@@ -8,8 +8,8 @@ gem 'therubyracer'
8
8
  gem 'newrelic_rpm'
9
9
 
10
10
  ##### NSWEB GEMS #####
11
- gem 'nsweb', git: 'git@inet-dev01.eastwood.net:nsweb.git'
12
- #gem 'nsweb', git: 'git@inet-dev01.eastwood.net:nsweb.git', tag: 'v1.0.0'
13
- #gem 'nsweb', git: 'git@inet-dev01.eastwood.net:nsweb.git', ref: '123abc'
11
+ gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git'
12
+ #gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git', tag: 'v1.0.0'
13
+ #gem 'nsweb', git: 'git@inet-dev01.share_one.com:nsweb.git', ref: '123abc'
14
14
  #gem 'nsweb', path: '../../nsweb'
15
15
  ### END NSWEB GEMS ###
@@ -23,14 +23,28 @@ server {
23
23
  gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
24
24
  }
25
25
 
26
+ recursive_error_pages on;
27
+
26
28
  if (-f $document_root/system/maintenance.html) {
29
+ set $maintenance "Y";
30
+ }
31
+
32
+ if (-f $request_filename) {
33
+ set $maintenance "Y";
34
+ }
35
+
36
+ if ($maintenance = "Y") {
27
37
  return 503;
28
38
  }
29
39
 
30
40
  error_page 503 @maintenance;
31
41
  location @maintenance {
32
- rewrite ^(.*)$ /system/maintenance.html last;
33
- break;
42
+ error_page 405 /system/maintenance.html;
43
+
44
+ if (-f $request_filename) {
45
+ break;
46
+ }
47
+ rewrite ^(.*)$ /system/maintenance.html break;
34
48
  }
35
49
 
36
50
  location /favicon.ico {
@@ -23,14 +23,34 @@ server {
23
23
  gzip_types text/plain text/css text/xml text/javascript application/x-javascript application/xml;
24
24
  }
25
25
 
26
+ recursive_error_pages on;
27
+
26
28
  if (-f $document_root/system/maintenance.html) {
29
+ set $maintenance "Y";
30
+ }
31
+
32
+ if (-f $request_filename) {
33
+ set $maintenance "Y";
34
+ }
35
+
36
+ if ($maintenance = "Y") {
27
37
  return 503;
28
38
  }
29
39
 
30
40
  error_page 503 @maintenance;
31
41
  location @maintenance {
32
- rewrite ^(.*)$ /system/maintenance.html last;
33
- break;
42
+ error_page 405 /system/maintenance.html;
43
+
44
+ if (-f $request_filename) {
45
+ break;
46
+ }
47
+ rewrite ^(.*)$ /system/maintenance.html break;
48
+ }
49
+
50
+ location /favicon.ico {
51
+ access_log off;
52
+ log_not_found off;
53
+ return 204;
34
54
  }
35
55
 
36
56
  location / {
@@ -45,7 +65,7 @@ server {
45
65
  }
46
66
  }
47
67
 
48
- error_page 500 502 503 504 /500.html;
68
+ error_page 500 502 504 /500.html;
49
69
  location = /500.html {
50
70
  root /var/www/<%= @app_name %>/current/public;
51
71
  }
@@ -0,0 +1,41 @@
1
+ <!DOCTYPE html>
2
+ <!--[if lt IE 7]> <html class="ie6"> <![endif]-->
3
+ <!--[if IE 7]> <html class="ie7"> <![endif]-->
4
+ <!--[if IE 8]> <html class="ie8"> <![endif]-->
5
+ <!--[if gt IE 8]><!--> <html> <!--<![endif]-->
6
+ <head>
7
+ <title><%= options.cuname %></title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <meta charset="utf-8" />
10
+ <link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
11
+ <link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
12
+ <link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
13
+ <link href="/assets/print.css" media="print" rel="stylesheet" type="text/css" />
14
+ <!--[if (IE 7) | (IE 8)]>
15
+ <link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
16
+ <link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
17
+ <![endif]-->
18
+ </head>
19
+ <body>
20
+ <div id="constraint">
21
+ <div id="header">
22
+ <h1><%= options.cuname %></h1>
23
+ </div>
24
+ <div id="content">
25
+ <h2>System Unavailable</h2>
26
+ <p>
27
+ We are currently offline for <%%= reason ? reason : 'maintenance' %> as of <%%= Time.now.strftime('%H:%M %Z') %>, and expect to be back online <%%= deadline ? deadline : 'shortly' %>.
28
+ </p>
29
+ <p>
30
+ We apologize for any inconvenience.
31
+ </p>
32
+ </div>
33
+ <div id="footer">
34
+ <p>
35
+ &copy; Copyright&nbsp; Share One, Inc., <%%= Time.now.year %>
36
+ &nbsp; All Rights Reserved
37
+ </p>
38
+ </div>
39
+ </div>
40
+ </body>
41
+ </html>
@@ -3,36 +3,41 @@
3
3
  <!--[if IE 7]> <html class="ie7"> <![endif]-->
4
4
  <!--[if IE 8]> <html class="ie8"> <![endif]-->
5
5
  <!--[if gt IE 8]><!--> <html> <!--<![endif]-->
6
- <head>
7
- <title><%= options.cuname %></title>
8
- <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
- <meta charset="utf-8" />
10
- <script src="/assets/nsweb/application.js" type="text/javascript"></script>
11
- <script src="/assets/application.js" type="text/javascript"></script>
12
- <link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
13
- <link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
14
- <link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
15
- <link href="/assets/print.css" media="print" rel="stylesheet" type="text/css" />
16
- <!--[if (IE 7) | (IE 8)]>
17
- <link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
18
- <link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
19
- <![endif]-->
20
- </head>
21
- <body data-timeout="600">
22
- <div id="constraint">
23
- <div id="header">
24
- <h1><%= options.cuname %></h1>
25
- </div>
26
- <div id="content">
27
- <h2>Oops!</h2>
28
- <p>
29
- Something went wrong while trying to process your request. We've been
30
- notified about the problem and will get it fixed as soon as possible.
31
-
32
- If the problem persists, please notify the Credit Union.
33
- </p>
34
- <a href="/">Back</a>
35
- </div>
36
- </div>
37
- </body>
6
+ <head>
7
+ <title><%= options.cuname %></title>
8
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
9
+ <meta charset="utf-8" />
10
+ <link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
11
+ <link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
12
+ <link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
13
+ <link href="/assets/print.css" media="print" rel="stylesheet" type="text/css" />
14
+ <!--[if (IE 7) | (IE 8)]>
15
+ <link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
16
+ <link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
17
+ <![endif]-->
18
+ </head>
19
+ <body>
20
+ <div id="constraint">
21
+ <div id="header">
22
+ <h1><%= options.cuname %></h1>
23
+ </div>
24
+ <div id="content">
25
+ <h2>Oops!</h2>
26
+ <p>
27
+ Something went wrong while trying to process your request. We've been
28
+ notified about the problem and will get it fixed as soon as possible.
29
+ <br />
30
+ If the problem persists, please notify the Credit Union.
31
+ <br />
32
+ <a href="/">Back</a>
33
+ </p>
34
+ </div>
35
+ <div id="footer">
36
+ <p>
37
+ &copy; Copyright&nbsp; Share One, Inc.,
38
+ &nbsp; All Rights Reserved
39
+ </p>
40
+ </div>
41
+ </div>
42
+ </body>
38
43
  </html>
@@ -3,5 +3,5 @@
3
3
  #
4
4
 
5
5
  module Nswebgen
6
- VERSION = '0.8.5' # Current Nswebgen version
6
+ VERSION = '0.9.0' # Current Nswebgen version
7
7
  end
data/nswebgen.gemspec CHANGED
@@ -23,7 +23,7 @@ Gem::Specification.new do |s|
23
23
  s.require_paths = ['lib']
24
24
  s.executables = ['nswebgen']
25
25
 
26
- s.add_dependency 'railties', '3.1.3'
26
+ s.add_dependency 'railties', '3.1.12'
27
27
  s.add_dependency 'sqlite3', '~> 1.3.5'
28
28
 
29
29
  s.add_development_dependency 'geminabox'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nswebgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.5
4
+ version: 0.9.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-06-19 00:00:00.000000000 Z
13
+ date: 2013-07-12 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: railties
@@ -19,7 +19,7 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 3.1.3
22
+ version: 3.1.12
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,7 +27,7 @@ dependencies:
27
27
  requirements:
28
28
  - - '='
29
29
  - !ruby/object:Gem::Version
30
- version: 3.1.3
30
+ version: 3.1.12
31
31
  - !ruby/object:Gem::Dependency
32
32
  name: sqlite3
33
33
  requirement: !ruby/object:Gem::Requirement
@@ -90,6 +90,7 @@ files:
90
90
  - lib/nsweb/generators/nsweb/app/templates/config/vhosts/customer_qa.vhost.tt
91
91
  - lib/nsweb/generators/nsweb/app/templates/config/vhosts/production.vhost.tt
92
92
  - lib/nsweb/generators/nsweb/app/templates/gitignore
93
+ - lib/nsweb/generators/nsweb/app/templates/layouts/maintenance.html.erb
93
94
  - lib/nsweb/generators/nsweb/app/templates/public/500.html
94
95
  - lib/nsweb/generators/nsweb/app/templates/public/500.js
95
96
  - lib/nswebgen.rb
@@ -109,7 +110,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
109
110
  version: '0'
110
111
  segments:
111
112
  - 0
112
- hash: 502127567
113
+ hash: 50988499
113
114
  required_rubygems_version: !ruby/object:Gem::Requirement
114
115
  none: false
115
116
  requirements: