impuri 0.8.0 → 0.9.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,82 @@
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.9.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
+ - !ruby/object:Gem::Dependency
27
+ name: minitest-global_expectations
28
+ requirement: !ruby/object:Gem::Requirement
29
+ requirements:
30
+ - - "~>"
31
+ - !ruby/object:Gem::Version
32
+ version: '1.0'
33
+ type: :development
34
+ prerelease: false
35
+ version_requirements: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '1.0'
40
+ description: This is a hand-written non-validating parser for URI's and ssh/scp almost
41
+ URI resource descriptors, which is intended to be cleaner and simpler than Ruby's
42
+ standard URI.
15
43
  email: code@thoran.com
16
44
  executables: []
17
45
  extensions: []
18
46
  extra_rdoc_files: []
19
47
  files:
48
+ - CHANGELOG
49
+ - Gemfile
50
+ - ImpURI.gemspec
51
+ - README.md
52
+ - TODO.txt
53
+ - lib/Array/all_but_first.rb
54
+ - lib/Array/all_but_last.rb
55
+ - lib/Array/blankQ.rb
56
+ - lib/Array/extract_optionsX.rb
57
+ - lib/Array/firstX.rb
58
+ - lib/Array/lastX.rb
59
+ - lib/FalseClass/blankQ.rb
60
+ - lib/Hash/blankQ.rb
61
+ - lib/Hash/x_www_form_urlencode.rb
20
62
  - 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
63
  - lib/ImpURI/VERSION.rb
37
- - lib/ImpURI/_meta/blankQ.rb
38
- homepage: http://github.com/thoran/ImpURI
64
+ - lib/Module/alias_methods.rb
65
+ - lib/NilClass/blankQ.rb
66
+ - lib/Numeric/blankQ.rb
67
+ - lib/Object/blankQ.rb
68
+ - lib/String/blankQ.rb
69
+ - lib/Thoran/Hash/XWwwFormUrlencode/x_www_form_urlencode.rb
70
+ - lib/Thoran/String/Urlencode/urlencode.rb
71
+ - lib/TrueClass/blankQ.rb
72
+ - lib/_meta/blankQ.rb
73
+ - test/ImpURI.rb
74
+ - test/ImpURI/class_methods.rb
75
+ - test/ImpURI/instance_methods.rb
76
+ homepage: https://github.com/thoran/ImpURI
39
77
  licenses:
40
78
  - MIT
41
79
  metadata: {}
42
- post_install_message:
43
80
  rdoc_options: []
44
81
  require_paths:
45
82
  - lib
@@ -47,15 +84,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
47
84
  requirements:
48
85
  - - ">="
49
86
  - !ruby/object:Gem::Version
50
- version: 1.8.6
87
+ version: '2.7'
51
88
  required_rubygems_version: !ruby/object:Gem::Requirement
52
89
  requirements:
53
90
  - - ">="
54
91
  - !ruby/object:Gem::Version
55
92
  version: '0'
56
93
  requirements: []
57
- rubygems_version: 3.1.2
58
- signing_key:
94
+ rubygems_version: 4.0.17
59
95
  specification_version: 4
60
- summary: A cleaner and simpler URI and ssh/scp resource parser for Ruby.
96
+ summary: This is a hand-written non-validating parser for URI's and ssh/scp almost
97
+ URI resource descriptors.
61
98
  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