http_accept 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/Rakefile +2 -0
  3. data/lib/http_accept/parser.rb +1 -1
  4. metadata +9 -10
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: c3a81090c521b4ff0495126bb144542c000e667b
4
+ data.tar.gz: fbde68e3b5ebee34c171e191a0ae230f019f27f3
5
+ SHA512:
6
+ metadata.gz: 4db0187325e897f15328c0130c4b938fc909b647ac5805f8006f67cbc89d4c1eb72263f997bca2ba856c6dcd741909ab6ccff2b2002018821f84ff2a2626a841
7
+ data.tar.gz: b2fd417b8eaa3580ba83c346750447c71ef3fde9dc313868ef4195f2c9dfefb26a2e871e601d3225f8b5a18e9c9d66c9a3a7fd51794e998a490415a6ba2a2278
data/Rakefile CHANGED
@@ -1,5 +1,7 @@
1
1
  require "rake/testtask"
2
2
 
3
+ task :default => :test
4
+
3
5
  Rake::TestTask.new do |t|
4
6
  t.libs.push "lib", "test"
5
7
  t.test_files = FileList['test/**/*_test.rb']
@@ -16,7 +16,7 @@ module HTTPAccept
16
16
 
17
17
  private
18
18
 
19
- PARAM_PATTERN = /((\w+)\s*=\s*'([\w.]+)'|(\w+)\s*=\s*"?([\w.]+)"?)/
19
+ PARAM_PATTERN = /((\w+)\s*=\s*'([\w.\-_]+)'|(\w+)\s*=\s*"?([\w.\-_]+)"?)/
20
20
 
21
21
  def parse_params(segment)
22
22
  format, *params = segment.split(";")
metadata CHANGED
@@ -1,15 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http_accept
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
5
- prerelease:
4
+ version: 0.1.6
6
5
  platform: ruby
7
6
  authors:
8
7
  - Brandur
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-07-17 00:00:00.000000000 Z
11
+ date: 2014-10-22 00:00:00.000000000 Z
13
12
  dependencies: []
14
13
  description:
15
14
  email: brandur@mutelight.org
@@ -19,32 +18,32 @@ extra_rdoc_files: []
19
18
  files:
20
19
  - README.md
21
20
  - Rakefile
21
+ - lib/http_accept.rb
22
22
  - lib/http_accept/media_type.rb
23
23
  - lib/http_accept/parser.rb
24
- - lib/http_accept.rb
25
24
  homepage: https://github.com/brandur/http_accept
26
25
  licenses:
27
26
  - MIT
27
+ metadata: {}
28
28
  post_install_message:
29
29
  rdoc_options: []
30
30
  require_paths:
31
31
  - lib
32
32
  required_ruby_version: !ruby/object:Gem::Requirement
33
- none: false
34
33
  requirements:
35
- - - ! '>='
34
+ - - ">="
36
35
  - !ruby/object:Gem::Version
37
36
  version: '0'
38
37
  required_rubygems_version: !ruby/object:Gem::Requirement
39
- none: false
40
38
  requirements:
41
- - - ! '>='
39
+ - - ">="
42
40
  - !ruby/object:Gem::Version
43
41
  version: '0'
44
42
  requirements: []
45
43
  rubyforge_project:
46
- rubygems_version: 1.8.23
44
+ rubygems_version: 2.2.2
47
45
  signing_key:
48
- specification_version: 3
46
+ specification_version: 4
49
47
  summary: Simple library for HTTP Accept header parsing and ordering.
50
48
  test_files: []
49
+ has_rdoc: