mobylette 1.6.0 → 2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. data/README.rdoc +35 -22
  2. data/Rakefile +0 -19
  3. data/lib/mobylette.rb +1 -4
  4. data/lib/mobylette/helmet.rb +0 -2
  5. data/lib/mobylette/railtie.rb +0 -6
  6. data/lib/mobylette/respond_to_mobile_requests.rb +135 -0
  7. data/lib/mobylette/version.rb +1 -1
  8. data/spec/controllers/application_controller_spec.rb +37 -0
  9. data/spec/dummy/app/controllers/application_controller.rb +0 -1
  10. data/spec/dummy/log/development.log +116 -0
  11. data/spec/dummy/log/test.log +21 -585
  12. data/spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da +14 -0
  13. data/spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9 +0 -0
  14. data/spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d +0 -0
  15. data/spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62 +16 -0
  16. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  17. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +16 -0
  18. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +14 -0
  19. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  20. data/spec/lib/respond_to_mobile_requests_spec.rb +253 -0
  21. data/spec/spec_helper.rb +3 -0
  22. metadata +45 -107
  23. data/lib/mobylette/controllers/helpers.rb +0 -53
  24. data/lib/mobylette/controllers/respond_to_mobile_requests.rb +0 -125
  25. data/lib/mobylette/helmet/faker.rb +0 -19
  26. data/lib/mobylette/helmet/helpers.rb +0 -36
  27. data/spec/controllers/actioncontroller_base_spec.rb +0 -24
  28. data/spec/controllers/default_fallback_controller_spec.rb +0 -37
  29. data/spec/controllers/desktop_only_controller_spec.rb +0 -18
  30. data/spec/controllers/force_fallback_controller_spec.rb +0 -46
  31. data/spec/controllers/home_controller_spec.rb +0 -145
  32. data/spec/controllers/no_fallback_controller_spec.rb +0 -58
  33. data/spec/controllers/skip_xhr_request_controller_spec.rb +0 -19
  34. data/spec/dummy/app/controllers/default_fallback_controller.rb +0 -13
  35. data/spec/dummy/app/controllers/desktop_only_controller.rb +0 -2
  36. data/spec/dummy/app/controllers/fallbacks_controller.rb +0 -7
  37. data/spec/dummy/app/controllers/force_fallback_controller.rb +0 -13
  38. data/spec/dummy/app/controllers/home_controller.rb +0 -20
  39. data/spec/dummy/app/controllers/no_fallback_controller.rb +0 -13
  40. data/spec/dummy/app/controllers/skip_xhr_request_controller.rb +0 -7
  41. data/spec/dummy/app/controllers/testing_controller.rb +0 -9
  42. data/spec/dummy/app/views/default_fallback/index.html.erb +0 -1
  43. data/spec/dummy/app/views/default_fallback/index.js.erb +0 -1
  44. data/spec/dummy/app/views/default_fallback/index.mobile.erb +0 -1
  45. data/spec/dummy/app/views/default_fallback/test.html.erb +0 -1
  46. data/spec/dummy/app/views/default_fallback/test.js.erb +0 -1
  47. data/spec/dummy/app/views/fallbacks/index.html.erb +0 -2
  48. data/spec/dummy/app/views/fallbacks/index.js.erb +0 -1
  49. data/spec/dummy/app/views/fallbacks/index.mobile.erb +0 -0
  50. data/spec/dummy/app/views/fallbacks/index.xml.erb +0 -0
  51. data/spec/dummy/app/views/fallbacks/no_mobile.html.erb +0 -0
  52. data/spec/dummy/app/views/force_fallback/index.html.erb +0 -1
  53. data/spec/dummy/app/views/force_fallback/index.js.erb +0 -1
  54. data/spec/dummy/app/views/force_fallback/index.mobile.erb +0 -1
  55. data/spec/dummy/app/views/force_fallback/test.html.erb +0 -1
  56. data/spec/dummy/app/views/force_fallback/test.js.erb +0 -1
  57. data/spec/dummy/app/views/home/desktop.html.erb +0 -3
  58. data/spec/dummy/app/views/home/index.html.erb +0 -9
  59. data/spec/dummy/app/views/home/index.js.erb +0 -1
  60. data/spec/dummy/app/views/home/index.mobile.erb +0 -9
  61. data/spec/dummy/app/views/home/mobile.mobile.erb +0 -3
  62. data/spec/dummy/app/views/home/no_mobile_view.html.erb +0 -3
  63. data/spec/dummy/app/views/ignore_mobile_path/index.mobile.erb +0 -1
  64. data/spec/dummy/app/views/no_fallback/index.html.erb +0 -1
  65. data/spec/dummy/app/views/no_fallback/index.js.erb +0 -1
  66. data/spec/dummy/app/views/no_fallback/index.mobile.erb +0 -1
  67. data/spec/dummy/app/views/no_fallback/test.html.erb +0 -1
  68. data/spec/dummy/app/views/no_fallback/test.js.erb +0 -1
  69. data/spec/dummy/app/views/skip_xhr_request/index.html.erb +0 -9
  70. data/spec/dummy/app/views/skip_xhr_request/index.js.erb +0 -1
  71. data/spec/dummy/app/views/skip_xhr_request/index.mobile.erb +0 -9
  72. data/spec/dummy/app/views/view_path/index.mobile.erb +0 -1
  73. data/spec/helpers/mobylette_helpers_spec.rb +0 -59
@@ -0,0 +1,14 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1332702353.878731: @value{ I" length:EFi�I" digest;
2
+ F"%769c3433f6bf172ce80327c044c94eb8I" source;
3
+ FI"�// This is a manifest file that'll be compiled into including all the files listed below.
4
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
5
+ // be included in the compiled file accessible from http://example.com/assets/application.js
6
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
7
+ // the compiled file.
8
+ //
9
+ //
10
+
11
+ alert("MOBILE JS");
12
+ ;
13
+ FI"
14
+ F"%34fa2587d444e6aea52cea430c668ccd
@@ -0,0 +1,16 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1332702353.869955: @value{ I" length:EFiaI" digest;
2
+ F"%7b5b4d1463c8ab2cd40517c7d780541aI" source;
3
+ FI"a/*
4
+ * This is the application mobile CSS
5
+ *
6
+ *
7
+ *
8
+ */
9
+
10
+
11
+ body {
12
+ background-color: green;
13
+ }
14
+ ;
15
+ FI"
16
+ F"%dcc110379513c5a0ef6f15e1c0fd77c0
@@ -0,0 +1,16 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1332702295.254518: @value{ I" length:EFi`I" digest;
2
+ F"%da492739dcaff65c608e68791e24b0b5I" source;
3
+ FI"`/*
4
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
5
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
6
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
7
+ */
8
+
9
+
10
+
11
+ body {
12
+ background-color: blue;
13
+ }
14
+ ;
15
+ FI"
16
+ F"%4445ed39e85707f3677849c0aa9f18ed
@@ -0,0 +1,14 @@
1
+ o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1332702295.262975: @value{ I" length:EFi�I" digest;
2
+ F"%e9b5a652b2cb6afb7f4abf460034a746I" source;
3
+ FI"�// This is a manifest file that'll be compiled into including all the files listed below.
4
+ // Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
5
+ // be included in the compiled file accessible from http://example.com/assets/application.js
6
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
7
+ // the compiled file.
8
+ //
9
+ //
10
+
11
+ alert("HTML JS");
12
+ ;
13
+ FI"
14
+ F"%22b0e19566c0b533398b54fe8fbd3f62
@@ -0,0 +1,253 @@
1
+ require 'spec_helper'
2
+
3
+ module Mobylette
4
+ describe RespondToMobileRequests do
5
+
6
+ class MockController < ActionController::Base
7
+ include Mobylette::RespondToMobileRequests
8
+
9
+ mobylette_config do |config|
10
+ config[:fall_back] = :something
11
+ config[:skip_xhr_requests] = :something
12
+ end
13
+ end
14
+
15
+ subject { MockController.new }
16
+
17
+ describe "#mobilette_config" do
18
+ it "should have options configurated" do
19
+ subject.mobylette_options[:fall_back].should == :something
20
+ subject.mobylette_options[:skip_xhr_requests].should == :something
21
+ end
22
+
23
+ it "should set mobylette_options" do
24
+ subject.class.mobylette_config do |config|
25
+ config[:fall_back] = :js
26
+ config[:skip_xhr_requests] = false
27
+ end
28
+ subject.mobylette_options[:fall_back].should == :js
29
+ subject.mobylette_options[:skip_xhr_requests].should be_false
30
+ end
31
+ end
32
+
33
+ describe "#is_mobile_request?" do
34
+ it "should be false for a normal request" do
35
+ subject.stub_chain(:request, :user_agent).and_return('some mozilla')
36
+ subject.send(:is_mobile_request?).should be_false
37
+ end
38
+
39
+ RespondToMobileRequests::MOBILE_USER_AGENTS.split('|').each do |agent|
40
+ agent.gsub!('\.', '.') # Ugly rack... but otherwise this will fail for up.b
41
+ it "should be true for the agent #{agent}" do
42
+ subject.stub_chain(:request, :user_agent).and_return(agent)
43
+ subject.send(:is_mobile_request?).should be_true
44
+ end
45
+ end
46
+ end
47
+
48
+ describe "#is_mobile_view?" do
49
+ context "from param" do
50
+
51
+ before(:each) do
52
+ request = mock("request")
53
+ request.stub(:format).and_return(false)
54
+ subject.stub(:request).and_return(request)
55
+ end
56
+
57
+ it "should be true if param[:format] is mobile" do
58
+ subject.stub(:params).and_return({format: 'mobile'})
59
+ subject.send(:is_mobile_view?).should be_true
60
+ end
61
+
62
+ it "should be false if param[:format] is not mobile" do
63
+ subject.stub(:params).and_return({format: 'html'})
64
+ subject.send(:is_mobile_view?).should be_false
65
+ end
66
+ end
67
+
68
+ context "from request" do
69
+
70
+ before(:each) do
71
+ subject.stub(:params).and_return({format: 'html'})
72
+ @request = mock("request")
73
+ subject.stub(:request).and_return(@request)
74
+ end
75
+
76
+ it "should be true if request.format is :mobile" do
77
+ @request.stub(:format).and_return(:mobile)
78
+ subject.send(:is_mobile_view?).should be_true
79
+ end
80
+
81
+ it "should be false if request.format is not :mobile" do
82
+ @request.stub(:format).and_return(:html)
83
+ subject.send(:is_mobile_view?).should be_false
84
+ end
85
+ end
86
+ end
87
+
88
+ describe "#stop_processing_because_xhr?" do
89
+
90
+ context "this is a xhr request" do
91
+ before(:each) do
92
+ subject.stub_chain(:request, :xhr?).and_return(true)
93
+ end
94
+
95
+ it "should return false if :skip_xhr_requests is false" do
96
+ subject.mobylette_options[:skip_xhr_requests] = false
97
+ subject.send(:stop_processing_because_xhr?).should be_false
98
+ end
99
+
100
+ it "should return true if :skip_xhr_requests is true" do
101
+ subject.mobylette_options[:skip_xhr_requests] = true
102
+ subject.send(:stop_processing_because_xhr?).should be_true
103
+ end
104
+
105
+ end
106
+
107
+ context "this is not a xhr request" do
108
+ before(:each) do
109
+ subject.stub_chain(:request, :xhr?).and_return(false)
110
+ end
111
+
112
+ it "should return false when :skip_xhr_requests is false" do
113
+ subject.mobylette_options[:skip_xhr_requests] = false
114
+ subject.send(:stop_processing_because_xhr?).should be_false
115
+ end
116
+
117
+ it "should return false when :skip_xhr_requests is true" do
118
+ subject.mobylette_options[:skip_xhr_requests] = true
119
+ subject.send(:stop_processing_because_xhr?).should be_false
120
+ end
121
+
122
+ end
123
+ end
124
+
125
+ describe "#stop_processing_because_param?" do
126
+ it "should be true if the param is present" do
127
+ subject.stub(:params).and_return(skip_mobile: 'true')
128
+ subject.send(:stop_processing_because_param?).should be_true
129
+ end
130
+
131
+ it "should be false if the param is not present" do
132
+ subject.stub(:params).and_return({})
133
+ subject.send(:stop_processing_because_param?).should be_false
134
+ end
135
+ end
136
+
137
+ describe "#force_mobile_by_session?" do
138
+ it "should be true if the force_mobile is enabled in the session" do
139
+ subject.stub(:session).and_return({mobylette_override: :force_mobile})
140
+ subject.send(:force_mobile_by_session?).should be_true
141
+ end
142
+
143
+ it "should be false if the force_mobile is not enabled in the session" do
144
+ subject.stub(:session).and_return({})
145
+ subject.send(:force_mobile_by_session?).should be_false
146
+ end
147
+ end
148
+
149
+ describe "#respond_as_mobile?" do
150
+ context "with impediments" do
151
+
152
+ before(:each) do
153
+ subject.stub(:stop_processing_because_xhr?).and_return(false)
154
+ subject.stub(:stop_processing_because_param?).and_return(false)
155
+ subject.stub(:force_mobile_by_session?).and_return(true)
156
+ subject.stub(:is_mobile_request?).and_return(true)
157
+ subject.stub(:params).and_return({format: 'mobile'})
158
+ end
159
+
160
+ it "should return false if stop_processing_because_xhr? is true" do
161
+ subject.stub(:stop_processing_because_xhr?).and_return(true)
162
+ subject.send(:respond_as_mobile?).should be_false
163
+ end
164
+
165
+ it "should return false if stop_processing_because_xhr? is true" do
166
+ subject.stub(:stop_processing_because_xhr?).and_return(false)
167
+ subject.send(:respond_as_mobile?).should be_true
168
+ end
169
+
170
+ it "should return false if stop_processing_because_param? is true" do
171
+ subject.stub(:stop_processing_because_param?).and_return(true)
172
+ subject.send(:respond_as_mobile?).should be_false
173
+ end
174
+
175
+ it "should return false if stop_processing_because_param? is false" do
176
+ subject.stub(:stop_processing_because_param?).and_return(false)
177
+ subject.send(:respond_as_mobile?).should be_true
178
+ end
179
+ end
180
+
181
+ context "with no impediments" do
182
+ before(:each) do
183
+ subject.stub(:stop_processing_because_xhr?).and_return(false)
184
+ subject.stub(:stop_processing_because_param?).and_return(false)
185
+ subject.stub(:force_mobile_by_session?).and_return(false)
186
+ subject.stub(:is_mobile_request?).and_return(false)
187
+ subject.stub(:params).and_return({})
188
+ end
189
+
190
+ it "should be true if force_mobile_by_session? is true" do
191
+ subject.stub(:force_mobile_by_session?).and_return(true)
192
+ subject.send(:respond_as_mobile?).should be_true
193
+ end
194
+
195
+ it "should be true if is_mobile_request? is true" do
196
+ subject.stub(:is_mobile_request?).and_return(true)
197
+ subject.send(:respond_as_mobile?).should be_true
198
+ end
199
+
200
+ it "should be true if params[:format] is mobile" do
201
+ subject.stub(:params).and_return({format: 'mobile'})
202
+ subject.send(:respond_as_mobile?).should be_true
203
+ end
204
+ end
205
+ end
206
+
207
+ describe "#handle_mobile" do
208
+ it "should be false when mobylette_override is set to ignore_mobile in the session" do
209
+ subject.stub(:session).and_return({mobylette_override: :ignore_mobile})
210
+ subject.send(:handle_mobile).should be_false
211
+ end
212
+
213
+ it "should be nil if this is not supposed to respond_as_mobile" do
214
+ subject.stub(:session).and_return({})
215
+ subject.stub(:respond_as_mobile?).and_return(false)
216
+ subject.send(:handle_mobile).should be_nil
217
+ end
218
+
219
+ context "respond_as_mobile? is true" do
220
+ before(:each) do
221
+ subject.stub(:session).and_return({})
222
+ subject.stub(:respond_as_mobile?).and_return(true)
223
+ @request = mock("request")
224
+ @format = mock("old_format")
225
+ @format.stub(:to_sym).and_return(:old_format)
226
+ @request.stub(:format).and_return(@format)
227
+ @request.stub(:format=).and_return { |new_value| @format = new_value }
228
+ @formats = []
229
+ @request.stub(:formats).and_return(@formats)
230
+ subject.stub(:request).and_return(@request)
231
+ subject.mobylette_options[:fall_back] = false
232
+ end
233
+
234
+ it "should set request.format to :mobile" do
235
+ subject.send(:handle_mobile)
236
+ @format.should == :mobile
237
+ end
238
+
239
+ it "should have a fall back to the original format when fall_back is nil" do
240
+ subject.mobylette_options[:fall_back] = nil
241
+ subject.send(:handle_mobile)
242
+ @formats.include?(Mime::Type.new :old_format).should be_true
243
+ end
244
+
245
+ it "should have a fall back to :html when fall_back is :html" do
246
+ subject.mobylette_options[:fall_back] = :html
247
+ subject.send(:handle_mobile)
248
+ @formats.include?(Mime::Type.new :html).should be_true
249
+ end
250
+ end
251
+ end
252
+ end
253
+ end
@@ -1,3 +1,6 @@
1
+ require 'simplecov'
2
+ SimpleCov.start 'rails'
3
+
1
4
  # Configure Rails Envinronment
2
5
  ENV["RAILS_ENV"] = "test"
3
6
 
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.6.0
4
+ version: '2.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: 2012-01-26 00:00:00.000000000 Z
12
+ date: 2012-04-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: actionpack
16
- requirement: &70285340546340 !ruby/object:Gem::Requirement
16
+ requirement: &70160468352820 !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: *70285340546340
24
+ version_requirements: *70160468352820
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70285340545920 !ruby/object:Gem::Requirement
27
+ requirement: &70160468351080 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,18 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70285340545920
35
+ version_requirements: *70160468351080
36
+ - !ruby/object:Gem::Dependency
37
+ name: rspec-rails
38
+ requirement: &70160468350280 !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
44
+ type: :development
45
+ prerelease: false
46
+ version_requirements: *70160468350280
36
47
  description: Adds the mobile format for rendering views for mobile device.
37
48
  email:
38
49
  - tscolari@gmail.com
@@ -41,25 +52,16 @@ extensions: []
41
52
  extra_rdoc_files: []
42
53
  files:
43
54
  - config/initializers/responders.rb
44
- - lib/mobylette/controllers/helpers.rb
45
- - lib/mobylette/controllers/respond_to_mobile_requests.rb
46
- - lib/mobylette/helmet/faker.rb
47
- - lib/mobylette/helmet/helpers.rb
48
55
  - lib/mobylette/helmet.rb
49
56
  - lib/mobylette/railtie.rb
57
+ - lib/mobylette/respond_to_mobile_requests.rb
50
58
  - lib/mobylette/version.rb
51
59
  - lib/mobylette.rb
52
60
  - lib/tasks/mobylette_tasks.rake
53
61
  - MIT-LICENSE
54
62
  - Rakefile
55
63
  - README.rdoc
56
- - spec/controllers/actioncontroller_base_spec.rb
57
- - spec/controllers/default_fallback_controller_spec.rb
58
- - spec/controllers/desktop_only_controller_spec.rb
59
- - spec/controllers/force_fallback_controller_spec.rb
60
- - spec/controllers/home_controller_spec.rb
61
- - spec/controllers/no_fallback_controller_spec.rb
62
- - spec/controllers/skip_xhr_request_controller_spec.rb
64
+ - spec/controllers/application_controller_spec.rb
63
65
  - spec/dummy/app/assets/javascripts/application.js
64
66
  - spec/dummy/app/assets/javascripts/application_mobile.js
65
67
  - spec/dummy/app/assets/javascripts/default_fallback.js
@@ -85,14 +87,6 @@ files:
85
87
  - spec/dummy/app/assets/stylesheets/testing.css
86
88
  - spec/dummy/app/assets/stylesheets/view_path.css
87
89
  - spec/dummy/app/controllers/application_controller.rb
88
- - spec/dummy/app/controllers/default_fallback_controller.rb
89
- - spec/dummy/app/controllers/desktop_only_controller.rb
90
- - spec/dummy/app/controllers/fallbacks_controller.rb
91
- - spec/dummy/app/controllers/force_fallback_controller.rb
92
- - spec/dummy/app/controllers/home_controller.rb
93
- - spec/dummy/app/controllers/no_fallback_controller.rb
94
- - spec/dummy/app/controllers/skip_xhr_request_controller.rb
95
- - spec/dummy/app/controllers/testing_controller.rb
96
90
  - spec/dummy/app/helpers/application_helper.rb
97
91
  - spec/dummy/app/helpers/default_fallback_helper.rb
98
92
  - spec/dummy/app/helpers/desktop_only_helper.rb
@@ -102,39 +96,8 @@ files:
102
96
  - spec/dummy/app/helpers/no_fallback_helper.rb
103
97
  - spec/dummy/app/helpers/skip_xhr_request_helper.rb
104
98
  - spec/dummy/app/helpers/testing_helper.rb
105
- - spec/dummy/app/views/default_fallback/index.html.erb
106
- - spec/dummy/app/views/default_fallback/index.js.erb
107
- - spec/dummy/app/views/default_fallback/index.mobile.erb
108
- - spec/dummy/app/views/default_fallback/test.html.erb
109
- - spec/dummy/app/views/default_fallback/test.js.erb
110
- - spec/dummy/app/views/fallbacks/index.html.erb
111
- - spec/dummy/app/views/fallbacks/index.js.erb
112
- - spec/dummy/app/views/fallbacks/index.mobile.erb
113
- - spec/dummy/app/views/fallbacks/index.xml.erb
114
- - spec/dummy/app/views/fallbacks/no_mobile.html.erb
115
- - spec/dummy/app/views/force_fallback/index.html.erb
116
- - spec/dummy/app/views/force_fallback/index.js.erb
117
- - spec/dummy/app/views/force_fallback/index.mobile.erb
118
- - spec/dummy/app/views/force_fallback/test.html.erb
119
- - spec/dummy/app/views/force_fallback/test.js.erb
120
- - spec/dummy/app/views/home/desktop.html.erb
121
- - spec/dummy/app/views/home/index.html.erb
122
- - spec/dummy/app/views/home/index.js.erb
123
- - spec/dummy/app/views/home/index.mobile.erb
124
- - spec/dummy/app/views/home/mobile.mobile.erb
125
- - spec/dummy/app/views/home/no_mobile_view.html.erb
126
- - spec/dummy/app/views/ignore_mobile_path/index.mobile.erb
127
99
  - spec/dummy/app/views/layouts/application.html.erb
128
100
  - spec/dummy/app/views/layouts/application.mobile.erb
129
- - spec/dummy/app/views/no_fallback/index.html.erb
130
- - spec/dummy/app/views/no_fallback/index.js.erb
131
- - spec/dummy/app/views/no_fallback/index.mobile.erb
132
- - spec/dummy/app/views/no_fallback/test.html.erb
133
- - spec/dummy/app/views/no_fallback/test.js.erb
134
- - spec/dummy/app/views/skip_xhr_request/index.html.erb
135
- - spec/dummy/app/views/skip_xhr_request/index.js.erb
136
- - spec/dummy/app/views/skip_xhr_request/index.mobile.erb
137
- - spec/dummy/app/views/view_path/index.mobile.erb
138
101
  - spec/dummy/config/application.rb
139
102
  - spec/dummy/config/boot.rb
140
103
  - spec/dummy/config/database.yml
@@ -152,6 +115,7 @@ files:
152
115
  - spec/dummy/config/routes.rb
153
116
  - spec/dummy/config.ru
154
117
  - spec/dummy/db/schema.rb
118
+ - spec/dummy/log/development.log
155
119
  - spec/dummy/log/test.log
156
120
  - spec/dummy/public/404.html
157
121
  - spec/dummy/public/422.html
@@ -159,13 +123,23 @@ files:
159
123
  - spec/dummy/public/favicon.ico
160
124
  - spec/dummy/Rakefile
161
125
  - spec/dummy/script/rails
162
- - spec/helpers/mobylette_helpers_spec.rb
126
+ - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
127
+ - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
128
+ - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
129
+ - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
130
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
131
+ - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
132
+ - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
133
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
163
134
  - spec/integration/navigation_spec.rb
135
+ - spec/lib/respond_to_mobile_requests_spec.rb
164
136
  - spec/mobylette_spec.rb
165
137
  - spec/spec_helper.rb
166
138
  homepage: https://github.com/tscolari/mobylette
167
139
  licenses: []
168
- post_install_message:
140
+ post_install_message: ! " **************************\n Mobylette gem configuration
141
+ changed.\n Use include Mobylette::RespondToMobileRequests instead of respond_to_mobile_requests
142
+ now.\n Please refer to the readme for more information.\n **************************\n"
169
143
  rdoc_options: []
170
144
  require_paths:
171
145
  - lib
@@ -177,7 +151,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
177
151
  version: '0'
178
152
  segments:
179
153
  - 0
180
- hash: 1758669735780302293
154
+ hash: -871491208497479336
181
155
  required_rubygems_version: !ruby/object:Gem::Requirement
182
156
  none: false
183
157
  requirements:
@@ -186,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
186
160
  version: '0'
187
161
  segments:
188
162
  - 0
189
- hash: 1758669735780302293
163
+ hash: -871491208497479336
190
164
  requirements: []
191
165
  rubyforge_project:
192
166
  rubygems_version: 1.8.10
@@ -194,13 +168,7 @@ signing_key:
194
168
  specification_version: 3
195
169
  summary: Mobile request handling for your Rails app.
196
170
  test_files:
197
- - spec/controllers/actioncontroller_base_spec.rb
198
- - spec/controllers/default_fallback_controller_spec.rb
199
- - spec/controllers/desktop_only_controller_spec.rb
200
- - spec/controllers/force_fallback_controller_spec.rb
201
- - spec/controllers/home_controller_spec.rb
202
- - spec/controllers/no_fallback_controller_spec.rb
203
- - spec/controllers/skip_xhr_request_controller_spec.rb
171
+ - spec/controllers/application_controller_spec.rb
204
172
  - spec/dummy/app/assets/javascripts/application.js
205
173
  - spec/dummy/app/assets/javascripts/application_mobile.js
206
174
  - spec/dummy/app/assets/javascripts/default_fallback.js
@@ -226,14 +194,6 @@ test_files:
226
194
  - spec/dummy/app/assets/stylesheets/testing.css
227
195
  - spec/dummy/app/assets/stylesheets/view_path.css
228
196
  - spec/dummy/app/controllers/application_controller.rb
229
- - spec/dummy/app/controllers/default_fallback_controller.rb
230
- - spec/dummy/app/controllers/desktop_only_controller.rb
231
- - spec/dummy/app/controllers/fallbacks_controller.rb
232
- - spec/dummy/app/controllers/force_fallback_controller.rb
233
- - spec/dummy/app/controllers/home_controller.rb
234
- - spec/dummy/app/controllers/no_fallback_controller.rb
235
- - spec/dummy/app/controllers/skip_xhr_request_controller.rb
236
- - spec/dummy/app/controllers/testing_controller.rb
237
197
  - spec/dummy/app/helpers/application_helper.rb
238
198
  - spec/dummy/app/helpers/default_fallback_helper.rb
239
199
  - spec/dummy/app/helpers/desktop_only_helper.rb
@@ -243,39 +203,8 @@ test_files:
243
203
  - spec/dummy/app/helpers/no_fallback_helper.rb
244
204
  - spec/dummy/app/helpers/skip_xhr_request_helper.rb
245
205
  - spec/dummy/app/helpers/testing_helper.rb
246
- - spec/dummy/app/views/default_fallback/index.html.erb
247
- - spec/dummy/app/views/default_fallback/index.js.erb
248
- - spec/dummy/app/views/default_fallback/index.mobile.erb
249
- - spec/dummy/app/views/default_fallback/test.html.erb
250
- - spec/dummy/app/views/default_fallback/test.js.erb
251
- - spec/dummy/app/views/fallbacks/index.html.erb
252
- - spec/dummy/app/views/fallbacks/index.js.erb
253
- - spec/dummy/app/views/fallbacks/index.mobile.erb
254
- - spec/dummy/app/views/fallbacks/index.xml.erb
255
- - spec/dummy/app/views/fallbacks/no_mobile.html.erb
256
- - spec/dummy/app/views/force_fallback/index.html.erb
257
- - spec/dummy/app/views/force_fallback/index.js.erb
258
- - spec/dummy/app/views/force_fallback/index.mobile.erb
259
- - spec/dummy/app/views/force_fallback/test.html.erb
260
- - spec/dummy/app/views/force_fallback/test.js.erb
261
- - spec/dummy/app/views/home/desktop.html.erb
262
- - spec/dummy/app/views/home/index.html.erb
263
- - spec/dummy/app/views/home/index.js.erb
264
- - spec/dummy/app/views/home/index.mobile.erb
265
- - spec/dummy/app/views/home/mobile.mobile.erb
266
- - spec/dummy/app/views/home/no_mobile_view.html.erb
267
- - spec/dummy/app/views/ignore_mobile_path/index.mobile.erb
268
206
  - spec/dummy/app/views/layouts/application.html.erb
269
207
  - spec/dummy/app/views/layouts/application.mobile.erb
270
- - spec/dummy/app/views/no_fallback/index.html.erb
271
- - spec/dummy/app/views/no_fallback/index.js.erb
272
- - spec/dummy/app/views/no_fallback/index.mobile.erb
273
- - spec/dummy/app/views/no_fallback/test.html.erb
274
- - spec/dummy/app/views/no_fallback/test.js.erb
275
- - spec/dummy/app/views/skip_xhr_request/index.html.erb
276
- - spec/dummy/app/views/skip_xhr_request/index.js.erb
277
- - spec/dummy/app/views/skip_xhr_request/index.mobile.erb
278
- - spec/dummy/app/views/view_path/index.mobile.erb
279
208
  - spec/dummy/config/application.rb
280
209
  - spec/dummy/config/boot.rb
281
210
  - spec/dummy/config/database.yml
@@ -293,6 +222,7 @@ test_files:
293
222
  - spec/dummy/config/routes.rb
294
223
  - spec/dummy/config.ru
295
224
  - spec/dummy/db/schema.rb
225
+ - spec/dummy/log/development.log
296
226
  - spec/dummy/log/test.log
297
227
  - spec/dummy/public/404.html
298
228
  - spec/dummy/public/422.html
@@ -300,7 +230,15 @@ test_files:
300
230
  - spec/dummy/public/favicon.ico
301
231
  - spec/dummy/Rakefile
302
232
  - spec/dummy/script/rails
303
- - spec/helpers/mobylette_helpers_spec.rb
233
+ - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
234
+ - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
235
+ - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
236
+ - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
237
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
238
+ - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
239
+ - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
240
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
304
241
  - spec/integration/navigation_spec.rb
242
+ - spec/lib/respond_to_mobile_requests_spec.rb
305
243
  - spec/mobylette_spec.rb
306
244
  - spec/spec_helper.rb