synvert 1.2.1 → 1.2.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: fbf03f5ea8a59861b385bad8c4f225a62b42ce0bb32436cd96283263512fdfd2
4
- data.tar.gz: cbeaddf5e452d8c5f0256aba60d654b76dcedb48831ec2bc58cb828e321e023e
3
+ metadata.gz: 973dcf09ece6f354f815d767476cca4f48a8d9359c86c2f1472e079441441141
4
+ data.tar.gz: b00a52b60ad18aee2558ea9e1940b7291838a323a6fe0da090e14e901a352d53
5
5
  SHA512:
6
- metadata.gz: 96128edaf536e29443e9e07907d0f3ef06c14b4b82cd95f311efce9afcaf3539afa1dc316ad0a5a12adb05c81dcb3c794e02ab7b91160a0b9b21532fb1ee2a14
7
- data.tar.gz: 60056a971dd88b68ec6daab79bbc1906f065ed60850bbe2af4c4c86d8a1dbd121a8ecb6eadd4b7da3ac7377e94fc2d7888159c2005341b333f1f397d67aff20a
6
+ metadata.gz: a7e8ae8262b1e50aff36f47c432dd05f908f1a6ae50718fd4a0551172bc76dcd16f4f8c96c8081ad02cce438b7049bce36e96c9861f746dd043e4fa2ccc86b52
7
+ data.tar.gz: ffb7c0efd9d20546213336695a662bfd0cd578b9ab25f43bb8157b04e552a0644898d5db0577857e25512137e8328366facd0b798ac24f01f541840b73e09ff8
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.2.2 (2022-11-13)
4
+
5
+ * Fix `default_snippets_home` in windows
6
+
3
7
  ## 1.2.1 (2022-11-13)
4
8
 
5
9
  * Concat multiple git commands with &&
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- synvert (1.2.1)
4
+ synvert (1.2.2)
5
5
  synvert-core (>= 1.12.0)
6
6
 
7
7
  GEM
data/lib/synvert/cli.rb CHANGED
@@ -147,7 +147,7 @@ module Synvert
147
147
  # List and print all available rewriters.
148
148
  def list_available_rewriters
149
149
  if Core::Rewriter.availables.empty?
150
- puts 'There is no snippet under ~/.synvert-ruby, please run `synvert-ruby --sync` to fetch snippets.'
150
+ puts "There is no snippet under #{default_snippets_name}, please run `synvert-ruby --sync` to fetch snippets."
151
151
  return
152
152
  end
153
153
 
@@ -322,7 +322,9 @@ module Synvert
322
322
  end
323
323
 
324
324
  def default_snippets_home
325
- ENV['SYNVERT_SNIPPETS_HOME'] || File.join(ENV['HOME'], '.synvert-ruby')
325
+ # ENV['HOME'] may use \ as file separator,
326
+ # but File.join always uses / as file separator.
327
+ ENV['SYNVERT_SNIPPETS_HOME'] || File.join(ENV['HOME'].gsub("\\", "/"), '.synvert-ruby')
326
328
  end
327
329
 
328
330
  def plain_output?
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Synvert
4
- VERSION = '1.2.1'
4
+ VERSION = '1.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: synvert
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Richard Huang