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 +4 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile.lock +1 -1
- data/lib/synvert/cli.rb +4 -2
- data/lib/synvert/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 973dcf09ece6f354f815d767476cca4f48a8d9359c86c2f1472e079441441141
|
4
|
+
data.tar.gz: b00a52b60ad18aee2558ea9e1940b7291838a323a6fe0da090e14e901a352d53
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7e8ae8262b1e50aff36f47c432dd05f908f1a6ae50718fd4a0551172bc76dcd16f4f8c96c8081ad02cce438b7049bce36e96c9861f746dd043e4fa2ccc86b52
|
7
|
+
data.tar.gz: ffb7c0efd9d20546213336695a662bfd0cd578b9ab25f43bb8157b04e552a0644898d5db0577857e25512137e8328366facd0b798ac24f01f541840b73e09ff8
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
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
|
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['
|
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?
|
data/lib/synvert/version.rb
CHANGED