open_in_browser 1.0.13 → 1.0.14

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
  SHA1:
3
- metadata.gz: c04086fffcec1e68bdd8f97c9525c8566dbc060c
4
- data.tar.gz: b0ad8fa27f28ab63ae57eeaac9870b689d77a18b
3
+ metadata.gz: 4efc6174b2a9f035a09530ec97e08fc30d2f8bc3
4
+ data.tar.gz: 57bcf56daec837369d228f0f7f1e3964f3174b29
5
5
  SHA512:
6
- metadata.gz: 52c5481d8535bb2cd00c27153ecc8310c35c0af0acac1bbbb4e6dccd86b65ab9bd28f84259f6ca20bf40d40a71ffdd915d7fc93efb7c67f5c61cb15500d5e034
7
- data.tar.gz: 25ef6ff1b4752cfe691b41156a29ad1bc3b9cea2d7b1369632fdd9feeb32316993f090f17f92f465d4ed91b5d3817e1456fcf5e0e0ec18bf05fe4320fb74b24c
6
+ metadata.gz: 0151ed7208a1255529a0c09f2d86742603029a3d00a093ba3e5bb27cf3a306c4eeb6f29ba7bbfcc569a0679e260e6adecca0e973e80b160e64fa8b005acb5498
7
+ data.tar.gz: e641c1ff724dadf93a56bf3c0e7877e955c3db0c4b105c28e85efae0dfb0e5a7217b625255d7463c4a9875918345f758d5b260946982a6f285f4c66f39288f62
@@ -95,7 +95,7 @@ class OpenInBrowser # require 'open_in_browser'; OpenInBrowser.new
95
95
  if entry.include? '&'
96
96
  entry = '"'+entry+'"' unless entry.start_with? '"'
97
97
  end
98
- esystem(browser+' '+entry)
98
+ esystem(browser+' '+entry) # Here we always output.
99
99
  } unless @target_url.nil?
100
100
  else
101
101
  browser = 'firefox' # Else, default to this here as a generic fallback.
@@ -105,8 +105,9 @@ class OpenInBrowser # require 'open_in_browser'; OpenInBrowser.new
105
105
  # ========================================================================= #
106
106
  # === esystem
107
107
  # ========================================================================= #
108
- def esystem(i)
109
- e i; system(i)
108
+ def esystem(i, do_show_the_command_that_will_be_used = true)
109
+ e i if do_show_the_command_that_will_be_used
110
+ system(i)
110
111
  end
111
112
 
112
113
  # ========================================================================= #
@@ -1,6 +1,6 @@
1
1
  class OpenInBrowser # require 'open_in_browser/version/version.rb'
2
2
 
3
3
  # === OpenInBrowser::VERSION
4
- VERSION = '1.0.13'
4
+ VERSION = '1.0.14'
5
5
 
6
6
  end
@@ -5,9 +5,9 @@ require 'open_in_browser/version/version.rb'
5
5
 
6
6
  Gem::Specification.new { |s|
7
7
 
8
- s.name = 'open_in_browser'
9
- s.version = OpenInBrowser::VERSION
10
- s.date = Time.now.strftime('%Y-%m-%d')
8
+ s.name = 'open_in_browser'
9
+ s.version = OpenInBrowser::VERSION
10
+ s.date = Time.now.strftime('%Y-%m-%d')
11
11
 
12
12
  DESCRIPTION = <<-EOF
13
13
 
@@ -37,10 +37,11 @@ Gem::Specification.new { |s|
37
37
  s.license = 'GPL-2.0'
38
38
  s.homepage = 'http://rubygems.org/gems/open_in_browser'
39
39
 
40
- s.required_ruby_version = '>= 2.3.0'
41
- s.rubygems_version = '2.6.2'
40
+ s.required_ruby_version = '>= '+RUBY_VERSION
41
+ s.required_rubygems_version = '>= '+Gem::VERSION
42
+ s.rubygems_version = '>= '+Gem::VERSION
42
43
 
43
44
  s.add_dependency 'colour_e'
44
45
  s.add_dependency 'try_syck'
45
46
 
46
- }
47
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: open_in_browser
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.13
4
+ version: 1.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert A. Heiler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-29 00:00:00.000000000 Z
11
+ date: 2017-05-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: colour_e
@@ -76,15 +76,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
76
76
  requirements:
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 2.3.0
79
+ version: 2.4.1
80
80
  required_rubygems_version: !ruby/object:Gem::Requirement
81
81
  requirements:
82
82
  - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: '0'
84
+ version: 2.6.12
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.6.7
87
+ rubygems_version: 2.6.12
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: 'This class will open an URL in a browser, usually firefox. Note that this