impuri 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/test/ImpURI.rb ADDED
@@ -0,0 +1,9 @@
1
+ # test/ImpURI.rb
2
+
3
+ gem 'minitest'
4
+
5
+ test_dir = File.dirname(File.expand_path(__FILE__))
6
+ $LOAD_PATH.unshift(test_dir) unless $LOAD_PATH.include?(test_dir)
7
+
8
+ require 'ImpURI/class_methods'
9
+ require 'ImpURI/instance_methods'
metadata CHANGED
@@ -1,45 +1,68 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: impuri
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - thoran
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2020-02-07 00:00:00.000000000 Z
12
- dependencies: []
13
- description: A cleaner and simpler URI and ssh/scp resource parser for Ruby. Though
14
- I'm not sure about the simpler bit anymore. It's now over 500 lines you know!
10
+ date: 1980-01-02 00:00:00.000000000 Z
11
+ dependencies:
12
+ - !ruby/object:Gem::Dependency
13
+ name: minitest
14
+ requirement: !ruby/object:Gem::Requirement
15
+ requirements:
16
+ - - "~>"
17
+ - !ruby/object:Gem::Version
18
+ version: '6.0'
19
+ type: :development
20
+ prerelease: false
21
+ version_requirements: !ruby/object:Gem::Requirement
22
+ requirements:
23
+ - - "~>"
24
+ - !ruby/object:Gem::Version
25
+ version: '6.0'
26
+ description: This is a hand-written non-validating parser for URI's and ssh/scp almost
27
+ URI resource descriptors, which is intended to be cleaner and simpler than Ruby's
28
+ standard URI.
15
29
  email: code@thoran.com
16
30
  executables: []
17
31
  extensions: []
18
32
  extra_rdoc_files: []
19
33
  files:
34
+ - CHANGELOG
35
+ - Gemfile
36
+ - ImpURI.gemspec
37
+ - README.md
38
+ - TODO.txt
39
+ - lib/Array/all_but_first.rb
40
+ - lib/Array/all_but_last.rb
41
+ - lib/Array/blankQ.rb
42
+ - lib/Array/extract_optionsX.rb
43
+ - lib/Array/firstX.rb
44
+ - lib/Array/lastX.rb
45
+ - lib/FalseClass/blankQ.rb
46
+ - lib/Hash/blankQ.rb
47
+ - lib/Hash/x_www_form_urlencode.rb
20
48
  - lib/ImpURI.rb
21
- - lib/ImpURI/Array/all_but_first.rb
22
- - lib/ImpURI/Array/all_but_last.rb
23
- - lib/ImpURI/Array/blankQ.rb
24
- - lib/ImpURI/Array/extract_optionsX.rb
25
- - lib/ImpURI/Array/firstX.rb
26
- - lib/ImpURI/Array/lastX.rb
27
- - lib/ImpURI/FalseClass/blankQ.rb
28
- - lib/ImpURI/Hash/blankQ.rb
29
- - lib/ImpURI/Hash/x_www_form_urlencode.rb
30
- - lib/ImpURI/Module/alias_methods.rb
31
- - lib/ImpURI/NilClass/blankQ.rb
32
- - lib/ImpURI/Numeric/blankQ.rb
33
- - lib/ImpURI/Object/blankQ.rb
34
- - lib/ImpURI/String/blankQ.rb
35
- - lib/ImpURI/TrueClass/blankQ.rb
36
49
  - lib/ImpURI/VERSION.rb
37
- - lib/ImpURI/_meta/blankQ.rb
38
- homepage: http://github.com/thoran/ImpURI
50
+ - lib/Module/alias_methods.rb
51
+ - lib/NilClass/blankQ.rb
52
+ - lib/Numeric/blankQ.rb
53
+ - lib/Object/blankQ.rb
54
+ - lib/String/blankQ.rb
55
+ - lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
56
+ - lib/Thoran/String/Urlencode/urlencode.rb
57
+ - lib/TrueClass/blankQ.rb
58
+ - lib/_meta/blankQ.rb
59
+ - test/ImpURI.rb
60
+ - test/ImpURI/class_methods.rb
61
+ - test/ImpURI/instance_methods.rb
62
+ homepage: https://github.com/thoran/ImpURI
39
63
  licenses:
40
64
  - MIT
41
65
  metadata: {}
42
- post_install_message:
43
66
  rdoc_options: []
44
67
  require_paths:
45
68
  - lib
@@ -47,15 +70,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
70
  requirements:
48
71
  - - ">="
49
72
  - !ruby/object:Gem::Version
50
- version: 1.8.6
73
+ version: '2.7'
51
74
  required_rubygems_version: !ruby/object:Gem::Requirement
52
75
  requirements:
53
76
  - - ">="
54
77
  - !ruby/object:Gem::Version
55
78
  version: '0'
56
79
  requirements: []
57
- rubygems_version: 3.1.2
58
- signing_key:
80
+ rubygems_version: 4.0.17
59
81
  specification_version: 4
60
- summary: A cleaner and simpler URI and ssh/scp resource parser for Ruby.
82
+ summary: This is a hand-written non-validating parser for URI's and ssh/scp almost
83
+ URI resource descriptors.
61
84
  test_files: []
@@ -1,20 +0,0 @@
1
- # Hash/x_www_form_urlencode.rb
2
- # Hash#x_www_form_urlencode
3
-
4
- # 20130310
5
- # 0.0.0
6
-
7
- # Notes: Extracted from MtGox library.
8
-
9
- # Todo:
10
- # 1. I should separate out the functionality for adding '+' characters so as it can do both styles of encoding. That way I could reuse the existing Hash/to_parameter_string method as well...
11
-
12
- require 'String/url_encode'
13
-
14
- class Hash
15
-
16
- def x_www_form_urlencode(joiner = '&')
17
- inject([]){|a,e| a << "#{e.first.to_s.url_encode.gsub(/ /, '+')}=#{e.last.to_s.url_encode.gsub(/ /, '+')}" unless e.last.nil?; a}.join(joiner)
18
- end
19
-
20
- end
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes