mobylette 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,8 +1,8 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe "Navigation" do
4
- include Capybara
5
-
4
+ #include Capybara
5
+
6
6
  it "should be a valid app" do
7
7
  ::Rails.application.should be_a(Dummy::Application)
8
8
  end
data/spec/spec_helper.rb CHANGED
@@ -12,9 +12,9 @@ ActionMailer::Base.default_url_options[:host] = "test.com"
12
12
  Rails.backtrace_cleaner.remove_silencers!
13
13
 
14
14
  # Configure capybara for integration testing
15
- require "capybara/rails"
16
- Capybara.default_driver = :rack_test
17
- Capybara.default_selector = :css
15
+ # require "capybara/rails"
16
+ # Capybara.default_driver = :rack_test
17
+ # Capybara.default_selector = :css
18
18
 
19
19
  # Run any available migration
20
20
  #ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
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.1
4
+ version: 1.4.2
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-30 00:00:00.000000000Z
12
+ date: 2011-11-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &2151839300 !ruby/object:Gem::Requirement
16
+ requirement: &70184431482100 !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: *2151839300
24
+ version_requirements: *70184431482100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &2151837760 !ruby/object:Gem::Requirement
27
+ requirement: &70184431481600 !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: *2151837760
35
+ version_requirements: *70184431481600
36
36
  description: Adds the mobile format for rendering views for mobile device.
37
37
  email:
38
38
  - tscolari@gmail.com
@@ -40,6 +40,7 @@ executables: []
40
40
  extensions: []
41
41
  extra_rdoc_files: []
42
42
  files:
43
+ - config/initializers/responders.rb
43
44
  - lib/mobylette/controllers/helpers.rb
44
45
  - lib/mobylette/controllers/respond_to_mobile_requests.rb
45
46
  - lib/mobylette/helmet/faker.rb
@@ -151,7 +152,6 @@ files:
151
152
  - spec/dummy/config/routes.rb
152
153
  - spec/dummy/config.ru
153
154
  - spec/dummy/db/schema.rb
154
- - spec/dummy/log/development.log
155
155
  - spec/dummy/log/test.log
156
156
  - spec/dummy/public/404.html
157
157
  - spec/dummy/public/422.html
@@ -159,14 +159,6 @@ files:
159
159
  - spec/dummy/public/favicon.ico
160
160
  - spec/dummy/Rakefile
161
161
  - spec/dummy/script/rails
162
- - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
163
- - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
164
- - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
165
- - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
166
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
167
- - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
168
- - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
169
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
170
162
  - spec/helpers/mobylette_helpers_spec.rb
171
163
  - spec/integration/navigation_spec.rb
172
164
  - spec/mobylette_spec.rb
@@ -185,7 +177,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
177
  version: '0'
186
178
  segments:
187
179
  - 0
188
- hash: -3608994266748393928
180
+ hash: 1417650498237353037
189
181
  required_rubygems_version: !ruby/object:Gem::Requirement
190
182
  none: false
191
183
  requirements:
@@ -194,10 +186,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
186
  version: '0'
195
187
  segments:
196
188
  - 0
197
- hash: -3608994266748393928
189
+ hash: 1417650498237353037
198
190
  requirements: []
199
191
  rubyforge_project:
200
- rubygems_version: 1.8.6
192
+ rubygems_version: 1.8.10
201
193
  signing_key:
202
194
  specification_version: 3
203
195
  summary: Mobile request handling for your Rails app.
@@ -301,7 +293,6 @@ test_files:
301
293
  - spec/dummy/config/routes.rb
302
294
  - spec/dummy/config.ru
303
295
  - spec/dummy/db/schema.rb
304
- - spec/dummy/log/development.log
305
296
  - spec/dummy/log/test.log
306
297
  - spec/dummy/public/404.html
307
298
  - spec/dummy/public/422.html
@@ -309,14 +300,6 @@ test_files:
309
300
  - spec/dummy/public/favicon.ico
310
301
  - spec/dummy/Rakefile
311
302
  - spec/dummy/script/rails
312
- - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
313
- - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
314
- - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
315
- - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
316
- - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
317
- - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
318
- - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
319
- - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
320
303
  - spec/helpers/mobylette_helpers_spec.rb
321
304
  - spec/integration/navigation_spec.rb
322
305
  - spec/mobylette_spec.rb
@@ -1,94 +0,0 @@
1
-
2
-
3
- Started GET "/fallbacks" for 127.0.0.1 at 2011-09-14 20:58:05 -0300
4
-
5
- ActionController::RoutingError (No route matches [GET] "/fallbacks"):
6
-
7
-
8
- Rendered /Users/tscolari/.rvm/gems/ruby-1.9.2-p290@mobylette/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/routing_error.erb within rescues/layout (18.5ms)
9
-
10
-
11
- Started GET "/fallbacks/index" for 127.0.0.1 at 2011-09-14 20:58:08 -0300
12
- Processing by FallbacksController#index as HTML
13
- Rendered fallbacks/index.html.erb within layouts/application (0.4ms)
14
- Compiled application.css (9ms) (pid 3007)
15
- Compiled application.js (2ms) (pid 3007)
16
- Completed 200 OK in 45ms (Views: 44.8ms)
17
-
18
-
19
- Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2011-09-14 20:58:08 -0300
20
- Served asset /application.css - 200 OK (37ms)
21
-
22
-
23
- Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2011-09-14 20:58:08 -0300
24
- Served asset /application.js - 200 OK (3ms)
25
-
26
-
27
- Started GET "/fallbacks/index.mobile" for 127.0.0.1 at 2011-09-14 20:58:16 -0300
28
- Processing by FallbacksController#index as MOBILE
29
- Rendered fallbacks/index.mobile.erb within layouts/application (0.3ms)
30
- Completed 200 OK in 7ms (Views: 6.2ms)
31
-
32
-
33
- Started GET "/force_fallback/index.mobile" for 127.0.0.1 at 2011-09-14 20:58:36 -0300
34
- Processing by ForceFallbackController#index as MOBILE
35
- Rendered force_fallback/index.mobile.erb within layouts/application (0.4ms)
36
- Completed 200 OK in 6ms (Views: 5.9ms)
37
-
38
-
39
- Started GET "/default_fallback/index.mobile" for 127.0.0.1 at 2011-09-14 20:58:51 -0300
40
- Processing by DefaultFallbackController#index as MOBILE
41
- Rendered default_fallback/index.mobile.erb within layouts/application (0.3ms)
42
- Completed 200 OK in 7ms (Views: 6.1ms)
43
-
44
-
45
- Started GET "/default_fallback/test.mobile" for 127.0.0.1 at 2011-09-14 20:59:49 -0300
46
- Processing by DefaultFallbackController#test as MOBILE
47
- Completed 500 Internal Server Error in 37ms
48
-
49
- ActionView::MissingTemplate (Missing template default_fallback/test, application/test with {:handlers=>[:erb, :builder], :formats=>[:mobile], :locale=>[:en, :en]}. Searched in:
50
- * "/Users/tscolari/Projetos/mobylette/spec/dummy/app/views"
51
- ):
52
-
53
-
54
- Rendered /Users/tscolari/.rvm/gems/ruby-1.9.2-p290@mobylette/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.4ms)
55
-
56
-
57
- Started GET "/force_fallback/test.mobile" for 127.0.0.1 at 2011-09-14 21:00:14 -0300
58
- Processing by ForceFallbackController#test as MOBILE
59
- Completed 500 Internal Server Error in 4ms
60
-
61
- ActionView::MissingTemplate (Missing template force_fallback/test, application/test with {:handlers=>[:erb, :builder], :formats=>[:mobile], :locale=>[:en, :en]}. Searched in:
62
- * "/Users/tscolari/Projetos/mobylette/spec/dummy/app/views"
63
- ):
64
-
65
-
66
- Rendered /Users/tscolari/.rvm/gems/ruby-1.9.2-p290@mobylette/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/missing_template.erb within rescues/layout (0.5ms)
67
-
68
-
69
- Started GET "/force_fallback/test" for 192.168.0.196 at 2011-09-14 21:02:37 -0300
70
- Processing by ForceFallbackController#test as HTML
71
- Rendered force_fallback/test.js.erb (18.2ms)
72
- Completed 200 OK in 138ms (Views: 137.3ms)
73
-
74
-
75
- Started GET "/force_fallback/index" for 192.168.0.196 at 2011-09-14 21:03:18 -0300
76
- Processing by ForceFallbackController#index as HTML
77
- Rendered force_fallback/index.mobile.erb within layouts/application (0.3ms)
78
- Compiled application_mobile.css (15ms) (pid 3110)
79
- Compiled application_mobile.js (0ms) (pid 3110)
80
- Completed 200 OK in 34ms (Views: 33.8ms)
81
-
82
-
83
- Started GET "/assets/application_mobile.css?body=1" for 192.168.0.196 at 2011-09-14 21:03:18 -0300
84
- Served asset /application_mobile.css - 200 OK (3ms)
85
-
86
-
87
- Started GET "/assets/application_mobile.js?body=1" for 192.168.0.196 at 2011-09-14 21:03:18 -0300
88
- Served asset /application_mobile.js - 200 OK (2ms)
89
-
90
-
91
- Started GET "/force_fallback/test" for 192.168.0.196 at 2011-09-14 21:11:35 -0300
92
- Processing by ForceFallbackController#test as HTML
93
- Rendered force_fallback/test.js.erb (20.7ms)
94
- Completed 200 OK in 38354ms (Views: 158.2ms)