stduritemplate 0.0.39.pre.RC4 → 0.0.39

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0c9dcc075a125cf144d83ba226e8b247b9a07026d0328c489f5aedefbdb99f4b
4
- data.tar.gz: 3b799f719dcae7ffc7d85696a4719d9d8435afcde722bb4d5978988ff1f64b36
3
+ metadata.gz: 4d545b136300c042c615e3e74151ebcad99d57e03f77f3e28181241fc0f5ad04
4
+ data.tar.gz: 80b581405dbf57a57a6f5dbd870f0da57e16f1a9a5af192c37c69896391efd2c
5
5
  SHA512:
6
- metadata.gz: 8c7a1b466c37931fabfbc25d21b032ca2287f6c9e678431f0af4243837cc12a0f8dbcec2db78d109cd541550e63a06a4c37622d8c7cfeb6fb674656feb141da9
7
- data.tar.gz: 31615f53c0d889b293ec7017f740e38391978d6e98cecea1f40ba7451c0d6fbf5b00f8871c482f1dd96ac348d762cd53f28196c8cf58c0aa0471197c62848c11
6
+ metadata.gz: 38cbefb6a6c99f6dbfad3a520608b4401c23c9492ce84f66d212228a04b27d986bf975d91269abf5dcdfb7542144c887bda802b00d9b2a11527d5888ce704142
7
+ data.tar.gz: 7f209da0078a0e73435004279c0e015473c31ddc3f55911525014f35e8c912e2116da2ba6d2da4e0577c6259ba7f54ac60d6b2e3567fc0307fc38a951561e55b
@@ -13,12 +13,12 @@ module StdUriTemplate
13
13
  module Modifier
14
14
  NO_MOD = :no_mod
15
15
  PLUS = :plus
16
- DASH = :dash
16
+ HASH = :hash
17
17
  DOT = :dot
18
18
  SLASH = :slash
19
19
  SEMICOLON = :semicolon
20
20
  QUESTION_MARK = :question_mark
21
- AT = :at
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::DASH
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::AT
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::DASH
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::AT
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::AT
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::DASH
169
+ when Modifier::PLUS, Modifier::HASH
170
170
  add_expanded_value(value, result, max_char, false)
171
- when Modifier::QUESTION_MARK, Modifier::AT
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::DASH
185
+ when Modifier::PLUS, Modifier::HASH
186
186
  add_expanded_value(value, result, max_char, false)
187
- when Modifier::QUESTION_MARK, Modifier::AT, Modifier::SEMICOLON, Modifier::DOT, Modifier::SLASH, Modifier::NO_MOD
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
@@ -1,14 +1,13 @@
1
1
  Gem::Specification.new do |s|
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 =
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 = Gem::Platform::RUBY
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.pre.RC4
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
@@ -23,7 +23,7 @@ homepage: https://github.com/std-uritemplate/std-uritemplate
23
23
  licenses:
24
24
  - APACHE-2
25
25
  metadata: {}
26
- post_install_message:
26
+ post_install_message:
27
27
  rdoc_options: []
28
28
  require_paths:
29
29
  - lib
@@ -34,12 +34,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
34
34
  version: '0'
35
35
  required_rubygems_version: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">"
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
- version: 1.3.1
39
+ version: '0'
40
40
  requirements: []
41
- rubygems_version: 3.4.10
42
- signing_key:
41
+ rubygems_version: 3.2.33
42
+ signing_key:
43
43
  specification_version: 4
44
44
  summary: stduritemplate
45
45
  test_files: []