kdl 1.0.6 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/ruby.yml +8 -1
  3. data/.gitignore +1 -0
  4. data/.gitmodules +4 -0
  5. data/Gemfile +6 -1
  6. data/README.md +67 -7
  7. data/Rakefile +6 -1
  8. data/bin/kdl +1 -1
  9. data/kdl.gemspec +2 -2
  10. data/lib/kdl/document.rb +60 -2
  11. data/lib/kdl/error.rb +24 -0
  12. data/lib/kdl/kdl.tab.rb +305 -231
  13. data/lib/kdl/kdl.yy +57 -49
  14. data/lib/kdl/node.rb +116 -13
  15. data/lib/kdl/parser_common.rb +28 -0
  16. data/lib/kdl/string_dumper.rb +32 -33
  17. data/lib/kdl/tokenizer.rb +387 -136
  18. data/lib/kdl/types/base64.rb +3 -1
  19. data/lib/kdl/types/country/iso3166_countries.rb +3 -1
  20. data/lib/kdl/types/country/iso3166_subdivisions.rb +3 -1
  21. data/lib/kdl/types/country.rb +4 -2
  22. data/lib/kdl/types/currency/iso4217_currencies.rb +3 -1
  23. data/lib/kdl/types/currency.rb +3 -1
  24. data/lib/kdl/types/date_time.rb +5 -3
  25. data/lib/kdl/types/decimal.rb +3 -1
  26. data/lib/kdl/types/duration/iso8601_parser.rb +3 -1
  27. data/lib/kdl/types/duration.rb +3 -1
  28. data/lib/kdl/types/email/parser.rb +10 -8
  29. data/lib/kdl/types/email.rb +3 -1
  30. data/lib/kdl/types/hostname/validator.rb +3 -1
  31. data/lib/kdl/types/hostname.rb +3 -1
  32. data/lib/kdl/types/ip.rb +3 -1
  33. data/lib/kdl/types/irl/parser.rb +10 -8
  34. data/lib/kdl/types/irl.rb +3 -1
  35. data/lib/kdl/types/regex.rb +3 -1
  36. data/lib/kdl/types/url.rb +3 -1
  37. data/lib/kdl/types/url_template.rb +6 -4
  38. data/lib/kdl/types/uuid.rb +3 -1
  39. data/lib/kdl/types.rb +2 -0
  40. data/lib/kdl/v1/document.rb +19 -0
  41. data/lib/kdl/v1/kdl.tab.rb +594 -0
  42. data/lib/kdl/v1/kdl.yy +89 -0
  43. data/lib/kdl/v1/node.rb +32 -0
  44. data/lib/kdl/v1/string_dumper.rb +30 -0
  45. data/lib/kdl/v1/tokenizer.rb +298 -0
  46. data/lib/kdl/v1/value.rb +91 -0
  47. data/lib/kdl/v1.rb +13 -0
  48. data/lib/kdl/value.rb +87 -15
  49. data/lib/kdl/version.rb +3 -1
  50. data/lib/kdl.rb +47 -1
  51. metadata +14 -7
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kdl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Danielle Smith
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-06-11 00:00:00.000000000 Z
10
+ date: 2025-01-15 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: racc
@@ -89,9 +88,11 @@ files:
89
88
  - kdl.gemspec
90
89
  - lib/kdl.rb
91
90
  - lib/kdl/document.rb
91
+ - lib/kdl/error.rb
92
92
  - lib/kdl/kdl.tab.rb
93
93
  - lib/kdl/kdl.yy
94
94
  - lib/kdl/node.rb
95
+ - lib/kdl/parser_common.rb
95
96
  - lib/kdl/string_dumper.rb
96
97
  - lib/kdl/tokenizer.rb
97
98
  - lib/kdl/types.rb
@@ -116,6 +117,14 @@ files:
116
117
  - lib/kdl/types/url.rb
117
118
  - lib/kdl/types/url_template.rb
118
119
  - lib/kdl/types/uuid.rb
120
+ - lib/kdl/v1.rb
121
+ - lib/kdl/v1/document.rb
122
+ - lib/kdl/v1/kdl.tab.rb
123
+ - lib/kdl/v1/kdl.yy
124
+ - lib/kdl/v1/node.rb
125
+ - lib/kdl/v1/string_dumper.rb
126
+ - lib/kdl/v1/tokenizer.rb
127
+ - lib/kdl/v1/value.rb
119
128
  - lib/kdl/value.rb
120
129
  - lib/kdl/version.rb
121
130
  homepage: https://kdl.dev
@@ -125,7 +134,6 @@ metadata:
125
134
  homepage_uri: https://kdl.dev
126
135
  source_code_uri: https://github.com/danini-the-panini/kdl-rb
127
136
  changelog_uri: https://github.com/danini-the-panini/kdl-rb/releases
128
- post_install_message:
129
137
  rdoc_options: []
130
138
  require_paths:
131
139
  - lib
@@ -133,15 +141,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
133
141
  requirements:
134
142
  - - ">="
135
143
  - !ruby/object:Gem::Version
136
- version: 2.5.0
144
+ version: 3.1.0
137
145
  required_rubygems_version: !ruby/object:Gem::Requirement
138
146
  requirements:
139
147
  - - ">="
140
148
  - !ruby/object:Gem::Version
141
149
  version: '0'
142
150
  requirements: []
143
- rubygems_version: 3.5.3
144
- signing_key:
151
+ rubygems_version: 3.6.2
145
152
  specification_version: 4
146
153
  summary: KDL Document Language
147
154
  test_files: []