dailyprogress 2.2.0 → 2.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/DailyProgress/version.rb +1 -1
- data/lib/daily_progress.rb +4 -3
- 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: 8efc68f20507f7fd2cac8c5f3794354054d94cee65a9c80fa97f168815b10d3d
|
4
|
+
data.tar.gz: e7cf3e48b5c8e2e7a4909a154d594395c8625b0b9c7283c92758b9e2a7c519df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b92e671de9022f28778dd793970ae65608cf54a36130bdd13e3db404d9db43b2cfad6622cbc847bf6d4ba7294b74ef129097f7a94fe68c96df888e486dd4df4f
|
7
|
+
data.tar.gz: f4b600dc81466f5eee61b3a1d9e829f71cad18fdb78a28bbef4f60dbd7da047eaa897cffd91b310d0e527fb04f20f7ebb38e7c8cba2e197528d322554b014a6b
|
data/lib/daily_progress.rb
CHANGED
@@ -64,12 +64,13 @@ module DailyProgress
|
|
64
64
|
success_msg = "Content copied to clipboard successfully!"
|
65
65
|
if OS.windows?
|
66
66
|
IO.popen('clip', 'w') { |f| f << content.to_s }
|
67
|
-
puts success_msg
|
67
|
+
puts success_msg if $?.exitstatus.to_i == 0
|
68
68
|
elsif OS.wsl?
|
69
|
-
IO.popen('clip.exe') { |f| f << content.to_s }
|
69
|
+
IO.popen('clip.exe', 'w') { |f| f << content.to_s }
|
70
|
+
puts success_msg if $?.exitstatus.to_i == 0
|
70
71
|
else OS.linux?
|
71
72
|
IO.popen('xclip -selection clipboard', 'r+') { |f| f.puts content.to_s }
|
72
|
-
puts success_msg
|
73
|
+
puts success_msg if $?.exitstatus.to_i == 0
|
73
74
|
end
|
74
75
|
end
|
75
76
|
end
|