stduritemplate 0.0.39.pre.RC3 → 0.0.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +6 -0
- data/lib/stduritemplate.rb +11 -11
- data/stduritemplate.gemspec +9 -10
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d545b136300c042c615e3e74151ebcad99d57e03f77f3e28181241fc0f5ad04
|
4
|
+
data.tar.gz: 80b581405dbf57a57a6f5dbd870f0da57e16f1a9a5af192c37c69896391efd2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38cbefb6a6c99f6dbfad3a520608b4401c23c9492ce84f66d212228a04b27d986bf975d91269abf5dcdfb7542144c887bda802b00d9b2a11527d5888ce704142
|
7
|
+
data.tar.gz: 7f209da0078a0e73435004279c0e015473c31ddc3f55911525014f35e8c912e2116da2ba6d2da4e0577c6259ba7f54ac60d6b2e3567fc0307fc38a951561e55b
|
data/Gemfile
ADDED
data/lib/stduritemplate.rb
CHANGED
@@ -13,12 +13,12 @@ module StdUriTemplate
|
|
13
13
|
module Modifier
|
14
14
|
NO_MOD = :no_mod
|
15
15
|
PLUS = :plus
|
16
|
-
|
16
|
+
HASH = :hash
|
17
17
|
DOT = :dot
|
18
18
|
SLASH = :slash
|
19
19
|
SEMICOLON = :semicolon
|
20
20
|
QUESTION_MARK = :question_mark
|
21
|
-
|
21
|
+
AMP = :amp
|
22
22
|
end
|
23
23
|
|
24
24
|
def self.validate_literal(c, col)
|
@@ -49,7 +49,7 @@ module StdUriTemplate
|
|
49
49
|
when '+'
|
50
50
|
Modifier::PLUS
|
51
51
|
when '#'
|
52
|
-
Modifier::
|
52
|
+
Modifier::HASH
|
53
53
|
when '.'
|
54
54
|
Modifier::DOT
|
55
55
|
when '/'
|
@@ -59,7 +59,7 @@ module StdUriTemplate
|
|
59
59
|
when '?'
|
60
60
|
Modifier::QUESTION_MARK
|
61
61
|
when '&'
|
62
|
-
Modifier::
|
62
|
+
Modifier::AMP
|
63
63
|
else
|
64
64
|
validate_literal(c, col)
|
65
65
|
token << c
|
@@ -134,7 +134,7 @@ module StdUriTemplate
|
|
134
134
|
|
135
135
|
def self.add_prefix(mod, result)
|
136
136
|
case mod
|
137
|
-
when Modifier::
|
137
|
+
when Modifier::HASH
|
138
138
|
result << '#'
|
139
139
|
when Modifier::DOT
|
140
140
|
result << '.'
|
@@ -144,7 +144,7 @@ module StdUriTemplate
|
|
144
144
|
result << ';'
|
145
145
|
when Modifier::QUESTION_MARK
|
146
146
|
result << '?'
|
147
|
-
when Modifier::
|
147
|
+
when Modifier::AMP
|
148
148
|
result << '&'
|
149
149
|
end
|
150
150
|
end
|
@@ -157,7 +157,7 @@ module StdUriTemplate
|
|
157
157
|
result << '/'
|
158
158
|
when Modifier::SEMICOLON
|
159
159
|
result << ';'
|
160
|
-
when Modifier::QUESTION_MARK, Modifier::
|
160
|
+
when Modifier::QUESTION_MARK, Modifier::AMP
|
161
161
|
result << '&'
|
162
162
|
else
|
163
163
|
result << ','
|
@@ -166,9 +166,9 @@ module StdUriTemplate
|
|
166
166
|
|
167
167
|
def self.add_value(mod, token, value, result, max_char)
|
168
168
|
case mod
|
169
|
-
when Modifier::PLUS, Modifier::
|
169
|
+
when Modifier::PLUS, Modifier::HASH
|
170
170
|
add_expanded_value(value, result, max_char, false)
|
171
|
-
when Modifier::QUESTION_MARK, Modifier::
|
171
|
+
when Modifier::QUESTION_MARK, Modifier::AMP
|
172
172
|
result << token + '='
|
173
173
|
add_expanded_value(value, result, max_char, true)
|
174
174
|
when Modifier::SEMICOLON
|
@@ -182,9 +182,9 @@ module StdUriTemplate
|
|
182
182
|
|
183
183
|
def self.add_value_element(mod, token, value, result, max_char)
|
184
184
|
case mod
|
185
|
-
when Modifier::PLUS, Modifier::
|
185
|
+
when Modifier::PLUS, Modifier::HASH
|
186
186
|
add_expanded_value(value, result, max_char, false)
|
187
|
-
when Modifier::QUESTION_MARK, Modifier::
|
187
|
+
when Modifier::QUESTION_MARK, Modifier::AMP, Modifier::SEMICOLON, Modifier::DOT, Modifier::SLASH, Modifier::NO_MOD
|
188
188
|
add_expanded_value(value, result, max_char, true)
|
189
189
|
end
|
190
190
|
end
|
data/stduritemplate.gemspec
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
|
-
s.name
|
3
|
-
s.version
|
4
|
-
s.summary
|
5
|
-
s.description
|
6
|
-
s.authors
|
7
|
-
s.email
|
8
|
-
s.files
|
9
|
-
s.homepage
|
10
|
-
"https://github.com/std-uritemplate/std-uritemplate"
|
2
|
+
s.name = "stduritemplate"
|
3
|
+
s.version = ENV['VERSION'] || "0.0.0"
|
4
|
+
s.summary = "stduritemplate"
|
5
|
+
s.description = "std-uritemplate implementation for Ruby"
|
6
|
+
s.authors = ["Andrea Peruffo"]
|
7
|
+
s.email = "andrea.peruffo1982@gmail.com"
|
8
|
+
s.files = ["stduritemplate.gemspec", "lib/stduritemplate.rb", "Gemfile"]
|
9
|
+
s.homepage = "https://github.com/std-uritemplate/std-uritemplate"
|
11
10
|
s.license = "APACHE-2"
|
12
|
-
s.platform
|
11
|
+
s.platform = Gem::Platform::RUBY
|
13
12
|
s.require_paths = ['lib']
|
14
13
|
end
|
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: stduritemplate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.39
|
4
|
+
version: 0.0.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrea Peruffo
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2023-09-06 00:00:00.000000000 Z
|
@@ -16,13 +16,14 @@ executables: []
|
|
16
16
|
extensions: []
|
17
17
|
extra_rdoc_files: []
|
18
18
|
files:
|
19
|
+
- Gemfile
|
19
20
|
- lib/stduritemplate.rb
|
20
21
|
- stduritemplate.gemspec
|
21
22
|
homepage: https://github.com/std-uritemplate/std-uritemplate
|
22
23
|
licenses:
|
23
24
|
- APACHE-2
|
24
25
|
metadata: {}
|
25
|
-
post_install_message:
|
26
|
+
post_install_message:
|
26
27
|
rdoc_options: []
|
27
28
|
require_paths:
|
28
29
|
- lib
|
@@ -33,12 +34,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
33
34
|
version: '0'
|
34
35
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
35
36
|
requirements:
|
36
|
-
- - "
|
37
|
+
- - ">="
|
37
38
|
- !ruby/object:Gem::Version
|
38
|
-
version:
|
39
|
+
version: '0'
|
39
40
|
requirements: []
|
40
|
-
rubygems_version: 3.
|
41
|
-
signing_key:
|
41
|
+
rubygems_version: 3.2.33
|
42
|
+
signing_key:
|
42
43
|
specification_version: 4
|
43
44
|
summary: stduritemplate
|
44
45
|
test_files: []
|