sas-lexer 0.1.0 → 1.0.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/README.md +1 -1
- data/Rakefile +7 -6
- data/ffi-wrapper/Cargo.lock +2 -2
- data/lib/native/arm64-darwin/libsas_lexer_ffi.dylib +0 -0
- data/lib/native/x86_64-linux/libsas_lexer_ffi.so +0 -0
- data/lib/sas_lexer/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 067ce03e2cf0d1ec3df118be47114392e053acb0812b6c1f433f742db9ff7b3f
|
|
4
|
+
data.tar.gz: cd63117e355ed503d0520770cfa648b2e82c3a7a0b7cfe91110aacbfd07c8c9e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c85f6c62eda58bf6100f64a28fde20f8a2b5078c63f8edab9f07491d45390e537372abec401475d02f642114a327359d94e9f74eb17301fa2dbea2d1a8fabaf0
|
|
7
|
+
data.tar.gz: e7f506163cf4443d23954b23e90db4f7db633c564f78619f88c832ec630394d0577ad6d56256ec3bfe6f5efdae3f0e42ad2c6c5f46fdb530e6c4a5b6a912e053
|
data/README.md
CHANGED
|
@@ -74,7 +74,7 @@ bundle exec rake sas_lexer:install
|
|
|
74
74
|
|
|
75
75
|
This:
|
|
76
76
|
|
|
77
|
-
1. Clones the upstream `sas-lexer` repo into `vendor/sas-lexer
|
|
77
|
+
1. Clones the upstream [`mishamsk/sas-lexer`](https://github.com/mishamsk/sas-lexer) repo into `vendor/sas-lexer/` at the release tag `SAS_LEXER_REF` names in the `Rakefile` (currently `rust-v1.0.0`).
|
|
78
78
|
2. Compiles the FFI shim under `ffi-wrapper/` against it.
|
|
79
79
|
3. Installs the resulting shared library at `lib/native/libsas_lexer_ffi.<ext>`.
|
|
80
80
|
|
data/Rakefile
CHANGED
|
@@ -15,24 +15,25 @@ RuboCop::RakeTask.new
|
|
|
15
15
|
# adding a new platform) by cloning the upstream Rust crate and
|
|
16
16
|
# compiling the FFI shim under `ffi-wrapper/`.
|
|
17
17
|
namespace :sas_lexer do
|
|
18
|
-
SAS_LEXER_REPO = "https://github.com/
|
|
19
|
-
|
|
18
|
+
SAS_LEXER_REPO = "https://github.com/mishamsk/sas-lexer.git"
|
|
19
|
+
# The upstream release the native libraries are built from.
|
|
20
|
+
SAS_LEXER_REF = "rust-v1.0.0"
|
|
20
21
|
SAS_LEXER_DIR = "vendor/sas-lexer"
|
|
21
22
|
LIB_DIR = "lib/native"
|
|
22
23
|
|
|
23
|
-
desc "Clone (or update) the upstream sas-lexer repository"
|
|
24
|
+
desc "Clone (or update) the upstream sas-lexer repository at SAS_LEXER_REF"
|
|
24
25
|
task :clone do
|
|
25
26
|
if Dir.exist?(SAS_LEXER_DIR)
|
|
26
27
|
puts "SAS Lexer repository already exists at #{SAS_LEXER_DIR}"
|
|
27
28
|
puts "Updating repository..."
|
|
28
29
|
Dir.chdir(SAS_LEXER_DIR) do
|
|
29
|
-
sh "git fetch origin"
|
|
30
|
-
sh "git
|
|
30
|
+
sh "git fetch --tags origin"
|
|
31
|
+
sh "git checkout --detach #{SAS_LEXER_REF}"
|
|
31
32
|
end
|
|
32
33
|
else
|
|
33
34
|
puts "Cloning sas-lexer repository..."
|
|
34
35
|
FileUtils.mkdir_p("vendor")
|
|
35
|
-
sh "git clone --branch #{
|
|
36
|
+
sh "git clone --branch #{SAS_LEXER_REF} #{SAS_LEXER_REPO} #{SAS_LEXER_DIR}"
|
|
36
37
|
end
|
|
37
38
|
end
|
|
38
39
|
|
data/ffi-wrapper/Cargo.lock
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# This file is automatically @generated by Cargo.
|
|
2
2
|
# It is not intended for manual editing.
|
|
3
|
-
version =
|
|
3
|
+
version = 4
|
|
4
4
|
|
|
5
5
|
[[package]]
|
|
6
6
|
name = "bit-vec"
|
|
@@ -249,7 +249,7 @@ checksum = "b39cdef0fa800fc44525c84ccb54a029961a8215f9619753635a9c0d2538d46d"
|
|
|
249
249
|
|
|
250
250
|
[[package]]
|
|
251
251
|
name = "sas-lexer"
|
|
252
|
-
version = "1.0.0
|
|
252
|
+
version = "1.0.0"
|
|
253
253
|
dependencies = [
|
|
254
254
|
"bit-vec",
|
|
255
255
|
"encoding",
|
|
Binary file
|
|
Binary file
|
data/lib/sas_lexer/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sas-lexer
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version:
|
|
4
|
+
version: 1.0.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Craig McNamara
|
|
@@ -67,7 +67,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0'
|
|
69
69
|
requirements: []
|
|
70
|
-
rubygems_version: 4.0.
|
|
70
|
+
rubygems_version: 4.0.20
|
|
71
71
|
specification_version: 4
|
|
72
72
|
summary: Ruby FFI wrapper around the sas-lexer Rust crate.
|
|
73
73
|
test_files: []
|