mobylette 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (120) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.rdoc +83 -0
  3. data/Rakefile +37 -0
  4. data/lib/mobylette.rb +12 -0
  5. data/lib/mobylette/controllers/helpers.rb +52 -0
  6. data/lib/mobylette/controllers/respond_to_mobile_requests.rb +86 -0
  7. data/lib/mobylette/helmet.rb +41 -0
  8. data/lib/mobylette/helmet/faker.rb +19 -0
  9. data/lib/mobylette/helmet/helpers.rb +34 -0
  10. data/lib/mobylette/railtie.rb +10 -0
  11. data/lib/mobylette/version.rb +3 -0
  12. data/lib/tasks/mobylette_tasks.rake +4 -0
  13. data/spec/controllers/actioncontroller_base_spec.rb +16 -0
  14. data/spec/controllers/default_fallback_controller_spec.rb +36 -0
  15. data/spec/controllers/desktop_only_controller_spec.rb +17 -0
  16. data/spec/controllers/force_fallback_controller_spec.rb +41 -0
  17. data/spec/controllers/home_controller_spec.rb +89 -0
  18. data/spec/controllers/no_fallback_controller_spec.rb +56 -0
  19. data/spec/dummy/Rakefile +7 -0
  20. data/spec/dummy/app/assets/javascripts/application.js +9 -0
  21. data/spec/dummy/app/assets/javascripts/application_mobile.js +9 -0
  22. data/spec/dummy/app/assets/javascripts/default_fallback.js +2 -0
  23. data/spec/dummy/app/assets/javascripts/desktop_only.js +2 -0
  24. data/spec/dummy/app/assets/javascripts/fallbacks.js +2 -0
  25. data/spec/dummy/app/assets/javascripts/force_fallback.js +2 -0
  26. data/spec/dummy/app/assets/javascripts/home.js +2 -0
  27. data/spec/dummy/app/assets/javascripts/no_fallback.js +2 -0
  28. data/spec/dummy/app/assets/javascripts/testing.js +2 -0
  29. data/spec/dummy/app/assets/stylesheets/application.css +11 -0
  30. data/spec/dummy/app/assets/stylesheets/application_mobile.css +11 -0
  31. data/spec/dummy/app/assets/stylesheets/default_fallback.css +4 -0
  32. data/spec/dummy/app/assets/stylesheets/desktop_only.css +4 -0
  33. data/spec/dummy/app/assets/stylesheets/fallbacks.css +4 -0
  34. data/spec/dummy/app/assets/stylesheets/force_fallback.css +4 -0
  35. data/spec/dummy/app/assets/stylesheets/home.css +4 -0
  36. data/spec/dummy/app/assets/stylesheets/no_fallback.css +4 -0
  37. data/spec/dummy/app/assets/stylesheets/testing.css +4 -0
  38. data/spec/dummy/app/controllers/application_controller.rb +4 -0
  39. data/spec/dummy/app/controllers/default_fallback_controller.rb +13 -0
  40. data/spec/dummy/app/controllers/desktop_only_controller.rb +2 -0
  41. data/spec/dummy/app/controllers/fallbacks_controller.rb +7 -0
  42. data/spec/dummy/app/controllers/force_fallback_controller.rb +13 -0
  43. data/spec/dummy/app/controllers/home_controller.rb +19 -0
  44. data/spec/dummy/app/controllers/no_fallback_controller.rb +13 -0
  45. data/spec/dummy/app/controllers/testing_controller.rb +9 -0
  46. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  47. data/spec/dummy/app/helpers/default_fallback_helper.rb +2 -0
  48. data/spec/dummy/app/helpers/desktop_only_helper.rb +2 -0
  49. data/spec/dummy/app/helpers/fallbacks_helper.rb +2 -0
  50. data/spec/dummy/app/helpers/force_fallback_helper.rb +2 -0
  51. data/spec/dummy/app/helpers/home_helper.rb +2 -0
  52. data/spec/dummy/app/helpers/no_fallback_helper.rb +2 -0
  53. data/spec/dummy/app/helpers/testing_helper.rb +2 -0
  54. data/spec/dummy/app/views/default_fallback/index.html.erb +1 -0
  55. data/spec/dummy/app/views/default_fallback/index.js.erb +1 -0
  56. data/spec/dummy/app/views/default_fallback/index.mobile.erb +1 -0
  57. data/spec/dummy/app/views/default_fallback/test.html.erb +1 -0
  58. data/spec/dummy/app/views/default_fallback/test.js.erb +1 -0
  59. data/spec/dummy/app/views/fallbacks/index.html.erb +2 -0
  60. data/spec/dummy/app/views/fallbacks/index.js.erb +1 -0
  61. data/spec/dummy/app/views/fallbacks/index.mobile.erb +0 -0
  62. data/spec/dummy/app/views/fallbacks/index.xml.erb +0 -0
  63. data/spec/dummy/app/views/fallbacks/no_mobile.html.erb +0 -0
  64. data/spec/dummy/app/views/force_fallback/index.html.erb +1 -0
  65. data/spec/dummy/app/views/force_fallback/index.js.erb +1 -0
  66. data/spec/dummy/app/views/force_fallback/index.mobile.erb +1 -0
  67. data/spec/dummy/app/views/force_fallback/test.html.erb +1 -0
  68. data/spec/dummy/app/views/force_fallback/test.js.erb +1 -0
  69. data/spec/dummy/app/views/home/desktop.html.erb +1 -0
  70. data/spec/dummy/app/views/home/index.html.erb +7 -0
  71. data/spec/dummy/app/views/home/index.mobile.erb +7 -0
  72. data/spec/dummy/app/views/home/mobile.mobile.erb +1 -0
  73. data/spec/dummy/app/views/home/no_mobile_view.html.erb +1 -0
  74. data/spec/dummy/app/views/layouts/application.html.erb +16 -0
  75. data/spec/dummy/app/views/layouts/application.mobile.erb +16 -0
  76. data/spec/dummy/app/views/no_fallback/index.html.erb +1 -0
  77. data/spec/dummy/app/views/no_fallback/index.js.erb +1 -0
  78. data/spec/dummy/app/views/no_fallback/index.mobile.erb +1 -0
  79. data/spec/dummy/app/views/no_fallback/test.html.erb +1 -0
  80. data/spec/dummy/app/views/no_fallback/test.js.erb +1 -0
  81. data/spec/dummy/config.ru +4 -0
  82. data/spec/dummy/config/application.rb +46 -0
  83. data/spec/dummy/config/boot.rb +10 -0
  84. data/spec/dummy/config/database.yml +25 -0
  85. data/spec/dummy/config/environment.rb +5 -0
  86. data/spec/dummy/config/environments/development.rb +33 -0
  87. data/spec/dummy/config/environments/production.rb +51 -0
  88. data/spec/dummy/config/environments/test.rb +42 -0
  89. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  90. data/spec/dummy/config/initializers/inflections.rb +10 -0
  91. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  92. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  93. data/spec/dummy/config/initializers/session_store.rb +8 -0
  94. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  95. data/spec/dummy/config/locales/en.yml +5 -0
  96. data/spec/dummy/config/routes.rb +22 -0
  97. data/spec/dummy/db/development.sqlite3 +0 -0
  98. data/spec/dummy/db/schema.rb +16 -0
  99. data/spec/dummy/db/test.sqlite3 +0 -0
  100. data/spec/dummy/log/development.log +32 -0
  101. data/spec/dummy/log/test.log +1537 -0
  102. data/spec/dummy/public/404.html +26 -0
  103. data/spec/dummy/public/422.html +26 -0
  104. data/spec/dummy/public/500.html +26 -0
  105. data/spec/dummy/public/favicon.ico +0 -0
  106. data/spec/dummy/script/rails +6 -0
  107. data/spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da +0 -0
  108. data/spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9 +0 -0
  109. data/spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d +0 -0
  110. data/spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62 +0 -0
  111. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  112. data/spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  113. data/spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  114. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  115. data/spec/dummy/tmp/pids/server.pid +1 -0
  116. data/spec/helpers/mobylette_helpers_spec.rb +59 -0
  117. data/spec/integration/navigation_spec.rb +9 -0
  118. data/spec/mobylette_spec.rb +7 -0
  119. data/spec/spec_helper.rb +35 -0
  120. metadata +320 -0
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1 @@
1
+ 16800
@@ -0,0 +1,59 @@
1
+ require 'spec_helper'
2
+
3
+ describe Mobylette::Controllers::Helpers do
4
+ include Sprockets::Helpers::RailsHelper
5
+ include Mobylette::Helmet::Helpers
6
+
7
+ describe "mobylette_stylesheet_link_tag" do
8
+ it "should not change the files names when the request is not mobile" do
9
+ reset_test_request_agent
10
+ helper.mobylette_stylesheet_link_tag("application").should == stylesheet_link_tag("application")
11
+ helper.mobylette_stylesheet_link_tag("application.css").should == stylesheet_link_tag("application.css")
12
+ helper.mobylette_stylesheet_link_tag("application", "home").should == stylesheet_link_tag("application", "home")
13
+ helper.mobylette_stylesheet_link_tag("application.css", "home").should == stylesheet_link_tag("application.css", "home")
14
+ end
15
+
16
+ it "should add the '_mobile' sulfix to the files names when the request is mobile" do
17
+ force_mobile_request_agent
18
+ helper.mobylette_stylesheet_link_tag("application").should == stylesheet_link_tag("application_mobile")
19
+ helper.mobylette_stylesheet_link_tag("application.css").should == stylesheet_link_tag("application_mobile.css")
20
+ helper.mobylette_stylesheet_link_tag("application", "home").should == stylesheet_link_tag("application_mobile", "home_mobile")
21
+ helper.mobylette_stylesheet_link_tag("application.css", "home").should == stylesheet_link_tag("application_mobile.css", "home_mobile")
22
+ end
23
+
24
+ it "should add the '_mobile' sulfix to the files names when the request is mobile" do
25
+ force_mobile_request_agent
26
+ helper.mobylette_stylesheet_link_tag("application", :id => "myid").should == stylesheet_link_tag("application_mobile", :id => "myid")
27
+ helper.mobylette_stylesheet_link_tag("application.css", :id => "myid").should == stylesheet_link_tag("application_mobile.css", :id => "myid")
28
+ helper.mobylette_stylesheet_link_tag("application", "home", :id => "myid").should == stylesheet_link_tag("application_mobile", "home_mobile", :id => "myid")
29
+ helper.mobylette_stylesheet_link_tag("application.css", "home", :id => "myid").should == stylesheet_link_tag("application_mobile.css", "home_mobile", :id => "myid")
30
+ end
31
+ end
32
+
33
+ describe "mobylette_javascript_include_tag" do
34
+ it "should not change the files names when the request is not mobile" do
35
+ reset_test_request_agent
36
+ helper.mobylette_javascript_include_tag("application").should == javascript_include_tag("application")
37
+ helper.mobylette_javascript_include_tag("application.js").should == javascript_include_tag("application.js")
38
+ helper.mobylette_javascript_include_tag("application", "home").should == javascript_include_tag("application", "home")
39
+ helper.mobylette_javascript_include_tag("application.js", "home").should == javascript_include_tag("application.js", "home")
40
+ end
41
+
42
+ it "should add the '_mobile' sulfix to the files names when the request is mobile" do
43
+ force_mobile_request_agent
44
+ helper.mobylette_javascript_include_tag("application").should == javascript_include_tag("application_mobile")
45
+ helper.mobylette_javascript_include_tag("application.js").should == javascript_include_tag("application_mobile.js")
46
+ helper.mobylette_javascript_include_tag("application", "home").should == javascript_include_tag("application_mobile", "home_mobile")
47
+ helper.mobylette_javascript_include_tag("application.js", "home").should == javascript_include_tag("application_mobile.js", "home_mobile")
48
+ end
49
+
50
+ it "should add the '_mobile' sulfix to the files names when the request is mobile with options" do
51
+ force_mobile_request_agent
52
+ helper.mobylette_javascript_include_tag("application", :id => "myid").should == javascript_include_tag("application_mobile", :id => "myid")
53
+ helper.mobylette_javascript_include_tag("application.js", :id => "myid").should == javascript_include_tag("application_mobile.js", :id => "myid")
54
+ helper.mobylette_javascript_include_tag("application", "home", :id => "myid").should == javascript_include_tag("application_mobile", "home_mobile", :id => "myid")
55
+ helper.mobylette_javascript_include_tag("application.js", "home", :id => "myid").should == javascript_include_tag("application_mobile.js", "home_mobile", :id => "myid")
56
+ end
57
+ end
58
+
59
+ end
@@ -0,0 +1,9 @@
1
+ require 'spec_helper'
2
+
3
+ describe "Navigation" do
4
+ include Capybara
5
+
6
+ it "should be a valid app" do
7
+ ::Rails.application.should be_a(Dummy::Application)
8
+ end
9
+ end
@@ -0,0 +1,7 @@
1
+ require 'spec_helper'
2
+
3
+ describe Mobylette do
4
+ it "should be valid" do
5
+ Mobylette.should be_a(Module)
6
+ end
7
+ end
@@ -0,0 +1,35 @@
1
+ # Configure Rails Envinronment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+ require "rspec/rails"
7
+
8
+ ActionMailer::Base.delivery_method = :test
9
+ ActionMailer::Base.perform_deliveries = true
10
+ ActionMailer::Base.default_url_options[:host] = "test.com"
11
+
12
+ Rails.backtrace_cleaner.remove_silencers!
13
+
14
+ # Configure capybara for integration testing
15
+ require "capybara/rails"
16
+ Capybara.default_driver = :rack_test
17
+ Capybara.default_selector = :css
18
+
19
+ # Run any available migration
20
+ #ActiveRecord::Migrator.migrate File.expand_path("../dummy/db/migrate/", __FILE__)
21
+
22
+ # Load support files
23
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
24
+
25
+ RSpec.configure do |config|
26
+ # Remove this line if you don't want RSpec's should and should_not
27
+ # methods or matchers
28
+ require 'rspec/expectations'
29
+ config.include RSpec::Matchers
30
+
31
+ config.include Mobylette::Helmet, :type => :controller
32
+
33
+ # == Mock Framework
34
+ config.mock_with :rspec
35
+ end
metadata ADDED
@@ -0,0 +1,320 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mobylette
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
11
+ platform: ruby
12
+ authors:
13
+ - Tiago Scolari
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-09-03 00:00:00 -03:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ requirement: &id001 !ruby/object:Gem::Requirement
23
+ none: false
24
+ requirements:
25
+ - - ~>
26
+ - !ruby/object:Gem::Version
27
+ hash: 5
28
+ segments:
29
+ - 3
30
+ - 1
31
+ version: "3.1"
32
+ version_requirements: *id001
33
+ name: rails
34
+ prerelease: false
35
+ type: :runtime
36
+ - !ruby/object:Gem::Dependency
37
+ requirement: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ version_requirements: *id002
47
+ name: rspec
48
+ prerelease: false
49
+ type: :development
50
+ description: Adds the mobile format for rendering views for mobile device.
51
+ email:
52
+ - tscolari@gmail.com
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ extra_rdoc_files: []
58
+
59
+ files:
60
+ - lib/mobylette/controllers/helpers.rb
61
+ - lib/mobylette/controllers/respond_to_mobile_requests.rb
62
+ - lib/mobylette/helmet/faker.rb
63
+ - lib/mobylette/helmet/helpers.rb
64
+ - lib/mobylette/helmet.rb
65
+ - lib/mobylette/railtie.rb
66
+ - lib/mobylette/version.rb
67
+ - lib/mobylette.rb
68
+ - lib/tasks/mobylette_tasks.rake
69
+ - MIT-LICENSE
70
+ - Rakefile
71
+ - README.rdoc
72
+ - spec/controllers/actioncontroller_base_spec.rb
73
+ - spec/controllers/default_fallback_controller_spec.rb
74
+ - spec/controllers/desktop_only_controller_spec.rb
75
+ - spec/controllers/force_fallback_controller_spec.rb
76
+ - spec/controllers/home_controller_spec.rb
77
+ - spec/controllers/no_fallback_controller_spec.rb
78
+ - spec/dummy/app/assets/javascripts/application.js
79
+ - spec/dummy/app/assets/javascripts/application_mobile.js
80
+ - spec/dummy/app/assets/javascripts/default_fallback.js
81
+ - spec/dummy/app/assets/javascripts/desktop_only.js
82
+ - spec/dummy/app/assets/javascripts/fallbacks.js
83
+ - spec/dummy/app/assets/javascripts/force_fallback.js
84
+ - spec/dummy/app/assets/javascripts/home.js
85
+ - spec/dummy/app/assets/javascripts/no_fallback.js
86
+ - spec/dummy/app/assets/javascripts/testing.js
87
+ - spec/dummy/app/assets/stylesheets/application.css
88
+ - spec/dummy/app/assets/stylesheets/application_mobile.css
89
+ - spec/dummy/app/assets/stylesheets/default_fallback.css
90
+ - spec/dummy/app/assets/stylesheets/desktop_only.css
91
+ - spec/dummy/app/assets/stylesheets/fallbacks.css
92
+ - spec/dummy/app/assets/stylesheets/force_fallback.css
93
+ - spec/dummy/app/assets/stylesheets/home.css
94
+ - spec/dummy/app/assets/stylesheets/no_fallback.css
95
+ - spec/dummy/app/assets/stylesheets/testing.css
96
+ - spec/dummy/app/controllers/application_controller.rb
97
+ - spec/dummy/app/controllers/default_fallback_controller.rb
98
+ - spec/dummy/app/controllers/desktop_only_controller.rb
99
+ - spec/dummy/app/controllers/fallbacks_controller.rb
100
+ - spec/dummy/app/controllers/force_fallback_controller.rb
101
+ - spec/dummy/app/controllers/home_controller.rb
102
+ - spec/dummy/app/controllers/no_fallback_controller.rb
103
+ - spec/dummy/app/controllers/testing_controller.rb
104
+ - spec/dummy/app/helpers/application_helper.rb
105
+ - spec/dummy/app/helpers/default_fallback_helper.rb
106
+ - spec/dummy/app/helpers/desktop_only_helper.rb
107
+ - spec/dummy/app/helpers/fallbacks_helper.rb
108
+ - spec/dummy/app/helpers/force_fallback_helper.rb
109
+ - spec/dummy/app/helpers/home_helper.rb
110
+ - spec/dummy/app/helpers/no_fallback_helper.rb
111
+ - spec/dummy/app/helpers/testing_helper.rb
112
+ - spec/dummy/app/views/default_fallback/index.html.erb
113
+ - spec/dummy/app/views/default_fallback/index.js.erb
114
+ - spec/dummy/app/views/default_fallback/index.mobile.erb
115
+ - spec/dummy/app/views/default_fallback/test.html.erb
116
+ - spec/dummy/app/views/default_fallback/test.js.erb
117
+ - spec/dummy/app/views/fallbacks/index.html.erb
118
+ - spec/dummy/app/views/fallbacks/index.js.erb
119
+ - spec/dummy/app/views/fallbacks/index.mobile.erb
120
+ - spec/dummy/app/views/fallbacks/index.xml.erb
121
+ - spec/dummy/app/views/fallbacks/no_mobile.html.erb
122
+ - spec/dummy/app/views/force_fallback/index.html.erb
123
+ - spec/dummy/app/views/force_fallback/index.js.erb
124
+ - spec/dummy/app/views/force_fallback/index.mobile.erb
125
+ - spec/dummy/app/views/force_fallback/test.html.erb
126
+ - spec/dummy/app/views/force_fallback/test.js.erb
127
+ - spec/dummy/app/views/home/desktop.html.erb
128
+ - spec/dummy/app/views/home/index.html.erb
129
+ - spec/dummy/app/views/home/index.mobile.erb
130
+ - spec/dummy/app/views/home/mobile.mobile.erb
131
+ - spec/dummy/app/views/home/no_mobile_view.html.erb
132
+ - spec/dummy/app/views/layouts/application.html.erb
133
+ - spec/dummy/app/views/layouts/application.mobile.erb
134
+ - spec/dummy/app/views/no_fallback/index.html.erb
135
+ - spec/dummy/app/views/no_fallback/index.js.erb
136
+ - spec/dummy/app/views/no_fallback/index.mobile.erb
137
+ - spec/dummy/app/views/no_fallback/test.html.erb
138
+ - spec/dummy/app/views/no_fallback/test.js.erb
139
+ - spec/dummy/config/application.rb
140
+ - spec/dummy/config/boot.rb
141
+ - spec/dummy/config/database.yml
142
+ - spec/dummy/config/environment.rb
143
+ - spec/dummy/config/environments/development.rb
144
+ - spec/dummy/config/environments/production.rb
145
+ - spec/dummy/config/environments/test.rb
146
+ - spec/dummy/config/initializers/backtrace_silencers.rb
147
+ - spec/dummy/config/initializers/inflections.rb
148
+ - spec/dummy/config/initializers/mime_types.rb
149
+ - spec/dummy/config/initializers/secret_token.rb
150
+ - spec/dummy/config/initializers/session_store.rb
151
+ - spec/dummy/config/initializers/wrap_parameters.rb
152
+ - spec/dummy/config/locales/en.yml
153
+ - spec/dummy/config/routes.rb
154
+ - spec/dummy/config.ru
155
+ - spec/dummy/db/development.sqlite3
156
+ - spec/dummy/db/schema.rb
157
+ - spec/dummy/db/test.sqlite3
158
+ - spec/dummy/log/development.log
159
+ - spec/dummy/log/test.log
160
+ - spec/dummy/public/404.html
161
+ - spec/dummy/public/422.html
162
+ - spec/dummy/public/500.html
163
+ - spec/dummy/public/favicon.ico
164
+ - spec/dummy/Rakefile
165
+ - spec/dummy/script/rails
166
+ - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
167
+ - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
168
+ - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
169
+ - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
170
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
171
+ - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
172
+ - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
173
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
174
+ - spec/dummy/tmp/pids/server.pid
175
+ - spec/helpers/mobylette_helpers_spec.rb
176
+ - spec/integration/navigation_spec.rb
177
+ - spec/mobylette_spec.rb
178
+ - spec/spec_helper.rb
179
+ has_rdoc: true
180
+ homepage: https://github.com/tscolari/mobylette
181
+ licenses: []
182
+
183
+ post_install_message:
184
+ rdoc_options: []
185
+
186
+ require_paths:
187
+ - lib
188
+ required_ruby_version: !ruby/object:Gem::Requirement
189
+ none: false
190
+ requirements:
191
+ - - ">="
192
+ - !ruby/object:Gem::Version
193
+ hash: 3
194
+ segments:
195
+ - 0
196
+ version: "0"
197
+ required_rubygems_version: !ruby/object:Gem::Requirement
198
+ none: false
199
+ requirements:
200
+ - - ">="
201
+ - !ruby/object:Gem::Version
202
+ hash: 3
203
+ segments:
204
+ - 0
205
+ version: "0"
206
+ requirements: []
207
+
208
+ rubyforge_project:
209
+ rubygems_version: 1.6.2
210
+ signing_key:
211
+ specification_version: 3
212
+ summary: Mobile request handling for your Rails app.
213
+ test_files:
214
+ - spec/controllers/actioncontroller_base_spec.rb
215
+ - spec/controllers/default_fallback_controller_spec.rb
216
+ - spec/controllers/desktop_only_controller_spec.rb
217
+ - spec/controllers/force_fallback_controller_spec.rb
218
+ - spec/controllers/home_controller_spec.rb
219
+ - spec/controllers/no_fallback_controller_spec.rb
220
+ - spec/dummy/app/assets/javascripts/application.js
221
+ - spec/dummy/app/assets/javascripts/application_mobile.js
222
+ - spec/dummy/app/assets/javascripts/default_fallback.js
223
+ - spec/dummy/app/assets/javascripts/desktop_only.js
224
+ - spec/dummy/app/assets/javascripts/fallbacks.js
225
+ - spec/dummy/app/assets/javascripts/force_fallback.js
226
+ - spec/dummy/app/assets/javascripts/home.js
227
+ - spec/dummy/app/assets/javascripts/no_fallback.js
228
+ - spec/dummy/app/assets/javascripts/testing.js
229
+ - spec/dummy/app/assets/stylesheets/application.css
230
+ - spec/dummy/app/assets/stylesheets/application_mobile.css
231
+ - spec/dummy/app/assets/stylesheets/default_fallback.css
232
+ - spec/dummy/app/assets/stylesheets/desktop_only.css
233
+ - spec/dummy/app/assets/stylesheets/fallbacks.css
234
+ - spec/dummy/app/assets/stylesheets/force_fallback.css
235
+ - spec/dummy/app/assets/stylesheets/home.css
236
+ - spec/dummy/app/assets/stylesheets/no_fallback.css
237
+ - spec/dummy/app/assets/stylesheets/testing.css
238
+ - spec/dummy/app/controllers/application_controller.rb
239
+ - spec/dummy/app/controllers/default_fallback_controller.rb
240
+ - spec/dummy/app/controllers/desktop_only_controller.rb
241
+ - spec/dummy/app/controllers/fallbacks_controller.rb
242
+ - spec/dummy/app/controllers/force_fallback_controller.rb
243
+ - spec/dummy/app/controllers/home_controller.rb
244
+ - spec/dummy/app/controllers/no_fallback_controller.rb
245
+ - spec/dummy/app/controllers/testing_controller.rb
246
+ - spec/dummy/app/helpers/application_helper.rb
247
+ - spec/dummy/app/helpers/default_fallback_helper.rb
248
+ - spec/dummy/app/helpers/desktop_only_helper.rb
249
+ - spec/dummy/app/helpers/fallbacks_helper.rb
250
+ - spec/dummy/app/helpers/force_fallback_helper.rb
251
+ - spec/dummy/app/helpers/home_helper.rb
252
+ - spec/dummy/app/helpers/no_fallback_helper.rb
253
+ - spec/dummy/app/helpers/testing_helper.rb
254
+ - spec/dummy/app/views/default_fallback/index.html.erb
255
+ - spec/dummy/app/views/default_fallback/index.js.erb
256
+ - spec/dummy/app/views/default_fallback/index.mobile.erb
257
+ - spec/dummy/app/views/default_fallback/test.html.erb
258
+ - spec/dummy/app/views/default_fallback/test.js.erb
259
+ - spec/dummy/app/views/fallbacks/index.html.erb
260
+ - spec/dummy/app/views/fallbacks/index.js.erb
261
+ - spec/dummy/app/views/fallbacks/index.mobile.erb
262
+ - spec/dummy/app/views/fallbacks/index.xml.erb
263
+ - spec/dummy/app/views/fallbacks/no_mobile.html.erb
264
+ - spec/dummy/app/views/force_fallback/index.html.erb
265
+ - spec/dummy/app/views/force_fallback/index.js.erb
266
+ - spec/dummy/app/views/force_fallback/index.mobile.erb
267
+ - spec/dummy/app/views/force_fallback/test.html.erb
268
+ - spec/dummy/app/views/force_fallback/test.js.erb
269
+ - spec/dummy/app/views/home/desktop.html.erb
270
+ - spec/dummy/app/views/home/index.html.erb
271
+ - spec/dummy/app/views/home/index.mobile.erb
272
+ - spec/dummy/app/views/home/mobile.mobile.erb
273
+ - spec/dummy/app/views/home/no_mobile_view.html.erb
274
+ - spec/dummy/app/views/layouts/application.html.erb
275
+ - spec/dummy/app/views/layouts/application.mobile.erb
276
+ - spec/dummy/app/views/no_fallback/index.html.erb
277
+ - spec/dummy/app/views/no_fallback/index.js.erb
278
+ - spec/dummy/app/views/no_fallback/index.mobile.erb
279
+ - spec/dummy/app/views/no_fallback/test.html.erb
280
+ - spec/dummy/app/views/no_fallback/test.js.erb
281
+ - spec/dummy/config/application.rb
282
+ - spec/dummy/config/boot.rb
283
+ - spec/dummy/config/database.yml
284
+ - spec/dummy/config/environment.rb
285
+ - spec/dummy/config/environments/development.rb
286
+ - spec/dummy/config/environments/production.rb
287
+ - spec/dummy/config/environments/test.rb
288
+ - spec/dummy/config/initializers/backtrace_silencers.rb
289
+ - spec/dummy/config/initializers/inflections.rb
290
+ - spec/dummy/config/initializers/mime_types.rb
291
+ - spec/dummy/config/initializers/secret_token.rb
292
+ - spec/dummy/config/initializers/session_store.rb
293
+ - spec/dummy/config/initializers/wrap_parameters.rb
294
+ - spec/dummy/config/locales/en.yml
295
+ - spec/dummy/config/routes.rb
296
+ - spec/dummy/config.ru
297
+ - spec/dummy/db/development.sqlite3
298
+ - spec/dummy/db/schema.rb
299
+ - spec/dummy/db/test.sqlite3
300
+ - spec/dummy/log/development.log
301
+ - spec/dummy/log/test.log
302
+ - spec/dummy/public/404.html
303
+ - spec/dummy/public/422.html
304
+ - spec/dummy/public/500.html
305
+ - spec/dummy/public/favicon.ico
306
+ - spec/dummy/Rakefile
307
+ - spec/dummy/script/rails
308
+ - spec/dummy/tmp/cache/assets/C82/3E0/sprockets%2F48eb4ac616538f8f36870451073315da
309
+ - spec/dummy/tmp/cache/assets/CE4/1C0/sprockets%2F18d93e1533d585b2f64ec90b33176ac9
310
+ - spec/dummy/tmp/cache/assets/CED/A70/sprockets%2F621683d8791730a9cc7ce45e17a7e46d
311
+ - spec/dummy/tmp/cache/assets/CFC/200/sprockets%2F716f89d85d4855706b8a9abec1969c62
312
+ - spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
313
+ - spec/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
314
+ - spec/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
315
+ - spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
316
+ - spec/dummy/tmp/pids/server.pid
317
+ - spec/helpers/mobylette_helpers_spec.rb
318
+ - spec/integration/navigation_spec.rb
319
+ - spec/mobylette_spec.rb
320
+ - spec/spec_helper.rb