browser_warrior 0.6.0 → 0.7.0

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: 18501db93a774c9ba1dbfab875cabb3c23b4450e
4
- data.tar.gz: dc93592b9fd15bc439bb33a34a02934414f5821f
3
+ metadata.gz: 33afb391f54dc5786c0b15f06815b71a9d291f04
4
+ data.tar.gz: a8ff2506df6d5abaeb6030b49a94995a46a78dd5
5
5
  SHA512:
6
- metadata.gz: 268a80cb55c18d1c3b8721e08e3c44491c3deba118f54924a0d40a698f68fd2bf3acc1db05d01c01152299af9c7a80a50a0cb3362cf5aac69951764658df60a9
7
- data.tar.gz: cf0496e92a780ed8d4e1a960640d00c0fb77f5aeb8e492ba970649ac5b9571a17c1e4d161484125d3dda1229deb366b994e64727de50383ba77a4a7cb94f73cb
6
+ metadata.gz: d96bd57cb77c020961cbffb3b960d3597237d8abd0bd6f6c9dc25a53b7f1327db120d8eb094919bf3a06bf61e569580aeeb6a20bcae315d52b2592d111b14de3
7
+ data.tar.gz: 02c0b6e0d26c8c6fd929541cf0d3e13d3e70cf38dd3c2ce8c51b7c713d42b5ff6ae018d18cbf3638a128dc1d2c52202b7f5d83505e6161bd9b7037c009a783cb
data/README.md CHANGED
@@ -80,8 +80,9 @@ I suggest adding the code below to your base layout( e.g. `application.html.erb`
80
80
  - [ ] Extend support to more than one theme.
81
81
 
82
82
  ## Contributing
83
- *[windy](https://github.com/windy)
84
- *[azah](https://github.com/azah) (Fixing EN grammar)
83
+
84
+ * [windy](https://github.com/windy)
85
+ * [azah](https://github.com/azah) (Fixing EN grammar)
85
86
 
86
87
  ## License
87
88
  The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -14,10 +14,16 @@ module BrowserWarrior
14
14
  end
15
15
 
16
16
  def check_browser_warrior!
17
- # ignore detect rails inline controller
17
+ # ignore rails inline controller
18
18
  if params[:controller] == 'rails/welcome'
19
19
  return
20
20
  end
21
+
22
+ # ignore no html controller
23
+ if params[:format].present? && params[:format] != :html
24
+ return
25
+ end
26
+
21
27
  browser = ::Browser.new(request.user_agent)
22
28
  if ! BrowserWarrior.do_detect(browser)
23
29
  render 'browser_warrior/index', layout: false
@@ -1,3 +1,3 @@
1
1
  module BrowserWarrior
2
- VERSION = '0.6.0'
2
+ VERSION = '0.7.0'
3
3
  end
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.6.0
4
+ version: 0.7.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-27 00:00:00.000000000 Z
11
+ date: 2017-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails