outdated_browser 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e175f00eee87831526d41abb431c7f564b21b876
4
- data.tar.gz: be1ed0011a8244462a3ee55331d2d04563b67968
3
+ metadata.gz: 9f776ded7cf80e799d937f4cdc36211a2effe5ac
4
+ data.tar.gz: 89c21f1cd425412451a11a3718b94e12c89af3cc
5
5
  SHA512:
6
- metadata.gz: eb0c9f6a3a11e8f7199536394a118365c7efd6f23b62ed593862bcc1c8d4558e362b519a206ca4521067f21e98b8e8ec18ca3e438c371f1e049e714eb1884674
7
- data.tar.gz: 4ac675196aba1000a15e07ba963cde7b4487daca98520420acbf73bbbccaa64b8279f520a878ae03244c142d0b30bd7e942199e7da7f03258988589dd4c45dae
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
+ ![alt tag](https://github.com/sergiojadir/outdated_browser/blob/develop/app/assets/images/outdated_browser/first.png)
6
+ ![alt tag](https://github.com/sergiojadir/outdated_browser/blob/develop/app/assets/images/outdated_browser/step-by-step.png)
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.2.3'
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.
@@ -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:1500;
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;}
@@ -77,6 +77,7 @@ body {
77
77
 
78
78
  #body-wrap {
79
79
  background: #DED3BF url(<%= asset_path("outdated_browser/bg.jpg") %>) repeat 0 0;
80
+ margin-top: 120px !important;
80
81
  }
81
82
 
82
83
  header, #main, footer {
@@ -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 >= 17 }
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
- rules << -> b { b.firefox? && b.tablet? && b.android? && b.version.to_i >= 14 }
8
+ rules << -> (b) { b.firefox? && b.device.tablet? && b.platform.android? && b.version.to_i >= 14 } # rubocop:disable Metrics/LineLength
9
9
  end
@@ -1,3 +1,3 @@
1
1
  module OutdatedBrowser
2
- VERSION = "0.3.3"
2
+ VERSION = "0.3.4"
3
3
  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.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-05-21 00:00:00.000000000 Z
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