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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a7f9fdf47af9f718c5ace9513b5ce0e110c19c98e5d1ad8c06cddefaae5b4345
4
- data.tar.gz: 9e8d53556a3ecf6f6e4bf6f2a20bf62c70b7f868ed0529c83ff7aeb4ee5f2e3a
3
+ metadata.gz: 067ce03e2cf0d1ec3df118be47114392e053acb0812b6c1f433f742db9ff7b3f
4
+ data.tar.gz: cd63117e355ed503d0520770cfa648b2e82c3a7a0b7cfe91110aacbfd07c8c9e
5
5
  SHA512:
6
- metadata.gz: 6a524252abbec79df6eb4c10ec336796d80fe87886d2d8452e46ebbd97ba4c8d5fdfff3b6f0c5dfd77baa5d365623ebad5c2c87410d94d26b78537dcd37622e1
7
- data.tar.gz: 407150fafaae3469c335affce8071e12d03e31e6e561d8b6a68afee2aacbb0f0dbde424468b9ef85d6350e3c40e378bf755cabf31e96f3e307f2c5f56043ad54
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/craigmcnamara/sas-lexer.git"
19
- SAS_LEXER_BRANCH = "main"
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 reset --hard origin/#{SAS_LEXER_BRANCH}"
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 #{SAS_LEXER_BRANCH} #{SAS_LEXER_REPO} #{SAS_LEXER_DIR}"
36
+ sh "git clone --branch #{SAS_LEXER_REF} #{SAS_LEXER_REPO} #{SAS_LEXER_DIR}"
36
37
  end
37
38
  end
38
39
 
@@ -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
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-beta.4"
252
+ version = "1.0.0"
253
253
  dependencies = [
254
254
  "bit-vec",
255
255
  "encoding",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SasLexer
4
- VERSION = "0.1.0"
4
+ VERSION = "1.0.0"
5
5
  end
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: 0.1.0
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.6
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: []