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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a0df5aa606a73f07a6c1208435a51f65069afd66
4
- data.tar.gz: c5856e7086c28c9225aca280dd8fd14e3c99cbcb
3
+ metadata.gz: 8bae41c49113ab9be08fc6b534ee1011b46b1f8d
4
+ data.tar.gz: eb887f8fd5ef80cbebe22469b58c958446e70f10
5
5
  SHA512:
6
- metadata.gz: c4a2b36c2b7c59a4cd575d8a9f7e97999cf4e128fc80b51b4984ced8fd892cab20c6e3defbf4359219e1441b3ddafc3a31d6569cfafd4061316a72f25cb47293
7
- data.tar.gz: 323c79deabbb63bc660a8e9b31040e2988d0f4eb6a2f481a54b80fe4b3e650a354df3bda531a39de2c7b0683c018f1025e364ec4b79473bdcb81228425c5aa95
6
+ metadata.gz: 03aaca5fa63690ca27bc5935f7016126122940fd66f8713eaa11a299b1e5c07dc1b805619d893a4af4af11779aaf6d6c7ace4bc3192ac6eb2be1bc9ea0c502dc
7
+ data.tar.gz: e5b865abde4d2faac1748236504ec7fe3ea953782aaa9ba27c197f04abdf04f36aab665d84b288f5a534663facd1feaf852e63b95eeae7595ff20c38aad1c468
data/README.md CHANGED
@@ -23,6 +23,7 @@ request_parser.is_mac_os? #=> true
23
23
  request_parser.is_electron_client? #=> true
24
24
  request_parser.is_windows_os? #=> false
25
25
  request_parser.is_chrome_browser? #=> true
26
+ request_parser.is_firefox_browser? #=> true
26
27
  ```
27
28
 
28
29
  ## License
@@ -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
@@ -1,3 +1,3 @@
1
1
  class RailsRequestParser
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
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.1.4
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-01-19 00:00:00.000000000 Z
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.2.2
110
+ rubygems_version: 2.5.2
111
111
  signing_key:
112
112
  specification_version: 4
113
113
  summary: Parse rails requests.