mobylette 1.3.0 → 1.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -49,9 +49,7 @@ There is a difference between is_mobile_view? and is_mobile_request?. You may ha
49
49
 
50
50
  == Mobile View Path
51
51
 
52
- Mobylette will look your mobile templates first at app/mobile_views. This default behavior may be disabled by passing the :ignore_mobile_view_path => true option. Or it can be ignored, it will look there first, but at app/view after that. This is just an extra organization option you may use if you prefer.
53
-
54
- respond_to_mobile_requests :ignore_mobile_view_path => true
52
+ This was a terrible idea I introduced in version 1.3.0, and completely removed in 1.4.0. I'm really sorry for that.
55
53
 
56
54
  == Fall Backs
57
55
 
@@ -38,27 +38,18 @@ module Mobylette
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
40
  # other js framework that uses ajax. To disable, set :skip_xhr_requests => false
41
- # * :ignore_mobile_view_path => true/false
42
- # False by default. This will force rails to look for the mobile views in the
43
- # app/mobile_views path before app/views. This behavior is only for mobile requests.
44
- # You may ignore this path aswell, it is just an extra organization option you have.
45
- #
46
41
  def respond_to_mobile_requests(options = {})
47
42
  return if self.included_modules.include?(Mobylette::Controllers::RespondToMobileRequestsMethods)
48
43
 
49
44
  options.reverse_merge!({
50
- :skip_xhr_requests => true,
51
- :ignore_mobile_view_path => false
45
+ :skip_xhr_requests => true
52
46
  })
53
47
 
54
- cattr_accessor :mobylette_fall_back_format
55
- self.mobylette_fall_back_format = options[:fall_back]
56
-
57
- cattr_accessor :mobylette_skip_xhr_requests
58
- self.mobylette_skip_xhr_requests = options[:skip_xhr_requests]
59
-
60
- cattr_accessor :mobylette_ignore_mobile_view_path
61
- self.mobylette_ignore_mobile_view_path = options[:ignore_mobile_view_path]
48
+ cattr_accessor :mobylette_options
49
+ # works on 1.9, but not on 1.8
50
+ #valid_options = [:fall_back, :skip_xhr_requests]
51
+ #self.mobylette_options = options.reject {|option| !valid_options.include?(option)}
52
+ self.mobylette_options = options
62
53
 
63
54
  self.send(:include, Mobylette::Controllers::RespondToMobileRequestsMethods)
64
55
  end
@@ -80,9 +71,7 @@ module Mobylette
80
71
  def is_mobile_view?
81
72
  true if (request.format.to_s == "mobile") or (params[:format] == "mobile")
82
73
  end
83
-
84
74
  end
85
-
86
75
  end
87
76
 
88
77
  # RespondToMobileRequestsMethods is included by respond_to_mobile_requests
@@ -112,7 +101,7 @@ module Mobylette
112
101
  # Returns true only if treating XHR requests (when skip_xhr_requests are set to false) or
113
102
  # or when this is a non xhr request
114
103
  def processing_xhr_requests?
115
- not self.mobylette_skip_xhr_requests && request.xhr?
104
+ not self.mobylette_options[:skip_xhr_requests] && request.xhr?
116
105
  end
117
106
 
118
107
  # :doc:
@@ -122,17 +111,14 @@ module Mobylette
122
111
  return if session[:mobylette_override] == :ignore_mobile
123
112
  if respond_as_mobile?
124
113
 
125
- unless self.mobylette_ignore_mobile_view_path
126
- prepend_view_path File.join(Rails.root, 'app', 'mobile_views')
127
- end
128
-
129
114
  original_format = request.format.to_sym
130
115
  request.format = :mobile
131
- if self.mobylette_fall_back_format != false
132
- request.formats << Mime::Type.new(self.mobylette_fall_back_format || original_format)
116
+ if self.mobylette_options[:fall_back] != false
117
+ request.formats << Mime::Type.new(self.mobylette_options[:fall_back] || original_format)
133
118
  end
134
119
  end
135
120
  end
121
+
136
122
  end
137
123
  end
138
124
  end
@@ -1,3 +1,3 @@
1
1
  module Mobylette
2
- VERSION = "1.3.0"
2
+ VERSION = "1.4.0"
3
3
  end
@@ -2887,3 +2887,243 @@ Completed 500 Internal Server Error in 3ms
2887
2887
  Completed 200 OK in 9ms (Views: 8.2ms)
2888
2888
  Processing by ViewPathController#index as HTML
2889
2889
  Completed 200 OK in 77ms (Views: 75.9ms)
2890
+ Processing by DefaultFallbackController#index as HTML
2891
+ Completed 200 OK in 122ms (Views: 121.4ms)
2892
+ Processing by DefaultFallbackController#index as HTML
2893
+ Completed 200 OK in 3ms (Views: 3.0ms)
2894
+ Processing by DefaultFallbackController#test as HTML
2895
+ Completed 200 OK in 4ms (Views: 3.3ms)
2896
+ Processing by DefaultFallbackController#test as JS
2897
+ Completed 200 OK in 43ms (Views: 42.4ms)
2898
+ Processing by ForceFallbackController#index as HTML
2899
+ Completed 200 OK in 8ms (Views: 7.9ms)
2900
+ Processing by ForceFallbackController#index as HTML
2901
+ Completed 200 OK in 109ms (Views: 108.4ms)
2902
+ Processing by ForceFallbackController#test as HTML
2903
+ Completed 200 OK in 215ms (Views: 214.1ms)
2904
+ Processing by ForceFallbackController#test as HTML
2905
+ Completed 200 OK in 4ms (Views: 3.6ms)
2906
+ Processing by ForceFallbackController#test as JS
2907
+ Completed 200 OK in 3ms (Views: 2.9ms)
2908
+ Processing by HomeController#index as HTML
2909
+ Completed 200 OK in 6ms (Views: 5.8ms)
2910
+ Processing by HomeController#index as HTML
2911
+ Completed 200 OK in 2ms (Views: 1.6ms)
2912
+ Processing by HomeController#index as HTML
2913
+ Completed 200 OK in 4ms (Views: 4.1ms)
2914
+ Processing by HomeController#index as HTML
2915
+ Completed 200 OK in 3ms (Views: 2.4ms)
2916
+ Processing by HomeController#index as HTML
2917
+ Completed 200 OK in 2ms (Views: 1.4ms)
2918
+ Processing by HomeController#index as HTML
2919
+ Completed 200 OK in 3ms (Views: 2.4ms)
2920
+ Processing by HomeController#index as HTML
2921
+ Completed 200 OK in 3ms (Views: 2.3ms)
2922
+ Processing by HomeController#index as HTML
2923
+ Completed 200 OK in 2ms (Views: 1.6ms)
2924
+ Processing by HomeController#index as HTML
2925
+ Completed 200 OK in 2ms (Views: 1.4ms)
2926
+ Processing by HomeController#respond_to_test as HTML
2927
+ Completed 200 OK in 3ms (Views: 2.3ms)
2928
+ Processing by HomeController#respond_to_test as HTML
2929
+ Completed 200 OK in 4ms (Views: 3.2ms)
2930
+ Processing by HomeController#respond_to_test as MOBILE
2931
+ Completed 200 OK in 2ms (Views: 2.0ms)
2932
+ Processing by HomeController#index as JS
2933
+ Completed 200 OK in 7ms (Views: 6.5ms)
2934
+ Processing by HomeController#index as HTML
2935
+ Completed 200 OK in 3ms (Views: 2.5ms)
2936
+ Processing by HomeController#index as HTML
2937
+ Completed 200 OK in 2ms (Views: 1.4ms)
2938
+ Processing by NoFallbackController#index as HTML
2939
+ Completed 200 OK in 7ms (Views: 6.1ms)
2940
+ Processing by NoFallbackController#index as HTML
2941
+ Completed 200 OK in 3ms (Views: 2.5ms)
2942
+ Processing by NoFallbackController#test as HTML
2943
+ Completed 500 Internal Server Error in 2ms
2944
+ Processing by NoFallbackController#test as HTML
2945
+ Completed 500 Internal Server Error in 2ms
2946
+ Processing by NoFallbackController#test as HTML
2947
+ Completed 500 Internal Server Error in 2ms
2948
+ Processing by SkipXhrRequestController#index as JS
2949
+ Completed 200 OK in 10ms (Views: 8.9ms)
2950
+ Processing by DefaultFallbackController#index as HTML
2951
+ Completed 200 OK in 117ms (Views: 116.4ms)
2952
+ Processing by DefaultFallbackController#index as HTML
2953
+ Completed 200 OK in 3ms (Views: 3.0ms)
2954
+ Processing by DefaultFallbackController#test as HTML
2955
+ Completed 200 OK in 3ms (Views: 2.3ms)
2956
+ Processing by DefaultFallbackController#test as JS
2957
+ Completed 200 OK in 40ms (Views: 39.4ms)
2958
+ Processing by ForceFallbackController#index as HTML
2959
+ Completed 200 OK in 6ms (Views: 5.7ms)
2960
+ Processing by ForceFallbackController#index as HTML
2961
+ Completed 200 OK in 3ms (Views: 2.4ms)
2962
+ Processing by ForceFallbackController#test as HTML
2963
+ Completed 200 OK in 2ms (Views: 1.8ms)
2964
+ Processing by ForceFallbackController#test as HTML
2965
+ Completed 200 OK in 1ms (Views: 0.8ms)
2966
+ Processing by ForceFallbackController#test as JS
2967
+ Completed 200 OK in 1ms (Views: 0.9ms)
2968
+ Processing by HomeController#index as HTML
2969
+ Completed 200 OK in 6ms (Views: 5.6ms)
2970
+ Processing by HomeController#index as HTML
2971
+ Completed 200 OK in 2ms (Views: 1.5ms)
2972
+ Processing by HomeController#index as HTML
2973
+ Completed 200 OK in 3ms (Views: 2.9ms)
2974
+ Processing by HomeController#index as HTML
2975
+ Completed 200 OK in 2ms (Views: 1.4ms)
2976
+ Processing by HomeController#index as HTML
2977
+ Completed 200 OK in 2ms (Views: 1.4ms)
2978
+ Processing by HomeController#index as HTML
2979
+ Completed 200 OK in 2ms (Views: 1.4ms)
2980
+ Processing by HomeController#index as HTML
2981
+ Completed 200 OK in 2ms (Views: 1.4ms)
2982
+ Processing by HomeController#index as HTML
2983
+ Completed 200 OK in 2ms (Views: 1.4ms)
2984
+ Processing by HomeController#index as HTML
2985
+ Completed 200 OK in 2ms (Views: 1.4ms)
2986
+ Processing by HomeController#respond_to_test as HTML
2987
+ Completed 200 OK in 3ms (Views: 2.4ms)
2988
+ Processing by HomeController#respond_to_test as HTML
2989
+ Completed 200 OK in 3ms (Views: 2.4ms)
2990
+ Processing by HomeController#respond_to_test as MOBILE
2991
+ Completed 200 OK in 2ms (Views: 1.2ms)
2992
+ Processing by HomeController#index as JS
2993
+ Completed 200 OK in 7ms (Views: 6.6ms)
2994
+ Processing by HomeController#index as HTML
2995
+ Completed 200 OK in 2ms (Views: 1.4ms)
2996
+ Processing by HomeController#index as HTML
2997
+ Completed 200 OK in 1ms (Views: 1.4ms)
2998
+ Processing by NoFallbackController#index as HTML
2999
+ Completed 200 OK in 6ms (Views: 5.2ms)
3000
+ Processing by NoFallbackController#index as HTML
3001
+ Completed 200 OK in 3ms (Views: 2.3ms)
3002
+ Processing by NoFallbackController#test as HTML
3003
+ Completed 500 Internal Server Error in 2ms
3004
+ Processing by NoFallbackController#test as HTML
3005
+ Completed 500 Internal Server Error in 1ms
3006
+ Processing by NoFallbackController#test as HTML
3007
+ Completed 500 Internal Server Error in 1ms
3008
+ Processing by SkipXhrRequestController#index as JS
3009
+ Completed 200 OK in 8ms (Views: 7.2ms)
3010
+ Processing by DefaultFallbackController#index as HTML
3011
+ Completed 200 OK in 86ms (Views: 85.1ms)
3012
+ Processing by DefaultFallbackController#index as HTML
3013
+ Completed 200 OK in 4ms (Views: 3.6ms)
3014
+ Processing by DefaultFallbackController#test as HTML
3015
+ Completed 200 OK in 3ms (Views: 2.8ms)
3016
+ Processing by DefaultFallbackController#test as JS
3017
+ Completed 200 OK in 41ms (Views: 40.4ms)
3018
+ Processing by ForceFallbackController#index as HTML
3019
+ Completed 200 OK in 7ms (Views: 6.1ms)
3020
+ Processing by ForceFallbackController#index as HTML
3021
+ Completed 200 OK in 3ms (Views: 3.1ms)
3022
+ Processing by ForceFallbackController#test as HTML
3023
+ Completed 200 OK in 3ms (Views: 2.2ms)
3024
+ Processing by ForceFallbackController#test as HTML
3025
+ Completed 200 OK in 1ms (Views: 1.1ms)
3026
+ Processing by ForceFallbackController#test as JS
3027
+ Completed 200 OK in 1ms (Views: 1.1ms)
3028
+ Processing by HomeController#index as HTML
3029
+ Completed 200 OK in 7ms (Views: 6.1ms)
3030
+ Processing by HomeController#index as HTML
3031
+ Completed 200 OK in 2ms (Views: 1.9ms)
3032
+ Processing by HomeController#index as HTML
3033
+ Completed 200 OK in 5ms (Views: 4.2ms)
3034
+ Processing by HomeController#index as HTML
3035
+ Completed 200 OK in 2ms (Views: 2.0ms)
3036
+ Processing by HomeController#index as HTML
3037
+ Completed 200 OK in 2ms (Views: 1.8ms)
3038
+ Processing by HomeController#index as HTML
3039
+ Completed 200 OK in 2ms (Views: 1.9ms)
3040
+ Processing by HomeController#index as HTML
3041
+ Completed 200 OK in 2ms (Views: 1.9ms)
3042
+ Processing by HomeController#index as HTML
3043
+ Completed 200 OK in 2ms (Views: 1.9ms)
3044
+ Processing by HomeController#index as HTML
3045
+ Completed 200 OK in 2ms (Views: 2.0ms)
3046
+ Processing by HomeController#respond_to_test as HTML
3047
+ Completed 200 OK in 4ms (Views: 2.8ms)
3048
+ Processing by HomeController#respond_to_test as HTML
3049
+ Completed 200 OK in 3ms (Views: 2.9ms)
3050
+ Processing by HomeController#respond_to_test as MOBILE
3051
+ Completed 200 OK in 2ms (Views: 1.9ms)
3052
+ Processing by HomeController#index as JS
3053
+ Completed 200 OK in 7ms (Views: 7.0ms)
3054
+ Processing by HomeController#index as HTML
3055
+ Completed 200 OK in 2ms (Views: 1.9ms)
3056
+ Processing by HomeController#index as HTML
3057
+ Completed 200 OK in 2ms (Views: 2.0ms)
3058
+ Processing by NoFallbackController#index as HTML
3059
+ Completed 200 OK in 7ms (Views: 6.0ms)
3060
+ Processing by NoFallbackController#index as HTML
3061
+ Completed 200 OK in 3ms (Views: 2.9ms)
3062
+ Processing by NoFallbackController#test as HTML
3063
+ Completed 500 Internal Server Error in 2ms
3064
+ Processing by NoFallbackController#test as HTML
3065
+ Completed 500 Internal Server Error in 1ms
3066
+ Processing by NoFallbackController#test as HTML
3067
+ Completed 500 Internal Server Error in 1ms
3068
+ Processing by SkipXhrRequestController#index as JS
3069
+ Completed 200 OK in 7ms (Views: 6.5ms)
3070
+ Processing by DefaultFallbackController#index as HTML
3071
+ Completed 200 OK in 80ms (Views: 79.5ms)
3072
+ Processing by DefaultFallbackController#index as HTML
3073
+ Completed 200 OK in 3ms (Views: 2.9ms)
3074
+ Processing by DefaultFallbackController#test as HTML
3075
+ Completed 200 OK in 3ms (Views: 2.2ms)
3076
+ Processing by DefaultFallbackController#test as JS
3077
+ Completed 200 OK in 42ms (Views: 41.8ms)
3078
+ Processing by ForceFallbackController#index as HTML
3079
+ Completed 200 OK in 6ms (Views: 5.6ms)
3080
+ Processing by ForceFallbackController#index as HTML
3081
+ Completed 200 OK in 3ms (Views: 2.4ms)
3082
+ Processing by ForceFallbackController#test as HTML
3083
+ Completed 200 OK in 2ms (Views: 1.8ms)
3084
+ Processing by ForceFallbackController#test as HTML
3085
+ Completed 200 OK in 1ms (Views: 0.8ms)
3086
+ Processing by ForceFallbackController#test as JS
3087
+ Completed 200 OK in 1ms (Views: 0.8ms)
3088
+ Processing by HomeController#index as HTML
3089
+ Completed 200 OK in 7ms (Views: 6.1ms)
3090
+ Processing by HomeController#index as HTML
3091
+ Completed 200 OK in 2ms (Views: 1.3ms)
3092
+ Processing by HomeController#index as HTML
3093
+ Completed 200 OK in 3ms (Views: 3.1ms)
3094
+ Processing by HomeController#index as HTML
3095
+ Completed 200 OK in 2ms (Views: 1.5ms)
3096
+ Processing by HomeController#index as HTML
3097
+ Completed 200 OK in 2ms (Views: 1.4ms)
3098
+ Processing by HomeController#index as HTML
3099
+ Completed 200 OK in 2ms (Views: 1.4ms)
3100
+ Processing by HomeController#index as HTML
3101
+ Completed 200 OK in 2ms (Views: 1.4ms)
3102
+ Processing by HomeController#index as HTML
3103
+ Completed 200 OK in 2ms (Views: 1.5ms)
3104
+ Processing by HomeController#index as HTML
3105
+ Completed 200 OK in 2ms (Views: 1.4ms)
3106
+ Processing by HomeController#respond_to_test as HTML
3107
+ Completed 200 OK in 3ms (Views: 2.3ms)
3108
+ Processing by HomeController#respond_to_test as HTML
3109
+ Completed 200 OK in 3ms (Views: 2.4ms)
3110
+ Processing by HomeController#respond_to_test as MOBILE
3111
+ Completed 200 OK in 2ms (Views: 1.3ms)
3112
+ Processing by HomeController#index as JS
3113
+ Completed 200 OK in 6ms (Views: 6.1ms)
3114
+ Processing by HomeController#index as HTML
3115
+ Completed 200 OK in 2ms (Views: 1.4ms)
3116
+ Processing by HomeController#index as HTML
3117
+ Completed 200 OK in 1ms (Views: 1.3ms)
3118
+ Processing by NoFallbackController#index as HTML
3119
+ Completed 200 OK in 5ms (Views: 5.0ms)
3120
+ Processing by NoFallbackController#index as HTML
3121
+ Completed 200 OK in 2ms (Views: 2.2ms)
3122
+ Processing by NoFallbackController#test as HTML
3123
+ Completed 500 Internal Server Error in 2ms
3124
+ Processing by NoFallbackController#test as HTML
3125
+ Completed 500 Internal Server Error in 1ms
3126
+ Processing by NoFallbackController#test as HTML
3127
+ Completed 500 Internal Server Error in 1ms
3128
+ Processing by SkipXhrRequestController#index as JS
3129
+ Completed 200 OK in 10ms (Views: 9.9ms)
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.3.0
4
+ version: 1.4.0
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-08 00:00:00.000000000Z
12
+ date: 2011-10-10 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2156016280 !ruby/object:Gem::Requirement
16
+ requirement: &2159198480 !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: *2156016280
24
+ version_requirements: *2159198480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2156060260 !ruby/object:Gem::Requirement
27
+ requirement: &2159198060 !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: *2156060260
35
+ version_requirements: *2159198060
36
36
  description: Adds the mobile format for rendering views for mobile device.
37
37
  email:
38
38
  - tscolari@gmail.com
@@ -57,10 +57,8 @@ files:
57
57
  - spec/controllers/desktop_only_controller_spec.rb
58
58
  - spec/controllers/force_fallback_controller_spec.rb
59
59
  - spec/controllers/home_controller_spec.rb
60
- - spec/controllers/ignore_mobile_path_controller_spec.rb
61
60
  - spec/controllers/no_fallback_controller_spec.rb
62
61
  - spec/controllers/skip_xhr_request_controller_spec.rb
63
- - spec/controllers/view_path_controller_spec.rb
64
62
  - spec/dummy/app/assets/javascripts/application.js
65
63
  - spec/dummy/app/assets/javascripts/application_mobile.js
66
64
  - spec/dummy/app/assets/javascripts/default_fallback.js
@@ -91,26 +89,18 @@ files:
91
89
  - spec/dummy/app/controllers/fallbacks_controller.rb
92
90
  - spec/dummy/app/controllers/force_fallback_controller.rb
93
91
  - spec/dummy/app/controllers/home_controller.rb
94
- - spec/dummy/app/controllers/ignore_mobile_path_controller.rb
95
92
  - spec/dummy/app/controllers/no_fallback_controller.rb
96
93
  - spec/dummy/app/controllers/skip_xhr_request_controller.rb
97
94
  - spec/dummy/app/controllers/testing_controller.rb
98
- - spec/dummy/app/controllers/view_path_controller.rb
99
95
  - spec/dummy/app/helpers/application_helper.rb
100
96
  - spec/dummy/app/helpers/default_fallback_helper.rb
101
97
  - spec/dummy/app/helpers/desktop_only_helper.rb
102
98
  - spec/dummy/app/helpers/fallbacks_helper.rb
103
99
  - spec/dummy/app/helpers/force_fallback_helper.rb
104
100
  - spec/dummy/app/helpers/home_helper.rb
105
- - spec/dummy/app/helpers/ignore_mobile_path_helper.rb
106
101
  - spec/dummy/app/helpers/no_fallback_helper.rb
107
102
  - spec/dummy/app/helpers/skip_xhr_request_helper.rb
108
103
  - spec/dummy/app/helpers/testing_helper.rb
109
- - spec/dummy/app/helpers/view_path_helper.rb
110
- - spec/dummy/app/mobile_views/home/mobile.mobile.erb
111
- - spec/dummy/app/mobile_views/ignore_mobile_path/index.mobile.erb
112
- - spec/dummy/app/mobile_views/skip_xhr_request/index.mobile.erb
113
- - spec/dummy/app/mobile_views/view_path/index.mobile.erb
114
104
  - spec/dummy/app/views/default_fallback/index.html.erb
115
105
  - spec/dummy/app/views/default_fallback/index.js.erb
116
106
  - spec/dummy/app/views/default_fallback/index.mobile.erb
@@ -130,6 +120,7 @@ files:
130
120
  - spec/dummy/app/views/home/index.html.erb
131
121
  - spec/dummy/app/views/home/index.js.erb
132
122
  - spec/dummy/app/views/home/index.mobile.erb
123
+ - spec/dummy/app/views/home/mobile.mobile.erb
133
124
  - spec/dummy/app/views/home/no_mobile_view.html.erb
134
125
  - spec/dummy/app/views/ignore_mobile_path/index.mobile.erb
135
126
  - spec/dummy/app/views/layouts/application.html.erb
@@ -141,6 +132,7 @@ files:
141
132
  - spec/dummy/app/views/no_fallback/test.js.erb
142
133
  - spec/dummy/app/views/skip_xhr_request/index.html.erb
143
134
  - spec/dummy/app/views/skip_xhr_request/index.js.erb
135
+ - spec/dummy/app/views/skip_xhr_request/index.mobile.erb
144
136
  - spec/dummy/app/views/view_path/index.mobile.erb
145
137
  - spec/dummy/config/application.rb
146
138
  - spec/dummy/config/boot.rb
@@ -193,7 +185,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
193
185
  version: '0'
194
186
  segments:
195
187
  - 0
196
- hash: 1386625084056273859
188
+ hash: 3534861209816165825
197
189
  required_rubygems_version: !ruby/object:Gem::Requirement
198
190
  none: false
199
191
  requirements:
@@ -202,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
202
194
  version: '0'
203
195
  segments:
204
196
  - 0
205
- hash: 1386625084056273859
197
+ hash: 3534861209816165825
206
198
  requirements: []
207
199
  rubyforge_project:
208
200
  rubygems_version: 1.8.6
@@ -215,10 +207,8 @@ test_files:
215
207
  - spec/controllers/desktop_only_controller_spec.rb
216
208
  - spec/controllers/force_fallback_controller_spec.rb
217
209
  - spec/controllers/home_controller_spec.rb
218
- - spec/controllers/ignore_mobile_path_controller_spec.rb
219
210
  - spec/controllers/no_fallback_controller_spec.rb
220
211
  - spec/controllers/skip_xhr_request_controller_spec.rb
221
- - spec/controllers/view_path_controller_spec.rb
222
212
  - spec/dummy/app/assets/javascripts/application.js
223
213
  - spec/dummy/app/assets/javascripts/application_mobile.js
224
214
  - spec/dummy/app/assets/javascripts/default_fallback.js
@@ -249,26 +239,18 @@ test_files:
249
239
  - spec/dummy/app/controllers/fallbacks_controller.rb
250
240
  - spec/dummy/app/controllers/force_fallback_controller.rb
251
241
  - spec/dummy/app/controllers/home_controller.rb
252
- - spec/dummy/app/controllers/ignore_mobile_path_controller.rb
253
242
  - spec/dummy/app/controllers/no_fallback_controller.rb
254
243
  - spec/dummy/app/controllers/skip_xhr_request_controller.rb
255
244
  - spec/dummy/app/controllers/testing_controller.rb
256
- - spec/dummy/app/controllers/view_path_controller.rb
257
245
  - spec/dummy/app/helpers/application_helper.rb
258
246
  - spec/dummy/app/helpers/default_fallback_helper.rb
259
247
  - spec/dummy/app/helpers/desktop_only_helper.rb
260
248
  - spec/dummy/app/helpers/fallbacks_helper.rb
261
249
  - spec/dummy/app/helpers/force_fallback_helper.rb
262
250
  - spec/dummy/app/helpers/home_helper.rb
263
- - spec/dummy/app/helpers/ignore_mobile_path_helper.rb
264
251
  - spec/dummy/app/helpers/no_fallback_helper.rb
265
252
  - spec/dummy/app/helpers/skip_xhr_request_helper.rb
266
253
  - spec/dummy/app/helpers/testing_helper.rb
267
- - spec/dummy/app/helpers/view_path_helper.rb
268
- - spec/dummy/app/mobile_views/home/mobile.mobile.erb
269
- - spec/dummy/app/mobile_views/ignore_mobile_path/index.mobile.erb
270
- - spec/dummy/app/mobile_views/skip_xhr_request/index.mobile.erb
271
- - spec/dummy/app/mobile_views/view_path/index.mobile.erb
272
254
  - spec/dummy/app/views/default_fallback/index.html.erb
273
255
  - spec/dummy/app/views/default_fallback/index.js.erb
274
256
  - spec/dummy/app/views/default_fallback/index.mobile.erb
@@ -288,6 +270,7 @@ test_files:
288
270
  - spec/dummy/app/views/home/index.html.erb
289
271
  - spec/dummy/app/views/home/index.js.erb
290
272
  - spec/dummy/app/views/home/index.mobile.erb
273
+ - spec/dummy/app/views/home/mobile.mobile.erb
291
274
  - spec/dummy/app/views/home/no_mobile_view.html.erb
292
275
  - spec/dummy/app/views/ignore_mobile_path/index.mobile.erb
293
276
  - spec/dummy/app/views/layouts/application.html.erb
@@ -299,6 +282,7 @@ test_files:
299
282
  - spec/dummy/app/views/no_fallback/test.js.erb
300
283
  - spec/dummy/app/views/skip_xhr_request/index.html.erb
301
284
  - spec/dummy/app/views/skip_xhr_request/index.js.erb
285
+ - spec/dummy/app/views/skip_xhr_request/index.mobile.erb
302
286
  - spec/dummy/app/views/view_path/index.mobile.erb
303
287
  - spec/dummy/config/application.rb
304
288
  - spec/dummy/config/boot.rb
@@ -1,12 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe IgnoreMobilePathController do
4
- render_views
5
-
6
- it "it should render the view on the mobile path" do
7
- force_mobile_request_agent
8
- get :index
9
- response.should render_template(:index)
10
- response.body.should contain("THIS IS THE MOBILE VIEW BUT OUTSIDE THE MOBILE PATH")
11
- end
12
- end
@@ -1,13 +0,0 @@
1
- require 'spec_helper'
2
-
3
- describe ViewPathController do
4
- render_views
5
-
6
- it "it should render the view on the mobile path" do
7
- force_mobile_request_agent
8
- get :index
9
- response.should render_template(:index)
10
- response.body.should contain("THIS IS A MOBILE VIEW LOADED FROM THE MOBILE PATH")
11
- end
12
- end
13
-
@@ -1,9 +0,0 @@
1
- class IgnoreMobilePathController < ApplicationController
2
-
3
- respond_to_mobile_requests :ignore_mobile_view_path => true
4
-
5
- def index
6
-
7
- end
8
-
9
- end
@@ -1,9 +0,0 @@
1
- class ViewPathController < ApplicationController
2
-
3
- respond_to_mobile_requests
4
-
5
- def index
6
-
7
- end
8
-
9
- end
@@ -1,2 +0,0 @@
1
- module IgnoreMobilePathHelper
2
- end
@@ -1,2 +0,0 @@
1
- module ViewPathHelper
2
- end
@@ -1 +0,0 @@
1
- THIS IS A MOBILE VIEW LOADED FROM THE MOBILE PATH
@@ -1 +0,0 @@
1
- THIS IS A MOBILE VIEW LOADED FROM THE MOBILE PATH