mobylette 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,7 @@
1
1
  http://tscolari.github.com/mobylette/mobylette_images/mobylette.jpg
2
2
 
3
- Note: At next version (1.6) only ruby >= 1.9 will be supported.
3
+ Mobylette 1.6+ only supports Ruby 1.9.2+
4
+ For Ruby 1.8.7 support, please use version > 1.6
4
5
 
5
6
  = Mobylette http://travis-ci.org/tscolari/mobylette.png
6
7
 
@@ -28,21 +28,21 @@ module Mobylette
28
28
  # or make it application wide calling it from the ApplicationController
29
29
  #
30
30
  # Options:
31
- # * :fall_back => :html
31
+ # * fall_back: :html
32
32
  # You may pass a fall_back option to the method, it will force the render
33
33
  # to look for that other format, in case there is not a .mobile file for the view.
34
34
  # By default, it will fall back to the format of the original request.
35
- # If you don't want fall back at all, pass :fall_back => false
36
- # * :skip_xhr_requests => true/false
35
+ # If you don't want fall back at all, pass fall_back: false
36
+ # * skip_xhr_requests: true/false
37
37
  # By default this is set to true. When a xhr request enters in, it will skip the
38
38
  # mobile verification. This will let your ajax calls to work as intended.
39
39
  # You may disable this (actually you will have to) if you are using JQuery Mobile, or
40
- # other js framework that uses ajax. To disable, set :skip_xhr_requests => false
40
+ # other js framework that uses ajax. To disable, set skip_xhr_requests: false
41
41
  def respond_to_mobile_requests(options = {})
42
42
  return if self.included_modules.include?(Mobylette::Controllers::RespondToMobileRequestsMethods)
43
43
 
44
44
  options.reverse_merge!({
45
- :skip_xhr_requests => true
45
+ skip_xhr_requests: true
46
46
  })
47
47
 
48
48
  cattr_accessor :mobylette_options
@@ -55,22 +55,19 @@ module Mobylette
55
55
  end
56
56
  end
57
57
 
58
- module InstanceMethods
58
+ private
59
59
 
60
- private
61
-
62
- # :doc:
63
- # This helper returns exclusively if the request's user_aget is from a mobile
64
- # device or not.
65
- def is_mobile_request?
66
- request.user_agent.to_s.downcase =~ /#{MOBILE_USER_AGENTS}/
67
- end
60
+ # :doc:
61
+ # This helper returns exclusively if the request's user_aget is from a mobile
62
+ # device or not.
63
+ def is_mobile_request?
64
+ request.user_agent.to_s.downcase =~ /#{MOBILE_USER_AGENTS}/
65
+ end
68
66
 
69
- # :doc:
70
- # This helper returns exclusively if the current format is mobile or not
71
- def is_mobile_view?
72
- true if (request.format.to_s == "mobile") or (params[:format] == "mobile")
73
- end
67
+ # :doc:
68
+ # This helper returns exclusively if the current format is mobile or not
69
+ def is_mobile_view?
70
+ true if (request.format.to_s == "mobile") or (params[:format] == "mobile")
74
71
  end
75
72
  end
76
73
 
@@ -85,46 +82,44 @@ module Mobylette
85
82
  before_filter :handle_mobile
86
83
  end
87
84
 
88
- module InstanceMethods
89
- private
85
+ private
90
86
 
91
- # Returns true if this request should be treated as a mobile request
92
- def respond_as_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
- end
87
+ # Returns true if this request should be treated as a mobile request
88
+ def respond_as_mobile?
89
+ processing_xhr_requests? and skip_mobile_param_not_present? and (force_mobile_by_session? or is_mobile_request? or (params[:format] == 'mobile'))
90
+ end
95
91
 
96
- # Returns true if the visitor has de force_mobile session
97
- def force_mobile_by_session?
98
- session[:mobylette_override] == :force_mobile
99
- end
92
+ # Returns true if the visitor has de force_mobile session
93
+ def force_mobile_by_session?
94
+ session[:mobylette_override] == :force_mobile
95
+ end
100
96
 
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
97
+ # Returns true when ?skip_mobile=true is not passed to the request
98
+ def skip_mobile_param_not_present?
99
+ params[:skip_mobile] != 'true'
100
+ end
105
101
 
106
- # Returns true only if treating XHR requests (when skip_xhr_requests are set to false) or
107
- # or when this is a non xhr request
108
- def processing_xhr_requests?
109
- not self.mobylette_options[:skip_xhr_requests] && request.xhr?
110
- end
102
+ # Returns true only if treating XHR requests (when skip_xhr_requests are set to false) or
103
+ # or when this is a non xhr request
104
+ def processing_xhr_requests?
105
+ not self.mobylette_options[:skip_xhr_requests] && request.xhr?
106
+ end
111
107
 
112
- # :doc:
113
- # Changes the request.form to :mobile, when the request is from
114
- # a mobile device
115
- def handle_mobile
116
- return if session[:mobylette_override] == :ignore_mobile
117
- if respond_as_mobile?
118
-
119
- original_format = request.format.to_sym
120
- request.format = :mobile
121
- if self.mobylette_options[:fall_back] != false
122
- request.formats << Mime::Type.new(self.mobylette_options[:fall_back] || original_format)
123
- end
108
+ # :doc:
109
+ # Changes the request.form to :mobile, when the request is from
110
+ # a mobile device
111
+ def handle_mobile
112
+ return if session[:mobylette_override] == :ignore_mobile
113
+ if respond_as_mobile?
114
+
115
+ original_format = request.format.to_sym
116
+ request.format = :mobile
117
+ if self.mobylette_options[:fall_back] != false
118
+ request.formats << Mime::Type.new(self.mobylette_options[:fall_back] || original_format)
124
119
  end
125
120
  end
126
-
127
121
  end
122
+
128
123
  end
129
124
  end
130
125
  end
@@ -1,3 +1,3 @@
1
1
  module Mobylette
2
- VERSION = "1.5.0"
2
+ VERSION = "1.6.0"
3
3
  end
@@ -247,3 +247,381 @@ Completed 500 Internal Server Error in 1ms
247
247
  Completed 500 Internal Server Error in 1ms
248
248
  Processing by SkipXhrRequestController#index as JS
249
249
  Completed 200 OK in 5ms (Views: 4.7ms)
250
+ Processing by DefaultFallbackController#index as HTML
251
+ Completed 200 OK in 68ms (Views: 67.1ms)
252
+ Processing by DefaultFallbackController#index as HTML
253
+ Completed 200 OK in 4ms (Views: 3.9ms)
254
+ Processing by DefaultFallbackController#test as HTML
255
+ Completed 200 OK in 4ms (Views: 3.2ms)
256
+ Processing by DefaultFallbackController#test as JS
257
+ Completed 200 OK in 12ms (Views: 11.2ms)
258
+ Processing by ForceFallbackController#index as HTML
259
+ Completed 200 OK in 7ms (Views: 5.8ms)
260
+ Processing by ForceFallbackController#index as HTML
261
+ Completed 200 OK in 3ms (Views: 3.1ms)
262
+ Processing by ForceFallbackController#test as HTML
263
+ Completed 200 OK in 3ms (Views: 2.3ms)
264
+ Processing by ForceFallbackController#test as HTML
265
+ Completed 200 OK in 2ms (Views: 1.6ms)
266
+ Processing by ForceFallbackController#test as JS
267
+ Completed 200 OK in 2ms (Views: 1.1ms)
268
+ Processing by HomeController#index as HTML
269
+ Completed 200 OK in 6ms (Views: 5.6ms)
270
+ Processing by HomeController#index as HTML
271
+ Completed 200 OK in 2ms (Views: 2.0ms)
272
+ Processing by HomeController#index as HTML
273
+ Completed 200 OK in 4ms (Views: 3.7ms)
274
+ Processing by HomeController#index as HTML
275
+ Completed 200 OK in 2ms (Views: 2.0ms)
276
+ Processing by HomeController#index as HTML
277
+ Completed 200 OK in 2ms (Views: 2.0ms)
278
+ Processing by HomeController#index as HTML
279
+ Completed 200 OK in 2ms (Views: 2.1ms)
280
+ Processing by HomeController#index as HTML
281
+ Completed 200 OK in 2ms (Views: 2.0ms)
282
+ Processing by HomeController#index as HTML
283
+ Completed 200 OK in 2ms (Views: 2.0ms)
284
+ Processing by HomeController#index as HTML
285
+ Completed 200 OK in 3ms (Views: 2.2ms)
286
+ Processing by HomeController#respond_to_test as HTML
287
+ Completed 200 OK in 6ms (Views: 4.1ms)
288
+ Processing by HomeController#respond_to_test as HTML
289
+ Completed 200 OK in 4ms (Views: 3.7ms)
290
+ Processing by HomeController#respond_to_test as MOBILE
291
+ Completed 200 OK in 3ms (Views: 2.0ms)
292
+ Processing by HomeController#index as JS
293
+ Completed 200 OK in 9ms (Views: 8.9ms)
294
+ Processing by HomeController#index as HTML
295
+ Completed 200 OK in 3ms (Views: 2.6ms)
296
+ Processing by HomeController#index as HTML
297
+ Completed 200 OK in 3ms (Views: 2.4ms)
298
+ Processing by HomeController#index as HTML
299
+ Parameters: {"skip_mobile"=>"true"}
300
+ Completed 200 OK in 3ms (Views: 2.7ms)
301
+ Processing by NoFallbackController#index as HTML
302
+ Completed 200 OK in 7ms (Views: 5.8ms)
303
+ Processing by NoFallbackController#index as HTML
304
+ Completed 200 OK in 4ms (Views: 3.3ms)
305
+ Processing by NoFallbackController#test as HTML
306
+ Completed 500 Internal Server Error in 4ms
307
+ Processing by NoFallbackController#test as HTML
308
+ Completed 500 Internal Server Error in 1ms
309
+ Processing by NoFallbackController#test as HTML
310
+ Completed 500 Internal Server Error in 1ms
311
+ Processing by SkipXhrRequestController#index as JS
312
+ Completed 200 OK in 8ms (Views: 7.4ms)
313
+ Processing by DefaultFallbackController#index as HTML
314
+ Completed 200 OK in 20ms (Views: 18.8ms)
315
+ Processing by DefaultFallbackController#index as HTML
316
+ Completed 200 OK in 5ms (Views: 4.2ms)
317
+ Processing by DefaultFallbackController#test as HTML
318
+ Completed 200 OK in 4ms (Views: 2.9ms)
319
+ Processing by DefaultFallbackController#test as JS
320
+ Completed 200 OK in 9ms (Views: 9.1ms)
321
+ Processing by ForceFallbackController#index as HTML
322
+ Completed 200 OK in 6ms (Views: 5.5ms)
323
+ Processing by ForceFallbackController#index as HTML
324
+ Completed 200 OK in 4ms (Views: 3.1ms)
325
+ Processing by ForceFallbackController#test as HTML
326
+ Completed 200 OK in 3ms (Views: 2.1ms)
327
+ Processing by ForceFallbackController#test as HTML
328
+ Completed 200 OK in 2ms (Views: 1.1ms)
329
+ Processing by ForceFallbackController#test as JS
330
+ Completed 200 OK in 2ms (Views: 1.2ms)
331
+ Processing by HomeController#index as HTML
332
+ Completed 200 OK in 6ms (Views: 5.6ms)
333
+ Processing by HomeController#index as HTML
334
+ Completed 200 OK in 2ms (Views: 2.0ms)
335
+ Processing by HomeController#index as HTML
336
+ Completed 200 OK in 4ms (Views: 3.7ms)
337
+ Processing by HomeController#index as HTML
338
+ Completed 200 OK in 3ms (Views: 2.3ms)
339
+ Processing by HomeController#index as HTML
340
+ Completed 200 OK in 2ms (Views: 2.0ms)
341
+ Processing by HomeController#index as HTML
342
+ Completed 200 OK in 3ms (Views: 2.4ms)
343
+ Processing by HomeController#index as HTML
344
+ Completed 200 OK in 2ms (Views: 2.0ms)
345
+ Processing by HomeController#index as HTML
346
+ Completed 200 OK in 2ms (Views: 2.0ms)
347
+ Processing by HomeController#index as HTML
348
+ Completed 200 OK in 2ms (Views: 2.0ms)
349
+ Processing by HomeController#respond_to_test as HTML
350
+ Completed 200 OK in 4ms (Views: 2.9ms)
351
+ Processing by HomeController#respond_to_test as HTML
352
+ Completed 200 OK in 4ms (Views: 3.6ms)
353
+ Processing by HomeController#respond_to_test as MOBILE
354
+ Completed 200 OK in 2ms (Views: 1.8ms)
355
+ Processing by HomeController#index as JS
356
+ Completed 200 OK in 6ms (Views: 5.7ms)
357
+ Processing by HomeController#index as HTML
358
+ Completed 200 OK in 2ms (Views: 2.1ms)
359
+ Processing by HomeController#index as HTML
360
+ Completed 200 OK in 2ms (Views: 2.1ms)
361
+ Processing by HomeController#index as HTML
362
+ Parameters: {"skip_mobile"=>"true"}
363
+ Completed 200 OK in 2ms (Views: 2.1ms)
364
+ Processing by NoFallbackController#index as HTML
365
+ Completed 200 OK in 6ms (Views: 5.0ms)
366
+ Processing by NoFallbackController#index as HTML
367
+ Completed 200 OK in 3ms (Views: 3.1ms)
368
+ Processing by NoFallbackController#test as HTML
369
+ Completed 500 Internal Server Error in 2ms
370
+ Processing by NoFallbackController#test as HTML
371
+ Completed 500 Internal Server Error in 2ms
372
+ Processing by NoFallbackController#test as HTML
373
+ Completed 500 Internal Server Error in 1ms
374
+ Processing by SkipXhrRequestController#index as JS
375
+ Completed 200 OK in 7ms (Views: 6.1ms)
376
+ Processing by DefaultFallbackController#index as HTML
377
+ Completed 200 OK in 17ms (Views: 16.7ms)
378
+ Processing by DefaultFallbackController#index as HTML
379
+ Completed 200 OK in 4ms (Views: 3.3ms)
380
+ Processing by DefaultFallbackController#test as HTML
381
+ Completed 200 OK in 3ms (Views: 2.4ms)
382
+ Processing by DefaultFallbackController#test as JS
383
+ Completed 200 OK in 9ms (Views: 8.7ms)
384
+ Processing by ForceFallbackController#index as HTML
385
+ Completed 200 OK in 5ms (Views: 5.0ms)
386
+ Processing by ForceFallbackController#index as HTML
387
+ Completed 200 OK in 3ms (Views: 2.4ms)
388
+ Processing by ForceFallbackController#test as HTML
389
+ Completed 200 OK in 2ms (Views: 1.9ms)
390
+ Processing by ForceFallbackController#test as HTML
391
+ Completed 200 OK in 1ms (Views: 0.9ms)
392
+ Processing by ForceFallbackController#test as JS
393
+ Completed 200 OK in 1ms (Views: 0.8ms)
394
+ Processing by HomeController#index as HTML
395
+ Completed 200 OK in 5ms (Views: 4.6ms)
396
+ Processing by HomeController#index as HTML
397
+ Completed 200 OK in 2ms (Views: 1.4ms)
398
+ Processing by HomeController#index as HTML
399
+ Completed 200 OK in 3ms (Views: 3.1ms)
400
+ Processing by HomeController#index as HTML
401
+ Completed 200 OK in 2ms (Views: 1.4ms)
402
+ Processing by HomeController#index as HTML
403
+ Completed 200 OK in 2ms (Views: 1.4ms)
404
+ Processing by HomeController#index as HTML
405
+ Completed 200 OK in 2ms (Views: 1.5ms)
406
+ Processing by HomeController#index as HTML
407
+ Completed 200 OK in 2ms (Views: 1.4ms)
408
+ Processing by HomeController#index as HTML
409
+ Completed 200 OK in 2ms (Views: 1.4ms)
410
+ Processing by HomeController#index as HTML
411
+ Completed 200 OK in 2ms (Views: 1.4ms)
412
+ Processing by HomeController#respond_to_test as HTML
413
+ Completed 200 OK in 3ms (Views: 2.4ms)
414
+ Processing by HomeController#respond_to_test as HTML
415
+ Completed 200 OK in 3ms (Views: 2.4ms)
416
+ Processing by HomeController#respond_to_test as MOBILE
417
+ Completed 200 OK in 2ms (Views: 1.4ms)
418
+ Processing by HomeController#index as JS
419
+ Completed 200 OK in 6ms (Views: 6.1ms)
420
+ Processing by HomeController#index as HTML
421
+ Completed 200 OK in 2ms (Views: 1.5ms)
422
+ Processing by HomeController#index as HTML
423
+ Completed 200 OK in 2ms (Views: 1.7ms)
424
+ Processing by HomeController#index as HTML
425
+ Parameters: {"skip_mobile"=>"true"}
426
+ Completed 200 OK in 2ms (Views: 1.4ms)
427
+ Processing by NoFallbackController#index as HTML
428
+ Completed 200 OK in 5ms (Views: 4.4ms)
429
+ Processing by NoFallbackController#index as HTML
430
+ Completed 200 OK in 3ms (Views: 2.4ms)
431
+ Processing by NoFallbackController#test as HTML
432
+ Completed 500 Internal Server Error in 2ms
433
+ Processing by NoFallbackController#test as HTML
434
+ Completed 500 Internal Server Error in 1ms
435
+ Processing by NoFallbackController#test as HTML
436
+ Completed 500 Internal Server Error in 1ms
437
+ Processing by SkipXhrRequestController#index as JS
438
+ Completed 200 OK in 7ms (Views: 5.9ms)
439
+ Processing by DefaultFallbackController#index as HTML
440
+ Completed 200 OK in 24ms (Views: 23.5ms)
441
+ Processing by DefaultFallbackController#index as HTML
442
+ Completed 200 OK in 3ms (Views: 3.2ms)
443
+ Processing by DefaultFallbackController#test as HTML
444
+ Completed 200 OK in 3ms (Views: 2.7ms)
445
+ Processing by DefaultFallbackController#test as JS
446
+ Completed 200 OK in 11ms (Views: 10.4ms)
447
+ Processing by ForceFallbackController#index as HTML
448
+ Completed 200 OK in 5ms (Views: 4.6ms)
449
+ Processing by ForceFallbackController#index as HTML
450
+ Completed 200 OK in 3ms (Views: 2.4ms)
451
+ Processing by ForceFallbackController#test as HTML
452
+ Completed 200 OK in 2ms (Views: 1.7ms)
453
+ Processing by ForceFallbackController#test as HTML
454
+ Completed 200 OK in 1ms (Views: 0.8ms)
455
+ Processing by ForceFallbackController#test as JS
456
+ Completed 200 OK in 1ms (Views: 0.8ms)
457
+ Processing by HomeController#index as HTML
458
+ Completed 200 OK in 6ms (Views: 5.3ms)
459
+ Processing by HomeController#index as HTML
460
+ Completed 200 OK in 2ms (Views: 1.4ms)
461
+ Processing by HomeController#index as HTML
462
+ Completed 200 OK in 3ms (Views: 3.0ms)
463
+ Processing by HomeController#index as HTML
464
+ Completed 200 OK in 2ms (Views: 1.7ms)
465
+ Processing by HomeController#index as HTML
466
+ Completed 200 OK in 2ms (Views: 1.4ms)
467
+ Processing by HomeController#index as HTML
468
+ Completed 200 OK in 2ms (Views: 1.5ms)
469
+ Processing by HomeController#index as HTML
470
+ Completed 200 OK in 2ms (Views: 1.4ms)
471
+ Processing by HomeController#index as HTML
472
+ Completed 200 OK in 2ms (Views: 1.5ms)
473
+ Processing by HomeController#index as HTML
474
+ Completed 200 OK in 2ms (Views: 1.4ms)
475
+ Processing by HomeController#respond_to_test as HTML
476
+ Completed 200 OK in 3ms (Views: 2.2ms)
477
+ Processing by HomeController#respond_to_test as HTML
478
+ Completed 200 OK in 3ms (Views: 2.6ms)
479
+ Processing by HomeController#respond_to_test as MOBILE
480
+ Completed 200 OK in 2ms (Views: 1.2ms)
481
+ Processing by HomeController#index as JS
482
+ Completed 200 OK in 5ms (Views: 5.1ms)
483
+ Processing by HomeController#index as HTML
484
+ Completed 200 OK in 2ms (Views: 1.6ms)
485
+ Processing by HomeController#index as HTML
486
+ Completed 200 OK in 2ms (Views: 1.6ms)
487
+ Processing by HomeController#index as HTML
488
+ Parameters: {"skip_mobile"=>"true"}
489
+ Completed 200 OK in 2ms (Views: 1.4ms)
490
+ Processing by NoFallbackController#index as HTML
491
+ Completed 200 OK in 5ms (Views: 4.2ms)
492
+ Processing by NoFallbackController#index as HTML
493
+ Completed 200 OK in 3ms (Views: 2.3ms)
494
+ Processing by NoFallbackController#test as HTML
495
+ Completed 500 Internal Server Error in 2ms
496
+ Processing by NoFallbackController#test as HTML
497
+ Completed 500 Internal Server Error in 1ms
498
+ Processing by NoFallbackController#test as HTML
499
+ Completed 500 Internal Server Error in 1ms
500
+ Processing by SkipXhrRequestController#index as JS
501
+ Completed 200 OK in 5ms (Views: 4.9ms)
502
+ Processing by DefaultFallbackController#index as HTML
503
+ Completed 200 OK in 47ms (Views: 46.2ms)
504
+ Processing by DefaultFallbackController#index as HTML
505
+ Completed 200 OK in 3ms (Views: 3.1ms)
506
+ Processing by DefaultFallbackController#test as HTML
507
+ Completed 200 OK in 4ms (Views: 3.2ms)
508
+ Processing by DefaultFallbackController#test as JS
509
+ Completed 200 OK in 10ms (Views: 10.1ms)
510
+ Processing by ForceFallbackController#index as HTML
511
+ Completed 200 OK in 6ms (Views: 5.5ms)
512
+ Processing by ForceFallbackController#index as HTML
513
+ Completed 200 OK in 3ms (Views: 2.8ms)
514
+ Processing by ForceFallbackController#test as HTML
515
+ Completed 200 OK in 3ms (Views: 2.4ms)
516
+ Processing by ForceFallbackController#test as HTML
517
+ Completed 200 OK in 1ms (Views: 0.8ms)
518
+ Processing by ForceFallbackController#test as JS
519
+ Completed 200 OK in 1ms (Views: 0.8ms)
520
+ Processing by HomeController#index as HTML
521
+ Completed 200 OK in 6ms (Views: 5.0ms)
522
+ Processing by HomeController#index as HTML
523
+ Completed 200 OK in 2ms (Views: 1.5ms)
524
+ Processing by HomeController#index as HTML
525
+ Completed 200 OK in 4ms (Views: 3.4ms)
526
+ Processing by HomeController#index as HTML
527
+ Completed 200 OK in 2ms (Views: 1.4ms)
528
+ Processing by HomeController#index as HTML
529
+ Completed 200 OK in 2ms (Views: 1.5ms)
530
+ Processing by HomeController#index as HTML
531
+ Completed 200 OK in 2ms (Views: 1.5ms)
532
+ Processing by HomeController#index as HTML
533
+ Completed 200 OK in 2ms (Views: 1.6ms)
534
+ Processing by HomeController#index as HTML
535
+ Completed 200 OK in 2ms (Views: 1.4ms)
536
+ Processing by HomeController#index as HTML
537
+ Completed 200 OK in 2ms (Views: 1.4ms)
538
+ Processing by HomeController#respond_to_test as HTML
539
+ Completed 200 OK in 3ms (Views: 2.6ms)
540
+ Processing by HomeController#respond_to_test as HTML
541
+ Completed 200 OK in 3ms (Views: 2.8ms)
542
+ Processing by HomeController#respond_to_test as MOBILE
543
+ Completed 200 OK in 2ms (Views: 1.3ms)
544
+ Processing by HomeController#index as JS
545
+ Completed 200 OK in 7ms (Views: 6.8ms)
546
+ Processing by HomeController#index as HTML
547
+ Completed 200 OK in 2ms (Views: 1.4ms)
548
+ Processing by HomeController#index as HTML
549
+ Completed 200 OK in 2ms (Views: 1.6ms)
550
+ Processing by HomeController#index as HTML
551
+ Parameters: {"skip_mobile"=>"true"}
552
+ Completed 200 OK in 2ms (Views: 1.5ms)
553
+ Processing by NoFallbackController#index as HTML
554
+ Completed 200 OK in 5ms (Views: 4.7ms)
555
+ Processing by NoFallbackController#index as HTML
556
+ Completed 200 OK in 3ms (Views: 2.7ms)
557
+ Processing by NoFallbackController#test as HTML
558
+ Completed 500 Internal Server Error in 2ms
559
+ Processing by NoFallbackController#test as HTML
560
+ Completed 500 Internal Server Error in 1ms
561
+ Processing by NoFallbackController#test as HTML
562
+ Completed 500 Internal Server Error in 1ms
563
+ Processing by SkipXhrRequestController#index as JS
564
+ Completed 200 OK in 6ms (Views: 5.6ms)
565
+ Processing by DefaultFallbackController#index as HTML
566
+ Completed 200 OK in 18ms (Views: 17.1ms)
567
+ Processing by DefaultFallbackController#index as HTML
568
+ Completed 200 OK in 3ms (Views: 3.1ms)
569
+ Processing by DefaultFallbackController#test as HTML
570
+ Completed 200 OK in 3ms (Views: 2.3ms)
571
+ Processing by DefaultFallbackController#test as JS
572
+ Completed 200 OK in 42ms (Views: 41.7ms)
573
+ Processing by ForceFallbackController#index as HTML
574
+ Completed 200 OK in 5ms (Views: 4.8ms)
575
+ Processing by ForceFallbackController#index as HTML
576
+ Completed 200 OK in 3ms (Views: 2.4ms)
577
+ Processing by ForceFallbackController#test as HTML
578
+ Completed 200 OK in 2ms (Views: 1.7ms)
579
+ Processing by ForceFallbackController#test as HTML
580
+ Completed 200 OK in 1ms (Views: 1.1ms)
581
+ Processing by ForceFallbackController#test as JS
582
+ Completed 200 OK in 1ms (Views: 0.9ms)
583
+ Processing by HomeController#index as HTML
584
+ Completed 200 OK in 5ms (Views: 4.6ms)
585
+ Processing by HomeController#index as HTML
586
+ Completed 200 OK in 2ms (Views: 1.5ms)
587
+ Processing by HomeController#index as HTML
588
+ Completed 200 OK in 3ms (Views: 2.8ms)
589
+ Processing by HomeController#index as HTML
590
+ Completed 200 OK in 2ms (Views: 1.4ms)
591
+ Processing by HomeController#index as HTML
592
+ Completed 200 OK in 2ms (Views: 1.4ms)
593
+ Processing by HomeController#index as HTML
594
+ Completed 200 OK in 2ms (Views: 1.5ms)
595
+ Processing by HomeController#index as HTML
596
+ Completed 200 OK in 2ms (Views: 1.4ms)
597
+ Processing by HomeController#index as HTML
598
+ Completed 200 OK in 2ms (Views: 1.6ms)
599
+ Processing by HomeController#index as HTML
600
+ Completed 200 OK in 2ms (Views: 1.4ms)
601
+ Processing by HomeController#respond_to_test as HTML
602
+ Completed 200 OK in 3ms (Views: 2.3ms)
603
+ Processing by HomeController#respond_to_test as HTML
604
+ Completed 200 OK in 3ms (Views: 2.4ms)
605
+ Processing by HomeController#respond_to_test as MOBILE
606
+ Completed 200 OK in 2ms (Views: 1.3ms)
607
+ Processing by HomeController#index as JS
608
+ Completed 200 OK in 8ms (Views: 7.8ms)
609
+ Processing by HomeController#index as HTML
610
+ Completed 200 OK in 2ms (Views: 1.6ms)
611
+ Processing by HomeController#index as HTML
612
+ Completed 200 OK in 2ms (Views: 1.4ms)
613
+ Processing by HomeController#index as HTML
614
+ Parameters: {"skip_mobile"=>"true"}
615
+ Completed 200 OK in 2ms (Views: 1.4ms)
616
+ Processing by NoFallbackController#index as HTML
617
+ Completed 200 OK in 6ms (Views: 4.9ms)
618
+ Processing by NoFallbackController#index as HTML
619
+ Completed 200 OK in 3ms (Views: 2.4ms)
620
+ Processing by NoFallbackController#test as HTML
621
+ Completed 500 Internal Server Error in 1ms
622
+ Processing by NoFallbackController#test as HTML
623
+ Completed 500 Internal Server Error in 1ms
624
+ Processing by NoFallbackController#test as HTML
625
+ Completed 500 Internal Server Error in 1ms
626
+ Processing by SkipXhrRequestController#index as JS
627
+ Completed 200 OK in 5ms (Views: 4.8ms)
@@ -29,7 +29,7 @@ RSpec.configure do |config|
29
29
  require 'rspec/expectations'
30
30
  config.include RSpec::Matchers
31
31
 
32
- config.include Mobylette::Helmet, :type => :controller
32
+ config.include Mobylette::Helmet, type: :controller
33
33
 
34
34
  # == Mock Framework
35
35
  config.mock_with :rspec
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.5.0
4
+ version: 1.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-20 00:00:00.000000000 Z
12
+ date: 2012-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70287703922740 !ruby/object:Gem::Requirement
16
+ requirement: &70285340546340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ~>
19
+ - - ! '>='
20
20
  - !ruby/object:Gem::Version
21
21
  version: '3.0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70287703922740
24
+ version_requirements: *70285340546340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70287703922220 !ruby/object:Gem::Requirement
27
+ requirement: &70285340545920 !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: *70287703922220
35
+ version_requirements: *70285340545920
36
36
  description: Adds the mobile format for rendering views for mobile device.
37
37
  email:
38
38
  - tscolari@gmail.com
@@ -177,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
177
  version: '0'
178
178
  segments:
179
179
  - 0
180
- hash: -33292724756088779
180
+ hash: 1758669735780302293
181
181
  required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  none: false
183
183
  requirements:
@@ -186,7 +186,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
186
  version: '0'
187
187
  segments:
188
188
  - 0
189
- hash: -33292724756088779
189
+ hash: 1758669735780302293
190
190
  requirements: []
191
191
  rubyforge_project:
192
192
  rubygems_version: 1.8.10