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.
@@ -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
@@ -1,10 +1,10 @@
1
- Gemfile.lock
2
- doc
3
- pkg
4
- tmp/*
1
+ /Gemfile.lock
2
+ /doc/
3
+ /pkg/
4
+ /vendor/bundle
5
+ /.bundle
6
+ /.yardoc
5
7
  .DS_Store
6
- .bundle
7
- .yardoc
8
8
  *.db
9
9
  *.log
10
10
  *.swp
@@ -1,3 +1,8 @@
1
+ ### 0.7.2 / 2020-11-29
2
+
3
+ * Use `URI::DEFAULT_PARSER.escape` / `.unescape` instead of the deprecated
4
+ `URI.escape` / `URI.unescape`.
5
+
1
6
  ### 0.7.1 / 2015-06-11
2
7
 
3
8
  * Fixed a Ruby 2.2 specific bug where `alias`es are defined before the method
data/Gemfile CHANGED
@@ -13,5 +13,5 @@ group :development do
13
13
  gem 'rspec', '~> 3.0'
14
14
 
15
15
  gem 'kramdown'
16
- gem 'yard', '~> 0.8'
16
+ gem 'yard', '~> 0.9'
17
17
  end
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010-2015 Hal Brodigan
1
+ Copyright (c) 2010-2020 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
@@ -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-2015 Hal Brodigan
44
+ Copyright (c) 2010-2020 Hal Brodigan
47
45
 
48
46
  See {file:LICENSE.txt} for license information.
data/Rakefile CHANGED
@@ -1,10 +1,4 @@
1
- begin
2
- require 'bundler/setup'
3
- rescue LoadError => e
4
- abort e.message
5
- end
6
-
7
- require 'rake'
1
+ require 'rubygems'
8
2
 
9
3
  require 'rubygems/tasks'
10
4
  Gem::Tasks.new
@@ -8,4 +8,4 @@ email: postmodern.mod3@gmail.com
8
8
  has_yard: true
9
9
 
10
10
  development_dependencies:
11
- bundler: ~> 1.0
11
+ bundler: ~> 2.0
@@ -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
 
@@ -1,6 +1,6 @@
1
1
  module URI
2
2
  module QueryParams
3
3
  # uri-query_params version
4
- VERSION = '0.7.1'
4
+ VERSION = '0.7.2'
5
5
  end
6
6
  end
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.1
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: 2015-06-11 00:00:00.000000000 Z
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: '1.0'
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: '1.0'
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
- - .gitignore
38
- - .rspec
39
- - .travis.yml
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
- rubyforge_project:
83
- rubygems_version: 1.8.23.2
78
+ rubygems_version: 3.1.4
84
79
  signing_key:
85
- specification_version: 3
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
@@ -1,6 +0,0 @@
1
- ---
2
- rvm:
3
- - 1.9.3
4
- - 2.0
5
- - 2.1
6
- - 2.2