synvert 1.4.3 → 1.4.5

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: 19744ed1c0594d53ade16741e59666a8cd2d7b586d90b51eb6ef0c3000ff587f
4
- data.tar.gz: cd8f5ebba8d876d3050849b4b7bdcb39f4d90f785f128696bf4f5653545c6bc9
3
+ metadata.gz: 16df08fdeea4180bc57f618b3647a324ad3273711f680e1fe16eed46b30a51de
4
+ data.tar.gz: 38d1c795e9a7d6f1126c7f55e61e726b94fbdf3d9b516cdd2f574fb2ba49314f
5
5
  SHA512:
6
- metadata.gz: 6ed02f04fd75544802aaae831746376217eaaf9bccb97b490cf65940b2cda5b0aed47887b7cf114f716989726d07223f81975cd7cfe56b97d595cd3bc3b0780f
7
- data.tar.gz: 5487c60b4c4d69cc3cd968b7d77e0b937e2afee42ccd1ba4a5b3333df06c617892a1dbfe63fbfac01ec4ca8a65e3dfb1a2648717b2ca9abb8da9fb5f527fc305
6
+ metadata.gz: d7da48a488d0bb87b0747a10a7f659e13353e95bc0262b64c4c08ea117ec2ec81ff0fc376f200d0ecd73ec60481232c5167c13ce82c9ceb3dbc8b93e7766fba1
7
+ data.tar.gz: 33265e738ff7e0f1a3b75035845c5acc839019f4b28b51ef4f86b8c3a9d879b47b2f11bba10970db48cea9639e04ac629061ddad8bb53c22e0d37680e4db5aec
@@ -12,10 +12,10 @@ jobs:
12
12
  runs-on: ubuntu-latest
13
13
  strategy:
14
14
  matrix:
15
- ruby-version: ['2.6', '2.7', '3.0', '3.1']
15
+ ruby-version: ['2.7', '3.0', '3.1', '3.2']
16
16
 
17
17
  steps:
18
- - uses: actions/checkout@v2
18
+ - uses: actions/checkout@v3
19
19
  - name: Set up Ruby
20
20
  uses: ruby/setup-ruby@v1
21
21
  with:
@@ -29,8 +29,8 @@ jobs:
29
29
  needs: test
30
30
  name: Update gh-pages to docs
31
31
  steps:
32
- - uses: actions/checkout@v2
33
- - uses: actions/setup-node@v2
32
+ - uses: actions/checkout@v3
33
+ - uses: actions/setup-node@v3
34
34
  with:
35
35
  node-version: 18
36
36
  - name: Install required npm dependencies
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.4.5 (2024-07-01)
4
+
5
+ * Explicitly require `parser`
6
+
7
+ ## 1.4.4 (2023-06-06)
8
+
9
+ * Update `synvert-core` to 1.28.0
10
+
3
11
  ## 1.4.3 (2023-04-11)
4
12
 
5
13
  * Uutput backtrace when `ENV['DEBUG']` is true
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.4.3)
5
- synvert-core (>= 1.22.1)
4
+ synvert (1.4.5)
5
+ synvert-core (>= 1.28.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -27,20 +27,19 @@ GEM
27
27
  rexml
28
28
  diff-lcs (1.4.4)
29
29
  docile (1.4.0)
30
- erubis (2.7.0)
31
30
  hashdiff (1.0.1)
32
31
  i18n (1.12.0)
33
32
  concurrent-ruby (~> 1.0)
34
33
  json (2.5.1)
35
34
  minitest (5.18.0)
36
- node_mutation (1.13.0)
37
- erubis
38
- node_query (1.12.0)
35
+ node_mutation (1.18.3)
36
+ node_query (1.13.2)
39
37
  parallel (1.22.1)
40
38
  parser (3.2.1.1)
41
39
  ast (~> 2.4.1)
42
- parser_node_ext (1.0.0)
40
+ parser_node_ext (1.1.1)
43
41
  parser
42
+ prettier_print (1.2.1)
44
43
  public_suffix (4.0.6)
45
44
  rake (13.0.6)
46
45
  rexml (3.2.5)
@@ -63,13 +62,19 @@ GEM
63
62
  simplecov-html (~> 0.10.0)
64
63
  simplecov-html (0.10.2)
65
64
  sync (0.5.0)
66
- synvert-core (1.22.1)
65
+ syntax_tree (6.1.1)
66
+ prettier_print (>= 1.2.0)
67
+ syntax_tree_ext (0.3.1)
68
+ syntax_tree
69
+ synvert-core (1.28.0)
67
70
  activesupport (< 7.0.0)
68
- node_mutation (>= 1.13.0)
69
- node_query (>= 1.12.0)
71
+ node_mutation (>= 1.18.2)
72
+ node_query (>= 1.13.2)
70
73
  parallel
71
74
  parser
72
- parser_node_ext (>= 1.0.0)
75
+ parser_node_ext (>= 1.1.1)
76
+ syntax_tree
77
+ syntax_tree_ext (>= 0.3.1)
73
78
  term-ansicolor (1.7.1)
74
79
  tins (~> 1.0)
75
80
  thor (1.1.0)
data/lib/synvert/cli.rb CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'optparse'
4
4
  require 'fileutils'
5
+ require 'parser'
5
6
 
6
7
  module Synvert
7
8
  # Synvert command line interface.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.4.3'
4
+ VERSION = '1.4.5'
5
5
  end
data/synvert-ruby.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
  spec.require_paths = ['lib']
21
21
  spec.post_install_message = 'Please run `synvert-ruby --sync` first to sync snippets remotely.'
22
22
 
23
- spec.add_runtime_dependency 'synvert-core', '>= 1.22.1'
23
+ spec.add_runtime_dependency 'synvert-core', '>= 1.28.0'
24
24
 
25
25
  spec.add_development_dependency 'bundler'
26
26
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-11 00:00:00.000000000 Z
11
+ date: 2023-06-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: synvert-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 1.22.1
19
+ version: 1.28.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 1.22.1
26
+ version: 1.28.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -109,7 +109,6 @@ files:
109
109
  - spec/synvert/snippet_spec.rb
110
110
  - spec/synvert/utils_spec.rb
111
111
  - synvert-ruby.gemspec
112
- - test.rb
113
112
  homepage: https://github.com/xinminlabs/synvert-ruby
114
113
  licenses:
115
114
  - MIT
@@ -129,8 +128,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
128
  - !ruby/object:Gem::Version
130
129
  version: '0'
131
130
  requirements: []
132
- rubygems_version: 3.0.3.1
133
- signing_key:
131
+ rubygems_version: 3.4.13
132
+ signing_key:
134
133
  specification_version: 4
135
134
  summary: synvert = syntax + convert.
136
135
  test_files:
data/test.rb DELETED
@@ -1,15 +0,0 @@
1
- Synvert::Rewriter.new 'group', 'name' do
2
- within_files 'app/controllers/**/*.rb' do
3
- with_node node_type: 'send', receiver: nil, message: 'render', arguments: { size: 1, '0': { node_type: 'hash', nothing_value: true } } do
4
- replace :message, with: 'head'
5
- goto_node 'arguments.0' do
6
- with_node node_type: 'hash', status_value: nil do
7
- replace_with ':ok'
8
- end
9
- with_node node_type: 'hash', status_value: { not: nil } do
10
- replace_with '{{status_source}}'
11
- end
12
- end
13
- end
14
- end
15
- end