ruil 1.0.1 → 1.0.3

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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.1
1
+ 1.0.3
@@ -34,7 +34,9 @@ module Ruil
34
34
 
35
35
  # Redirect the request to other URL.
36
36
  def redirect(request, url)
37
- headers = {'Location'=> url + "?redirected_from=" + request.path_info}
37
+ headers = {
38
+ 'Location'=> url + ( /\?/ === url ? '&' : '?' ) + 'redirected_from=' + request.path_info
39
+ }
38
40
  [302, headers, []]
39
41
  end
40
42
 
data/lib/ruil/skin.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require ''
2
+
1
3
  module Ruil
2
4
 
3
5
  module Skin
@@ -7,7 +9,7 @@ module Ruil
7
9
  :mobile => []
8
10
  }
9
11
 
10
- def call(body)
12
+ def self.call(body)
11
13
  body
12
14
  end
13
15
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruil
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 1
10
- version: 1.0.1
9
+ - 3
10
+ version: 1.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Daniel Hern\xC3\xA1ndez"
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-30 00:00:00 -04:00
18
+ date: 2011-07-31 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21