edn_turbo 0.7.4 → 0.8.0
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 +4 -4
- data/.github/workflows/ruby-ext.yml +1 -0
- data/CHANGELOG.md +6 -1
- data/LICENSE +1 -1
- data/README.md +19 -8
- data/Rakefile +2 -2
- data/ext/edn_turbo/edn_parser.cc +1 -1
- data/ext/edn_turbo/edn_parser.rl +1 -1
- data/ext/edn_turbo/extconf.rb +1 -1
- data/ext/edn_turbo/main.cc +1 -1
- data/ext/edn_turbo/parser.h +1 -1
- data/ext/edn_turbo/parser_def.cc +1 -1
- data/ext/edn_turbo/util.cc +1 -1
- data/ext/edn_turbo/util.h +1 -1
- data/ext/edn_turbo/util_unicode.cc +1 -1
- data/ext/edn_turbo/util_unicode.h +1 -1
- data/lib/edn_turbo/edn_parser.rb +1 -1
- data/lib/edn_turbo/version.rb +3 -3
- data/lib/edn_turbo.rb +1 -1
- data/spec/edn_turbo/edn_parser_spec.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1f65f5310e96d3499d0399693a666beabec89267a1d9b24208975838a798975
|
4
|
+
data.tar.gz: 99f6e84ff441c7011b7d565086e94202b9d559e344b32a131c3f6c22efb8321f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 79fb42952469ab2a60549f15237020a989e6dda70e251dee8888b14f5274788b2fc6b467a02c758bade4bbb7429983341d9eb7bce5bc2937172b80f42a8c7c34
|
7
|
+
data.tar.gz: a194eb08824f20c2f42e991269afd54e159fb3038d26184e3b192e5ace56a8463af40a1c209967d938a0da8d925367ae2b7604bbdf4fbe19a58dad3e732129a4
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# Change Log
|
2
2
|
All notable changes to this project will be documented in this file. This change log follows the conventions of [keepachangelog.com](http://keepachangelog.com/).
|
3
3
|
|
4
|
+
## [0.8.0] - 2023-03-12
|
5
|
+
### Changed
|
6
|
+
* switch edn-ruby dependency to use edn2023.
|
7
|
+
|
4
8
|
## [0.7.4] - 2022-05-03
|
5
9
|
### Fixed
|
6
10
|
* empty strings should use utf-8 encoding (#11).
|
@@ -56,7 +60,8 @@ All notable changes to this project will be documented in this file. This change
|
|
56
60
|
### Added
|
57
61
|
* initial version of docker configs for testing on Ubuntu.
|
58
62
|
|
59
|
-
[Unreleased]: https://github.com/edporras/edn_turbo/-/compare/0.
|
63
|
+
[Unreleased]: https://github.com/edporras/edn_turbo/-/compare/0.8.0...main
|
64
|
+
[0.8.0]: https://github.com/edporras/edn_turbo/-/compare/0.7.4...0.8.0
|
60
65
|
[0.7.4]: https://github.com/edporras/edn_turbo/-/compare/0.7.3...0.7.4
|
61
66
|
[0.7.3]: https://github.com/edporras/edn_turbo/-/compare/0.7.2...0.7.3
|
62
67
|
[0.7.2]: https://github.com/edporras/edn_turbo/-/compare/0.7.1...0.7.2
|
data/LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
edn_turbo 0.
|
1
|
+
edn_turbo 0.8.0
|
2
2
|
===============
|
3
3
|
|
4
4
|
Fast [Ragel](http://www.colm.net/open-source/ragel/)-based EDN parser for Ruby.
|
5
5
|
|
6
|
-
`edn_turbo` can be used as a parser plugin for
|
7
|
-
|
8
|
-
`edn_turbo`
|
9
|
-
|
10
|
-
magnitude faster.
|
6
|
+
`edn_turbo` can be used as a parser plugin for [edn-ruby]. With a few
|
7
|
+
exceptions `edn_turbo` provides the same functionality as the edn gem,
|
8
|
+
but since the `edn_turbo` parser is implemented in C++, it is an order
|
9
|
+
of magnitude faster.
|
11
10
|
|
12
11
|
Some quick sample runs comparing time output of file reads using `edn`
|
13
12
|
and `edn_turbo` (see [issue 12](https://github.com/relevance/edn-ruby/issues/12)):
|
@@ -38,8 +37,8 @@ Ruby 2.6 or greater.
|
|
38
37
|
|
39
38
|
- ruby gems:
|
40
39
|
- [rake](http://rake.rubyforge.org)
|
41
|
-
- [rake-compiler
|
42
|
-
- [
|
40
|
+
- [rake-compiler](http://rake-compiler.rubyforge.org)
|
41
|
+
- [edn2023]
|
43
42
|
- a C++-11 capable compiler.
|
44
43
|
- [icu4c](http://icu-project.org/apiref/icu4c/)
|
45
44
|
|
@@ -48,6 +47,11 @@ Notes:
|
|
48
47
|
|
49
48
|
- `edn_turbo` uses a ragel-based parser but the generated .cc file is
|
50
49
|
bundled so ragel should not need to be installed.
|
50
|
+
- If your system updates the installed version of icu4c, you'll likely
|
51
|
+
get symbol errors when trying to use `edn_turbo` as the libraries it
|
52
|
+
was linked against when first installed will no longer exist. To
|
53
|
+
resolve this, reinstall the gem so it is built against the new icu4c
|
54
|
+
libraries.
|
51
55
|
|
52
56
|
Usage
|
53
57
|
=====
|
@@ -114,3 +118,10 @@ calls into the ruby side.
|
|
114
118
|
`Float::INFINITY` and `##NaN` as `Float::NAN`.
|
115
119
|
|
116
120
|
- As of v0.7.1, `edn_turbo` requires ruby 2.5 or greater.
|
121
|
+
|
122
|
+
- As of v0.7.4, `edn_turbo` requires ruby 2.6 or greater.
|
123
|
+
|
124
|
+
- As of v0.8.0, `edn_turbo` replaces its [edn-ruby] with [edn2023].
|
125
|
+
|
126
|
+
[edn-ruby]: https://github.com/relevance/edn-ruby
|
127
|
+
[edn2023]: https://github.com/edn2023/edn2023
|
data/Rakefile
CHANGED
@@ -50,8 +50,8 @@ task :graph, %i[machine] do |_t, args|
|
|
50
50
|
machine = args[:machine]
|
51
51
|
|
52
52
|
# assumes graphviz is installed
|
53
|
-
sh "ragel -Vp -S #{machine} -o #{tmpfile} #{EXT_PATH}/#{RAGEL_PARSER_SRC} && "\
|
54
|
-
|
53
|
+
sh "ragel -Vp -S #{machine} -o #{tmpfile} #{EXT_PATH}/#{RAGEL_PARSER_SRC} && " \
|
54
|
+
"dot -Tpng #{tmpfile} -o #{machine}.png"
|
55
55
|
end
|
56
56
|
|
57
57
|
task build: %i[clean ragel compile chmod]
|
data/ext/edn_turbo/edn_parser.cc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
#line 1 "edn_parser.rl"
|
3
3
|
// The MIT License (MIT)
|
4
4
|
|
5
|
-
// Copyright (c) 2015-
|
5
|
+
// Copyright (c) 2015-2023 Ed Porras
|
6
6
|
|
7
7
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/edn_parser.rl
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/extconf.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License (MIT)
|
4
4
|
|
5
|
-
# Copyright (c) 2015-
|
5
|
+
# Copyright (c) 2015-2023 Ed Porras
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/main.cc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/parser.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/parser_def.cc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/util.cc
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/ext/edn_turbo/util.h
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// The MIT License (MIT)
|
2
2
|
|
3
|
-
// Copyright (c) 2015-
|
3
|
+
// Copyright (c) 2015-2023 Ed Porras
|
4
4
|
|
5
5
|
// Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
// of this software and associated documentation files (the "Software"), to deal
|
data/lib/edn_turbo/edn_parser.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License (MIT)
|
4
4
|
#
|
5
|
-
# Copyright (c) 2015-
|
5
|
+
# Copyright (c) 2015-2023 Ed Porras
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"), to deal
|
data/lib/edn_turbo/version.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License (MIT)
|
4
4
|
#
|
5
|
-
# Copyright (c) 2015-
|
5
|
+
# Copyright (c) 2015-2023 Ed Porras
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -23,6 +23,6 @@
|
|
23
23
|
# THE SOFTWARE.
|
24
24
|
|
25
25
|
module EDNT
|
26
|
-
VERSION = '0.
|
27
|
-
RELEASE_DATE = '
|
26
|
+
VERSION = '0.8.0'
|
27
|
+
RELEASE_DATE = '2023-03-12'
|
28
28
|
end
|
data/lib/edn_turbo.rb
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
# The MIT License (MIT)
|
4
4
|
#
|
5
|
-
# Copyright (c) 2015-
|
5
|
+
# Copyright (c) 2015-2023 Ed Porras
|
6
6
|
#
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
# of this software and associated documentation files (the "Software"), to deal
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# The MIT License (MIT)
|
2
2
|
#
|
3
|
-
# Copyright (c) 2015-
|
3
|
+
# Copyright (c) 2015-2023 Ed Porras
|
4
4
|
#
|
5
5
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
# of this software and associated documentation files (the "Software"), to deal
|
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edn_turbo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ed Porras
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: edn2023
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
@@ -154,8 +154,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
154
154
|
- !ruby/object:Gem::Version
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
|
-
rubygems_version: 3.
|
157
|
+
rubygems_version: 3.3.7
|
158
158
|
signing_key:
|
159
|
-
specification_version:
|
159
|
+
specification_version: 4
|
160
160
|
summary: Read EDN files
|
161
161
|
test_files: []
|