outdated_browser 0.3.3 → 0.3.4
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.
- checksums.yaml +4 -4
- data/README.md +17 -1
- data/app/assets/images/outdated_browser/first.png +0 -0
- data/app/assets/images/outdated_browser/step-by-step.png +0 -0
- data/app/assets/stylesheets/outdated_browser/outdated_browser_alerta.css +1 -1
- data/app/assets/stylesheets/outdated_browser/outdated_browser_index.css.erb +1 -0
- data/config/initializers/assets.rb +1 -1
- data/config/initializers/browser.rb +2 -2
- data/lib/outdated_browser/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9f776ded7cf80e799d937f4cdc36211a2effe5ac
|
|
4
|
+
data.tar.gz: 89c21f1cd425412451a11a3718b94e12c89af3cc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4a076532fd1c2a8781acdf400c1a9257b2ea114eb87d41103dc9b2532189a28ca12bc83bc31729b0133f03c007e050ac4472fc118c9c9e97e168cdad3868b80b
|
|
7
|
+
data.tar.gz: 6cb9a61c6f92b35116467647559179194dfa41182651e6b38f6eeecf7c4bc25cb228e3c3f7e1f648b91264d9b907a4072b2391c34330ef233db113b5c23486ed
|
data/README.md
CHANGED
|
@@ -2,12 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Detect outdated browsers and Javascript disabled.
|
|
4
4
|
|
|
5
|
+

|
|
6
|
+

|
|
7
|
+
|
|
5
8
|
## Installation
|
|
6
9
|
|
|
7
10
|
Add this line to your application's Gemfile:
|
|
8
11
|
|
|
9
12
|
```ruby
|
|
10
|
-
gem 'outdated_browser', '~> 0.
|
|
13
|
+
gem 'outdated_browser', '~> 0.3.3'
|
|
11
14
|
```
|
|
12
15
|
|
|
13
16
|
And then execute:
|
|
@@ -27,6 +30,19 @@ Or install it yourself as:
|
|
|
27
30
|
</body>
|
|
28
31
|
```
|
|
29
32
|
|
|
33
|
+
### I18n
|
|
34
|
+
* Avaliable only in Portuguese.
|
|
35
|
+
|
|
36
|
+
Add English translation:
|
|
37
|
+
|
|
38
|
+
```yaml
|
|
39
|
+
#config/locales/outdated_browser.en.yml
|
|
40
|
+
en:
|
|
41
|
+
outdated_browser:
|
|
42
|
+
browser_is_up_to_date: 'translate here'
|
|
43
|
+
how_to_enable_javascript_in_your_browser: 'translate here'
|
|
44
|
+
```
|
|
45
|
+
|
|
30
46
|
## Development
|
|
31
47
|
|
|
32
48
|
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
|
Binary file
|
|
Binary file
|
|
@@ -7,7 +7,7 @@ website: http://www.burocratik.com
|
|
|
7
7
|
-----------------------------------------------------------------------*/
|
|
8
8
|
#outdated{
|
|
9
9
|
display: none; position: fixed; top: 0; left: 0; width: 100%; height: 110px;
|
|
10
|
-
text-align: center; text-transform: uppercase; z-index:
|
|
10
|
+
text-align: center; text-transform: uppercase; z-index:5000;
|
|
11
11
|
background-color: #f25648; color: #ffffff;
|
|
12
12
|
}
|
|
13
13
|
* html #outdated{position: absolute;}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
Rails.application.config.assets.precompile += %w( outdated_browser.js outdated_browser/outdated_browser_alerta.js modernizr-1.6.min.js)
|
|
1
|
+
Rails.application.config.assets.precompile += %w( outdated_browser.js outdated_browser/outdated_browser_alerta.js outdated_browser/modernizr-1.6.min.js)
|
|
2
2
|
Rails.application.config.assets.precompile += %w( outdated_browser.css outdated_browser/outdated_browser_alerta.css outdated_browser/enablejs.css outdated_browser/outdated_browser_index.css )
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
Browser.modern_rules.clear
|
|
2
2
|
Browser.modern_rules.tap do |rules|
|
|
3
3
|
rules << -> b { b.webkit? }
|
|
4
|
-
rules << -> b { b.firefox? && b.version.to_i >=
|
|
4
|
+
rules << -> b { b.firefox? && b.version.to_i >= 117 }
|
|
5
5
|
rules << -> b { b.ie? && b.version.to_i >= 10 }
|
|
6
6
|
rules << -> b { b.opera? && b.version.to_i >= 12 }
|
|
7
7
|
rules << -> b { b.chrome? && b.version.to_i >= 37 }
|
|
8
|
-
|
|
8
|
+
rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
|
|
9
9
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: outdated_browser
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sérgio Jadir Ribeiro Leite
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-09-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -71,6 +71,8 @@ files:
|
|
|
71
71
|
- app/assets/images/outdated_browser/bg.jpg
|
|
72
72
|
- app/assets/images/outdated_browser/browsehappy-sprite.png
|
|
73
73
|
- app/assets/images/outdated_browser/browsers.png
|
|
74
|
+
- app/assets/images/outdated_browser/first.png
|
|
75
|
+
- app/assets/images/outdated_browser/step-by-step.png
|
|
74
76
|
- app/assets/javascripts/bootstrap/bootstrap.min.js
|
|
75
77
|
- app/assets/javascripts/bootstrap/npm.js
|
|
76
78
|
- app/assets/javascripts/outdated_browser.js
|