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 CHANGED
@@ -1,3 +1,10 @@
1
+ Mango release 0.5.2 (April 15, 2011)
2
+ ====================================
3
+
4
+ ### Dependencies
5
+
6
+ * Updated [RubyGems](https://rubygems.org/) dependency to >= 1.3.7
7
+
1
8
  Mango release 0.5.1 (November 1, 2010)
2
9
  ======================================
3
10
 
data/README.mdown CHANGED
@@ -1,8 +1,9 @@
1
- Mango release 0.5.1 (November 1, 2010)
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.1"
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"
@@ -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
@@ -1,3 +1,3 @@
1
1
  # encoding: UTF-8
2
2
  source "http://rubygems.org"
3
- gem "mango", "~> 0.5.1"
3
+ gem "mango", "~> 0.5.2"
data/lib/mango/version.rb CHANGED
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Mango
4
4
  # Current stable released version
5
- VERSION = "0.5.1"
5
+ VERSION = "0.5.2"
6
6
  end
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 = "~> 1.3.7"
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
@@ -81,7 +81,7 @@ run Mango::Application
81
81
  File.read(expected).should == <<-EOS
82
82
  # encoding: UTF-8
83
83
  source "http://rubygems.org"
84
- gem "mango", "~> 0.5.1"
84
+ gem "mango", "~> 0.5.2"
85
85
  EOS
86
86
  end
87
87
 
@@ -4,7 +4,7 @@ require "spec_helper"
4
4
  describe Mango do
5
5
  describe "version synchronizing" do
6
6
  before(:each) do
7
- @expected = "0.5.1"
7
+ @expected = "0.5.2"
8
8
  end
9
9
 
10
10
  it "is correct for Mango::VERSION" do
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 5
8
- - 1
9
- version: 0.5.1
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: 2010-11-01 00:00:00 -07:00
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