uri-query_params 0.8.1 → 0.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +3 -1
- data/ChangeLog.md +5 -0
- data/Gemfile +1 -0
- data/LICENSE.txt +1 -1
- data/README.md +3 -3
- data/lib/uri/query_params/core_ext/addressable/uri.rb +2 -0
- data/lib/uri/query_params/core_ext/uri/generic.rb +1 -1
- data/lib/uri/query_params/core_ext/uri/http.rb +1 -1
- data/lib/uri/query_params/core_ext/uri.rb +4 -2
- data/lib/uri/query_params/core_ext.rb +4 -2
- data/lib/uri/query_params/extensions/addressable/uri.rb +3 -1
- data/lib/uri/query_params/extensions/uri/generic.rb +3 -1
- data/lib/uri/query_params/extensions/uri.rb +3 -1
- data/lib/uri/query_params/extensions.rb +3 -1
- data/lib/uri/query_params/mixin.rb +3 -1
- data/lib/uri/query_params/query_params.rb +4 -2
- data/lib/uri/query_params/version.rb +3 -1
- data/lib/uri/query_params.rb +4 -2
- data/uri-query_params.gemspec +1 -4
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bd44e30ac1cd40c95e093e8d089ba7f1a45c713efb447bdd0b0a3450450ee8db
|
4
|
+
data.tar.gz: 2583cc6cbdc4b63a09161629edf101d6f4db148d712ae4172291d6a8a0c039b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 550c07c019eb59350688181613c147aeffb74d8f7728dd85f81df6ad178b1d17ee4cde18bf1a63fcf280abc4ada2ca95d6db8427086f40bd3b0301cc1354fddd
|
7
|
+
data.tar.gz: 0f8b1c905f632864282bc8d46d07dc75eb48a6217d655265b7b9bb9f7b238f0af4e2e1da927e9fd42786196eef1d7d16242cdf4ca42ba614c9d94199d2c36ddb
|
data/.github/workflows/ruby.yml
CHANGED
data/ChangeLog.md
CHANGED
data/Gemfile
CHANGED
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -46,12 +46,12 @@ URI(url.fragment).query_params
|
|
46
46
|
|
47
47
|
## Install
|
48
48
|
|
49
|
-
|
49
|
+
```shell
|
50
|
+
$ gem install uri-query_params
|
51
|
+
```
|
50
52
|
|
51
53
|
## License
|
52
54
|
|
53
|
-
Copyright (c) 2010-2022 Hal Brodigan
|
54
|
-
|
55
55
|
See {file:LICENSE.txt} for license information.
|
56
56
|
|
57
57
|
[ruby]: https://www.ruby-lang.org/
|
@@ -1,3 +1,5 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
1
3
|
require 'uri/common'
|
2
4
|
|
3
5
|
module URI
|
@@ -78,8 +80,8 @@ module URI
|
|
78
80
|
def self.escape(value)
|
79
81
|
case value
|
80
82
|
when Array then URI::DEFAULT_PARSER.escape(value.join(' '),UNSAFE)
|
81
|
-
when true then 'active'
|
82
|
-
when false, nil then ''
|
83
|
+
when true then String.new('active')
|
84
|
+
when false, nil then String.new('')
|
83
85
|
else URI::DEFAULT_PARSER.escape(value.to_s,UNSAFE)
|
84
86
|
end
|
85
87
|
end
|
data/lib/uri/query_params.rb
CHANGED
data/uri-query_params.gemspec
CHANGED
@@ -7,10 +7,7 @@ Gem::Specification.new do |gem|
|
|
7
7
|
|
8
8
|
gem.name = gemspec.fetch('name')
|
9
9
|
gem.version = gemspec.fetch('version') do
|
10
|
-
|
11
|
-
$LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
|
12
|
-
|
13
|
-
require 'uri/query_params/version'
|
10
|
+
require_relative 'lib/uri/query_params/version'
|
14
11
|
URI::QueryParams::VERSION
|
15
12
|
end
|
16
13
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: uri-query_params
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Postmodern
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -92,7 +92,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
92
92
|
- !ruby/object:Gem::Version
|
93
93
|
version: '0'
|
94
94
|
requirements: []
|
95
|
-
rubygems_version: 3.
|
95
|
+
rubygems_version: 3.4.10
|
96
96
|
signing_key:
|
97
97
|
specification_version: 4
|
98
98
|
summary: Access the query parameters of a URI, just like $_GET in PHP.
|