mobylette 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -70,6 +70,12 @@ By default the mobile device verification will skip XHR requests, and these will
70
70
 
71
71
  You may need to use this if you are using JQuery mobile or something similar in your application.
72
72
 
73
+ == Skiping mobile filter
74
+
75
+ In the case you need to skip a mobile_request for been treated as mobile, you can pass the `skip_mobile=true` param to the url/request.
76
+
77
+ For example, you are using jquery_mobile and by that `:skip_xhr_requests => false`, but there is a special case where you need to process an Ajax, then you can use this param.
78
+
73
79
  == Forcing/Ignoring Mobile Requests
74
80
 
75
81
  You may force your user to aways render the mobile format, or to aways render the default request format (when the request comes from a mobile device). You can use the session var :mobylette_override for doing it:
@@ -90,7 +90,7 @@ module Mobylette
90
90
 
91
91
  # Returns true if this request should be treated as a mobile request
92
92
  def respond_as_mobile?
93
- processing_xhr_requests? and (force_mobile_by_session? or is_mobile_request? or (params[:format] == 'mobile'))
93
+ processing_xhr_requests? and skip_mobile_param_not_present? and (force_mobile_by_session? or is_mobile_request? or (params[:format] == 'mobile'))
94
94
  end
95
95
 
96
96
  # Returns true if the visitor has de force_mobile session
@@ -98,6 +98,11 @@ module Mobylette
98
98
  session[:mobylette_override] == :force_mobile
99
99
  end
100
100
 
101
+ # Returns true when ?skip_mobile=true is not passed to the request
102
+ def skip_mobile_param_not_present?
103
+ params[:skip_mobile] != 'true'
104
+ end
105
+
101
106
  # Returns true only if treating XHR requests (when skip_xhr_requests are set to false) or
102
107
  # or when this is a non xhr request
103
108
  def processing_xhr_requests?
@@ -1,3 +1,3 @@
1
1
  module Mobylette
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
@@ -1,6 +1,10 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe DefaultFallbackController do
4
+ # This controller calls respond_to_mobile_requests with no params
5
+ # Index action has views for html, js and mobile
6
+ # Test action has only html and js
7
+
4
8
  render_views
5
9
 
6
10
  it "should find the correct view when it exists" do
@@ -1,13 +1,14 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe DesktopOnlyController do
4
+ # this controller has no actions
5
+ # and do not call respond_to_mobile_requests
4
6
 
5
7
  it "should not have the :handle_mobile method" do
6
8
  @controller.private_methods.include?(:handle_mobile).should_not be_true
7
9
  end
8
10
 
9
11
  it "should have the :is_mobile_request? method" do
10
-
11
12
  # Works on ruby 1.9.2 but not on 1.8.7:
12
13
  #@controller.private_methods.include?(:is_mobile_request?).should be_true
13
14
 
@@ -1,6 +1,11 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe ForceFallbackController do
4
+ # this controller calls respond_to_mobile_requests :fall_back => :js
5
+ # forcing fallback to be javascript
6
+ # index action has html, js and mobile views
7
+ # test action has html and js only
8
+
4
9
  render_views
5
10
 
6
11
  it "should find the correct view (mobile) when it exists" do
@@ -1,10 +1,14 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe HomeController do
4
+ # This controller calls respond_to_mobile_requests with no params
5
+ # no_mobile_view action has only html
6
+ # mobile action has only mobile
7
+ # index action has html, js and mobile
8
+ # desktop action has only html
4
9
  render_views
5
10
 
6
11
  it "should have the :handle_mobile method" do
7
- #
8
12
  # Works on ruby 1.9.2 but not on 1.8.7
9
13
  # @controller.private_methods.include?(:handle_mobile).should be_true
10
14
  # this is a hack, not perfect, but if it didnt have the method it would
@@ -25,21 +29,21 @@ describe HomeController do
25
29
  @controller.send(:is_mobile_request?).should be_false
26
30
  end
27
31
 
28
- it "should have respond to mobile requests" do
32
+ it "should, on a mobile request, have 'is_mobile_request?' == true" do
29
33
  force_mobile_request_agent("Android")
30
34
  get :index
31
35
  request.user_agent.should == "Android"
32
36
  @controller.send(:is_mobile_request?).should be_true
33
37
  end
34
38
 
35
- it "should render the mobile mime_type" do
39
+ it "should, on a mobile request, render the mobile type of view" do
36
40
  force_mobile_request_agent
37
41
  get :index
38
42
  @controller.send(:is_mobile_request?).should be_true
39
43
  response.body.should contain("this is the mobile view")
40
44
  end
41
45
 
42
- it "reset_test_request_agent should reset the user_agent to Rails Testing" do
46
+ it "should, on reset_test_request_agent call, reset the user_agent to default (Rails Testing)" do
43
47
  force_mobile_request_agent("Iphone")
44
48
  reset_test_request_agent
45
49
  get :index
@@ -48,7 +52,7 @@ describe HomeController do
48
52
  end
49
53
  end
50
54
 
51
- describe "render output" do
55
+ describe "Output Rendering" do
52
56
  it "should display THIS A MOBILE DEVICE on index from mobile" do
53
57
  force_mobile_request_agent("Android")
54
58
  get :index
@@ -74,7 +78,7 @@ describe HomeController do
74
78
  end
75
79
  end
76
80
 
77
- describe "respond_to with difference views per request type" do
81
+ describe "respond_to with different views for different request types" do
78
82
  it "should render desktop view on non mobile request" do
79
83
  reset_test_request_agent
80
84
  get :respond_to_test
@@ -87,7 +91,7 @@ describe HomeController do
87
91
  response.should render_template(:mobile)
88
92
  end
89
93
 
90
- it "should render mobile view on mobile request when .mobile" do
94
+ it "should render mobile view when format => 'mobile' is passed" do
91
95
  get :respond_to_test, :format => "mobile"
92
96
  response.should render_template(:mobile)
93
97
  end
@@ -96,7 +100,7 @@ describe HomeController do
96
100
  #######################################################
97
101
  # Testing XHR requests
98
102
  describe "XHR Requests" do
99
- it "should not use mobile format for xhr requests" do
103
+ it "should not use mobile format for xhr requests by default" do
100
104
  force_mobile_request_agent("Android")
101
105
  xhr :get, :index
102
106
  response.should render_template(:index)
@@ -125,4 +129,17 @@ describe HomeController do
125
129
  response.should contain("THIS A MOBILE DEVICE")
126
130
  end
127
131
  end
132
+
133
+ ###################################################
134
+ # Param forcing
135
+ describe "Forcing to skip mobile by param" do
136
+ it "should not render mobile view if skip_mobile param is present and set to true" do
137
+ force_mobile_request_agent
138
+ get :index, :skip_mobile => 'true'
139
+ response.should render_template(:index)
140
+ response.should contain("this is the html view")
141
+ response.should contain("THIS A MOBILE DEVICE")
142
+ end
143
+ end
144
+
128
145
  end
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe NoFallbackController do
4
+ # This controller has fallbacks disabled by: respond_to_mobile_requests :fall_back => false
5
+
4
6
  render_views
5
7
 
6
8
  it "should find the correct view when it exists" do
@@ -1,6 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe SkipXhrRequestController do
4
+ # This controller calls: respond_to_mobile_requests :skip_xhr_requests => false
5
+
4
6
  render_views
5
7
 
6
8
  #######################################################
@@ -3127,3 +3127,441 @@ Completed 500 Internal Server Error in 1ms
3127
3127
  Completed 500 Internal Server Error in 1ms
3128
3128
  Processing by SkipXhrRequestController#index as JS
3129
3129
  Completed 200 OK in 10ms (Views: 9.9ms)
3130
+ Processing by DefaultFallbackController#index as HTML
3131
+ Completed 200 OK in 111ms (Views: 110.0ms)
3132
+ Processing by DefaultFallbackController#index as HTML
3133
+ Completed 200 OK in 3ms (Views: 2.8ms)
3134
+ Processing by DefaultFallbackController#test as HTML
3135
+ Completed 200 OK in 3ms (Views: 2.2ms)
3136
+ Processing by DefaultFallbackController#test as JS
3137
+ Completed 200 OK in 39ms (Views: 38.8ms)
3138
+ Processing by ForceFallbackController#index as HTML
3139
+ Completed 200 OK in 6ms (Views: 5.3ms)
3140
+ Processing by ForceFallbackController#index as HTML
3141
+ Completed 200 OK in 2ms (Views: 2.2ms)
3142
+ Processing by ForceFallbackController#test as HTML
3143
+ Completed 200 OK in 2ms (Views: 1.7ms)
3144
+ Processing by ForceFallbackController#test as HTML
3145
+ Completed 200 OK in 1ms (Views: 0.7ms)
3146
+ Processing by ForceFallbackController#test as JS
3147
+ Completed 200 OK in 1ms (Views: 0.8ms)
3148
+ Processing by HomeController#index as HTML
3149
+ Completed 200 OK in 6ms (Views: 5.3ms)
3150
+ Processing by HomeController#index as HTML
3151
+ Completed 200 OK in 2ms (Views: 1.3ms)
3152
+ Processing by HomeController#index as HTML
3153
+ Completed 200 OK in 3ms (Views: 2.8ms)
3154
+ Processing by HomeController#index as HTML
3155
+ Completed 200 OK in 2ms (Views: 1.3ms)
3156
+ Processing by HomeController#index as HTML
3157
+ Completed 200 OK in 2ms (Views: 1.3ms)
3158
+ Processing by HomeController#index as HTML
3159
+ Completed 200 OK in 2ms (Views: 1.3ms)
3160
+ Processing by HomeController#index as HTML
3161
+ Completed 200 OK in 2ms (Views: 1.3ms)
3162
+ Processing by HomeController#index as HTML
3163
+ Completed 200 OK in 2ms (Views: 1.3ms)
3164
+ Processing by HomeController#index as HTML
3165
+ Completed 200 OK in 2ms (Views: 1.3ms)
3166
+ Processing by HomeController#respond_to_test as HTML
3167
+ Completed 200 OK in 3ms (Views: 2.1ms)
3168
+ Processing by HomeController#respond_to_test as HTML
3169
+ Completed 200 OK in 3ms (Views: 2.2ms)
3170
+ Processing by HomeController#respond_to_test as MOBILE
3171
+ Completed 200 OK in 1ms (Views: 1.1ms)
3172
+ Processing by HomeController#index as JS
3173
+ Completed 200 OK in 6ms (Views: 6.2ms)
3174
+ Processing by HomeController#index as HTML
3175
+ Completed 200 OK in 2ms (Views: 1.4ms)
3176
+ Processing by HomeController#index as HTML
3177
+ Completed 200 OK in 1ms (Views: 1.3ms)
3178
+ Processing by NoFallbackController#index as HTML
3179
+ Completed 200 OK in 5ms (Views: 5.0ms)
3180
+ Processing by NoFallbackController#index as HTML
3181
+ Completed 200 OK in 2ms (Views: 2.2ms)
3182
+ Processing by NoFallbackController#test as HTML
3183
+ Completed 500 Internal Server Error in 2ms
3184
+ Processing by NoFallbackController#test as HTML
3185
+ Completed 500 Internal Server Error in 1ms
3186
+ Processing by NoFallbackController#test as HTML
3187
+ Completed 500 Internal Server Error in 1ms
3188
+ Processing by SkipXhrRequestController#index as JS
3189
+ Completed 200 OK in 6ms (Views: 6.0ms)
3190
+ Processing by DefaultFallbackController#index as HTML
3191
+ Completed 200 OK in 109ms (Views: 108.7ms)
3192
+ Processing by DefaultFallbackController#index as HTML
3193
+ Completed 200 OK in 3ms (Views: 2.9ms)
3194
+ Processing by DefaultFallbackController#test as HTML
3195
+ Completed 200 OK in 3ms (Views: 2.2ms)
3196
+ Processing by DefaultFallbackController#test as JS
3197
+ Completed 200 OK in 39ms (Views: 38.6ms)
3198
+ Processing by ForceFallbackController#index as HTML
3199
+ Completed 200 OK in 6ms (Views: 5.5ms)
3200
+ Processing by ForceFallbackController#index as HTML
3201
+ Completed 200 OK in 3ms (Views: 2.3ms)
3202
+ Processing by ForceFallbackController#test as HTML
3203
+ Completed 200 OK in 2ms (Views: 1.8ms)
3204
+ Processing by ForceFallbackController#test as HTML
3205
+ Completed 200 OK in 1ms (Views: 0.8ms)
3206
+ Processing by ForceFallbackController#test as JS
3207
+ Completed 200 OK in 1ms (Views: 0.8ms)
3208
+ Processing by HomeController#index as HTML
3209
+ Completed 200 OK in 6ms (Views: 5.1ms)
3210
+ Processing by HomeController#index as HTML
3211
+ Completed 200 OK in 2ms (Views: 1.3ms)
3212
+ Processing by HomeController#index as HTML
3213
+ Completed 200 OK in 3ms (Views: 2.8ms)
3214
+ Processing by HomeController#index as HTML
3215
+ Completed 200 OK in 2ms (Views: 1.3ms)
3216
+ Processing by HomeController#index as HTML
3217
+ Completed 200 OK in 2ms (Views: 1.3ms)
3218
+ Processing by HomeController#index as HTML
3219
+ Completed 200 OK in 2ms (Views: 1.3ms)
3220
+ Processing by HomeController#index as HTML
3221
+ Completed 200 OK in 2ms (Views: 1.3ms)
3222
+ Processing by HomeController#index as HTML
3223
+ Completed 200 OK in 2ms (Views: 1.3ms)
3224
+ Processing by HomeController#index as HTML
3225
+ Completed 200 OK in 2ms (Views: 1.3ms)
3226
+ Processing by HomeController#respond_to_test as HTML
3227
+ Completed 200 OK in 3ms (Views: 2.2ms)
3228
+ Processing by HomeController#respond_to_test as HTML
3229
+ Completed 200 OK in 3ms (Views: 2.5ms)
3230
+ Processing by HomeController#respond_to_test as MOBILE
3231
+ Completed 200 OK in 2ms (Views: 1.2ms)
3232
+ Processing by HomeController#index as JS
3233
+ Completed 200 OK in 6ms (Views: 6.3ms)
3234
+ Processing by HomeController#index as HTML
3235
+ Completed 200 OK in 2ms (Views: 1.4ms)
3236
+ Processing by HomeController#index as HTML
3237
+ Completed 200 OK in 1ms (Views: 1.3ms)
3238
+ Processing by HomeController#index as HTML
3239
+ Parameters: {"skip_mobile"=>"true"}
3240
+ Completed 200 OK in 1ms (Views: 1.3ms)
3241
+ Processing by NoFallbackController#index as HTML
3242
+ Completed 200 OK in 5ms (Views: 5.0ms)
3243
+ Processing by NoFallbackController#index as HTML
3244
+ Completed 200 OK in 3ms (Views: 2.3ms)
3245
+ Processing by NoFallbackController#test as HTML
3246
+ Completed 500 Internal Server Error in 2ms
3247
+ Processing by NoFallbackController#test as HTML
3248
+ Completed 500 Internal Server Error in 1ms
3249
+ Processing by NoFallbackController#test as HTML
3250
+ Completed 500 Internal Server Error in 1ms
3251
+ Processing by SkipXhrRequestController#index as JS
3252
+ Completed 200 OK in 6ms (Views: 6.0ms)
3253
+ Processing by DefaultFallbackController#index as HTML
3254
+ Completed 200 OK in 111ms (Views: 110.7ms)
3255
+ Processing by DefaultFallbackController#index as HTML
3256
+ Completed 200 OK in 1ms (Views: 1.2ms)
3257
+ Processing by DefaultFallbackController#test as HTML
3258
+ Completed 200 OK in 2ms (Views: 2.1ms)
3259
+ Processing by DefaultFallbackController#test as JS
3260
+ Completed 200 OK in 39ms (Views: 38.6ms)
3261
+ Processing by ForceFallbackController#index as HTML
3262
+ Completed 200 OK in 5ms (Views: 4.9ms)
3263
+ Processing by ForceFallbackController#index as HTML
3264
+ Completed 200 OK in 1ms (Views: 1.3ms)
3265
+ Processing by ForceFallbackController#test as HTML
3266
+ Completed 200 OK in 2ms (Views: 2.1ms)
3267
+ Processing by ForceFallbackController#test as HTML
3268
+ Completed 200 OK in 1ms (Views: 1.2ms)
3269
+ Processing by ForceFallbackController#test as JS
3270
+ Completed 200 OK in 2ms (Views: 2.2ms)
3271
+ Processing by HomeController#index as HTML
3272
+ Completed 200 OK in 5ms (Views: 5.1ms)
3273
+ Processing by HomeController#index as HTML
3274
+ Completed 200 OK in 1ms (Views: 1.4ms)
3275
+ Processing by HomeController#index as HTML
3276
+ Completed 200 OK in 1ms (Views: 1.3ms)
3277
+ Processing by HomeController#index as HTML
3278
+ Completed 200 OK in 1ms (Views: 1.3ms)
3279
+ Processing by HomeController#index as HTML
3280
+ Completed 200 OK in 2ms (Views: 1.5ms)
3281
+ Processing by HomeController#index as HTML
3282
+ Completed 200 OK in 1ms (Views: 1.3ms)
3283
+ Processing by HomeController#index as HTML
3284
+ Completed 200 OK in 1ms (Views: 1.3ms)
3285
+ Processing by HomeController#index as HTML
3286
+ Completed 200 OK in 1ms (Views: 1.3ms)
3287
+ Processing by HomeController#index as HTML
3288
+ Completed 200 OK in 1ms (Views: 1.3ms)
3289
+ Processing by HomeController#respond_to_test as HTML
3290
+ Completed 200 OK in 3ms (Views: 2.1ms)
3291
+ Processing by HomeController#respond_to_test as HTML
3292
+ Completed 200 OK in 1ms (Views: 1.2ms)
3293
+ Processing by HomeController#respond_to_test as MOBILE
3294
+ Completed 200 OK in 3ms (Views: 3.0ms)
3295
+ Processing by HomeController#index as JS
3296
+ Completed 200 OK in 6ms (Views: 6.2ms)
3297
+ Processing by HomeController#index as HTML
3298
+ Completed 200 OK in 1ms (Views: 1.3ms)
3299
+ Processing by HomeController#index as HTML
3300
+ Completed 200 OK in 1ms (Views: 1.4ms)
3301
+ Processing by HomeController#index as HTML
3302
+ Parameters: {"skip_mobile"=>"true"}
3303
+ Completed 200 OK in 1ms (Views: 1.3ms)
3304
+ Processing by NoFallbackController#index as HTML
3305
+ Completed 200 OK in 6ms (Views: 5.6ms)
3306
+ Processing by NoFallbackController#index as HTML
3307
+ Completed 200 OK in 1ms (Views: 1.2ms)
3308
+ Processing by NoFallbackController#test as HTML
3309
+ Completed 200 OK in 2ms (Views: 2.1ms)
3310
+ Processing by NoFallbackController#test as HTML
3311
+ Completed 200 OK in 1ms (Views: 1.2ms)
3312
+ Processing by NoFallbackController#test as HTML
3313
+ Completed 200 OK in 1ms (Views: 1.2ms)
3314
+ Processing by SkipXhrRequestController#index as JS
3315
+ Completed 200 OK in 8ms (Views: 7.7ms)
3316
+ Processing by DefaultFallbackController#index as HTML
3317
+ Completed 200 OK in 108ms (Views: 107.2ms)
3318
+ Processing by DefaultFallbackController#index as HTML
3319
+ Completed 200 OK in 1ms (Views: 1.3ms)
3320
+ Processing by DefaultFallbackController#test as HTML
3321
+ Completed 200 OK in 3ms (Views: 2.2ms)
3322
+ Processing by DefaultFallbackController#test as JS
3323
+ Completed 200 OK in 39ms (Views: 38.7ms)
3324
+ Processing by ForceFallbackController#index as HTML
3325
+ Completed 200 OK in 5ms (Views: 5.0ms)
3326
+ Processing by ForceFallbackController#index as HTML
3327
+ Completed 200 OK in 1ms (Views: 1.3ms)
3328
+ Processing by ForceFallbackController#test as HTML
3329
+ Completed 200 OK in 3ms (Views: 2.4ms)
3330
+ Processing by ForceFallbackController#test as HTML
3331
+ Completed 200 OK in 1ms (Views: 1.3ms)
3332
+ Processing by ForceFallbackController#test as JS
3333
+ Completed 200 OK in 3ms (Views: 2.4ms)
3334
+ Processing by HomeController#index as HTML
3335
+ Completed 200 OK in 6ms (Views: 5.5ms)
3336
+ Processing by HomeController#index as HTML
3337
+ Completed 200 OK in 1ms (Views: 1.3ms)
3338
+ Processing by HomeController#index as HTML
3339
+ Completed 200 OK in 1ms (Views: 1.4ms)
3340
+ Processing by HomeController#index as HTML
3341
+ Completed 200 OK in 1ms (Views: 1.3ms)
3342
+ Processing by HomeController#index as HTML
3343
+ Completed 200 OK in 1ms (Views: 1.3ms)
3344
+ Processing by HomeController#index as HTML
3345
+ Completed 200 OK in 1ms (Views: 1.3ms)
3346
+ Processing by HomeController#index as HTML
3347
+ Completed 200 OK in 1ms (Views: 1.3ms)
3348
+ Processing by HomeController#index as HTML
3349
+ Completed 200 OK in 1ms (Views: 1.3ms)
3350
+ Processing by HomeController#index as HTML
3351
+ Completed 200 OK in 1ms (Views: 1.3ms)
3352
+ Processing by HomeController#respond_to_test as HTML
3353
+ Completed 200 OK in 3ms (Views: 2.1ms)
3354
+ Processing by HomeController#respond_to_test as HTML
3355
+ Completed 200 OK in 1ms (Views: 1.3ms)
3356
+ Processing by HomeController#respond_to_test as MOBILE
3357
+ Completed 200 OK in 3ms (Views: 3.1ms)
3358
+ Processing by HomeController#index as JS
3359
+ Completed 200 OK in 6ms (Views: 6.2ms)
3360
+ Processing by HomeController#index as HTML
3361
+ Completed 200 OK in 2ms (Views: 1.5ms)
3362
+ Processing by HomeController#index as HTML
3363
+ Completed 200 OK in 1ms (Views: 1.3ms)
3364
+ Processing by HomeController#index as HTML
3365
+ Parameters: {"skip_mobile"=>"true"}
3366
+ Completed 200 OK in 4ms (Views: 3.3ms)
3367
+ Processing by NoFallbackController#index as HTML
3368
+ Completed 200 OK in 6ms (Views: 5.4ms)
3369
+ Processing by NoFallbackController#index as HTML
3370
+ Completed 200 OK in 1ms (Views: 1.2ms)
3371
+ Processing by NoFallbackController#test as HTML
3372
+ Completed 200 OK in 2ms (Views: 2.1ms)
3373
+ Processing by NoFallbackController#test as HTML
3374
+ Completed 200 OK in 1ms (Views: 1.2ms)
3375
+ Processing by NoFallbackController#test as HTML
3376
+ Completed 200 OK in 1ms (Views: 1.3ms)
3377
+ Processing by SkipXhrRequestController#index as JS
3378
+ Completed 200 OK in 8ms (Views: 7.7ms)
3379
+ Processing by DefaultFallbackController#index as HTML
3380
+ Completed 200 OK in 115ms (Views: 114.8ms)
3381
+ Processing by DefaultFallbackController#index as HTML
3382
+ Completed 200 OK in 3ms (Views: 2.9ms)
3383
+ Processing by DefaultFallbackController#test as HTML
3384
+ Completed 200 OK in 3ms (Views: 2.3ms)
3385
+ Processing by DefaultFallbackController#test as JS
3386
+ Completed 200 OK in 39ms (Views: 38.9ms)
3387
+ Processing by ForceFallbackController#index as HTML
3388
+ Completed 200 OK in 6ms (Views: 5.3ms)
3389
+ Processing by ForceFallbackController#index as HTML
3390
+ Completed 200 OK in 3ms (Views: 2.3ms)
3391
+ Processing by ForceFallbackController#test as HTML
3392
+ Completed 200 OK in 2ms (Views: 1.8ms)
3393
+ Processing by ForceFallbackController#test as HTML
3394
+ Completed 200 OK in 1ms (Views: 0.8ms)
3395
+ Processing by ForceFallbackController#test as JS
3396
+ Completed 200 OK in 1ms (Views: 0.8ms)
3397
+ Processing by HomeController#index as HTML
3398
+ Completed 200 OK in 6ms (Views: 5.2ms)
3399
+ Processing by HomeController#index as HTML
3400
+ Completed 200 OK in 2ms (Views: 1.3ms)
3401
+ Processing by HomeController#index as HTML
3402
+ Completed 200 OK in 3ms (Views: 2.8ms)
3403
+ Processing by HomeController#index as HTML
3404
+ Completed 200 OK in 2ms (Views: 1.4ms)
3405
+ Processing by HomeController#index as HTML
3406
+ Completed 200 OK in 2ms (Views: 1.4ms)
3407
+ Processing by HomeController#index as HTML
3408
+ Completed 200 OK in 2ms (Views: 1.4ms)
3409
+ Processing by HomeController#index as HTML
3410
+ Completed 200 OK in 2ms (Views: 1.4ms)
3411
+ Processing by HomeController#index as HTML
3412
+ Completed 200 OK in 2ms (Views: 1.4ms)
3413
+ Processing by HomeController#index as HTML
3414
+ Completed 200 OK in 3ms (Views: 2.1ms)
3415
+ Processing by HomeController#respond_to_test as HTML
3416
+ Completed 200 OK in 3ms (Views: 2.2ms)
3417
+ Processing by HomeController#respond_to_test as HTML
3418
+ Completed 200 OK in 4ms (Views: 3.2ms)
3419
+ Processing by HomeController#respond_to_test as MOBILE
3420
+ Completed 200 OK in 2ms (Views: 1.2ms)
3421
+ Processing by HomeController#index as JS
3422
+ Completed 200 OK in 6ms (Views: 6.3ms)
3423
+ Processing by HomeController#index as HTML
3424
+ Completed 200 OK in 2ms (Views: 1.4ms)
3425
+ Processing by HomeController#index as HTML
3426
+ Completed 200 OK in 1ms (Views: 1.3ms)
3427
+ Processing by HomeController#index as HTML
3428
+ Parameters: {"skip_mobile"=>"true"}
3429
+ Completed 200 OK in 1ms (Views: 1.3ms)
3430
+ Processing by NoFallbackController#index as HTML
3431
+ Completed 200 OK in 5ms (Views: 4.9ms)
3432
+ Processing by NoFallbackController#index as HTML
3433
+ Completed 200 OK in 3ms (Views: 2.2ms)
3434
+ Processing by NoFallbackController#test as HTML
3435
+ Completed 500 Internal Server Error in 2ms
3436
+ Processing by NoFallbackController#test as HTML
3437
+ Completed 500 Internal Server Error in 1ms
3438
+ Processing by NoFallbackController#test as HTML
3439
+ Completed 500 Internal Server Error in 1ms
3440
+ Processing by SkipXhrRequestController#index as JS
3441
+ Completed 200 OK in 6ms (Views: 5.5ms)
3442
+ Processing by DefaultFallbackController#index as HTML
3443
+ Completed 200 OK in 110ms (Views: 109.7ms)
3444
+ Processing by DefaultFallbackController#index as HTML
3445
+ Completed 200 OK in 3ms (Views: 2.8ms)
3446
+ Processing by DefaultFallbackController#test as HTML
3447
+ Completed 200 OK in 3ms (Views: 2.2ms)
3448
+ Processing by DefaultFallbackController#test as JS
3449
+ Completed 200 OK in 38ms (Views: 37.8ms)
3450
+ Processing by ForceFallbackController#index as HTML
3451
+ Completed 200 OK in 6ms (Views: 5.2ms)
3452
+ Processing by ForceFallbackController#index as HTML
3453
+ Completed 200 OK in 3ms (Views: 2.5ms)
3454
+ Processing by ForceFallbackController#test as HTML
3455
+ Completed 200 OK in 2ms (Views: 1.8ms)
3456
+ Processing by ForceFallbackController#test as HTML
3457
+ Completed 200 OK in 1ms (Views: 0.8ms)
3458
+ Processing by ForceFallbackController#test as JS
3459
+ Completed 200 OK in 1ms (Views: 0.8ms)
3460
+ Processing by HomeController#index as HTML
3461
+ Completed 200 OK in 6ms (Views: 5.2ms)
3462
+ Processing by HomeController#index as HTML
3463
+ Completed 200 OK in 2ms (Views: 1.3ms)
3464
+ Processing by HomeController#index as HTML
3465
+ Completed 200 OK in 3ms (Views: 2.7ms)
3466
+ Processing by HomeController#index as HTML
3467
+ Completed 200 OK in 2ms (Views: 1.3ms)
3468
+ Processing by HomeController#index as HTML
3469
+ Completed 200 OK in 2ms (Views: 1.3ms)
3470
+ Processing by HomeController#index as HTML
3471
+ Completed 200 OK in 2ms (Views: 1.3ms)
3472
+ Processing by HomeController#index as HTML
3473
+ Completed 200 OK in 2ms (Views: 1.3ms)
3474
+ Processing by HomeController#index as HTML
3475
+ Completed 200 OK in 2ms (Views: 1.3ms)
3476
+ Processing by HomeController#index as HTML
3477
+ Completed 200 OK in 2ms (Views: 1.4ms)
3478
+ Processing by HomeController#respond_to_test as HTML
3479
+ Completed 200 OK in 3ms (Views: 2.1ms)
3480
+ Processing by HomeController#respond_to_test as HTML
3481
+ Completed 200 OK in 3ms (Views: 2.3ms)
3482
+ Processing by HomeController#respond_to_test as MOBILE
3483
+ Completed 200 OK in 1ms (Views: 1.2ms)
3484
+ Processing by HomeController#index as JS
3485
+ Completed 200 OK in 7ms (Views: 6.4ms)
3486
+ Processing by HomeController#index as HTML
3487
+ Completed 200 OK in 1ms (Views: 1.3ms)
3488
+ Processing by HomeController#index as HTML
3489
+ Completed 200 OK in 1ms (Views: 1.3ms)
3490
+ Processing by HomeController#index as HTML
3491
+ Parameters: {"skip_mobile"=>"true"}
3492
+ Completed 200 OK in 1ms (Views: 1.3ms)
3493
+ Processing by NoFallbackController#index as HTML
3494
+ Completed 200 OK in 5ms (Views: 4.9ms)
3495
+ Processing by NoFallbackController#index as HTML
3496
+ Completed 200 OK in 2ms (Views: 2.2ms)
3497
+ Processing by NoFallbackController#test as HTML
3498
+ Completed 500 Internal Server Error in 2ms
3499
+ Processing by NoFallbackController#test as HTML
3500
+ Completed 500 Internal Server Error in 1ms
3501
+ Processing by NoFallbackController#test as HTML
3502
+ Completed 500 Internal Server Error in 1ms
3503
+ Processing by SkipXhrRequestController#index as JS
3504
+ Completed 200 OK in 6ms (Views: 5.6ms)
3505
+ Processing by DefaultFallbackController#index as HTML
3506
+ Completed 200 OK in 81ms (Views: 80.4ms)
3507
+ Processing by DefaultFallbackController#index as HTML
3508
+ Completed 200 OK in 4ms (Views: 3.6ms)
3509
+ Processing by DefaultFallbackController#test as HTML
3510
+ Completed 200 OK in 3ms (Views: 2.8ms)
3511
+ Processing by DefaultFallbackController#test as JS
3512
+ Completed 200 OK in 40ms (Views: 40.0ms)
3513
+ Processing by ForceFallbackController#index as HTML
3514
+ Completed 200 OK in 7ms (Views: 6.4ms)
3515
+ Processing by ForceFallbackController#index as HTML
3516
+ Completed 200 OK in 3ms (Views: 2.8ms)
3517
+ Processing by ForceFallbackController#test as HTML
3518
+ Completed 200 OK in 3ms (Views: 2.1ms)
3519
+ Processing by ForceFallbackController#test as HTML
3520
+ Completed 200 OK in 1ms (Views: 1.0ms)
3521
+ Processing by ForceFallbackController#test as JS
3522
+ Completed 200 OK in 1ms (Views: 1.0ms)
3523
+ Processing by HomeController#index as HTML
3524
+ Completed 200 OK in 7ms (Views: 6.0ms)
3525
+ Processing by HomeController#index as HTML
3526
+ Completed 200 OK in 2ms (Views: 1.8ms)
3527
+ Processing by HomeController#index as HTML
3528
+ Completed 200 OK in 4ms (Views: 3.5ms)
3529
+ Processing by HomeController#index as HTML
3530
+ Completed 200 OK in 2ms (Views: 1.8ms)
3531
+ Processing by HomeController#index as HTML
3532
+ Completed 200 OK in 2ms (Views: 1.7ms)
3533
+ Processing by HomeController#index as HTML
3534
+ Completed 200 OK in 2ms (Views: 1.8ms)
3535
+ Processing by HomeController#index as HTML
3536
+ Completed 200 OK in 2ms (Views: 1.8ms)
3537
+ Processing by HomeController#index as HTML
3538
+ Completed 200 OK in 2ms (Views: 1.8ms)
3539
+ Processing by HomeController#index as HTML
3540
+ Completed 200 OK in 2ms (Views: 1.8ms)
3541
+ Processing by HomeController#respond_to_test as HTML
3542
+ Completed 200 OK in 3ms (Views: 2.7ms)
3543
+ Processing by HomeController#respond_to_test as HTML
3544
+ Completed 200 OK in 3ms (Views: 2.8ms)
3545
+ Processing by HomeController#respond_to_test as MOBILE
3546
+ Completed 200 OK in 2ms (Views: 1.6ms)
3547
+ Processing by HomeController#index as JS
3548
+ Completed 200 OK in 7ms (Views: 6.6ms)
3549
+ Processing by HomeController#index as HTML
3550
+ Completed 200 OK in 2ms (Views: 2.0ms)
3551
+ Processing by HomeController#index as HTML
3552
+ Completed 200 OK in 2ms (Views: 2.2ms)
3553
+ Processing by HomeController#index as HTML
3554
+ Parameters: {"skip_mobile"=>"true"}
3555
+ Completed 200 OK in 2ms (Views: 2.1ms)
3556
+ Processing by NoFallbackController#index as HTML
3557
+ Completed 200 OK in 8ms (Views: 7.7ms)
3558
+ Processing by NoFallbackController#index as HTML
3559
+ Completed 200 OK in 3ms (Views: 2.9ms)
3560
+ Processing by NoFallbackController#test as HTML
3561
+ Completed 500 Internal Server Error in 2ms
3562
+ Processing by NoFallbackController#test as HTML
3563
+ Completed 500 Internal Server Error in 1ms
3564
+ Processing by NoFallbackController#test as HTML
3565
+ Completed 500 Internal Server Error in 1ms
3566
+ Processing by SkipXhrRequestController#index as JS
3567
+ Completed 200 OK in 7ms (Views: 6.3ms)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mobylette
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-10 00:00:00.000000000Z
12
+ date: 2011-10-30 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2159198480 !ruby/object:Gem::Requirement
16
+ requirement: &2151839300 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2159198480
24
+ version_requirements: *2151839300
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2159198060 !ruby/object:Gem::Requirement
27
+ requirement: &2151837760 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *2159198060
35
+ version_requirements: *2151837760
36
36
  description: Adds the mobile format for rendering views for mobile device.
37
37
  email:
38
38
  - tscolari@gmail.com
@@ -185,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  segments:
187
187
  - 0
188
- hash: 3534861209816165825
188
+ hash: -3608994266748393928
189
189
  required_rubygems_version: !ruby/object:Gem::Requirement
190
190
  none: false
191
191
  requirements:
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  version: '0'
195
195
  segments:
196
196
  - 0
197
- hash: 3534861209816165825
197
+ hash: -3608994266748393928
198
198
  requirements: []
199
199
  rubyforge_project:
200
200
  rubygems_version: 1.8.6