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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 595e8d272d073bbd455649eb8dc024dff3c5175908cfd6f934a33cf501cc1412
4
- data.tar.gz: c39b635bdd354a6e153b6322fe41f318232a2fd75634a78fb3b425b323aed422
3
+ metadata.gz: 8efc68f20507f7fd2cac8c5f3794354054d94cee65a9c80fa97f168815b10d3d
4
+ data.tar.gz: e7cf3e48b5c8e2e7a4909a154d594395c8625b0b9c7283c92758b9e2a7c519df
5
5
  SHA512:
6
- metadata.gz: 770b657e9a70cb76b633e10be968b85eebf9f6f4f002e7a1634cc2acc4585372ce72417bb73a85cd1325879360352c9bbeb428a672e6d619b725e403026e6abe
7
- data.tar.gz: 072f040ca8c3a4c1312003288d91a9e6254494e49b48cd7f0b8f6cfb51419ef4859705072380b53631a2334abaa3ab4310ebc61fe416e9ae23e208665323d3ee
6
+ metadata.gz: b92e671de9022f28778dd793970ae65608cf54a36130bdd13e3db404d9db43b2cfad6622cbc847bf6d4ba7294b74ef129097f7a94fe68c96df888e486dd4df4f
7
+ data.tar.gz: f4b600dc81466f5eee61b3a1d9e829f71cad18fdb78a28bbef4f60dbd7da047eaa897cffd91b310d0e527fb04f20f7ebb38e7c8cba2e197528d322554b014a6b
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DailyProgress
4
- VERSION = '2.2.0'
4
+ VERSION = '2.2.1'
5
5
  WSL_VERSION_PATH = '/proc/version'
6
6
  end
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dailyprogress
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lovepreet