lunetas 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION +1 -1
  2. data/lib/lunetas/candy.rb +10 -2
  3. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
data/lib/lunetas/candy.rb CHANGED
@@ -90,6 +90,14 @@ module Lunetas::Candy
90
90
  @req.params
91
91
  end
92
92
 
93
+ def request
94
+ @req
95
+ end
96
+
97
+ def session
98
+ @req.session
99
+ end
100
+
93
101
  # TODO: Polish this
94
102
  # def authenticate!
95
103
  # @current_user = User.where(:single_access_token => token).first
@@ -148,8 +156,8 @@ module Lunetas::Candy
148
156
  def call(env)
149
157
  url_match = env['PATH_INFO'].match(@_regex)
150
158
  if url_match
151
- call = new(env, url_match.to_a)
152
- call.bite
159
+ candy = new(env, url_match.to_a)
160
+ candy.bite
153
161
  else
154
162
  [404, {"Content-Type" => "text/html", "X-Cascade" => "pass"}, ["Not Found"]]
155
163
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lunetas
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Iv\xC3\xA1n Vald\xC3\xA9s (@ivanvc)"