sinatra 1.1.4 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/AUTHORS CHANGED
@@ -36,7 +36,7 @@ Sinatra would not be possible:
36
36
  * Rick Olson (technoweenie) for the killer plug at RailsConf '08.
37
37
  * Steven Garcia for the amazing custom artwork you see on 404's and 500's
38
38
  * Pat Nakajima (nakajima) for fixing non-nested params in nested params Hash's.
39
- * Konstantin Haase for his hard work and ongoing commitment to improving
39
+ * Konstantin Haase for his hard work and ongoing commitment to improving
40
40
  Sinatra, for 1.1.0, 1.2.0 and beyond..
41
41
  * Zachary Scott for adding Konstantin to the AUTHORS file. He also did help
42
42
  writing the book, but mainly for adding Konstantin.
@@ -45,6 +45,10 @@ Sinatra would not be possible:
45
45
  * Vasily Polovnyov, Nickolay Schwarz, Luciano Sousa, Wu Jiang, Mickael Riga,
46
46
  Bernhard Essl, Janos Hardi, Kouhei Yanagita and "burningTyger" for willingly
47
47
  translating whatever ends up in the README.
48
+ * [Wordy](http://www.wordy.com/) for proofreading our README. 73e137d
49
+ * cactus for digging through code and specs, multiple times.
50
+ * Nicolás Sanguinetti (foca) for strong demand of karma and shaping
51
+ helpers/register.
48
52
 
49
53
  and last but not least:
50
54
 
data/CHANGES CHANGED
@@ -1,6 +1,51 @@
1
- = 1.1.4 / 2011-04-13
1
+ = 1.2.0 / 2011-03-03
2
2
 
3
- * Compatible with Tilt 1.3. (Konstantin Haase)
3
+ * Added `slim` rendering method for rendering Slim templates. (Steve
4
+ Hodgkiss)
5
+
6
+ * The `markaby` rendering method now allows passing a block, making inline
7
+ usage possible. Requires Tilt 1.2 or newer. (Konstantin Haase)
8
+
9
+ * All render methods now take a `:layout_engine` option, allowing to use a
10
+ layout in a different template language. Even more useful than using this
11
+ directly (`erb :index, :layout_engine => :haml`) is setting this globally for
12
+ a template engine that otherwise does not support layouts, like Markdown or
13
+ Textile (`set :markdown, :layout_engine => :erb`). (Konstantin Haase)
14
+
15
+ * Before and after filters now support conditions, both with and without
16
+ patterns (`before '/api/*', :agent => /Songbird/`). (Konstantin Haase)
17
+
18
+ * Added a `url` helper method which constructs absolute URLs. Copes with
19
+ reverse proxies and Rack handlers correctly. Aliased to `to`, so you can
20
+ write `redirect to('/foo')`. (Konstantin Haase)
21
+
22
+ * If running on 1.9, patterns for routes and filters now support named
23
+ captures: `get(%r{/hi/(?<name>[^/?#]+)}) { "Hi #{params['name']}" }`.
24
+ (Steve Price)
25
+
26
+ * All rendering methods now take a `:scope` option, which renders them in
27
+ another context. Note that helpers and instance variables will be
28
+ unavailable if you use this feature. (Paul Walker)
29
+
30
+ * The behavior of `redirect` can now be configured with `absolute_redirects`
31
+ and `prefixed_redirects`. (Konstantin Haase)
32
+
33
+ * `send_file` now allows overriding the Last-Modified header, which defaults
34
+ to the file's mtime, by passing a `:last_modified` option. (Konstantin Haase)
35
+
36
+ * You can use your own template lookup method by defining `find_template`.
37
+ This allows, among other things, using more than one views folder.
38
+ (Konstantin Haase)
39
+
40
+ * Largely improved documentation. (burningTyger, Vasily Polovnyov, Gabriel
41
+ Andretta, Konstantin Haase)
42
+
43
+ * Improved error handling. (cactus, Konstantin Haase)
44
+
45
+ * Skip missing template engines in tests correctly. (cactus)
46
+
47
+ * Sinatra now ships with a Gemfile for development dependencies, since it eases
48
+ supporting different platforms, like JRuby. (Konstantin Haase)
4
49
 
5
50
  = 1.1.3 / 2011-02-20
6
51
 
data/Gemfile ADDED
@@ -0,0 +1,53 @@
1
+ # Why use bundler?
2
+ # Well, not all development dependencies install on all rubies. Moreover, `gem
3
+ # install sinatra --development` doesn't work, as it will also try to install
4
+ # development dependencies of our dependencies, and those are not conflict free.
5
+ # So, here we are, `bundle install`.
6
+ #
7
+ # If you have issues with a gem: `bundle install --without-coffee-script`.
8
+
9
+ RUBY_ENGINE = 'ruby' unless defined? RUBY_ENGINE
10
+
11
+ source :rubygems unless ENV['QUICK']
12
+ gemspec
13
+
14
+ gem 'rake'
15
+ gem 'rack-test', '>= 0.5.6'
16
+
17
+ gem 'haml', '>= 3.0', :group => 'haml'
18
+ gem 'builder', :group => 'builder'
19
+ gem 'erubis', :group => 'erubis'
20
+ gem 'less', :group => 'less'
21
+ gem 'liquid', :group => 'liquid'
22
+ gem 'nokogiri', :group => 'nokogiri'
23
+ gem 'slim', :group => 'slim'
24
+
25
+
26
+ if RUBY_VERSION > '1.8.6'
27
+ gem 'coffee-script', '>= 2.0', :group => 'coffee-script'
28
+ gem 'rdoc', :group => 'rdoc'
29
+ else
30
+ gem 'rack', '~> 1.1.0'
31
+ end
32
+
33
+ platforms :ruby do
34
+ gem 'rdiscount', :group => 'rdiscount'
35
+ end
36
+
37
+ platforms :ruby_18, :jruby do
38
+ gem 'json', :group => 'coffee-script'
39
+ gem 'markaby', :group => 'markaby'
40
+ gem 'radius', :group => 'radius'
41
+ end
42
+
43
+ platforms :mri do
44
+ # bundler platforms are broken
45
+ next unless RUBY_ENGINE == 'ruby'
46
+ gem 'RedCloth', :group => 'redcloth'
47
+ end
48
+
49
+ platforms :mri_18 do
50
+ # bundler platforms are broken
51
+ next unless RUBY_ENGINE == 'ruby'
52
+ gem 'rcov', :group => 'rcov'
53
+ end