node_mutation 1.9.1 → 1.9.2

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: c83e3715de9de4bc244ddbcf4486f78c51bdff021735f291d797d7e2728d3369
4
- data.tar.gz: 6dae070e5a2ad3977a53c08f312ee240d3a9164b353e257d61bdaff0c492c542
3
+ metadata.gz: ccf182b956fa95424444237b856f0eaf8a184079ad3c0a4288d73dfe826ba288
4
+ data.tar.gz: 6bfb14607647b18b00dfaf9dd64f238aef07aa3f12df72706ffea054ec1b09d6
5
5
  SHA512:
6
- metadata.gz: b10359865b08bbb672dcdcb567f27a1de4018e12f61615cb16fb4d9406af37be3443ccafafcd2d9347a0fab48f739fffa70e170eff13ad443272542a2148cfc8
7
- data.tar.gz: 605c42f06b1b2f5d54c8714394f3874446e88f27016bcf361d2a067f36dad285db9056984fc1216d70c02237eb3e052799e16e9c065cf4e3fda14823734f0e6d
6
+ metadata.gz: dd147fa9473293c29053b372d21de52fd197a936d3b1c615bf461702630612386851b592c28f6e06ff70831799ca28c493e63044c3cbbc2bb5f631dbe369790d
7
+ data.tar.gz: aa523832bc7421c0f2a4090d2e685ddb09ee3f818c4df39499ed796a84ec2a54f28b7b29f7fff0749e387597f6ea4cfe2f9fb06fc3caba49a20be503207e2370
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # NodeMutation
2
2
 
3
+ ## 1.9.2 (2023-02-11)
4
+
5
+ * Squeeze space if end with space, newline or semicolon
6
+
3
7
  ## 1.9.1 (2023-02-10)
4
8
 
5
9
  * Make sure `tab_width` is an Integer
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- node_mutation (1.9.1)
4
+ node_mutation (1.9.2)
5
5
  erubis
6
6
 
7
7
  GEM
@@ -54,7 +54,7 @@ class NodeMutation::Action
54
54
 
55
55
  # Squeeze spaces from source code.
56
56
  def squeeze_spaces
57
- if file_source[@start - 1] == ' ' && file_source[@end] == ' '
57
+ if file_source[@start - 1] == ' ' && [' ', "\n", ';'].include?(file_source[@end])
58
58
  @start -= 1
59
59
  end
60
60
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class NodeMutation
4
- VERSION = "1.9.1"
4
+ VERSION = "1.9.2"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: node_mutation
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.9.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-02-10 00:00:00.000000000 Z
11
+ date: 2023-02-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: erubis
@@ -82,7 +82,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
82
82
  - !ruby/object:Gem::Version
83
83
  version: '0'
84
84
  requirements: []
85
- rubygems_version: 3.4.6
85
+ rubygems_version: 3.4.1
86
86
  signing_key:
87
87
  specification_version: 4
88
88
  summary: ast node mutation apis