geet 0.6.0 → 0.7.0

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: 857d9ed2126121c3309d1addf10d30f26a9186877ee28ee0ef883e1db8459c33
4
- data.tar.gz: 806bc568c64c30b6113a5c0d1551451766f0343d3e1b9a38555cc7862d983668
3
+ metadata.gz: 2ebe1a771378f505ad417cd5fca4b28431c765cbf43f1bcb84ea437a98003fb0
4
+ data.tar.gz: e1b536ed992c313ad299a85ac07dc80eecdfffd77761f90947d628ed9592cca7
5
5
  SHA512:
6
- metadata.gz: 9ad7e819ddb0eabebd82a175ad1b6acb7a84a5c6d6c99fad3c60adf12b5276c000d607fb6d64267dbaeeac5df61b9f2b02da4d3b1032ec3b4d3ad03755eddaa8
7
- data.tar.gz: c8672aa57e299310a0e3b15ef5d558fe3048c86ef90bc708d51795dba007bbb2e28bc7804f4f08fe014cff621327529cf34a30b2fa86aadcf03b853db9672020
6
+ metadata.gz: 8fdc02f201b5fe7fbb3b2a3ccd69041b83a49b8b09c403bf32d520df779a327cd397d04caf9297ee77f00bc83b3ca9629c03423538605d727d71231fd2a92eb8
7
+ data.tar.gz: 7ad1563129f5dcbf449a05cea608b6ca7cf0ae827cdde084d235929c19a4565285366886a34327b2195f117b6429224e7820a762afbde411d366789c5713e718
data/geet.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |s|
10
10
  s.platform = Gem::Platform::RUBY
11
11
  s.required_ruby_version = '>= 2.3.0'
12
12
  s.authors = ['Saverio Miroddi']
13
- s.date = '2022-06-19'
13
+ s.date = '2022-06-20'
14
14
  s.email = ['saverio.pub2@gmail.com']
15
15
  s.homepage = 'https://github.com/saveriomiroddi/geet'
16
16
  s.summary = 'Commandline interface for performing SCM host operations, eg. create a PR on GitHub'
@@ -8,11 +8,11 @@ module Geet
8
8
  module Helpers
9
9
  module OsHelper
10
10
  def open_file_with_default_application(file_or_url)
11
- if `uname`.strip == 'Darwin'
12
- exec "open #{file_or_url.shellescape}"
13
- else
14
- exec "xdg-open #{file_or_url.shellescape}"
15
- end
11
+ open_command = `uname`.strip == 'Darwin' ? "open": "xdg-open"
12
+
13
+ command = "#{open_command} #{file_or_url.shellescape}"
14
+
15
+ system(command, exception: true)
16
16
  end
17
17
 
18
18
  # Executes the command.
data/lib/geet/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Geet
4
- VERSION = '0.6.0'
4
+ VERSION = '0.7.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: geet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saverio Miroddi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-06-19 00:00:00.000000000 Z
11
+ date: 2022-06-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: simple_scripting