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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cc67bd83bfc5a5da2b33ddb21f124663d45e54ce09498b541f223a6180851236
4
- data.tar.gz: 692d674b03b6e0e165c4ee5cd78363b9e7288ac428d4972c69de8f90379668fc
3
+ metadata.gz: bd44e30ac1cd40c95e093e8d089ba7f1a45c713efb447bdd0b0a3450450ee8db
4
+ data.tar.gz: 2583cc6cbdc4b63a09161629edf101d6f4db148d712ae4172291d6a8a0c039b8
5
5
  SHA512:
6
- metadata.gz: cb4d13c217fabbd2abe86abab5a4bdce9c7039430967c955cac58d9eb06584c29dfd7cbdfefe04250d6670936f28bae2d619ea4bb9a9c762ba5ac005bb83d1f4
7
- data.tar.gz: 902d5196f48db8853c9f60110039ffc0fa41835c6877dac60798f69ea3a5e0f063c5cc321f5d8bae3635ddd41d00920edd3ee87cd24ab1eee46e32a78e285d29
6
+ metadata.gz: 550c07c019eb59350688181613c147aeffb74d8f7728dd85f81df6ad178b1d17ee4cde18bf1a63fcf280abc4ada2ca95d6db8427086f40bd3b0301cc1354fddd
7
+ data.tar.gz: 0f8b1c905f632864282bc8d46d07dc75eb48a6217d655265b7b9bb9f7b238f0af4e2e1da927e9fd42786196eef1d7d16242cdf4ca42ba614c9d94199d2c36ddb
@@ -10,7 +10,9 @@ jobs:
10
10
  matrix:
11
11
  ruby:
12
12
  - '3.0'
13
- - 3.1
13
+ - '3.1'
14
+ - '3.2'
15
+ - '3.3'
14
16
  - jruby
15
17
  - truffleruby
16
18
  name: Ruby ${{ matrix.ruby }}
data/ChangeLog.md CHANGED
@@ -1,3 +1,8 @@
1
+ ### 0.8.2 / 2024-01-25
2
+
3
+ * Switched to using `require_relative` to improve load-times.
4
+ * Added `# frozen_string_literal: true` to all files.
5
+
1
6
  ### 0.8.1 / 2022-10-22
2
7
 
3
8
  * Updated {URI::Generic#to_s} to ruby-3.0.0.
data/Gemfile CHANGED
@@ -14,6 +14,7 @@ group :development do
14
14
  gem 'simplecov', '~> 0.20'
15
15
 
16
16
  gem 'kramdown'
17
+ gem 'redcarpet', platform: :mri
17
18
  gem 'yard', '~> 0.9'
18
19
  gem 'yard-spellcheck', require: false
19
20
  end
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2022 Hal Brodigan
1
+ Copyright (c) 2010-2024 Hal Brodigan
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
data/README.md CHANGED
@@ -46,12 +46,12 @@ URI(url.fragment).query_params
46
46
 
47
47
  ## Install
48
48
 
49
- $ gem install uri-query_params
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/query_params/mixin'
2
4
 
3
5
  require 'addressable/uri'
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'uri/query_params/mixin'
3
+ require_relative '../../mixin'
4
4
 
5
5
  require 'uri/generic'
6
6
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'uri/query_params/core_ext/uri/generic'
3
+ require_relative 'generic'
4
4
 
5
5
  require 'uri/http'
6
6
 
@@ -1,2 +1,4 @@
1
- require 'uri/query_params/core_ext/uri/generic'
2
- require 'uri/query_params/core_ext/uri/http'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'uri/generic'
4
+ require_relative 'uri/http'
@@ -1,2 +1,4 @@
1
- require 'uri/query_params/core_ext/uri'
2
- require 'uri/query_params/core_ext/addressable/uri' if defined?(Addressable)
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'core_ext/uri'
4
+ require_relative 'core_ext/addressable/uri' if defined?(Addressable)
@@ -1 +1,3 @@
1
- require 'uri/query_params/core_ext/addressable/uri'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../../core_ext/addressable/uri'
@@ -1 +1,3 @@
1
- require 'uri/query_params/core_ext/uri/generic'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../../core_ext/uri/generic'
@@ -1 +1,3 @@
1
- require 'uri/query_params/core_ext/uri'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative '../core_ext/uri'
@@ -1 +1,3 @@
1
- require 'uri/query_params/core_ext'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'core_ext'
@@ -1,4 +1,6 @@
1
- require 'uri/query_params/query_params'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'query_params'
2
4
 
3
5
  module URI
4
6
  module QueryParams
@@ -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
@@ -1,6 +1,8 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module URI
2
4
  module QueryParams
3
5
  # uri-query_params version
4
- VERSION = '0.8.1'
6
+ VERSION = '0.8.2'
5
7
  end
6
8
  end
@@ -1,2 +1,4 @@
1
- require 'uri/query_params/query_params'
2
- require 'uri/query_params/core_ext'
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'query_params/query_params'
4
+ require_relative 'query_params/core_ext'
@@ -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
- lib_dir = File.join(File.dirname(__FILE__),'lib')
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.1
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: 2022-10-23 00:00:00.000000000 Z
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.3.7
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.