synvert-core 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c9a0f5e143582d26ad70583fece58a3e99251a0bb00af3e2ec1815c8b7163454
4
- data.tar.gz: 0e6e001dc795642ddfe0a245339f4632faeb8492f377cb0739c9d0d89b573fb0
3
+ metadata.gz: e457956d0490a430af778dd3f27e25d039d8f7931af1ba5d7bdbe7d0f9bc0f11
4
+ data.tar.gz: d96e8bd44fa2ffd236f406db758cb91ce2a2e0d09947b7595cd64e1f3a3bac7c
5
5
  SHA512:
6
- metadata.gz: d696b90c59582437c373ea536901c304ef2e63058cb600fd5d9bef731cf8ecc38e021799979174319ed22c1f1e888245f0a9034828953556e3ac09393b8b55af
7
- data.tar.gz: bd3db282c2f08918279815aed52e80f8bde651f70f61f5b041094679f1092fac2fee65b92adffa58602b6738f0cd70b8bd2cc0f858c209073200cfd9950c3681
6
+ metadata.gz: b8fe59e92b8452e4b14748d678f7e41b98e021690e38a4ddda89ec27c435a9d69fc9f050f0fd34fef61f1d420e90ddbe99576716b5f660e5daded4f76a98cff6
7
+ data.tar.gz: aa8e06a6b49b5e155f7d049c5aa60f87e3bdc25e6a47d1ef344e9dd2dd07deff51cc581dd4028e3b2007d4c2d80779bf87cda7508647091d25d44af9184cdb5b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 2.1.1 (2024-07-01)
4
+
5
+ * Allow to parse ruby version `ruby-3.3.0\n`
6
+ * Update `node_visitor` to 1.1.0
7
+
3
8
  ## 2.1.0 (2024-06-24)
4
9
 
5
10
  * Remove `add_leading_spaces` method
data/Gemfile.lock CHANGED
@@ -1,11 +1,11 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert-core (2.1.0)
4
+ synvert-core (2.1.1)
5
5
  activesupport
6
6
  node_mutation (>= 1.24.4)
7
7
  node_query (>= 1.15.3)
8
- node_visitor (>= 1.0.1)
8
+ node_visitor (>= 1.1.0)
9
9
  parallel
10
10
  parser
11
11
  parser_node_ext (>= 1.3.2)
@@ -59,12 +59,12 @@ GEM
59
59
  rb-inotify (~> 0.9, >= 0.9.10)
60
60
  lumberjack (1.2.10)
61
61
  method_source (1.1.0)
62
- minitest (5.24.0)
62
+ minitest (5.24.1)
63
63
  mutex_m (0.2.0)
64
64
  nenv (0.3.0)
65
65
  node_mutation (1.24.4)
66
66
  node_query (1.15.3)
67
- node_visitor (1.0.1)
67
+ node_visitor (1.1.0)
68
68
  notiffany (0.1.3)
69
69
  nenv (~> 0.1)
70
70
  shellany (~> 0.0)
@@ -26,6 +26,7 @@ module Synvert::Core
26
26
  return true unless version_file
27
27
 
28
28
  version = File.read(File.join(Configuration.root_path, version_file))
29
+ version = version.match(/(\d+\.\d+\.\d+)/)[0]
29
30
  Gem::Version.new(version) >= Gem::Version.new(@version)
30
31
  end
31
32
  end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Synvert
4
4
  module Core
5
- VERSION = '2.1.0'
5
+ VERSION = '2.1.1'
6
6
  end
7
7
  end
@@ -25,5 +25,11 @@ module Synvert::Core
25
25
  expect(ruby_version).to be_match
26
26
  Configuration.strict = true
27
27
  end
28
+
29
+ it 'returns true if ruby version is ruby-3.0.0\n' do
30
+ allow(File).to receive(:read).with('./.ruby-version').and_return("ruby-3.0.0\n")
31
+ ruby_version = Rewriter::RubyVersion.new('1.9')
32
+ expect(ruby_version).to be_match
33
+ end
28
34
  end
29
35
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency "activesupport"
23
23
  spec.add_runtime_dependency "node_query", ">= 1.15.3"
24
24
  spec.add_runtime_dependency "node_mutation", ">= 1.24.4"
25
- spec.add_runtime_dependency "node_visitor", ">= 1.0.1"
25
+ spec.add_runtime_dependency "node_visitor", ">= 1.1.0"
26
26
  spec.add_runtime_dependency "parser"
27
27
  spec.add_runtime_dependency "parser_node_ext", ">= 1.3.2"
28
28
  spec.add_runtime_dependency "syntax_tree"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synvert-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-24 00:00:00.000000000 Z
11
+ date: 2024-07-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.1
61
+ version: 1.1.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.0.1
68
+ version: 1.1.0
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: parser
71
71
  requirement: !ruby/object:Gem::Requirement