edn_turbo 0.7.1 → 0.7.4
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 +32 -0
- data/CHANGELOG.md +36 -22
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/ext/edn_turbo/edn_parser.cc +1 -1
- data/ext/edn_turbo/edn_parser.rl +1 -1
- data/ext/edn_turbo/extconf.rb +11 -37
- 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 +2 -2
- 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 +29 -1
- metadata +24 -37
- data/docker/Dockerfile +0 -40
- data/docker/build +0 -11
- data/docker/common.sh +0 -28
- data/docker/console +0 -11
- data/docker/docker-compose.yml +0 -22
- data/docker/entrypoint +0 -3
- data/docker/make-check +0 -8
- data/docker/run +0 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f2cc5531962887077e75e79cc1d42d37f2f8143165d9ee7df0818734cb1022
|
4
|
+
data.tar.gz: 5dcd8570be3b75ace36eed047e27b97fd519dcd367bf467a46e9006a34776644
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f10e96bbe9017ccfcc8dd2564c1b69682859c9ab6a2be6853bea8b4fda571b03f4308fcf4c23536867e6bb29ba63bbbd4f51ce3e01c4fddaef58448b7b525d44
|
7
|
+
data.tar.gz: eaa77242fb9557d18a76069d99b0ae4339fd32dd7474d7da7c3a9399b6db4cfec4fd53d1dced027372a21f2c93da99815bbb5867acc657ad19d069e4d57d6d34
|
@@ -0,0 +1,32 @@
|
|
1
|
+
name: Build c-ext gem
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
pull_request:
|
6
|
+
branches: [ devel ]
|
7
|
+
|
8
|
+
jobs:
|
9
|
+
test:
|
10
|
+
strategy:
|
11
|
+
fail-fast: false
|
12
|
+
matrix:
|
13
|
+
os:
|
14
|
+
- ubuntu-latest
|
15
|
+
# - macos-latest
|
16
|
+
# Due to https://github.com/actions/runner/issues/849, we have to use quotes for '3.0'
|
17
|
+
ruby:
|
18
|
+
- '2.6'
|
19
|
+
- '2.7'
|
20
|
+
- '3.0'
|
21
|
+
- '3.1'
|
22
|
+
runs-on: ${{ matrix.os }}
|
23
|
+
steps:
|
24
|
+
- run: sudo apt-get install -y libicu-dev libreadline-dev ragel
|
25
|
+
- uses: ruby/setup-ruby@v1
|
26
|
+
with:
|
27
|
+
ruby-version: ${{ matrix.ruby }}
|
28
|
+
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
|
29
|
+
- uses: actions/checkout@v2
|
30
|
+
- run: bundle install
|
31
|
+
- run: bundle exec rake
|
32
|
+
- run: bundle exec rspec
|
data/CHANGELOG.md
CHANGED
@@ -1,51 +1,65 @@
|
|
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.7.
|
4
|
+
## [0.7.4] - 2022-05-03
|
5
|
+
### Fixed
|
6
|
+
* empty strings should use utf-8 encoding (#11).
|
7
|
+
|
8
|
+
## [0.7.3] - 2021-11-06
|
9
|
+
### Fixed
|
10
|
+
* Fix by Caleb Land for new homebrew installs to /opt
|
11
|
+
|
12
|
+
## [0.7.2] - 2021-09-20
|
5
13
|
### Changed
|
6
|
-
|
14
|
+
* allow rake versions > 12
|
15
|
+
|
16
|
+
## [0.7.1] - 2021-02-07
|
17
|
+
### Changed
|
18
|
+
* Set minimum ruby version to 2.5
|
7
19
|
|
8
20
|
### Fixed
|
9
|
-
|
21
|
+
* Compilation error when building against ruby versions > 2
|
10
22
|
|
11
|
-
## 0.7.0 - 2020-02-07
|
23
|
+
## [0.7.0] - 2020-02-07
|
12
24
|
### Added
|
13
|
-
|
25
|
+
* big_decimal_edn_turbo method to replace calling edn-ruby's
|
14
26
|
big_decimal as it breaks things in ruby 2.7 and up
|
15
27
|
|
16
28
|
### Changed
|
17
|
-
|
18
|
-
|
29
|
+
* Removed compiler warning due to scalar wrapped in braces
|
30
|
+
* Updated docker configs to use latest 2.4 and 2.6 ruby
|
19
31
|
versions. Added 2.5 and 2.7 too.
|
20
32
|
|
21
|
-
## 0.6.2 - 2019-05-21
|
33
|
+
## [0.6.2] - 2019-05-21
|
22
34
|
### Fixed
|
23
|
-
|
35
|
+
* Handling of ##Inf, ##Nan, et al.
|
24
36
|
|
25
|
-
## 0.6.1 - 2019-05-20
|
37
|
+
## [0.6.1] - 2019-05-20
|
26
38
|
### Added
|
27
|
-
|
39
|
+
* Implement parsing of Ratio literals, represented as a ruby Rational.
|
28
40
|
|
29
41
|
### Fixed
|
30
|
-
|
42
|
+
* Parsing of exact precision types.
|
31
43
|
|
32
44
|
### Changed
|
33
|
-
|
34
|
-
|
45
|
+
* Build lists using EDN::list method that was previously broken.
|
35
46
|
|
36
|
-
## 0.6.0 - 2019-05-13
|
47
|
+
## [0.6.0] - 2019-05-13
|
37
48
|
### Changed
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
49
|
+
* switched from MiniTest to RSpec.
|
50
|
+
* replaced `NULL` with `nullptr`.
|
51
|
+
* replaced old-style casts.
|
52
|
+
* prohibit Parser copy and move ops.
|
53
|
+
* assigning a source that does not respond to `read` now throws
|
43
54
|
`ArgumentError` instead of `RuntimeError`.
|
44
55
|
|
45
56
|
### Added
|
46
|
-
|
57
|
+
* initial version of docker configs for testing on Ubuntu.
|
47
58
|
|
48
|
-
[Unreleased]: https://github.com/edporras/edn_turbo/-/compare/0.7.
|
59
|
+
[Unreleased]: https://github.com/edporras/edn_turbo/-/compare/0.7.4...main
|
60
|
+
[0.7.4]: https://github.com/edporras/edn_turbo/-/compare/0.7.3...0.7.4
|
61
|
+
[0.7.3]: https://github.com/edporras/edn_turbo/-/compare/0.7.2...0.7.3
|
62
|
+
[0.7.2]: https://github.com/edporras/edn_turbo/-/compare/0.7.1...0.7.2
|
49
63
|
[0.7.1]: https://github.com/edporras/edn_turbo/-/compare/0.7.0...0.7.1
|
50
64
|
[0.7.0]: https://github.com/edporras/edn_turbo/-/compare/0.6.2...0.7.0
|
51
65
|
[0.6.2]: https://github.com/edporras/edn_turbo/-/compare/0.6.1...0.6.2
|
data/LICENSE
CHANGED
data/README.md
CHANGED
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-2022 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-2022 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,18 +2,18 @@
|
|
2
2
|
|
3
3
|
# The MIT License (MIT)
|
4
4
|
|
5
|
-
# Copyright (c) 2015-
|
6
|
-
#
|
5
|
+
# Copyright (c) 2015-2022 Ed Porras
|
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
|
9
9
|
# in the Software without restriction, including without limitation the rights
|
10
10
|
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
11
|
# copies of the Software, and to permit persons to whom the Software is
|
12
12
|
# furnished to do so, subject to the following conditions:
|
13
|
-
#
|
13
|
+
#
|
14
14
|
# The above copyright notice and this permission notice shall be included in
|
15
15
|
# all copies or substantial portions of the Software.
|
16
|
-
#
|
16
|
+
#
|
17
17
|
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
18
|
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
19
|
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
@@ -24,40 +24,14 @@
|
|
24
24
|
|
25
25
|
require 'mkmf'
|
26
26
|
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
27
|
+
ENV['PKG_CONFIG_PATH'] ||= ""
|
28
|
+
ENV['PKG_CONFIG_PATH'] += if RUBY_PLATFORM =~ /darwin/
|
29
|
+
":/usr/local/opt/icu4c/lib/pkgconfig:/opt/homebrew/opt/icu4c/lib/pkgconfig"
|
30
|
+
else
|
31
|
+
":/usr/local/lib/pkgconfig:/usr/local/share/pkgconfig:/usr/lib/pkgconfig:/usr/share/pkgconfig"
|
32
|
+
end
|
31
33
|
|
32
|
-
|
33
|
-
File.exist?('/usr/local/opt/icu4c/lib/pkgconfig/icu-uc.pc')
|
34
|
-
|
35
|
-
i_opt = %x[ export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig" && /usr/local/bin/pkg-config --cflags-only-I icu-uc ]
|
36
|
-
[
|
37
|
-
i_opt[/-I(.+?)\s/,1]
|
38
|
-
].freeze
|
39
|
-
else
|
40
|
-
[
|
41
|
-
'/usr/local/include',
|
42
|
-
'/usr/local/opt/icu4c/include',
|
43
|
-
'/usr/include'
|
44
|
-
].freeze
|
45
|
-
end
|
46
|
-
|
47
|
-
lib_dirs =
|
48
|
-
if RUBY_PLATFORM =~ /darwin/
|
49
|
-
l_opt = %x[ export PKG_CONFIG_PATH="/usr/local/opt/icu4c/lib/pkgconfig" && /usr/local/bin/pkg-config --libs icu-uc ]
|
50
|
-
[
|
51
|
-
l_opt[/-L(.+?)\s/,1]
|
52
|
-
].freeze
|
53
|
-
else
|
54
|
-
[
|
55
|
-
'/usr/local/lib', # must be the first entry; add others after it
|
56
|
-
'/usr/local/opt/icu4c/lib'
|
57
|
-
].freeze
|
58
|
-
end
|
59
|
-
|
60
|
-
dir_config('icuuc', header_dirs, lib_dirs)
|
34
|
+
pkg_config('icu-uc')
|
61
35
|
|
62
36
|
# feels very hackish to do this but the new icu4c needs it on MacOS
|
63
37
|
if RUBY_PLATFORM =~ /darwin/
|
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-2022 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-2022 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-2022 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-2022 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
|
@@ -214,7 +214,7 @@ namespace edn
|
|
214
214
|
if (error) throw_error(error);
|
215
215
|
return true;
|
216
216
|
} else if (p_end == p_start) {
|
217
|
-
v_utf8 =
|
217
|
+
v_utf8 = rb_utf8_str_new_lit("");
|
218
218
|
return true;
|
219
219
|
}
|
220
220
|
|
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-2022 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-2022 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-2022 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-2022 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-2022 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.7.
|
27
|
-
RELEASE_DATE = '
|
26
|
+
VERSION = '0.7.4'
|
27
|
+
RELEASE_DATE = '2022-05-03'
|
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-2022 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,5 +1,27 @@
|
|
1
|
+
# The MIT License (MIT)
|
2
|
+
#
|
3
|
+
# Copyright (c) 2015-2022 Ed Porras
|
4
|
+
#
|
5
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
# of this software and associated documentation files (the "Software"), to deal
|
7
|
+
# in the Software without restriction, including without limitation the rights
|
8
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
# copies of the Software, and to permit persons to whom the Software is
|
10
|
+
# furnished to do so, subject to the following conditions:
|
11
|
+
#
|
12
|
+
# The above copyright notice and this permission notice shall be included in
|
13
|
+
# all copies or substantial portions of the Software.
|
14
|
+
#
|
15
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
# THE SOFTWARE.
|
22
|
+
|
1
23
|
require 'edn_turbo'
|
2
|
-
require 'pry-byebug'
|
24
|
+
# require 'pry-byebug'
|
3
25
|
|
4
26
|
module EDNT
|
5
27
|
RSpec.describe Parser do
|
@@ -415,5 +437,11 @@ module EDNT
|
|
415
437
|
expect(subject.parse('[ 1 2 3 4 #_ { :a 1 } ]')).to eq([1, 2, 3, 4])
|
416
438
|
end
|
417
439
|
end
|
440
|
+
|
441
|
+
context 'encoding' do
|
442
|
+
it 'empty str as utf-8' do
|
443
|
+
expect(subject.parse('""').encoding).to eq(Encoding::UTF_8)
|
444
|
+
end
|
445
|
+
end
|
418
446
|
end
|
419
447
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edn_turbo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
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: 2022-05-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: edn
|
@@ -28,84 +28,78 @@ dependencies:
|
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - "
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '12.3'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '14.0'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
37
40
|
requirements:
|
38
|
-
- - "
|
41
|
+
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '12.3'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '14.0'
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
48
|
+
name: pry-byebug
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
44
50
|
requirements:
|
45
51
|
- - "~>"
|
46
52
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
48
|
-
type: :
|
53
|
+
version: '3.9'
|
54
|
+
type: :development
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
51
57
|
requirements:
|
52
58
|
- - "~>"
|
53
59
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
60
|
+
version: '3.9'
|
55
61
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
62
|
+
name: rake-compiler
|
57
63
|
requirement: !ruby/object:Gem::Requirement
|
58
64
|
requirements:
|
59
|
-
- - '='
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '3.7'
|
62
65
|
- - "~>"
|
63
66
|
- !ruby/object:Gem::Version
|
64
|
-
version:
|
67
|
+
version: '1.2'
|
65
68
|
type: :development
|
66
69
|
prerelease: false
|
67
70
|
version_requirements: !ruby/object:Gem::Requirement
|
68
71
|
requirements:
|
69
|
-
- - '='
|
70
|
-
- !ruby/object:Gem::Version
|
71
|
-
version: '3.7'
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version:
|
74
|
+
version: '1.2'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rspec
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
|
-
- - '='
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '3.8'
|
82
79
|
- - "~>"
|
83
80
|
- !ruby/object:Gem::Version
|
84
|
-
version: 3.
|
81
|
+
version: '3.11'
|
85
82
|
type: :development
|
86
83
|
prerelease: false
|
87
84
|
version_requirements: !ruby/object:Gem::Requirement
|
88
85
|
requirements:
|
89
|
-
- - '='
|
90
|
-
- !ruby/object:Gem::Version
|
91
|
-
version: '3.8'
|
92
86
|
- - "~>"
|
93
87
|
- !ruby/object:Gem::Version
|
94
|
-
version: 3.
|
88
|
+
version: '3.11'
|
95
89
|
- !ruby/object:Gem::Dependency
|
96
90
|
name: rubocop
|
97
91
|
requirement: !ruby/object:Gem::Requirement
|
98
92
|
requirements:
|
99
93
|
- - "~>"
|
100
94
|
- !ruby/object:Gem::Version
|
101
|
-
version: '1.
|
95
|
+
version: '1.28'
|
102
96
|
type: :development
|
103
97
|
prerelease: false
|
104
98
|
version_requirements: !ruby/object:Gem::Requirement
|
105
99
|
requirements:
|
106
100
|
- - "~>"
|
107
101
|
- !ruby/object:Gem::Version
|
108
|
-
version: '1.
|
102
|
+
version: '1.28'
|
109
103
|
description: Optimized plugin for parsing EDN files using ragel
|
110
104
|
email: github@digressed.net
|
111
105
|
executables:
|
@@ -115,6 +109,7 @@ extensions:
|
|
115
109
|
extra_rdoc_files: []
|
116
110
|
files:
|
117
111
|
- ".dir-locals.el"
|
112
|
+
- ".github/workflows/ruby-ext.yml"
|
118
113
|
- ".gitignore"
|
119
114
|
- ".rspec"
|
120
115
|
- CHANGELOG.md
|
@@ -124,14 +119,6 @@ files:
|
|
124
119
|
- Rakefile
|
125
120
|
- bin/ppedn
|
126
121
|
- bin/ppedn-ruby
|
127
|
-
- docker/Dockerfile
|
128
|
-
- docker/build
|
129
|
-
- docker/common.sh
|
130
|
-
- docker/console
|
131
|
-
- docker/docker-compose.yml
|
132
|
-
- docker/entrypoint
|
133
|
-
- docker/make-check
|
134
|
-
- docker/run
|
135
122
|
- ext/edn_turbo/depend
|
136
123
|
- ext/edn_turbo/edn_parser.cc
|
137
124
|
- ext/edn_turbo/edn_parser.rl
|
@@ -160,14 +147,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
160
147
|
requirements:
|
161
148
|
- - ">="
|
162
149
|
- !ruby/object:Gem::Version
|
163
|
-
version: 2.
|
150
|
+
version: 2.6.0
|
164
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
152
|
requirements:
|
166
153
|
- - ">="
|
167
154
|
- !ruby/object:Gem::Version
|
168
155
|
version: '0'
|
169
156
|
requirements: []
|
170
|
-
rubygems_version: 3.2.
|
157
|
+
rubygems_version: 3.2.22
|
171
158
|
signing_key:
|
172
159
|
specification_version: 3
|
173
160
|
summary: Read EDN files
|
data/docker/Dockerfile
DELETED
@@ -1,40 +0,0 @@
|
|
1
|
-
FROM buildpack-deps:stretch
|
2
|
-
MAINTAINER github@digressed.net
|
3
|
-
ARG ruby_version
|
4
|
-
|
5
|
-
ENV LC_ALL C.UTF-8
|
6
|
-
|
7
|
-
USER root
|
8
|
-
RUN groupadd -r ned -g 1000 && \
|
9
|
-
useradd -u 1000 -r -g ned -m -s /sbin/nologin -c "Docker image user" ned && \
|
10
|
-
mkdir /home/ned/bin && \
|
11
|
-
mkdir /home/ned/src && \
|
12
|
-
chown -R ned:ned /home/ned
|
13
|
-
|
14
|
-
WORKDIR /home/ned/src
|
15
|
-
|
16
|
-
# Update Ubuntu Software repository && update deps
|
17
|
-
RUN apt-get update && \
|
18
|
-
apt-get install -y \
|
19
|
-
libicu-dev \
|
20
|
-
libreadline-dev \
|
21
|
-
ragel && \
|
22
|
-
rm -rf /var/lib/apt/lists/*
|
23
|
-
|
24
|
-
USER ned
|
25
|
-
|
26
|
-
ENV PATH "/home/ned/.rbenv/bin:/home/ned/.rbenv/shims:$PATH"
|
27
|
-
|
28
|
-
# install rbenv
|
29
|
-
RUN \curl -sL https://github.com/rbenv/rbenv-installer/raw/master/bin/rbenv-installer | bash - && \
|
30
|
-
eval "$(rbenv init -)"
|
31
|
-
|
32
|
-
RUN rm -f .ruby-version
|
33
|
-
|
34
|
-
# the specified ruby version
|
35
|
-
RUN rbenv install $ruby_version && \
|
36
|
-
rbenv global $ruby_version
|
37
|
-
|
38
|
-
COPY --chown=ned:ned . /home/ned/src
|
39
|
-
|
40
|
-
ENTRYPOINT ["docker/entrypoint"]
|
data/docker/build
DELETED
@@ -1,11 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
|
3
|
-
. docker/common.sh
|
4
|
-
|
5
|
-
set -e
|
6
|
-
|
7
|
-
set_ruby_ver $@
|
8
|
-
|
9
|
-
docker build --build-arg ruby_version=$RUBY_VERSION -f docker/Dockerfile -t digressed/test:edn_turbo-rb-$RUBY_VERSION .
|
10
|
-
docker tag "digressed/test:edn_turbo-rb-$RUBY_VERSION" "edn_turbo-rb-$RUBY_VERSION"
|
11
|
-
docker push "digressed/test:edn_turbo-rb-$RUBY_VERSION"
|
data/docker/common.sh
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
#!/bin/sh
|
2
|
-
|
3
|
-
RUBY_MAJOR_VER=3.0
|
4
|
-
|
5
|
-
function update_ruby_build()
|
6
|
-
{
|
7
|
-
if [ -e "~/.rbenv/plugins/" ]; then
|
8
|
-
echo "Updating ruby-build definitions"
|
9
|
-
|
10
|
-
pushd ~/.rbenv/plugins/ruby-build/ >> /dev/null
|
11
|
-
git pull
|
12
|
-
popd >> /dev/null
|
13
|
-
fi
|
14
|
-
}
|
15
|
-
|
16
|
-
function set_ruby_ver()
|
17
|
-
{
|
18
|
-
local args=("$@")
|
19
|
-
|
20
|
-
if [ ${#args[@]} -eq 0 ]; then
|
21
|
-
update_ruby_build
|
22
|
-
RUBY_VERSION=`ruby-build --definitions | grep "^$RUBY_MAJOR_VER" | tail -1`
|
23
|
-
else
|
24
|
-
RUBY_VERSION=$1
|
25
|
-
fi
|
26
|
-
|
27
|
-
echo "Using ruby $RUBY_VERSION"
|
28
|
-
}
|
data/docker/console
DELETED
data/docker/docker-compose.yml
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
version: "3"
|
2
|
-
services:
|
3
|
-
|
4
|
-
rb-3.0.0:
|
5
|
-
image: digressed/test:edn_turbo-rb-3.0.0
|
6
|
-
stdin_open: true
|
7
|
-
tty: true
|
8
|
-
|
9
|
-
rb-2.7.2:
|
10
|
-
image: digressed/test:edn_turbo-rb-2.7.2
|
11
|
-
stdin_open: true
|
12
|
-
tty: true
|
13
|
-
|
14
|
-
rb-2.6.6:
|
15
|
-
image: digressed/test:edn_turbo-rb-2.6.6
|
16
|
-
stdin_open: true
|
17
|
-
tty: true
|
18
|
-
|
19
|
-
rb-2.5.8:
|
20
|
-
image: digressed/test:edn_turbo-rb-2.5.8
|
21
|
-
stdin_open: true
|
22
|
-
tty: true
|
data/docker/entrypoint
DELETED
data/docker/make-check
DELETED