outdatedbrowser_rails 1.1.0 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/MIT-LICENSE +1 -1
  3. data/app/assets/javascripts/outdatedbrowser/outdatedBrowser.js +64 -59
  4. data/app/assets/javascripts/outdatedbrowser_rails/application.js +13 -0
  5. data/app/assets/stylesheets/outdatedbrowser/outdatedBrowser.css +1 -1
  6. data/app/assets/stylesheets/outdatedbrowser_rails/application.css +6 -4
  7. data/app/controllers/outdatedbrowser_rails/application_controller.rb +5 -0
  8. data/app/helpers/outdatedbrowser_rails/application_helper.rb +4 -0
  9. data/app/views/layouts/outdatedbrowser_rails/application.html.erb +1 -1
  10. data/app/views/outdatedbrowser/lang/{cz.html → cs.html} +1 -1
  11. data/app/views/outdatedbrowser/lang/da.html +3 -0
  12. data/app/views/outdatedbrowser/lang/de.html +0 -0
  13. data/app/views/outdatedbrowser/lang/el.html +3 -0
  14. data/app/views/outdatedbrowser/lang/en.html +1 -1
  15. data/app/views/outdatedbrowser/lang/es-pe.html +3 -0
  16. data/app/views/outdatedbrowser/lang/es.html +0 -0
  17. data/app/views/outdatedbrowser/lang/{ee.html → et.html} +1 -1
  18. data/app/views/outdatedbrowser/lang/fa.html +0 -0
  19. data/app/views/outdatedbrowser/lang/fi.html +1 -1
  20. data/app/views/outdatedbrowser/lang/fr.html +0 -0
  21. data/app/views/outdatedbrowser/lang/hu.html +1 -1
  22. data/app/views/outdatedbrowser/lang/id.html +0 -0
  23. data/app/views/outdatedbrowser/lang/it.html +0 -0
  24. data/app/views/outdatedbrowser/lang/ja.html +3 -0
  25. data/app/views/outdatedbrowser/lang/ko.html +3 -0
  26. data/app/views/outdatedbrowser/lang/lt.html +0 -0
  27. data/app/views/outdatedbrowser/lang/nb.html +4 -0
  28. data/app/views/outdatedbrowser/lang/nl.html +1 -1
  29. data/app/views/outdatedbrowser/lang/pl.html +0 -0
  30. data/app/views/outdatedbrowser/lang/{br.html → pt-br.html} +1 -1
  31. data/app/views/outdatedbrowser/lang/pt.html +0 -0
  32. data/app/views/outdatedbrowser/lang/ro.html +0 -0
  33. data/app/views/outdatedbrowser/lang/ru.html +2 -2
  34. data/app/views/outdatedbrowser/lang/{si.html → sl.html} +1 -1
  35. data/app/views/outdatedbrowser/lang/sv.html +3 -0
  36. data/app/views/outdatedbrowser/lang/tr.html +3 -0
  37. data/app/views/outdatedbrowser/lang/{ua.html → uk.html} +1 -1
  38. data/app/views/outdatedbrowser/lang/{cn.html → zh-cn.html} +1 -1
  39. data/app/views/outdatedbrowser/lang/zh-tw.html +3 -0
  40. data/lib/outdatedbrowser_rails/version.rb +1 -1
  41. data/spec/dummy/README.rdoc +15 -248
  42. data/spec/dummy/Rakefile +1 -2
  43. data/spec/dummy/app/assets/javascripts/application.js +5 -7
  44. data/spec/dummy/app/assets/stylesheets/application.css +7 -5
  45. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  46. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  47. data/spec/dummy/bin/bundle +3 -0
  48. data/spec/dummy/bin/rails +4 -0
  49. data/spec/dummy/bin/rake +4 -0
  50. data/spec/dummy/bin/setup +29 -0
  51. data/spec/dummy/config.ru +2 -2
  52. data/spec/dummy/config/application.rb +5 -44
  53. data/spec/dummy/config/boot.rb +4 -9
  54. data/spec/dummy/config/database.yml +8 -8
  55. data/spec/dummy/config/environment.rb +3 -3
  56. data/spec/dummy/config/environments/development.rb +22 -18
  57. data/spec/dummy/config/environments/production.rb +46 -34
  58. data/spec/dummy/config/environments/test.rb +19 -14
  59. data/spec/dummy/config/initializers/assets.rb +12 -0
  60. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  61. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  62. data/spec/dummy/config/initializers/inflections.rb +6 -5
  63. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  64. data/spec/dummy/config/initializers/session_store.rb +1 -6
  65. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  66. data/spec/dummy/config/locales/en.yml +20 -2
  67. data/spec/dummy/config/routes.rb +54 -0
  68. data/spec/dummy/config/secrets.yml +22 -0
  69. data/spec/dummy/public/404.html +54 -13
  70. data/spec/dummy/public/422.html +54 -13
  71. data/spec/dummy/public/500.html +53 -12
  72. data/spec/features/asset_integration_spec.rb +2 -2
  73. metadata +52 -110
  74. data/spec/dummy/db/development.sqlite3 +0 -0
  75. data/spec/dummy/db/test.sqlite3 +0 -0
  76. data/spec/dummy/log/development.log +0 -2335
  77. data/spec/dummy/log/test.log +0 -25
  78. data/spec/dummy/tmp/cache/assets/C0B/6C0/sprockets%2F32ba372100048e769a8961c142010d29 +0 -0
  79. data/spec/dummy/tmp/cache/assets/C55/A90/sprockets%2Fc867534061993dd00f01965a87c8451a +0 -0
  80. data/spec/dummy/tmp/cache/assets/C66/070/sprockets%2F25064892e3836bb657e5d6446b86574e +0 -0
  81. data/spec/dummy/tmp/cache/assets/C76/D90/sprockets%2F317679c439a52430e7a01408fab2166e +0 -0
  82. data/spec/dummy/tmp/cache/assets/C85/6B0/sprockets%2F19e3c3829361ad685564711217e9d1dc +0 -0
  83. data/spec/dummy/tmp/cache/assets/CB7/D90/sprockets%2F324258d96111fb8a7ad85897701e41fc +0 -0
  84. data/spec/dummy/tmp/cache/assets/CCE/9C0/sprockets%2Fbe5308ba0221fb7e0f54652c6014e097 +0 -0
  85. data/spec/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  86. data/spec/dummy/tmp/cache/assets/CE9/850/sprockets%2F4a767a0e4b8d87e90e7d1b126c379724 +0 -0
  87. data/spec/dummy/tmp/cache/assets/CEF/8E0/sprockets%2Fee75db26e457cb225a52664757fc7845 +0 -0
  88. data/spec/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  89. data/spec/dummy/tmp/cache/assets/D3C/810/sprockets%2Ff2abbf8c661ed6993fb163338c024f20 +0 -0
  90. data/spec/dummy/tmp/cache/assets/D42/CC0/sprockets%2Fc193ff3495a3beb1c539e1bd3425d759 +0 -0
  91. data/spec/dummy/tmp/cache/assets/D45/7D0/sprockets%2Ff6e3c118bd192d82fe3896e9b116dd21 +0 -0
  92. data/spec/dummy/tmp/cache/assets/D4A/C40/sprockets%2Fdfdafc62f1e86575d880bdb131079486 +0 -0
  93. data/spec/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  94. data/spec/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  95. data/spec/dummy/tmp/cache/assets/D60/9D0/sprockets%2F9afc50a2bc1969a7205225d2d2ae6bd5 +0 -0
  96. data/spec/dummy/tmp/cache/assets/D67/190/sprockets%2Fba2a601dadba4b704f5a79199892fc60 +0 -0
  97. data/spec/dummy/tmp/cache/assets/D68/B30/sprockets%2Fe066c701face5c4fa3b7227c6b87b614 +0 -0
  98. data/spec/dummy/tmp/cache/assets/D78/CF0/sprockets%2F8e5507fc15ad9329b90be288f0f27acf +0 -0
  99. data/spec/dummy/tmp/cache/assets/D83/C10/sprockets%2F0c972efe069c3bf7390c2959fb7ee3e5 +0 -0
  100. data/spec/dummy/tmp/cache/assets/D95/AD0/sprockets%2F33ea8a386351bf5a9815f4bedaba53d0 +0 -0
  101. data/spec/dummy/tmp/cache/assets/D95/BD0/sprockets%2Fd0cd11b5ffec05bed60ce336858a3464 +0 -0
  102. data/spec/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  103. data/spec/dummy/tmp/cache/assets/DE8/EC0/sprockets%2F1bb2ad094ca709e48c46adabe3a028bd +0 -0
  104. data/spec/dummy/tmp/cache/assets/E03/580/sprockets%2F03b5636ba83de65f19fc8f8cd3ba0fdf +0 -0
  105. data/spec/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  106. data/spec/dummy/tmp/pids/server.pid +0 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4b03add0832c8ab1562e6ed2c05c8ca0f0eb7448
4
- data.tar.gz: 55d278ae5e0f5cc7c3f6dc5f589360025a33fcde
3
+ metadata.gz: b5defc72ad4c2395f11c13be5bd45555833d6a72
4
+ data.tar.gz: fdf36d7343613cfdfc8a1822a3e3e8a2a3af8b8a
5
5
  SHA512:
6
- metadata.gz: 087ca512f03d1bde3cdd2bfcde297fc626d77ab681e9404f1d4bb6c308b24f7bb1098e05b6f2a573f12adae308914a44e0664920aa135d62838c98f3238316dd
7
- data.tar.gz: d492b14a3c11d2ea94fb6fe07d16dcd6172704112d81df477d65974673c92f8851a51af72f0d0d240f3205044c4f92cfd3def7e3b74c1000e0b9f393e4064046
6
+ metadata.gz: 0705556cdfb926783033197d4505375e03a5ca12403f7789d30f00a1b7570b7f1049d07674ce26704f34c83838a1d0ed26ab39e7b9d67892b7efc493439123d2
7
+ data.tar.gz: 686727a81342de18c16071316575779b6a914543a0ecb356f51d8e7310277c7fcb327100073469f1f6e51c539d2da119055f4f278c21803119d0cb33e5d01ac0
data/MIT-LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright 2014 YOURNAME
1
+ Copyright 2016 Luisa Lima
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -1,6 +1,6 @@
1
1
  /*!--------------------------------------------------------------------
2
2
  JAVASCRIPT "Outdated Browser"
3
- Version: 1.1.0 - 2014
3
+ Version: 1.1.2 - 2015
4
4
  author: Burocratik
5
5
  website: http://www.burocratik.com
6
6
  * @preserve
@@ -20,7 +20,7 @@ var outdatedBrowser = function(options) {
20
20
 
21
21
  if (options) {
22
22
  //assign css3 property to IE browser version
23
- if(options.lowerThan == 'IE8' || options.lowerThan == 'borderSpacing') {
23
+ if (options.lowerThan == 'IE8' || options.lowerThan == 'borderSpacing') {
24
24
  options.lowerThan = 'borderSpacing';
25
25
  } else if (options.lowerThan == 'IE9' || options.lowerThan == 'boxShadow') {
26
26
  options.lowerThan = 'boxShadow';
@@ -44,7 +44,7 @@ var outdatedBrowser = function(options) {
44
44
  txtColor = this.defaultOpts.color;
45
45
  cssProp = this.defaultOpts.lowerThan;
46
46
  languagePath = this.defaultOpts.languagePath;
47
- };//end if options
47
+ } //end if options
48
48
 
49
49
 
50
50
  //Define opacity and fadeIn/fadeOut functions
@@ -78,50 +78,52 @@ var outdatedBrowser = function(options) {
78
78
  // return (' ' + element.className + ' ').indexOf(' ' + cls + ' ') > -1;
79
79
  // }
80
80
 
81
- var supports = (function() {
82
- var div = document.createElement('div'),
83
- vendors = 'Khtml Ms O Moz Webkit'.split(' '),
84
- len = vendors.length;
85
-
86
- return function(prop) {
87
- if ( prop in div.style ) return true;
88
-
89
- prop = prop.replace(/^[a-z]/, function(val) {
90
- return val.toUpperCase();
91
- });
92
-
93
- while(len--) {
94
- if ( vendors[len] + prop in div.style ) {
95
- return true;
96
- }
97
- }
98
- return false;
99
- };
100
- })();
101
-
102
- //check for css3 property support (transform=default)
103
- if ( !supports(''+ cssProp +'') ) {
81
+ var supports = ( function() {
82
+ var div = document.createElement('div');
83
+ var vendors = 'Khtml Ms O Moz Webkit'.split(' ');
84
+ var len = vendors.length;
85
+
86
+ return function(prop) {
87
+ if (prop in div.style) return true;
88
+
89
+ prop = prop.replace(/^[a-z]/, function(val) {
90
+ return val.toUpperCase();
91
+ });
92
+
93
+ while (len--) {
94
+ if (vendors[len] + prop in div.style) {
95
+ return true;
96
+ }
97
+ }
98
+ return false;
99
+ };
100
+ } )();
101
+
102
+ //if browser does not supports css3 property (transform=default), if does > exit all this
103
+ if (!supports('' + cssProp + '')) {
104
104
  if (done && outdated.style.opacity !== '1') {
105
105
  done = false;
106
106
  for (var i = 1; i <= 100; i++) {
107
- setTimeout((function (x) {
108
- return function () {
107
+ setTimeout(( function(x) {
108
+ return function() {
109
109
  function_fade_in(x);
110
110
  };
111
- })(i), i * 8);
111
+ } )(i), i * 8);
112
112
  }
113
113
  }
114
- };//end if
114
+ } else {
115
+ return;
116
+ } //end if
115
117
 
116
118
  //Check AJAX Options: if languagePath == '' > use no Ajax way, html is needed inside <div id="outdated">
117
- if( languagePath === ' ' || languagePath.length == 0 ){
119
+ if (languagePath === ' ' || languagePath.length == 0) {
118
120
  startStylesAndEvents();
119
- }else{
121
+ } else {
120
122
  grabFile(languagePath);
121
123
  }
122
124
 
123
125
  //events and colors
124
- function startStylesAndEvents(){
126
+ function startStylesAndEvents() {
125
127
  var btnClose = document.getElementById("btnCloseUpdateBrowser");
126
128
  var btnUpdate = document.getElementById("btnUpdateBrowser");
127
129
 
@@ -134,7 +136,10 @@ var outdatedBrowser = function(options) {
134
136
 
135
137
  //check settings attributes
136
138
  btnUpdate.style.color = txtColor;
137
- btnUpdate.style.borderColor = txtColor;
139
+ // btnUpdate.style.borderColor = txtColor;
140
+ if (btnUpdate.style.borderColor) {
141
+ btnUpdate.style.borderColor = txtColor;
142
+ }
138
143
  btnClose.style.color = txtColor;
139
144
 
140
145
  //close button
@@ -152,7 +157,7 @@ var outdatedBrowser = function(options) {
152
157
  this.style.color = txtColor;
153
158
  this.style.backgroundColor = bkgColor;
154
159
  };
155
- }//end styles and events
160
+ } //end styles and events
156
161
 
157
162
 
158
163
  // IF AJAX with request ERROR > insert english default
@@ -163,47 +168,47 @@ var outdatedBrowser = function(options) {
163
168
 
164
169
  //** AJAX FUNCTIONS - Bulletproof Ajax by Jeremy Keith **
165
170
  function getHTTPObject() {
166
- var xhr = false;
167
- if (window.XMLHttpRequest) {
168
- xhr = new XMLHttpRequest();
169
- } else if (window.ActiveXObject) {
170
- try {
171
- xhr = new ActiveXObject("Msxml2.XMLHTTP");
172
- } catch(e) {
173
- try {
174
- xhr = new ActiveXObject("Microsoft.XMLHTTP");
175
- } catch(e) {
176
- xhr = false;
177
- }
171
+ var xhr = false;
172
+ if (window.XMLHttpRequest) {
173
+ xhr = new XMLHttpRequest();
174
+ } else if (window.ActiveXObject) {
175
+ try {
176
+ xhr = new ActiveXObject("Msxml2.XMLHTTP");
177
+ } catch ( e ) {
178
+ try {
179
+ xhr = new ActiveXObject("Microsoft.XMLHTTP");
180
+ } catch ( e ) {
181
+ xhr = false;
182
+ }
183
+ }
178
184
  }
179
- }
180
- return xhr;
181
- };//end function
185
+ return xhr;
186
+ }//end function
182
187
 
183
188
  function grabFile(file) {
184
189
  var request = getHTTPObject();
185
- if (request) {
186
- request.onreadystatechange = function() {
190
+ if (request) {
191
+ request.onreadystatechange = function() {
187
192
  displayResponse(request);
188
193
  };
189
- request.open("GET", file, true);
190
- request.send(null);
191
- }
194
+ request.open("GET", file, true);
195
+ request.send(null);
196
+ }
192
197
  return false;
193
- };//end grabFile
198
+ } //end grabFile
194
199
 
195
200
  function displayResponse(request) {
196
201
  var insertContentHere = document.getElementById("outdated");
197
202
  if (request.readyState == 4) {
198
203
  if (request.status == 200 || request.status == 304) {
199
204
  insertContentHere.innerHTML = request.responseText;
200
- }else{
205
+ } else {
201
206
  insertContentHere.innerHTML = ajaxEnglishDefault;
202
207
  }
203
208
  startStylesAndEvents();
204
209
  }
205
- return false;
206
- };//end displayResponse
210
+ return false;
211
+ }//end displayResponse
207
212
 
208
213
  ////////END of outdatedBrowser function
209
214
  };
@@ -0,0 +1,13 @@
1
+ // This is a manifest file that'll be compiled into application.js, which will include all the files
2
+ // listed below.
3
+ //
4
+ // Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
5
+ // or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
6
+ //
7
+ // It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
8
+ // compiled file.
9
+ //
10
+ // Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details
11
+ // about supported directives.
12
+ //
13
+ //= require_tree .
@@ -1,6 +1,6 @@
1
1
  /*!--------------------------------------------------------------------
2
2
  STYLES "Outdated Browser"
3
- Version: 1.1.0 - 2014
3
+ Version: 1.1.2 - 2015
4
4
  author: Burocratik
5
5
  website: http://www.burocratik.com
6
6
  * @preserve
@@ -3,11 +3,13 @@
3
3
  * listed below.
4
4
  *
5
5
  * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
6
- * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
6
+ * or any plugin's vendor/assets/stylesheets directory can be referenced here using a relative path.
7
7
  *
8
- * You're free to add application-wide styles to this file and they'll appear at the top of the
9
- * compiled file, but it's generally better to create a new file per style scope.
8
+ * You're free to add application-wide styles to this file and they'll appear at the bottom of the
9
+ * compiled file so the styles you add here take precedence over styles defined in any styles
10
+ * defined in the other CSS/SCSS files in this directory. It is generally better to create a new
11
+ * file per style scope.
10
12
  *
11
- *= require_self
12
13
  *= require_tree .
14
+ *= require_self
13
15
  */
@@ -0,0 +1,5 @@
1
+ module OutdatedbrowserRails
2
+ class ApplicationController < ActionController::Base
3
+ protect_from_forgery with: :exception
4
+ end
5
+ end
@@ -0,0 +1,4 @@
1
+ module OutdatedbrowserRails
2
+ module ApplicationHelper
3
+ end
4
+ end
@@ -2,7 +2,7 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>OutdatedbrowserRails</title>
5
- <%= stylesheet_link_tag "outdatedbrowser_rails/application", :media => "all" %>
5
+ <%= stylesheet_link_tag "outdatedbrowser_rails/application", media: "all" %>
6
6
  <%= javascript_include_tag "outdatedbrowser_rails/application" %>
7
7
  <%= csrf_meta_tags %>
8
8
  </head>
@@ -1,3 +1,3 @@
1
1
  <h6>Váš prohlížeč je zastaralý!</h6>
2
- <p>Pro správné zobrazení těchto stránek aktualizujte svůj prohlížeč. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/cz">Aktualizovat nyní svůj prohlížeč</a></p>
2
+ <p>Pro správné zobrazení těchto stránek aktualizujte svůj prohlížeč. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/cs">Aktualizovat prohlížeč nyní</a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Zavřít">&times;</a></p>
@@ -0,0 +1,3 @@
1
+ <h6>Din browser er forældet!</h6>
2
+ <p>Opdatér din browser for at få vist denne hjemmeside ordentligt. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/da">Opdater min browser nu </a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
File without changes
@@ -0,0 +1,3 @@
1
+ <h6>Το προγραμμα περιηγησης (φυλλομετρητης/browser) που χρησιμοποιεις για το internet δεν ειναι ενημερωμενο!</h6>
2
+ <p>Ενημερωσε το προγραμμα περιηγησης για να δεις αυτη την ιστοσελιδα σωστα. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/el">Ενημερωση του προγραμματος περιηγησης τωρα</a> </p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
@@ -1,3 +1,3 @@
1
- <h6>Your browser is out-of-date!</h6>
1
+ <h6>Your browser is out of date!</h6>
2
2
  <p>Update your browser to view this website correctly. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Update my browser now </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
@@ -0,0 +1,3 @@
1
+ <h6>¡Tu navegador no está actualizado!</h6>
2
+ <p>Actualiza tu navegador para visualizar esta página correctamente. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/es">Actualizar mi navegador ahora! </a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Cerrar">&times;</a></p>
File without changes
@@ -1,3 +1,3 @@
1
1
  <h6>Sinu veebilehitseja on vananenud!</h6>
2
- <p>Palun uuenda oma veebilehitsejat, et näha lehekülge korrektselt. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ee">Uuenda oma veebilehitsejat kohe</a></p>
2
+ <p>Palun uuenda oma veebilehitsejat, et näha lehekülge korrektselt. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/et">Uuenda oma veebilehitsejat kohe</a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sulge">&times;</a></p>
File without changes
@@ -1,3 +1,3 @@
1
1
  <h6>Selaimesi on vanhentunut!</h6>
2
- <p>Lataa ajantasainen selain n&auml;hd&auml;ksesi t&auml;m&auml;n sivun oikein. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">P&auml;ivit&auml; selaimeni nyt </a></p>
2
+ <p>Lataa ajantasainen selain n&auml;hd&auml;ksesi t&auml;m&auml;n sivun oikein. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/fi">P&auml;ivit&auml; selaimeni nyt </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sulje">&times;</a></p>
File without changes
@@ -1,3 +1,3 @@
1
1
  <h6>A böngészője elavult!</h6>
2
- <p>Firssítse vagy cserélje le a böngészőjét. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/hu">A böngészőm frissítése </a></p>
2
+ <p>Frissítse vagy cserélje le a böngészőjét. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/hu">A böngészőm frissítése </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
File without changes
File without changes
@@ -0,0 +1,3 @@
1
+ <h6>あなたのブラウザはもう古いです</h6>
2
+ <p>こちらのサイトを閲覧するためには、ブラウザをアップグレードしてください。 <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ja">ブラウザをアップグレードする</a></p>
3
+ <p class="last"> <a href="#" id="btnCloseUpdateBrowser" title="閉じる"> &times; </a></p>
@@ -0,0 +1,3 @@
1
+ <h6>브라우저가 오래되었습니다!</h6>
2
+ <p>이 웹 페이지가 현재 브라우저에서는 정상적으로 보이지 않을 수 있습니다. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ko">지금 브라우저를 업그레이드하세요! </a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
File without changes
@@ -0,0 +1,4 @@
1
+ <h6>Nettleseren din er utdatert!</h6>
2
+ <p>Du burde oppdatere din nettleser for å oppleve både denne og flere andre nettsteder best mulig. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com">Les mer om hvordan du kan oppdatere din nettleser.</a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
4
+
@@ -1,3 +1,3 @@
1
- <h6>Je gebruikt een oude browser!</h6>
1
+ <h6>Je gebruikt een verouderde browser!</h6>
2
2
  <p>Update je browser om deze website correct te bekijken. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/nl">Update mijn browser nu </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Sluiten">&times;</a></p>
File without changes
@@ -1,3 +1,3 @@
1
1
  <h6>O seu navegador est&aacute; desatualizado!</h6>
2
- <p>Atualize o seu navegador para ter uma melhor experi&ecirc;ncia e visualiza&ccedil;&atilde;o deste site. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/br">Atualize o seu navegador agora</a></p>
2
+ <p>Atualize o seu navegador para ter uma melhor experi&ecirc;ncia e visualiza&ccedil;&atilde;o deste site. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/pt-br">Atualize o seu navegador agora</a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Fechar">&times;</a></p>
File without changes
File without changes
@@ -1,3 +1,3 @@
1
1
  <h6>Ваш браузер устарел!</h6>
2
- <p>Обновите ваш браузер для правильного отображения этого сайта. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ru">Обновить мой браузер </a></p>
3
- <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
2
+ <p>Обновите ваш браузер для правильного отображения этого сайта. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ru">Обновить мой браузер</a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Закрыть">&times;</a></p>
@@ -1,3 +1,3 @@
1
1
  <h6>Vaš brskalnik je zastarel!</h6>
2
- <p>Za pravilen prikaz spletne strani posodobite vaš brskalnik. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/si">Posodobi brskalnik </a></p>
2
+ <p>Za pravilen prikaz spletne strani posodobite vaš brskalnik. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/sl">Posodobi brskalnik </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Zapri">&times;</a></p>
@@ -0,0 +1,3 @@
1
+ <h6>Din webbläsare stödjs ej längre!</h6>
2
+ <p>Uppdatera din webbläsare för att webbplatsen ska visas korrekt. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/">Uppdatera min webbläsare nu</a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Stäng">&times;</a></p>
@@ -0,0 +1,3 @@
1
+ <h6>Tarayıcınız güncel değil!</h6>
2
+ <p>Web sitemizi düzgün görüntülemek için tarayıcınızı güncelleyin.<a id="btnUpdateBrowser" href="http://outdatedbrowser.com/tr">Şimdi güncelle </a></p>
3
+ <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Kapat">&times;</a></p>
@@ -1,3 +1,3 @@
1
1
  <h6>Ваш браузер застарів!</h6>
2
- <p>Оновіть ваш браузер для правильного відображення цього сайта. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/ua">Оновити мій браузер </a></p>
2
+ <p>Оновіть ваш браузер для правильного відображення цього сайта. <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/uk">Оновити мій браузер </a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="Close">&times;</a></p>
@@ -1,3 +1,3 @@
1
1
  <h6>您的浏览器已过时</h6>
2
- <p>要正常浏览本网站请升级您的浏览器。<a id="btnUpdateBrowser" href="http://outdatedbrowser.com/cn">现在升级</a></p>
2
+ <p>要正常浏览本网站请升级您的浏览器。<a id="btnUpdateBrowser" href="http://outdatedbrowser.com/zh-cn">现在升级</a></p>
3
3
  <p class="last"><a href="#" id="btnCloseUpdateBrowser" title="关闭">&times;</a></p>
@@ -0,0 +1,3 @@
1
+ <h6>您的瀏覽器已過時</h6>
2
+ <p>要正常瀏覽本網站請升級您的瀏覽器。 <a id="btnUpdateBrowser" href="http://outdatedbrowser.com/zh-tw">現在升級​​</a></p>
3
+ <p class="last"> <a href="#" id="btnCloseUpdateBrowser" title="關閉"> &times; </a> </p>
@@ -1,3 +1,3 @@
1
1
  module OutdatedbrowserRails
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.3"
3
3
  end
@@ -1,261 +1,28 @@
1
- == Welcome to Rails
1
+ == README
2
2
 
3
- Rails is a web-application framework that includes everything needed to create
4
- database-backed web applications according to the Model-View-Control pattern.
3
+ This README would normally document whatever steps are necessary to get the
4
+ application up and running.
5
5
 
6
- This pattern splits the view (also called the presentation) into "dumb"
7
- templates that are primarily responsible for inserting pre-built data in between
8
- HTML tags. The model contains the "smart" domain objects (such as Account,
9
- Product, Person, Post) that holds all the business logic and knows how to
10
- persist themselves to a database. The controller handles the incoming requests
11
- (such as Save New Account, Update Product, Show Post) by manipulating the model
12
- and directing data to the view.
6
+ Things you may want to cover:
13
7
 
14
- In Rails, the model is handled by what's called an object-relational mapping
15
- layer entitled Active Record. This layer allows you to present the data from
16
- database rows as objects and embellish these data objects with business logic
17
- methods. You can read more about Active Record in
18
- link:files/vendor/rails/activerecord/README.html.
8
+ * Ruby version
19
9
 
20
- The controller and view are handled by the Action Pack, which handles both
21
- layers by its two parts: Action View and Action Controller. These two layers
22
- are bundled in a single package due to their heavy interdependence. This is
23
- unlike the relationship between the Active Record and Action Pack that is much
24
- more separate. Each of these packages can be used independently outside of
25
- Rails. You can read more about Action Pack in
26
- link:files/vendor/rails/actionpack/README.html.
10
+ * System dependencies
27
11
 
12
+ * Configuration
28
13
 
29
- == Getting Started
14
+ * Database creation
30
15
 
31
- 1. At the command prompt, create a new Rails application:
32
- <tt>rails new myapp</tt> (where <tt>myapp</tt> is the application name)
16
+ * Database initialization
33
17
 
34
- 2. Change directory to <tt>myapp</tt> and start the web server:
35
- <tt>cd myapp; rails server</tt> (run with --help for options)
18
+ * How to run the test suite
36
19
 
37
- 3. Go to http://localhost:3000/ and you'll see:
38
- "Welcome aboard: You're riding Ruby on Rails!"
20
+ * Services (job queues, cache servers, search engines, etc.)
39
21
 
40
- 4. Follow the guidelines to start developing your application. You can find
41
- the following resources handy:
22
+ * Deployment instructions
42
23
 
43
- * The Getting Started Guide: http://guides.rubyonrails.org/getting_started.html
44
- * Ruby on Rails Tutorial Book: http://www.railstutorial.org/
24
+ * ...
45
25
 
46
26
 
47
- == Debugging Rails
48
-
49
- Sometimes your application goes wrong. Fortunately there are a lot of tools that
50
- will help you debug it and get it back on the rails.
51
-
52
- First area to check is the application log files. Have "tail -f" commands
53
- running on the server.log and development.log. Rails will automatically display
54
- debugging and runtime information to these files. Debugging info will also be
55
- shown in the browser on requests from 127.0.0.1.
56
-
57
- You can also log your own messages directly into the log file from your code
58
- using the Ruby logger class from inside your controllers. Example:
59
-
60
- class WeblogController < ActionController::Base
61
- def destroy
62
- @weblog = Weblog.find(params[:id])
63
- @weblog.destroy
64
- logger.info("#{Time.now} Destroyed Weblog ID ##{@weblog.id}!")
65
- end
66
- end
67
-
68
- The result will be a message in your log file along the lines of:
69
-
70
- Mon Oct 08 14:22:29 +1000 2007 Destroyed Weblog ID #1!
71
-
72
- More information on how to use the logger is at http://www.ruby-doc.org/core/
73
-
74
- Also, Ruby documentation can be found at http://www.ruby-lang.org/. There are
75
- several books available online as well:
76
-
77
- * Programming Ruby: http://www.ruby-doc.org/docs/ProgrammingRuby/ (Pickaxe)
78
- * Learn to Program: http://pine.fm/LearnToProgram/ (a beginners guide)
79
-
80
- These two books will bring you up to speed on the Ruby language and also on
81
- programming in general.
82
-
83
-
84
- == Debugger
85
-
86
- Debugger support is available through the debugger command when you start your
87
- Mongrel or WEBrick server with --debugger. This means that you can break out of
88
- execution at any point in the code, investigate and change the model, and then,
89
- resume execution! You need to install ruby-debug to run the server in debugging
90
- mode. With gems, use <tt>sudo gem install ruby-debug</tt>. Example:
91
-
92
- class WeblogController < ActionController::Base
93
- def index
94
- @posts = Post.all
95
- debugger
96
- end
97
- end
98
-
99
- So the controller will accept the action, run the first line, then present you
100
- with a IRB prompt in the server window. Here you can do things like:
101
-
102
- >> @posts.inspect
103
- => "[#<Post:0x14a6be8
104
- @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>,
105
- #<Post:0x14a6620
106
- @attributes={"title"=>"Rails", "body"=>"Only ten..", "id"=>"2"}>]"
107
- >> @posts.first.title = "hello from a debugger"
108
- => "hello from a debugger"
109
-
110
- ...and even better, you can examine how your runtime objects actually work:
111
-
112
- >> f = @posts.first
113
- => #<Post:0x13630c4 @attributes={"title"=>nil, "body"=>nil, "id"=>"1"}>
114
- >> f.
115
- Display all 152 possibilities? (y or n)
116
-
117
- Finally, when you're ready to resume execution, you can enter "cont".
118
-
119
-
120
- == Console
121
-
122
- The console is a Ruby shell, which allows you to interact with your
123
- application's domain model. Here you'll have all parts of the application
124
- configured, just like it is when the application is running. You can inspect
125
- domain models, change values, and save to the database. Starting the script
126
- without arguments will launch it in the development environment.
127
-
128
- To start the console, run <tt>rails console</tt> from the application
129
- directory.
130
-
131
- Options:
132
-
133
- * Passing the <tt>-s, --sandbox</tt> argument will rollback any modifications
134
- made to the database.
135
- * Passing an environment name as an argument will load the corresponding
136
- environment. Example: <tt>rails console production</tt>.
137
-
138
- To reload your controllers and models after launching the console run
139
- <tt>reload!</tt>
140
-
141
- More information about irb can be found at:
142
- link:http://www.rubycentral.org/pickaxe/irb.html
143
-
144
-
145
- == dbconsole
146
-
147
- You can go to the command line of your database directly through <tt>rails
148
- dbconsole</tt>. You would be connected to the database with the credentials
149
- defined in database.yml. Starting the script without arguments will connect you
150
- to the development database. Passing an argument will connect you to a different
151
- database, like <tt>rails dbconsole production</tt>. Currently works for MySQL,
152
- PostgreSQL and SQLite 3.
153
-
154
- == Description of Contents
155
-
156
- The default directory structure of a generated Ruby on Rails application:
157
-
158
- |-- app
159
- | |-- assets
160
- | | |-- images
161
- | | |-- javascripts
162
- | | `-- stylesheets
163
- | |-- controllers
164
- | |-- helpers
165
- | |-- mailers
166
- | |-- models
167
- | `-- views
168
- | `-- layouts
169
- |-- config
170
- | |-- environments
171
- | |-- initializers
172
- | `-- locales
173
- |-- db
174
- |-- doc
175
- |-- lib
176
- | |-- assets
177
- | `-- tasks
178
- |-- log
179
- |-- public
180
- |-- script
181
- |-- test
182
- | |-- fixtures
183
- | |-- functional
184
- | |-- integration
185
- | |-- performance
186
- | `-- unit
187
- |-- tmp
188
- | `-- cache
189
- | `-- assets
190
- `-- vendor
191
- |-- assets
192
- | |-- javascripts
193
- | `-- stylesheets
194
- `-- plugins
195
-
196
- app
197
- Holds all the code that's specific to this particular application.
198
-
199
- app/assets
200
- Contains subdirectories for images, stylesheets, and JavaScript files.
201
-
202
- app/controllers
203
- Holds controllers that should be named like weblogs_controller.rb for
204
- automated URL mapping. All controllers should descend from
205
- ApplicationController which itself descends from ActionController::Base.
206
-
207
- app/models
208
- Holds models that should be named like post.rb. Models descend from
209
- ActiveRecord::Base by default.
210
-
211
- app/views
212
- Holds the template files for the view that should be named like
213
- weblogs/index.html.erb for the WeblogsController#index action. All views use
214
- eRuby syntax by default.
215
-
216
- app/views/layouts
217
- Holds the template files for layouts to be used with views. This models the
218
- common header/footer method of wrapping views. In your views, define a layout
219
- using the <tt>layout :default</tt> and create a file named default.html.erb.
220
- Inside default.html.erb, call <% yield %> to render the view using this
221
- layout.
222
-
223
- app/helpers
224
- Holds view helpers that should be named like weblogs_helper.rb. These are
225
- generated for you automatically when using generators for controllers.
226
- Helpers can be used to wrap functionality for your views into methods.
227
-
228
- config
229
- Configuration files for the Rails environment, the routing map, the database,
230
- and other dependencies.
231
-
232
- db
233
- Contains the database schema in schema.rb. db/migrate contains all the
234
- sequence of Migrations for your schema.
235
-
236
- doc
237
- This directory is where your application documentation will be stored when
238
- generated using <tt>rake doc:app</tt>
239
-
240
- lib
241
- Application specific libraries. Basically, any kind of custom code that
242
- doesn't belong under controllers, models, or helpers. This directory is in
243
- the load path.
244
-
245
- public
246
- The directory available for the web server. Also contains the dispatchers and the
247
- default HTML files. This should be set as the DOCUMENT_ROOT of your web
248
- server.
249
-
250
- script
251
- Helper scripts for automation and generation.
252
-
253
- test
254
- Unit and functional tests along with fixtures. When using the rails generate
255
- command, template test files will be generated for you and placed in this
256
- directory.
257
-
258
- vendor
259
- External libraries that the application depends on. Also includes the plugins
260
- subdirectory. If the app has frozen rails, those gems also go here, under
261
- vendor/rails/. This directory is in the load path.
27
+ Please feel free to use a different markup language if you do not plan to run
28
+ <tt>rake doc:app</tt>.