browser_warrior 0.7.0 → 0.8.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33afb391f54dc5786c0b15f06815b71a9d291f04
4
- data.tar.gz: a8ff2506df6d5abaeb6030b49a94995a46a78dd5
3
+ metadata.gz: 95d3044534a0d02d1ccf51b19ab6e36ea9ab8761
4
+ data.tar.gz: 76cf336c3c0011a3562342341a73a60afd51544b
5
5
  SHA512:
6
- metadata.gz: d96bd57cb77c020961cbffb3b960d3597237d8abd0bd6f6c9dc25a53b7f1327db120d8eb094919bf3a06bf61e569580aeeb6a20bcae315d52b2592d111b14de3
7
- data.tar.gz: 02c0b6e0d26c8c6fd929541cf0d3e13d3e70cf38dd3c2ce8c51b7c713d42b5ff6ae018d18cbf3638a128dc1d2c52202b7f5d83505e6161bd9b7037c009a783cb
6
+ metadata.gz: 492a736a317aa0dab7391d53ce44e47a7385514e42afd3279aeccacbb5ebd663982b490eb1f75bbe12dc8398a15b54abf213fee396358eb7b383f9640598f6d8
7
+ data.tar.gz: e49310e17796037bb14996b6b22a4de7b026725867a5ac5e551ead18b5ba84fcae25b613ab37909aea788fc2547ede859bc0b37bd30fdcd88c0fe0035050c97f
data/README.md CHANGED
@@ -1,12 +1,12 @@
1
1
  # BrowserWarrior
2
2
 
3
- Are you a warrior? Are you brave enough to reject your IE 6/7/8 users?
3
+ Are you a warrior? Are you brave enough to reject your non-modern browser users?
4
4
 
5
5
  It is time to say YES.
6
6
 
7
7
  **BrowserWarrior** makes this super easy with one line of code.
8
8
 
9
- **Note**: Only Rails 5.0 & 5.1 is supported at this time.
9
+ **Note**: Only Ruby on Rails 5.x is supported at this time.
10
10
 
11
11
  ```ruby
12
12
  # in your Gemfile
@@ -8,7 +8,7 @@
8
8
  <div class="browser-warrior-mask">
9
9
  <div class="browser-warrior-dialog" id="browser-warrior-dialog">
10
10
  <div class="browser-warrior-text">
11
- <h1 class="browser-warrior-title">您正在使用低版本的 IE 浏览器!</h1>
11
+ <h1 class="browser-warrior-title">您正在使用过旧版本的浏览器!</h1>
12
12
  <p class="browser-warrior-para">
13
13
  这可能会带来非常严重的安全隐患,并且不利于我们为您提供良好的用户体验。
14
14
  </p>
@@ -1,3 +1,3 @@
1
1
  module BrowserWarrior
2
- VERSION = '0.7.0'
2
+ VERSION = '0.8.0'
3
3
  end
@@ -1,6 +1,7 @@
1
1
  BrowserWarrior.detect do |browser|
2
2
  # See https://github.com/fnando/browser#usage for more usage
3
- if browser.ie?(6) or browser.ie?(7) or browser.ie?(8)
3
+ # Webkit, Firefox 17+, IE 9+ and Opera 12+
4
+ if ! browser.modern?
4
5
  # reject when false
5
6
  false
6
7
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: browser_warrior
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - yafeilee
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-29 00:00:00.000000000 Z
11
+ date: 2018-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -80,8 +80,8 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: BrowserWarrior is a Ruby on Rails engine that let you reject your ie6/7/8
84
- user just one line code
83
+ description: BrowserWarrior is a Ruby on Rails engine that let you reject your non-modern
84
+ browser user just one line code
85
85
  email:
86
86
  - lyfi2003@gmail.com
87
87
  executables: []
@@ -129,5 +129,5 @@ rubyforge_project:
129
129
  rubygems_version: 2.6.6
130
130
  signing_key:
131
131
  specification_version: 4
132
- summary: Make your Rails app reject your ie 6/7/8 user just one line code
132
+ summary: Make your Rails app reject your non-modern browser user just one line code
133
133
  test_files: []