rails_request_parser 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +15 -28
- data/lib/rails_request_parser/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8792f00333ad97b2ba76f557efeea04b89150fb
|
4
|
+
data.tar.gz: db384a4d8c739f28cbe656b724b4a9ff74815222
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f960edf246340d300f892085a1eedd5655616eef3bce47337a707e4fc6daa86b6967a3f4911b9f30bfac5ee1c5e8451a758ef405a76fe5510af33eda0561adf6
|
7
|
+
data.tar.gz: 2f45990b9ee68cffaa1acfae110d094afcab8ade70ebfa5016455e1dc09674bca4c12b9112029ee8df03b7953bd4beaee1cd38c42c862acb784c926676d77f62
|
data/README.md
CHANGED
@@ -1,41 +1,28 @@
|
|
1
1
|
# RailsRequestParser
|
2
|
+
> Parse Rails Request Object
|
2
3
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
7
|
-
## Installation
|
8
|
-
|
4
|
+
## Install
|
9
5
|
Add this line to your application's Gemfile:
|
10
6
|
|
11
7
|
```ruby
|
12
8
|
gem 'rails_request_parser'
|
13
9
|
```
|
14
|
-
|
15
10
|
And then execute:
|
16
|
-
|
17
|
-
|
18
|
-
|
11
|
+
```
|
12
|
+
$ bundle
|
13
|
+
```
|
19
14
|
Or install it yourself as:
|
20
|
-
|
21
|
-
|
15
|
+
```
|
16
|
+
$ gem install rails_request_parser
|
17
|
+
```
|
22
18
|
|
23
19
|
## Usage
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
-
|
33
|
-
## Contributing
|
34
|
-
|
35
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/rails_request_parser. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
36
|
-
|
20
|
+
```ruby
|
21
|
+
request_parser = RailsRequestParser.new(request)
|
22
|
+
request_parser.is_mac_os? #=> true
|
23
|
+
request_parser.is_windows_os? #=> false
|
24
|
+
request_parser.is_chrome_browser? #=> true
|
25
|
+
```
|
37
26
|
|
38
27
|
## License
|
39
|
-
|
40
|
-
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
41
|
-
|
28
|
+
MIT
|