sinatra-static-bp 0.0.0 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # sinatra-static-bp
2
2
 
3
- > Boilerplate generator for simple static ruby applications.
4
- Easy deploy on Amazon S3 with complete assets management.
3
+ > Boilerplate for simple static ruby applications.
4
+ Amazon S3 deploy with complete assets management.
5
5
 
6
6
  ## Usage
7
7
 
@@ -1,21 +1,19 @@
1
- source "https://rubygems.org"
2
- ruby "1.9.3"
1
+ source 'https://rubygems.org'
2
+ ruby '1.9.3'
3
3
 
4
- gem "sinatra", :require => 'sinatra/base'
5
- gem "sinatra-assetpack",
4
+ gem 'sinatra', :require => 'sinatra/base'
5
+ gem 'sinatra-assetpack',
6
6
  :git => 'git://github.com/hooktstudios/sinatra-assetpack.git',
7
- :require => "sinatra/assetpack"
8
- gem "sinatra-advanced-routes",
9
- :require => "sinatra/advanced_routes"
10
- gem "sinatra-static",
11
- :git => 'git://github.com/hooktstudios/sinatra-static.git',
12
- :require => "sinatra_static"
13
- gem "rake"
14
- gem "rack"
15
- gem "sass"
7
+ :require => 'sinatra/assetpack'
8
+ gem 'sinatra-advanced-routes',
9
+ :require => 'sinatra/advanced_routes'
10
+ gem 'sinatra-export'
11
+ gem 'rake'
12
+ gem 'rack'
13
+ gem 'sass'
16
14
 
17
15
  group :deploy do
18
- gem "capistrano"
19
- gem "s3-static-site",
16
+ gem 'capistrano'
17
+ gem 's3-static-site',
20
18
  :git => 'git://github.com/hooktstudios/s3-static-site.git'
21
19
  end
@@ -10,7 +10,7 @@ Very simple website for <%= project_name %>.
10
10
 
11
11
  ## Deploying
12
12
 
13
- To deploy (if you dare) configure the requierd the s3 crendentials in `config/s3.yml` then use capistrano.
13
+ To deploy (if you dare) configure the required s3 crendentials in `config/s3.yml`, then use capistrano.
14
14
 
15
15
  cap [dev|www] deploy
16
16
 
@@ -1,4 +1,5 @@
1
1
  APP_FILE = 'app.rb'
2
2
  APP_CLASS = 'App'
3
3
 
4
- require 'sinatra/assetpack/rake'
4
+ require 'sinatra/assetpack/rake'
5
+ require 'sinatra/export/rake'
@@ -31,10 +31,4 @@ class App < Sinatra::Base
31
31
  get '/' do
32
32
  erb :index
33
33
  end
34
- end
35
-
36
- # Compile static if run from ruby app.rb
37
- if $0 == __FILE__
38
- builder = SinatraStatic.new(App)
39
- builder.build!('public/')
40
34
  end
@@ -7,6 +7,6 @@ set :s3, YAML::load( File.open( File.expand_path( '../s3.yml', __FILE__ ) ) )
7
7
 
8
8
  before 'deploy' do
9
9
  run_locally "rm -rf public/*"
10
- run_locally "export RACK_ENV=production && bundle exec ruby app.rb"
10
+ run_locally "export RACK_ENV=production && bundle exec rake sinatra:export"
11
11
  run_locally "export RACK_ENV=production && bundle exec rake assetpack:build"
12
12
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sinatra-static-bp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,8 @@ bindir: bin
11
11
  cert_chain: []
12
12
  date: 2013-01-03 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: Boilerplate generator for static sinatra applications
14
+ description: Boilerplate for simple static ruby applications. Amazon S3 deploy with
15
+ complete assets management.
15
16
  email: jeanphilippe.doyle@hooktstudios.com
16
17
  executables:
17
18
  - sinatra-static-bp
@@ -57,3 +58,4 @@ signing_key:
57
58
  specification_version: 3
58
59
  summary: sinatra-static-bp
59
60
  test_files: []
61
+ has_rdoc: