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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a999480f4f4ecd4b2fa69cd2dbe136cec6414bcec16549dee5cdbfe130dbff08
4
- data.tar.gz: cb91c2dcb17526d16ff28aea392e611675ff0d2a1ccd43563cea8be5f8e91cb6
3
+ metadata.gz: 4d545b136300c042c615e3e74151ebcad99d57e03f77f3e28181241fc0f5ad04
4
+ data.tar.gz: 80b581405dbf57a57a6f5dbd870f0da57e16f1a9a5af192c37c69896391efd2c
5
5
  SHA512:
6
- metadata.gz: fa6f339ca6cbb0cb49d9f81800b15a88cc22ab7e2532407cbae0a78e0832e7484cb4fe26a83dc706f4415d604de237d2735b8c2d47d724262d4125e42ec90eaa
7
- data.tar.gz: d1367b037db825ddde969b245780662cbadcd8bf1e80ece2c1a93166a721634fe9921d19a0a00d0555b51b988cc27a19236d23eda4bd44b9ea3cfcff9e9ed5c8
6
+ metadata.gz: 38cbefb6a6c99f6dbfad3a520608b4401c23c9492ce84f66d212228a04b27d986bf975d91269abf5dcdfb7542144c887bda802b00d9b2a11527d5888ce704142
7
+ data.tar.gz: 7f209da0078a0e73435004279c0e015473c31ddc3f55911525014f35e8c912e2116da2ba6d2da4e0577c6259ba7f54ac60d6b2e3567fc0307fc38a951561e55b
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in stduritemplate.gemspec
6
+ gemspec
@@ -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"]
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.RC3
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: 1.3.1
39
+ version: '0'
39
40
  requirements: []
40
- rubygems_version: 3.4.10
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: []