uri-query_params 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +31 -0
- data/.gitignore +6 -6
- data/ChangeLog.md +5 -0
- data/Gemfile +1 -1
- data/LICENSE.txt +1 -1
- data/README.md +1 -3
- data/Rakefile +1 -7
- data/gemspec.yml +1 -1
- data/lib/uri/query_params/query_params.rb +3 -3
- data/lib/uri/query_params/version.rb +1 -1
- metadata +16 -21
- data/.travis.yml +0 -6
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 98c8b432e06a2809b54dfa91b64fbfe6424b7fa8db77cc6193b577b40eca90a5
|
4
|
+
data.tar.gz: af5598c46102cc70eda79bea50ad934532e14fa77729280fdd5dd0e9da2f13c6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 57dca3b3b845dfaf78873bae42784b957a3efb21c684fd4d6ffff615bcb96f0ab554491167dbf7c2424321c263af7fe5b5ac52c753c0c4b8d94a0ef7ebe6412f
|
7
|
+
data.tar.gz: ad0079b30c44014d25f08c5af69d08bc1eb7d33be6a9cbaa7afec6e8f31df9ade45d852be58abdbb13f94409ac30ea1c8abbee383e13d4c205e13a878dabd26c
|
@@ -0,0 +1,31 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches: [ master ]
|
6
|
+
pull_request:
|
7
|
+
branches: ['**']
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
tests:
|
11
|
+
runs-on: ubuntu-latest
|
12
|
+
strategy:
|
13
|
+
fail-fast: false
|
14
|
+
matrix:
|
15
|
+
ruby:
|
16
|
+
- 2.4
|
17
|
+
- 2.5
|
18
|
+
- 2.6
|
19
|
+
- 2.7
|
20
|
+
- jruby
|
21
|
+
name: Ruby ${{ matrix.ruby }}
|
22
|
+
steps:
|
23
|
+
- uses: actions/checkout@v2
|
24
|
+
- name: Set up Ruby
|
25
|
+
uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
28
|
+
- name: Install dependencies
|
29
|
+
run: bundle install --jobs 4 --retry 3
|
30
|
+
- name: Run tests
|
31
|
+
run: bundle exec rake test
|
data/.gitignore
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -5,8 +5,6 @@
|
|
5
5
|
* [Documentation](http://rubydoc.info/gems/uri-query_params/frames)
|
6
6
|
* [Email](mailto:postmodern.mod3 at gmail.com)
|
7
7
|
|
8
|
-
[![Build Status](https://secure.travis-ci.org/postmodern/uri-query_params.svg)](https://travis-ci.org/postmodern/uri-query_params)
|
9
|
-
|
10
8
|
## Description
|
11
9
|
|
12
10
|
Allows access to the query component of the URI as a Hash. This is similar
|
@@ -43,6 +41,6 @@ Parsing URI query_params embedded within the Fragment Identifier:
|
|
43
41
|
|
44
42
|
## License
|
45
43
|
|
46
|
-
Copyright (c) 2010-
|
44
|
+
Copyright (c) 2010-2020 Hal Brodigan
|
47
45
|
|
48
46
|
See {file:LICENSE.txt} for license information.
|
data/Rakefile
CHANGED
data/gemspec.yml
CHANGED
@@ -51,7 +51,7 @@ module URI
|
|
51
51
|
|
52
52
|
name, value = param.split('=',2)
|
53
53
|
value = if value
|
54
|
-
URI.unescape(value)
|
54
|
+
URI::DEFAULT_PARSER.unescape(value)
|
55
55
|
else
|
56
56
|
''
|
57
57
|
end
|
@@ -80,13 +80,13 @@ module URI
|
|
80
80
|
def self.escape(value)
|
81
81
|
case value
|
82
82
|
when Array
|
83
|
-
URI.escape(value.join(' '),UNSAFE)
|
83
|
+
URI::DEFAULT_PARSER.escape(value.join(' '),UNSAFE)
|
84
84
|
when true
|
85
85
|
'active'
|
86
86
|
when false, nil
|
87
87
|
''
|
88
88
|
else
|
89
|
-
URI.escape(value.to_s,UNSAFE)
|
89
|
+
URI::DEFAULT_PARSER.escape(value.to_s,UNSAFE)
|
90
90
|
end
|
91
91
|
end
|
92
92
|
|
metadata
CHANGED
@@ -1,43 +1,40 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uri-query_params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
5
|
-
prerelease:
|
4
|
+
version: 0.7.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Postmodern
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2020-11-29 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: bundler
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '
|
19
|
+
version: '2.0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
26
|
+
version: '2.0'
|
30
27
|
description: Allows access to the query component of the URI as a Hash.
|
31
28
|
email: postmodern.mod3@gmail.com
|
32
29
|
executables: []
|
33
30
|
extensions: []
|
34
31
|
extra_rdoc_files: []
|
35
32
|
files:
|
36
|
-
- .document
|
37
|
-
- .
|
38
|
-
- .
|
39
|
-
- .
|
40
|
-
- .yardopts
|
33
|
+
- ".document"
|
34
|
+
- ".github/workflows/ruby.yml"
|
35
|
+
- ".gitignore"
|
36
|
+
- ".rspec"
|
37
|
+
- ".yardopts"
|
41
38
|
- ChangeLog.md
|
42
39
|
- Gemfile
|
43
40
|
- LICENSE.txt
|
@@ -62,27 +59,25 @@ files:
|
|
62
59
|
homepage: https://github.com/postmodern/uri-query_params
|
63
60
|
licenses:
|
64
61
|
- MIT
|
62
|
+
metadata: {}
|
65
63
|
post_install_message:
|
66
64
|
rdoc_options: []
|
67
65
|
require_paths:
|
68
66
|
- lib
|
69
67
|
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
-
none: false
|
71
68
|
requirements:
|
72
|
-
- -
|
69
|
+
- - ">="
|
73
70
|
- !ruby/object:Gem::Version
|
74
71
|
version: '0'
|
75
72
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
-
none: false
|
77
73
|
requirements:
|
78
|
-
- -
|
74
|
+
- - ">="
|
79
75
|
- !ruby/object:Gem::Version
|
80
76
|
version: '0'
|
81
77
|
requirements: []
|
82
|
-
|
83
|
-
rubygems_version: 1.8.23.2
|
78
|
+
rubygems_version: 3.1.4
|
84
79
|
signing_key:
|
85
|
-
specification_version:
|
80
|
+
specification_version: 4
|
86
81
|
summary: Access the query parameters of a URI, just like $_GET in PHP.
|
87
82
|
test_files:
|
88
83
|
- spec/extensions/addressable/uri_spec.rb
|