drain 0.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ChangeLog.md +141 -2
- data/lib/dr/base/uri.rb +3 -3
- data/lib/dr/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6705260fddd5fa51a51c2985c143400b89527c0ee0d2bffcc326f5fe2bbff6f3
|
4
|
+
data.tar.gz: 744ca23e60895094238628160e1dc3c3dfccdaa58d757013880835e96f3de21f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b3fe3cfd0ea0d9f9bd10df890a97b958bc8652e33b0993692188481d4759e242a5603dedcb696f244cc2f1b2dd835ba0520e2620d9ab2490339f028c0bb504b5
|
7
|
+
data.tar.gz: e61a5c90fb6f6bd515fa101667f53e53ad780f712196f5db8418800e8bc8c00697196188cb6efde4f2ec2ceffd962c9be63280350eb37c9327bfac26ac91248d
|
data/ChangeLog.md
CHANGED
@@ -1,4 +1,143 @@
|
|
1
|
-
|
1
|
+
== Release v0.5.1 (2020-02-18) ==
|
2
2
|
|
3
|
-
*
|
3
|
+
* DR::URI -> DR::URIEscape
|
4
|
+
|
5
|
+
== Release v0.5 (2020-02-18) ==
|
6
|
+
|
7
|
+
* Bump version
|
8
|
+
* DR::URI.escape
|
9
|
+
* Fixes for ruby 2.7
|
10
|
+
* URI.encode is obsolete
|
11
|
+
|
12
|
+
== Release v0.4 (2019-09-13) ==
|
13
|
+
|
14
|
+
* Bump version
|
15
|
+
* Delegator.access_methods
|
16
|
+
* delegate: add missing require
|
17
|
+
* Delegator.delegate_h
|
18
|
+
* Fix a bug in deep_merge
|
19
|
+
* Utils: pretty = true means color by default
|
20
|
+
* Utils: PPHelper and pretty_print colors
|
21
|
+
* time_parse: do not load active_support/time
|
22
|
+
* Fix test failures
|
23
|
+
* Update Rakefile
|
24
|
+
* Update Rakefile
|
25
|
+
* Comments
|
26
|
+
* graph: to_s and inspect
|
27
|
+
* Doc: add warning
|
28
|
+
|
29
|
+
== Release v0.3.0 (2018-09-07) ==
|
30
|
+
|
31
|
+
* Bump version
|
32
|
+
* test_date_parse.rb: set TZ to GMT to get test working on travis
|
33
|
+
* Update travis
|
34
|
+
* Utils.rsplit
|
35
|
+
* Formatter: clean ups
|
36
|
+
* simple_formatter: ability to expand messages
|
37
|
+
* Fix test
|
38
|
+
* Ad formatter/simple_formatter
|
39
|
+
* simple_keywords: strip by default + can now change delims
|
40
|
+
* simple_keywords: switch from a Module to a Class
|
41
|
+
* parse/simple_keywords
|
42
|
+
* URI: rename to_s to to_ssh
|
43
|
+
* URI::Ssh.parse: handle empty string
|
44
|
+
* SSH Uri: allow non standard hosts
|
45
|
+
* Hash#has_keys: bug fix
|
46
|
+
* URIWrapper::Ssh
|
47
|
+
* Hash#has_keys?
|
48
|
+
* Hash#add_to_key: configure behavior via keywords
|
49
|
+
* Hash#add_to_key, Hash#set_key
|
50
|
+
* Hash#deep_merge: configure how to merge arrays
|
51
|
+
* Hash#add_key
|
52
|
+
* Hash: add_key, dig_with_default
|
53
|
+
* bool.rb: allow to keep Strings/Symbols
|
54
|
+
* slice_with_default
|
55
|
+
* simple_parser: more parsing methods
|
56
|
+
* bool: bug fixes
|
57
|
+
* Copyright
|
58
|
+
* Hash#reverse_merge
|
59
|
+
* Graph#dump: be more flexible to how we dump
|
60
|
+
* Graph: allow to merge with a Hash
|
61
|
+
* to_caml_case and to_snake_case
|
62
|
+
* pretty_print: preserve options
|
63
|
+
* base: uri
|
64
|
+
|
65
|
+
== Release v0.2.0 (2018-02-01) ==
|
66
|
+
|
67
|
+
* Bump version
|
68
|
+
* Update tests
|
69
|
+
* utils: pretty_print
|
70
|
+
* eruby: add Eruby.process_eruby
|
71
|
+
* Eruby: indent Context the same way as other modules
|
72
|
+
* Move git.rb to git_helpers
|
73
|
+
* fix somg bug in refinements usage
|
74
|
+
* tests + more comments
|
75
|
+
* graph: Add Graph.build
|
76
|
+
* eruby: comments about a possible ruby bug fix in 2.4.1
|
77
|
+
* graph: allow to merge graphs
|
78
|
+
* graph: bug fixes
|
79
|
+
* Eruby: automatically wrap into unbound_instance if a block is passed
|
80
|
+
* eruby: streamline implementation and bug fixes
|
81
|
+
* eruby: more template possibilities
|
82
|
+
* eruby.rb: start adding features from Tilt
|
83
|
+
* Eruby: be uniform accross erubi/erubis/erb
|
84
|
+
* Clean up comments
|
85
|
+
* test_drain: test for Drain::VERSION
|
86
|
+
* Add drain.rb which calls dr.rb
|
87
|
+
* travis: test agains ruby HEAD
|
88
|
+
* Update drain.gemspec
|
89
|
+
* Configure travis and streamline rake and test files
|
90
|
+
* simple_parser: renders globalopts fully customisable
|
91
|
+
* I don't need bundler for travis
|
92
|
+
* travis
|
93
|
+
* gitignore
|
94
|
+
* Try to do a minimal example for ruby's segfault
|
95
|
+
* descendants/ancestors: propagate ourselves
|
96
|
+
* Correct a bug in graph.rb
|
97
|
+
* parse_string: allows to customize the splitting characters
|
98
|
+
* Remove Hash#set_keyed_value!
|
99
|
+
* Hash#set_keyed_value
|
100
|
+
* Copyright
|
101
|
+
* simple_parser: document the splitting order
|
102
|
+
* simple_parser: add tests
|
103
|
+
* Add missing require
|
104
|
+
* graph: allow ancestors and descendants on a node
|
105
|
+
* Deprecation warning
|
106
|
+
* Copyright
|
107
|
+
* tests + comments
|
108
|
+
* Still more tests for core_ext.rb
|
109
|
+
* Still more tests
|
110
|
+
* More tests
|
111
|
+
* Test Hash#deep_merge
|
112
|
+
* Add tests
|
113
|
+
* Useless use of slef
|
114
|
+
* Converter: test on recursive object
|
115
|
+
* git: get config
|
116
|
+
* Add Hash#leafs
|
117
|
+
* Add to_h to graph
|
118
|
+
* graph construction now accepts a lambda
|
119
|
+
* Add hash conversion ton graph.rb
|
120
|
+
* Add converter.rb (converts an object to an hash) and tests
|
121
|
+
* graph: add .compact in to_nodes
|
122
|
+
* graph: method to updat node attributes
|
123
|
+
* graph: show attributes
|
124
|
+
* Graph: improved unneeded, and bug fix in unneeded_descendants
|
125
|
+
* Graph#connected: bug fix
|
126
|
+
* Graph: check that children are of the same type
|
127
|
+
* Refinements: fix syntax errors
|
128
|
+
* unneeded_descendants(ancestors) is bigger than ancestors(unneeded_descendants)
|
129
|
+
* graph: bug fixes
|
130
|
+
* Use dr rather than drain for brevity
|
131
|
+
* Graph.rb
|
132
|
+
* Git: add a submodules command
|
133
|
+
* Graph#build_node
|
134
|
+
* Rework Graph#build
|
135
|
+
* Test includes_extends_host_with
|
136
|
+
* Split core_ext into two files
|
137
|
+
|
138
|
+
== Release v0.1.0 (2015-02-24) ==
|
139
|
+
|
140
|
+
* Description
|
141
|
+
* Add library files
|
142
|
+
* Initial commit.
|
4
143
|
|
data/lib/dr/base/uri.rb
CHANGED
@@ -86,7 +86,7 @@ module DR
|
|
86
86
|
# reimplement deprecated escape and unescape methods since
|
87
87
|
# URI.encode_www_form_component does not encode the same way
|
88
88
|
# cf the source code of URI::DEFAULT_PARSER.escape
|
89
|
-
module
|
89
|
+
module URIEscape
|
90
90
|
extend self
|
91
91
|
def escape(*arg)
|
92
92
|
URI::DEFAULT_PARSER.escape(*arg)
|
@@ -184,12 +184,12 @@ module DR
|
|
184
184
|
components.each do |m|
|
185
185
|
uri.define_singleton_method(m) do
|
186
186
|
r = super()
|
187
|
-
r && r.is_a?(String) ?
|
187
|
+
r && r.is_a?(String) ? URIEscape.unescape(r) : r
|
188
188
|
# r && r.is_a?(String) ? ::URI.decode_www_form_component(r) : r
|
189
189
|
end
|
190
190
|
uri.define_singleton_method(:"#{m}=") do |v|
|
191
191
|
begin
|
192
|
-
super(v && v.is_a?(String) ?
|
192
|
+
super(v && v.is_a?(String) ? URIEscape.escape(v) : v)
|
193
193
|
# super(v && v.is_a?(String) ? ::URI.encode_www_form_component(v) : v)
|
194
194
|
rescue URI::InvalidURIError => e
|
195
195
|
warn "#{e} in (#{self}).#{m}=#{v}"
|
data/lib/dr/version.rb
CHANGED