nswebgen 0.7.0 → 0.8.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nsweb/generators/nsweb/app/app_generator.rb +1 -14
- data/lib/nsweb/generators/nsweb/app/templates/Gemfile +5 -5
- data/lib/nsweb/generators/nsweb/app/templates/bundler/config.tt +1 -0
- data/lib/nsweb/generators/nsweb/app/templates/config/database.yml +3 -3
- data/lib/nsweb/generators/nsweb/app/templates/config/logrotate.conf +3 -3
- data/lib/nsweb/generators/nsweb/app/templates/config/memcache.yml +5 -5
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_customer_qa.sh +1 -1
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_production.sh +1 -1
- data/lib/nsweb/generators/nsweb/app/templates/config/unicorn_init_shareone_qa.sh +1 -1
- data/lib/nsweb/generators/nsweb/app/templates/config/vhosts/customer_qa.vhost.tt +6 -0
- data/lib/nsweb/generators/nsweb/app/templates/public/500.html +19 -27
- data/lib/nswebgen/version.rb +1 -1
- metadata +54 -46
@@ -43,9 +43,6 @@ class AppBuilder < Rails::AppBuilder
|
|
43
43
|
inject_into_file 'production.rb', :before => /^end/ do <<EOB
|
44
44
|
|
45
45
|
### CUSTOM ###
|
46
|
-
config.action_mailer.smtp_settings = {
|
47
|
-
:address => 'mail.shareone.com'
|
48
|
-
}
|
49
46
|
config.action_mailer.default_url_options = {
|
50
47
|
:host => '#{app_name}.nssecurebanking.org'
|
51
48
|
}
|
@@ -56,9 +53,6 @@ EOB
|
|
56
53
|
inject_into_file 'customer_qa.rb', :before => /^end/ do <<EOB
|
57
54
|
|
58
55
|
### CUSTOM ###
|
59
|
-
config.action_mailer.smtp_settings = {
|
60
|
-
:address => 'mail.shareone.com'
|
61
|
-
}
|
62
56
|
config.action_mailer.default_url_options = {
|
63
57
|
:host => '#{app_name}.nssecuretesting.org'
|
64
58
|
}
|
@@ -68,9 +62,6 @@ EOB
|
|
68
62
|
inject_into_file 'shareone_qa.rb', :before => /^end/ do <<EOB
|
69
63
|
|
70
64
|
### CUSTOM ###
|
71
|
-
config.action_mailer.smtp_settings = {
|
72
|
-
:address => 'mail.shareone.com'
|
73
|
-
}
|
74
65
|
config.action_mailer.default_url_options = {
|
75
66
|
:host => '#{app_name}.hbtesting.org'
|
76
67
|
}
|
@@ -254,11 +245,7 @@ module Nsweb
|
|
254
245
|
def init_git
|
255
246
|
unless options.skip_git?
|
256
247
|
git :init
|
257
|
-
git :remote => "add origin git@
|
258
|
-
git :remote => "add eastwood gitosis@192.168.126.10:#{app_name}.git"
|
259
|
-
git :remote => "add iloathing git@iloathing.com:#{app_name}.git"
|
260
|
-
git :remote => "add all gitosis@192.168.126.10:#{app_name}.git"
|
261
|
-
git :remote => "set-url --add all git@iloathing.com:#{app_name}.git"
|
248
|
+
git :remote => "add origin git@inet-dev01.share_one.com:customers/#{app_name}.git"
|
262
249
|
git :add => '.'
|
263
250
|
git :commit => "-a -m 'Initial Commit'"
|
264
251
|
end
|
@@ -1,15 +1,15 @@
|
|
1
1
|
source 'http://rubygems.org'
|
2
2
|
|
3
|
-
gem 'rails', '3.1.3'
|
4
|
-
|
5
3
|
<%= database_gemfile_entry %>
|
6
4
|
|
7
5
|
<%= assets_gemfile_entry %>
|
8
6
|
gem 'unicorn'
|
9
|
-
gem 'capistrano'
|
10
7
|
gem 'therubyracer'
|
8
|
+
gem 'newrelic_rpm'
|
11
9
|
|
12
10
|
##### NSWEB GEMS #####
|
13
|
-
|
14
|
-
gem 'nsweb',
|
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'
|
14
|
+
#gem 'nsweb', path: '../../nsweb'
|
15
15
|
### END NSWEB GEMS ###
|
@@ -16,7 +16,7 @@ test:
|
|
16
16
|
timeout: 5000
|
17
17
|
|
18
18
|
shareone_qa:
|
19
|
-
adapter:
|
19
|
+
adapter: mysql2
|
20
20
|
database: <%= app_name %>
|
21
21
|
host: localhost
|
22
22
|
username: nsweb
|
@@ -24,7 +24,7 @@ shareone_qa:
|
|
24
24
|
encoding: utf8
|
25
25
|
|
26
26
|
customer_qa:
|
27
|
-
adapter:
|
27
|
+
adapter: mysql2
|
28
28
|
database: <%= app_name %>
|
29
29
|
host: localhost
|
30
30
|
username: nsweb
|
@@ -32,7 +32,7 @@ customer_qa:
|
|
32
32
|
encoding: utf8
|
33
33
|
|
34
34
|
production:
|
35
|
-
adapter:
|
35
|
+
adapter: mysql2
|
36
36
|
database: <%= app_name %>
|
37
37
|
host: localhost
|
38
38
|
username: nsweb
|
@@ -1,24 +1,24 @@
|
|
1
1
|
development:
|
2
2
|
enabled: true
|
3
|
-
host:
|
3
|
+
host: 127.0.0.1
|
4
4
|
port: 11211
|
5
5
|
|
6
6
|
test:
|
7
7
|
enabled: true
|
8
|
-
host:
|
8
|
+
host: 127.0.0.1
|
9
9
|
port: 11211
|
10
10
|
|
11
11
|
shareone_qa:
|
12
12
|
enabled: true
|
13
|
-
host:
|
13
|
+
host: 127.0.0.1
|
14
14
|
port: 11211
|
15
15
|
|
16
16
|
customer_qa:
|
17
17
|
enabled: true
|
18
|
-
host:
|
18
|
+
host: 127.0.0.1
|
19
19
|
port: 11211
|
20
20
|
|
21
21
|
production:
|
22
22
|
enabled: true
|
23
|
-
host:
|
23
|
+
host: 127.0.0.1
|
24
24
|
port: 11211
|
@@ -4,14 +4,11 @@
|
|
4
4
|
<!--[if IE 8]> <html class="ie8"> <![endif]-->
|
5
5
|
<!--[if gt IE 8]><!--> <html> <!--<![endif]-->
|
6
6
|
<head>
|
7
|
-
<title
|
7
|
+
<title><%= options.cuname %></title>
|
8
8
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
9
|
-
<meta
|
10
|
-
<meta http-equiv="cache-control" content="no-cache" />
|
11
|
-
|
9
|
+
<meta charset="utf-8" />
|
12
10
|
<script src="/assets/nsweb/application.js" type="text/javascript"></script>
|
13
11
|
<script src="/assets/application.js" type="text/javascript"></script>
|
14
|
-
|
15
12
|
<link href="/assets/nsweb/application.css" media="screen" rel="stylesheet" type="text/css" />
|
16
13
|
<link href="/assets/application.css" media="screen" rel="stylesheet" type="text/css" />
|
17
14
|
<link href="/assets/nsweb/print.css" media="print" rel="stylesheet" type="text/css" />
|
@@ -20,27 +17,22 @@
|
|
20
17
|
<link href="/assets/nsweb/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
21
18
|
<link href="/assets/ie.css" media="screen" rel="stylesheet" type="text/css" />
|
22
19
|
<![endif]-->
|
23
|
-
|
24
|
-
|
25
|
-
<
|
26
|
-
|
27
|
-
<
|
28
|
-
</
|
29
|
-
<
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
<h2>Oops!</h2>
|
35
|
-
<p>
|
36
|
-
Something went wrong while trying to process your request. We've been
|
37
|
-
notified about the problem and will get it fixed as soon as possible.
|
38
|
-
|
39
|
-
If the problem persists, please notify the Credit Union.
|
40
|
-
</p>
|
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.
|
41
31
|
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
</
|
32
|
+
If the problem persists, please notify the Credit Union.
|
33
|
+
</p>
|
34
|
+
<a href="/">Back</a>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
</body>
|
46
38
|
</html>
|
data/lib/nswebgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,60 +1,72 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: nswebgen
|
3
|
-
version: !ruby/object:Gem::Version
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.8.5
|
4
5
|
prerelease:
|
5
|
-
version: 0.7.0
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- John C. Burr
|
9
9
|
- Josh Williams
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
- !ruby/object:Gem::Dependency
|
13
|
+
date: 2013-06-19 00:00:00.000000000 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
17
16
|
name: railties
|
18
|
-
requirement:
|
17
|
+
requirement: !ruby/object:Gem::Requirement
|
19
18
|
none: false
|
20
|
-
requirements:
|
21
|
-
- -
|
22
|
-
- !ruby/object:Gem::Version
|
19
|
+
requirements:
|
20
|
+
- - '='
|
21
|
+
- !ruby/object:Gem::Version
|
23
22
|
version: 3.1.3
|
24
23
|
type: :runtime
|
25
24
|
prerelease: false
|
26
|
-
version_requirements:
|
27
|
-
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
none: false
|
27
|
+
requirements:
|
28
|
+
- - '='
|
29
|
+
- !ruby/object:Gem::Version
|
30
|
+
version: 3.1.3
|
31
|
+
- !ruby/object:Gem::Dependency
|
28
32
|
name: sqlite3
|
29
|
-
requirement:
|
33
|
+
requirement: !ruby/object:Gem::Requirement
|
30
34
|
none: false
|
31
|
-
requirements:
|
35
|
+
requirements:
|
32
36
|
- - ~>
|
33
|
-
- !ruby/object:Gem::Version
|
37
|
+
- !ruby/object:Gem::Version
|
34
38
|
version: 1.3.5
|
35
39
|
type: :runtime
|
36
40
|
prerelease: false
|
37
|
-
version_requirements:
|
38
|
-
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
42
|
+
none: false
|
43
|
+
requirements:
|
44
|
+
- - ~>
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: 1.3.5
|
47
|
+
- !ruby/object:Gem::Dependency
|
39
48
|
name: geminabox
|
40
|
-
requirement:
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
41
50
|
none: false
|
42
|
-
requirements:
|
43
|
-
- -
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version:
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
46
55
|
type: :development
|
47
56
|
prerelease: false
|
48
|
-
version_requirements:
|
57
|
+
version_requirements: !ruby/object:Gem::Requirement
|
58
|
+
none: false
|
59
|
+
requirements:
|
60
|
+
- - ! '>='
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0'
|
49
63
|
description: Generates a new Nsweb-based Rails application and configures it for deployment.
|
50
64
|
email: web_services@shareone.com
|
51
|
-
executables:
|
65
|
+
executables:
|
52
66
|
- nswebgen
|
53
67
|
extensions: []
|
54
|
-
|
55
68
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
69
|
+
files:
|
58
70
|
- .gitignore
|
59
71
|
- .rvmrc
|
60
72
|
- Gemfile
|
@@ -85,33 +97,29 @@ files:
|
|
85
97
|
- nswebgen.gemspec
|
86
98
|
homepage:
|
87
99
|
licenses: []
|
88
|
-
|
89
100
|
post_install_message:
|
90
101
|
rdoc_options: []
|
91
|
-
|
92
|
-
require_paths:
|
102
|
+
require_paths:
|
93
103
|
- lib
|
94
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
105
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
106
|
+
requirements:
|
107
|
+
- - ! '>='
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: '0'
|
110
|
+
segments:
|
101
111
|
- 0
|
102
|
-
|
103
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
112
|
+
hash: 502127567
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
104
114
|
none: false
|
105
|
-
requirements:
|
106
|
-
- -
|
107
|
-
- !ruby/object:Gem::Version
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
108
118
|
version: 1.7.2
|
109
119
|
requirements: []
|
110
|
-
|
111
120
|
rubyforge_project:
|
112
|
-
rubygems_version: 1.8.
|
121
|
+
rubygems_version: 1.8.24
|
113
122
|
signing_key:
|
114
123
|
specification_version: 3
|
115
124
|
summary: Nsweb application generator gem
|
116
125
|
test_files: []
|
117
|
-
|