natstrap 0.2.3 → 0.2.4
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -1
- data/Gemfile +0 -5
- data/lib/natstrap/templates/Gemfile.tt +1 -1
- data/lib/natstrap/templates/Rakefile.tt +3 -1
- data/lib/natstrap/templates/config/apps.rb.tt +17 -0
- data/lib/natstrap/utils.rb +1 -0
- data/lib/natstrap/version.rb +1 -1
- data/natstrap.gemspec +1 -1
- metadata +7 -6
data/.gitignore
CHANGED
data/Gemfile
CHANGED
@@ -0,0 +1,17 @@
|
|
1
|
+
##
|
2
|
+
# Setup global project settings for your apps. These settings are inherited by every subapp. You can
|
3
|
+
# override these settings in the subapps as needed.
|
4
|
+
#
|
5
|
+
Padrino.configure_apps do
|
6
|
+
# enable :sessions
|
7
|
+
set :session_secret, ENV['SESSION_SECRET'] || '9asdjj66eeb73b629b5cc'
|
8
|
+
set :protection, true
|
9
|
+
set :protect_from_csrf, true
|
10
|
+
|
11
|
+
if not ENV['SESSION_SECRET']
|
12
|
+
logger.warn "SESSION SECRET IS NOT SECURE."
|
13
|
+
end
|
14
|
+
end
|
15
|
+
|
16
|
+
# Mounts the core application for this project
|
17
|
+
Padrino.mount('<%= name.capitalize %>::App', :app_file => Padrino.root('app/app.rb')).to('/')
|
data/lib/natstrap/utils.rb
CHANGED
data/lib/natstrap/version.rb
CHANGED
data/natstrap.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |gem|
|
|
22
22
|
gem.add_runtime_dependency "bundler"
|
23
23
|
gem.add_runtime_dependency "git"
|
24
24
|
gem.add_runtime_dependency "fog"
|
25
|
-
gem.add_runtime_dependency "padrino", "0.11.
|
25
|
+
gem.add_runtime_dependency "padrino", "0.11.2"
|
26
26
|
gem.add_runtime_dependency "rake"
|
27
27
|
gem.add_runtime_dependency "thor"
|
28
28
|
gem.add_runtime_dependency "zipruby"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: natstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-05-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - '='
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: 0.11.
|
69
|
+
version: 0.11.2
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -74,7 +74,7 @@ dependencies:
|
|
74
74
|
requirements:
|
75
75
|
- - '='
|
76
76
|
- !ruby/object:Gem::Version
|
77
|
-
version: 0.11.
|
77
|
+
version: 0.11.2
|
78
78
|
- !ruby/object:Gem::Dependency
|
79
79
|
name: rake
|
80
80
|
requirement: !ruby/object:Gem::Requirement
|
@@ -145,6 +145,7 @@ files:
|
|
145
145
|
- lib/natstrap/templates/Gemfile.tt
|
146
146
|
- lib/natstrap/templates/README.md.tt
|
147
147
|
- lib/natstrap/templates/Rakefile.tt
|
148
|
+
- lib/natstrap/templates/config/apps.rb.tt
|
148
149
|
- lib/natstrap/templates/config/database.rb.tt
|
149
150
|
- lib/natstrap/utils.rb
|
150
151
|
- lib/natstrap/version.rb
|
@@ -165,7 +166,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
166
|
version: '0'
|
166
167
|
segments:
|
167
168
|
- 0
|
168
|
-
hash: -
|
169
|
+
hash: -1009589274790805239
|
169
170
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
171
|
none: false
|
171
172
|
requirements:
|
@@ -174,7 +175,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
175
|
version: '0'
|
175
176
|
segments:
|
176
177
|
- 0
|
177
|
-
hash: -
|
178
|
+
hash: -1009589274790805239
|
178
179
|
requirements: []
|
179
180
|
rubyforge_project:
|
180
181
|
rubygems_version: 1.8.23
|