mango 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.mdown +7 -0
- data/README.mdown +4 -3
- data/lib/mango.rb +1 -0
- data/lib/mango/application.rb +2 -0
- data/lib/mango/templates/Gemfile +1 -1
- data/lib/mango/version.rb +1 -1
- data/mango.gemspec +1 -1
- data/spec/lib/application/routing_public_files_spec.rb +4 -0
- data/spec/lib/runner_spec.rb +1 -1
- data/spec/lib/version_spec.rb +1 -1
- metadata +4 -4
data/CHANGES.mdown
CHANGED
data/README.mdown
CHANGED
@@ -1,8 +1,9 @@
|
|
1
|
-
Mango release 0.5.
|
2
|
-
|
1
|
+
Mango release 0.5.2 (April 15, 2011)
|
2
|
+
====================================
|
3
3
|
|
4
4
|
Copyright (c) 2010 Ryan Sobol. Licensed under the MIT license. Please see the {file:LICENSE} for more information.
|
5
5
|
|
6
|
+
* **Demo Application** : [http://mango-fireworks.heroku.com/](http://mango-fireworks.heroku.com/)
|
6
7
|
* **Source Code**: [http://github.com/ryansobol/mango](http://github.com/ryansobol/mango)
|
7
8
|
* **Documentation**: [http://rubydoc.info/github/ryansobol/mango/master/frames](http://rubydoc.info/github/ryansobol/mango/master/frames)
|
8
9
|
* **Issue Tracker**: [http://github.com/ryansobol/mango/issues](http://github.com/ryansobol/mango/issues)
|
@@ -115,7 +116,7 @@ Simply edit the gem version in your application's `Gemfile` and re-install with
|
|
115
116
|
$ cat Gemfile
|
116
117
|
# encoding: UTF-8
|
117
118
|
source "http://rubygems.org"
|
118
|
-
gem "mango", "~> 0.5.
|
119
|
+
gem "mango", "~> 0.5.2"
|
119
120
|
$ bundle install
|
120
121
|
|
121
122
|
**TIP:** If you're working in the insolation of an [RVM gemset](http://rvm.beginrescueend.com/gemsets/basics/), type `gem clean` to uninstall outdated gems.
|
data/lib/mango.rb
CHANGED
@@ -5,6 +5,7 @@ require File.expand_path("mango/dependencies", File.dirname(__FILE__))
|
|
5
5
|
|
6
6
|
require_relative "mango/version"
|
7
7
|
require_relative "mango/rack/debugger"
|
8
|
+
require_relative "mango/rack/static_assets_cache"
|
8
9
|
require_relative "mango/application"
|
9
10
|
require_relative "mango/flavored_markdown"
|
10
11
|
require_relative "mango/content_page"
|
data/lib/mango/application.rb
CHANGED
@@ -114,6 +114,8 @@ module Mango
|
|
114
114
|
set :styles, lambda { File.join(root, "themes", theme, "styles") }
|
115
115
|
set :content, lambda { File.join(root, "content") }
|
116
116
|
|
117
|
+
use Mango::Rack::StaticAssetsCache
|
118
|
+
|
117
119
|
configure :development do
|
118
120
|
use Mango::Rack::Debugger
|
119
121
|
end
|
data/lib/mango/templates/Gemfile
CHANGED
data/lib/mango/version.rb
CHANGED
data/mango.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
12
12
|
s.description = "Mango is a dynamic, database-free, and open source website framework that is designed to make life easier for small teams of designers, developers, and content writers."
|
13
13
|
|
14
14
|
s.required_ruby_version = "~> 1.9.2"
|
15
|
-
s.required_rubygems_version = "
|
15
|
+
s.required_rubygems_version = ">= 1.3.7"
|
16
16
|
s.rubyforge_project = "mango"
|
17
17
|
|
18
18
|
s.add_runtime_dependency "bundler", "~> 1.0.0"
|
@@ -114,6 +114,10 @@ Disallow: /cgi-bin/
|
|
114
114
|
last_response.should be_ok
|
115
115
|
end
|
116
116
|
|
117
|
+
it "sends the correct Cache-Control header" do
|
118
|
+
last_response["Cache-Control"].should == "public, max-age=43200"
|
119
|
+
end
|
120
|
+
|
117
121
|
it "sends the correct Content-Type header" do
|
118
122
|
last_response["Content-Type"].should == "image/jpeg;charset=utf-8"
|
119
123
|
end
|
data/spec/lib/runner_spec.rb
CHANGED
data/spec/lib/version_spec.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 5
|
8
|
-
-
|
9
|
-
version: 0.5.
|
8
|
+
- 2
|
9
|
+
version: 0.5.2
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Ryan Sobol
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-04-15 00:00:00 -07:00
|
18
18
|
default_executable: mango
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -290,7 +290,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
290
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
291
291
|
none: false
|
292
292
|
requirements:
|
293
|
-
- -
|
293
|
+
- - ">="
|
294
294
|
- !ruby/object:Gem::Version
|
295
295
|
segments:
|
296
296
|
- 1
|