http-accept 1.0.0 → 1.0.1

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: b3e639112f0987204fc1c5f221df4a5f5f066742
4
- data.tar.gz: 0285743cfe72774a0c92bb7767d5cb0aaf8131c5
3
+ metadata.gz: 02b776cfc42af7c6a5cf36d154a76372a1190088
4
+ data.tar.gz: 17e40217b15891a3ab68a9a8262687104a826ff0
5
5
  SHA512:
6
- metadata.gz: 9e642fbaa9710c53966260df269b7b5c7c21d8b2f702633ab94667c506235656f5a0cdadfc6f3841b35f8cef86b38a5ed6dc4c33c19a19f39943bbae01d563f3
7
- data.tar.gz: f0fd1541954d7c65ad388c4e7cb0f7511d2460159281bdbf2273140323cceda56af1a03fe670d8b593a2224400f7895fd6c16db55eff3d79964929c8d7c297ff
6
+ metadata.gz: 7abab3f7a1543dccffb606f0ca0136eeaebacb132d569abf614ba94469a9327c943972bb75860484b7a1d528476326760e5b4ea024ee18137972b99901c47bdb
7
+ data.tar.gz: 46609f96228bb2b0608b086fcf6bfdcff40b3cb0b2074cbbd8383ad01e88dc229982c2a89bfd6a108e8a035ab0dbab13479c684900ecc002475ffe3f269cc55c
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ env: COVERAGE=true
3
4
  rvm:
4
5
  - 2.3.0
data/Gemfile CHANGED
@@ -2,3 +2,8 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in http-accept.gemspec
4
4
  gemspec
5
+
6
+ group :test do
7
+ gem 'simplecov'
8
+ gem 'coveralls', require: false
9
+ end
data/README.md CHANGED
@@ -4,6 +4,10 @@ Provides a robust set of parsers for dealing with Accept and Accept-Language HTT
4
4
 
5
5
  Current `Accept-Encoding:` and `Accept-Charset:` are not supported. This is because they are not particularly useful headers, but PRs are welcome.
6
6
 
7
+ [![Build Status](https://secure.travis-ci.org/ioquatix/http-accept.svg)](http://travis-ci.org/ioquatix/http-accept)
8
+ [![Code Climate](https://codeclimate.com/github/ioquatix/http-accept.svg)](https://codeclimate.com/github/ioquatix/http-accept)
9
+ [![Coverage Status](https://coveralls.io/repos/ioquatix/http-accept/badge.svg)](https://coveralls.io/r/ioquatix/http-accept)
10
+
7
11
  ## Installation
8
12
 
9
13
  Add this line to your application's Gemfile:
@@ -35,7 +35,7 @@ module HTTP
35
35
  value.gsub!(/\\(.)/, '\1')
36
36
 
37
37
  if normalize_whitespace
38
- value = value.gsub!(/[\r\n](\s+)+/, ' ')
38
+ value.gsub!(/[\r\n]\s+/, ' ')
39
39
  end
40
40
 
41
41
  return value
@@ -20,6 +20,6 @@
20
20
 
21
21
  module HTTP
22
22
  module Accept
23
- VERSION = "1.0.0"
23
+ VERSION = "1.0.1"
24
24
  end
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-accept
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams