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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bc7a3593d5c2e77b81cfb1be12e2002f984f8aa1
4
- data.tar.gz: 7d735c35bbd535dd73d59e6b2cbc9493ad1a378a
3
+ metadata.gz: c8792f00333ad97b2ba76f557efeea04b89150fb
4
+ data.tar.gz: db384a4d8c739f28cbe656b724b4a9ff74815222
5
5
  SHA512:
6
- metadata.gz: f33c698a2a77901840511998499ce921d01478fbebb67a5b3fa357a242034cf8be4562a1c28f3ba5f0b8f68265edd3e6592be2fd936423696b901e195d338c63
7
- data.tar.gz: de2cad4db1c82993880d778a1c31d5f37dbba964f76ef961d193883d48b2a2deb7c26e9df4358c0fc6e3942353e10f8d57a28770cc8918e0ae99e7f1babea778
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/rails_request_parser`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- $ bundle
18
-
11
+ ```
12
+ $ bundle
13
+ ```
19
14
  Or install it yourself as:
20
-
21
- $ gem install rails_request_parser
15
+ ```
16
+ $ gem install rails_request_parser
17
+ ```
22
18
 
23
19
  ## Usage
24
-
25
- TODO: Write usage instructions here
26
-
27
- ## Development
28
-
29
- After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
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
@@ -1,3 +1,3 @@
1
1
  class RailsRequestParser
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_request_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Gesualdo