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 CHANGED
@@ -1,8 +1,9 @@
1
1
  *.gem
2
2
  *.rbc
3
+ .DS_Store
3
4
  .bundle
4
5
  .config
5
- .DS_Store
6
+ .rake_t_cache
6
7
  .yardoc
7
8
  Gemfile.lock
8
9
  InstalledFiles
data/Gemfile CHANGED
@@ -2,8 +2,3 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in natstrap.gemspec
4
4
  gemspec
5
-
6
- # For dev work...
7
- group :development do
8
- gem 'fog', :git => 'git://github.com/ziyadm/fog.git'
9
- end
@@ -13,7 +13,7 @@ gem 'sinatra-flash', :require => 'sinatra/flash'
13
13
  gem 'thin'
14
14
 
15
15
  # Padrino Stable Gem
16
- gem 'padrino', '0.11.1'
16
+ gem 'padrino', '>= 0.11'
17
17
 
18
18
  # For dev
19
19
  group :development do
@@ -1,6 +1,8 @@
1
- require File.expand_path('../config/boot.rb', __FILE__)
1
+ require 'bundler/setup'
2
2
  require 'padrino-core/cli/rake'
3
3
 
4
+ PadrinoTasks.use(:database)
5
+ PadrinoTasks.use(:activerecord)
4
6
  PadrinoTasks.init
5
7
 
6
8
  desc "Run a local server."
@@ -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('/')
@@ -27,6 +27,7 @@ module Natstrap
27
27
  Kernel.system "bundle update"
28
28
 
29
29
  Natstrap::Utils.write_template "config/database.rb", :name => project_name
30
+ Natstrap::Utils.write_template "config/apps.rb", :name => project_name
30
31
 
31
32
  [
32
33
  "padrino g model Entry text:text"
@@ -1,3 +1,3 @@
1
1
  module Natstrap
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
3
3
  end
@@ -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.1"
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.3
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-04-22 00:00:00.000000000 Z
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.1
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.1
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: -708743258534163338
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: -708743258534163338
178
+ hash: -1009589274790805239
178
179
  requirements: []
179
180
  rubyforge_project:
180
181
  rubygems_version: 1.8.23