rails_request_parser 0.1.4 → 0.2.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 +4 -4
- data/README.md +1 -0
- data/lib/rails_request_parser.rb +4 -0
- data/lib/rails_request_parser/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bae41c49113ab9be08fc6b534ee1011b46b1f8d
|
4
|
+
data.tar.gz: eb887f8fd5ef80cbebe22469b58c958446e70f10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03aaca5fa63690ca27bc5935f7016126122940fd66f8713eaa11a299b1e5c07dc1b805619d893a4af4af11779aaf6d6c7ace4bc3192ac6eb2be1bc9ea0c502dc
|
7
|
+
data.tar.gz: e5b865abde4d2faac1748236504ec7fe3ea953782aaa9ba27c197f04abdf04f36aab665d84b288f5a534663facd1feaf852e63b95eeae7595ff20c38aad1c468
|
data/README.md
CHANGED
data/lib/rails_request_parser.rb
CHANGED
@@ -9,6 +9,10 @@ class RailsRequestParser
|
|
9
9
|
chrome = 'Chrome'.freeze
|
10
10
|
return UserAgentParser.parse(@request.user_agent).family == chrome
|
11
11
|
end
|
12
|
+
def is_firefox_browser?
|
13
|
+
firefox = 'Firefox'.freeze
|
14
|
+
return UserAgentParser.parse(@request.user_agent).family == firefox
|
15
|
+
end
|
12
16
|
def is_electron_client?
|
13
17
|
electron = 'Electron'.freeze
|
14
18
|
return @request.user_agent.include? electron
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_request_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joe Gesualdo
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -107,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
107
107
|
version: '0'
|
108
108
|
requirements: []
|
109
109
|
rubyforge_project:
|
110
|
-
rubygems_version: 2.
|
110
|
+
rubygems_version: 2.5.2
|
111
111
|
signing_key:
|
112
112
|
specification_version: 4
|
113
113
|
summary: Parse rails requests.
|