no-ie6-rails 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +25 -0
  3. data/Rakefile +37 -0
  4. data/app/assets/images/background_browser.gif +0 -0
  5. data/app/assets/images/browser_chrome.gif +0 -0
  6. data/app/assets/images/browser_firefox.gif +0 -0
  7. data/app/assets/images/browser_ie.gif +0 -0
  8. data/app/assets/images/browser_opera.gif +0 -0
  9. data/app/assets/images/browser_safari.gif +0 -0
  10. data/app/assets/javascripts/no_ie6.js.erb +60 -0
  11. data/app/helpers/no_ie6_helper.rb +5 -0
  12. data/lib/no-ie6-rails/version.rb +3 -0
  13. data/lib/no-ie6-rails.rb +5 -0
  14. data/lib/tasks/no-ie6-rails_tasks.rake +4 -0
  15. data/test/dummy/Rakefile +7 -0
  16. data/test/dummy/app/assets/javascripts/application.js +9 -0
  17. data/test/dummy/app/assets/javascripts/welcome.js +2 -0
  18. data/test/dummy/app/assets/stylesheets/application.css +7 -0
  19. data/test/dummy/app/assets/stylesheets/welcome.css +4 -0
  20. data/test/dummy/app/controllers/application_controller.rb +4 -0
  21. data/test/dummy/app/controllers/welcome_controller.rb +5 -0
  22. data/test/dummy/app/helpers/application_helper.rb +2 -0
  23. data/test/dummy/app/helpers/welcome_helper.rb +2 -0
  24. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  25. data/test/dummy/app/views/welcome/index.html.erb +13 -0
  26. data/test/dummy/config/application.rb +48 -0
  27. data/test/dummy/config/boot.rb +10 -0
  28. data/test/dummy/config/database.yml +25 -0
  29. data/test/dummy/config/environment.rb +5 -0
  30. data/test/dummy/config/environments/development.rb +30 -0
  31. data/test/dummy/config/environments/production.rb +60 -0
  32. data/test/dummy/config/environments/test.rb +39 -0
  33. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/test/dummy/config/initializers/inflections.rb +10 -0
  35. data/test/dummy/config/initializers/mime_types.rb +5 -0
  36. data/test/dummy/config/initializers/secret_token.rb +7 -0
  37. data/test/dummy/config/initializers/session_store.rb +8 -0
  38. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/test/dummy/config/locales/en.yml +5 -0
  40. data/test/dummy/config/routes.rb +60 -0
  41. data/test/dummy/config.ru +4 -0
  42. data/test/dummy/db/development.sqlite3 +0 -0
  43. data/test/dummy/log/development.log +4196 -0
  44. data/test/dummy/public/404.html +26 -0
  45. data/test/dummy/public/422.html +26 -0
  46. data/test/dummy/public/500.html +26 -0
  47. data/test/dummy/public/favicon.ico +0 -0
  48. data/test/dummy/script/rails +6 -0
  49. data/test/dummy/test/functional/welcome_controller_test.rb +9 -0
  50. data/test/dummy/test/unit/helpers/welcome_helper_test.rb +4 -0
  51. data/test/dummy/tmp/cache/assets/C2F/0E0/sprockets%2Fa5412750c402b03eb244491b09a06470 +0 -0
  52. data/test/dummy/tmp/cache/assets/C40/760/sprockets%2F03f8a45750331a4e4a0a02e647195726 +0 -0
  53. data/test/dummy/tmp/cache/assets/C48/A10/sprockets%2F4511c099023f72a46b95409366b044eb +0 -0
  54. data/test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c +0 -0
  55. data/test/dummy/tmp/cache/assets/C94/D20/sprockets%2F8c4441c49a79f60d28ec6836b3982806 +0 -0
  56. data/test/dummy/tmp/cache/assets/CC0/FC0/sprockets%2F34484873c40ec18a0fdf682f1e879266 +0 -0
  57. data/test/dummy/tmp/cache/assets/CC9/CD0/sprockets%2Fc06b697095f14f8e6f66015c4f1599d9 +0 -0
  58. data/test/dummy/tmp/cache/assets/CCA/370/sprockets%2F79edf972e81f80a1a39038748a14e799 +0 -0
  59. data/test/dummy/tmp/cache/assets/CFB/700/sprockets%2F664584858cba7c089fb8d7a478b55c64 +0 -0
  60. data/test/dummy/tmp/cache/assets/CFF/DA0/sprockets%2Ff1c6a66500ac6c480a9a4ab0707208e9 +0 -0
  61. data/test/dummy/tmp/cache/assets/D19/C10/sprockets%2Fb60c6581863e7815abfd365a50e7f3d9 +0 -0
  62. data/test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae +0 -0
  63. data/test/dummy/tmp/cache/assets/D30/BE0/sprockets%2Fed5cc429335d1610db9286d4a01a54eb +0 -0
  64. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  65. data/test/dummy/tmp/cache/assets/D41/DF0/sprockets%2F96252187dc437fb613db312caf5de8e5 +0 -0
  66. data/test/dummy/tmp/cache/assets/D4B/D00/sprockets%2F56668756fa4ded02a4eee3085be93f61 +0 -0
  67. data/test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4 +0 -0
  68. data/test/dummy/tmp/cache/assets/D72/040/sprockets%2Fdf27303f8b8502a436aa989ba76dde6a +0 -0
  69. data/test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384 +0 -0
  70. data/test/dummy/tmp/cache/assets/DA1/240/sprockets%2F8d0f992a986700bae4aaafad93e4c806 +0 -0
  71. data/test/dummy/tmp/cache/assets/DC2/EC0/sprockets%2Fabe6c14ac1e2c383ab7940af16ff608d +0 -0
  72. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  73. data/test/no-ie6-rails_test.rb +7 -0
  74. data/test/test_helper.rb +10 -0
  75. metadata +197 -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 ruby1.9.1
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,9 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeControllerTest < ActionController::TestCase
4
+ test "should get index" do
5
+ get :index
6
+ assert_response :success
7
+ end
8
+
9
+ end
@@ -0,0 +1,4 @@
1
+ require 'test_helper'
2
+
3
+ class WelcomeHelperTest < ActionView::TestCase
4
+ end
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class NoIe6RailsTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, NoIe6Rails
6
+ end
7
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
metadata ADDED
@@ -0,0 +1,197 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: no-ie6-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Ivan Tkalin
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-10-31 00:00:00.000000000Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: &12511120 !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: 3.1.0
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: *12511120
25
+ description: Simple rails extension that checks if client has IE6 browser, and displays
26
+ small (and closable) overlay, suggesting to update browser to a modern one.
27
+ email:
28
+ - itkalin@gmail.com
29
+ executables: []
30
+ extensions: []
31
+ extra_rdoc_files: []
32
+ files:
33
+ - app/assets/images/browser_opera.gif
34
+ - app/assets/images/background_browser.gif
35
+ - app/assets/images/browser_firefox.gif
36
+ - app/assets/images/browser_safari.gif
37
+ - app/assets/images/browser_chrome.gif
38
+ - app/assets/images/browser_ie.gif
39
+ - app/assets/javascripts/no_ie6.js.erb
40
+ - app/helpers/no_ie6_helper.rb
41
+ - lib/no-ie6-rails/version.rb
42
+ - lib/no-ie6-rails.rb
43
+ - lib/tasks/no-ie6-rails_tasks.rake
44
+ - MIT-LICENSE
45
+ - Rakefile
46
+ - README.md
47
+ - test/no-ie6-rails_test.rb
48
+ - test/dummy/script/rails
49
+ - test/dummy/config.ru
50
+ - test/dummy/config/environment.rb
51
+ - test/dummy/config/locales/en.yml
52
+ - test/dummy/config/environments/production.rb
53
+ - test/dummy/config/environments/test.rb
54
+ - test/dummy/config/environments/development.rb
55
+ - test/dummy/config/boot.rb
56
+ - test/dummy/config/initializers/session_store.rb
57
+ - test/dummy/config/initializers/secret_token.rb
58
+ - test/dummy/config/initializers/mime_types.rb
59
+ - test/dummy/config/initializers/inflections.rb
60
+ - test/dummy/config/initializers/backtrace_silencers.rb
61
+ - test/dummy/config/initializers/wrap_parameters.rb
62
+ - test/dummy/config/application.rb
63
+ - test/dummy/config/routes.rb
64
+ - test/dummy/config/database.yml
65
+ - test/dummy/app/assets/javascripts/application.js
66
+ - test/dummy/app/assets/javascripts/welcome.js
67
+ - test/dummy/app/assets/stylesheets/application.css
68
+ - test/dummy/app/assets/stylesheets/welcome.css
69
+ - test/dummy/app/helpers/application_helper.rb
70
+ - test/dummy/app/helpers/welcome_helper.rb
71
+ - test/dummy/app/views/layouts/application.html.erb
72
+ - test/dummy/app/views/welcome/index.html.erb
73
+ - test/dummy/app/controllers/application_controller.rb
74
+ - test/dummy/app/controllers/welcome_controller.rb
75
+ - test/dummy/db/development.sqlite3
76
+ - test/dummy/tmp/cache/assets/D30/BE0/sprockets%2Fed5cc429335d1610db9286d4a01a54eb
77
+ - test/dummy/tmp/cache/assets/C40/760/sprockets%2F03f8a45750331a4e4a0a02e647195726
78
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
79
+ - test/dummy/tmp/cache/assets/D19/C10/sprockets%2Fb60c6581863e7815abfd365a50e7f3d9
80
+ - test/dummy/tmp/cache/assets/CFB/700/sprockets%2F664584858cba7c089fb8d7a478b55c64
81
+ - test/dummy/tmp/cache/assets/CC9/CD0/sprockets%2Fc06b697095f14f8e6f66015c4f1599d9
82
+ - test/dummy/tmp/cache/assets/CCA/370/sprockets%2F79edf972e81f80a1a39038748a14e799
83
+ - test/dummy/tmp/cache/assets/D41/DF0/sprockets%2F96252187dc437fb613db312caf5de8e5
84
+ - test/dummy/tmp/cache/assets/C94/D20/sprockets%2F8c4441c49a79f60d28ec6836b3982806
85
+ - test/dummy/tmp/cache/assets/C48/A10/sprockets%2F4511c099023f72a46b95409366b044eb
86
+ - test/dummy/tmp/cache/assets/CFF/DA0/sprockets%2Ff1c6a66500ac6c480a9a4ab0707208e9
87
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
88
+ - test/dummy/tmp/cache/assets/D72/040/sprockets%2Fdf27303f8b8502a436aa989ba76dde6a
89
+ - test/dummy/tmp/cache/assets/DC2/EC0/sprockets%2Fabe6c14ac1e2c383ab7940af16ff608d
90
+ - test/dummy/tmp/cache/assets/DA1/240/sprockets%2F8d0f992a986700bae4aaafad93e4c806
91
+ - test/dummy/tmp/cache/assets/D4B/D00/sprockets%2F56668756fa4ded02a4eee3085be93f61
92
+ - test/dummy/tmp/cache/assets/C2F/0E0/sprockets%2Fa5412750c402b03eb244491b09a06470
93
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
94
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
95
+ - test/dummy/tmp/cache/assets/CC0/FC0/sprockets%2F34484873c40ec18a0fdf682f1e879266
96
+ - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
97
+ - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
98
+ - test/dummy/Rakefile
99
+ - test/dummy/log/development.log
100
+ - test/dummy/public/422.html
101
+ - test/dummy/public/favicon.ico
102
+ - test/dummy/public/500.html
103
+ - test/dummy/public/404.html
104
+ - test/dummy/test/unit/helpers/welcome_helper_test.rb
105
+ - test/dummy/test/functional/welcome_controller_test.rb
106
+ - test/test_helper.rb
107
+ homepage: https://github.com/ivalkeen/no-ie6-rails
108
+ licenses: []
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ segments:
120
+ - 0
121
+ hash: -58984236949268990
122
+ required_rubygems_version: !ruby/object:Gem::Requirement
123
+ none: false
124
+ requirements:
125
+ - - ! '>='
126
+ - !ruby/object:Gem::Version
127
+ version: '0'
128
+ segments:
129
+ - 0
130
+ hash: -58984236949268990
131
+ requirements: []
132
+ rubyforge_project:
133
+ rubygems_version: 1.8.10
134
+ signing_key:
135
+ specification_version: 3
136
+ summary: Display non-blocking suggestion to upgrade IE6 browser.
137
+ test_files:
138
+ - test/no-ie6-rails_test.rb
139
+ - test/dummy/script/rails
140
+ - test/dummy/config.ru
141
+ - test/dummy/config/environment.rb
142
+ - test/dummy/config/locales/en.yml
143
+ - test/dummy/config/environments/production.rb
144
+ - test/dummy/config/environments/test.rb
145
+ - test/dummy/config/environments/development.rb
146
+ - test/dummy/config/boot.rb
147
+ - test/dummy/config/initializers/session_store.rb
148
+ - test/dummy/config/initializers/secret_token.rb
149
+ - test/dummy/config/initializers/mime_types.rb
150
+ - test/dummy/config/initializers/inflections.rb
151
+ - test/dummy/config/initializers/backtrace_silencers.rb
152
+ - test/dummy/config/initializers/wrap_parameters.rb
153
+ - test/dummy/config/application.rb
154
+ - test/dummy/config/routes.rb
155
+ - test/dummy/config/database.yml
156
+ - test/dummy/app/assets/javascripts/application.js
157
+ - test/dummy/app/assets/javascripts/welcome.js
158
+ - test/dummy/app/assets/stylesheets/application.css
159
+ - test/dummy/app/assets/stylesheets/welcome.css
160
+ - test/dummy/app/helpers/application_helper.rb
161
+ - test/dummy/app/helpers/welcome_helper.rb
162
+ - test/dummy/app/views/layouts/application.html.erb
163
+ - test/dummy/app/views/welcome/index.html.erb
164
+ - test/dummy/app/controllers/application_controller.rb
165
+ - test/dummy/app/controllers/welcome_controller.rb
166
+ - test/dummy/db/development.sqlite3
167
+ - test/dummy/tmp/cache/assets/D30/BE0/sprockets%2Fed5cc429335d1610db9286d4a01a54eb
168
+ - test/dummy/tmp/cache/assets/C40/760/sprockets%2F03f8a45750331a4e4a0a02e647195726
169
+ - test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af
170
+ - test/dummy/tmp/cache/assets/D19/C10/sprockets%2Fb60c6581863e7815abfd365a50e7f3d9
171
+ - test/dummy/tmp/cache/assets/CFB/700/sprockets%2F664584858cba7c089fb8d7a478b55c64
172
+ - test/dummy/tmp/cache/assets/CC9/CD0/sprockets%2Fc06b697095f14f8e6f66015c4f1599d9
173
+ - test/dummy/tmp/cache/assets/CCA/370/sprockets%2F79edf972e81f80a1a39038748a14e799
174
+ - test/dummy/tmp/cache/assets/D41/DF0/sprockets%2F96252187dc437fb613db312caf5de8e5
175
+ - test/dummy/tmp/cache/assets/C94/D20/sprockets%2F8c4441c49a79f60d28ec6836b3982806
176
+ - test/dummy/tmp/cache/assets/C48/A10/sprockets%2F4511c099023f72a46b95409366b044eb
177
+ - test/dummy/tmp/cache/assets/CFF/DA0/sprockets%2Ff1c6a66500ac6c480a9a4ab0707208e9
178
+ - test/dummy/tmp/cache/assets/D54/ED0/sprockets%2F71c9fa01091d432b131da3bb73faf3d4
179
+ - test/dummy/tmp/cache/assets/D72/040/sprockets%2Fdf27303f8b8502a436aa989ba76dde6a
180
+ - test/dummy/tmp/cache/assets/DC2/EC0/sprockets%2Fabe6c14ac1e2c383ab7940af16ff608d
181
+ - test/dummy/tmp/cache/assets/DA1/240/sprockets%2F8d0f992a986700bae4aaafad93e4c806
182
+ - test/dummy/tmp/cache/assets/D4B/D00/sprockets%2F56668756fa4ded02a4eee3085be93f61
183
+ - test/dummy/tmp/cache/assets/C2F/0E0/sprockets%2Fa5412750c402b03eb244491b09a06470
184
+ - test/dummy/tmp/cache/assets/D84/210/sprockets%2Fabd0103ccec2b428ac62c94e4c40b384
185
+ - test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705
186
+ - test/dummy/tmp/cache/assets/CC0/FC0/sprockets%2F34484873c40ec18a0fdf682f1e879266
187
+ - test/dummy/tmp/cache/assets/D21/5D0/sprockets%2Fe2c4f946939f2d7d0b42d86383755cae
188
+ - test/dummy/tmp/cache/assets/C7B/190/sprockets%2F37b103f4623089af1456b90830fe941c
189
+ - test/dummy/Rakefile
190
+ - test/dummy/log/development.log
191
+ - test/dummy/public/422.html
192
+ - test/dummy/public/favicon.ico
193
+ - test/dummy/public/500.html
194
+ - test/dummy/public/404.html
195
+ - test/dummy/test/unit/helpers/welcome_helper_test.rb
196
+ - test/dummy/test/functional/welcome_controller_test.rb
197
+ - test/test_helper.rb