termit 2.12.0 → 2.12.1

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: e075ba37fe770128b167d0abd852d14aee4e02e6
4
- data.tar.gz: d2dbc52fb9bf43d989b10a4d7a29dc5803b9e465
3
+ metadata.gz: 67c4b698f95a481e2bae4c38ef178f391fa69038
4
+ data.tar.gz: 6e92708f054f9b881f27179b1f47c1b8194dcd6f
5
5
  SHA512:
6
- metadata.gz: 30383a79af0f3f5f3c68a8c18369491900ef52f0b2e44459443d6f55e996e85ead16ac6cbc6669d4ec986285a05bf00a71e3539291410433ea99e52929b5075a
7
- data.tar.gz: a8b8902566927731f1e548d0efc867f7d38ac8ee58b7cd487862f910f28949521e57810fe60ba0626ea37463b32d2fb9bd7220a8823025b2668afb21538a0f51
6
+ metadata.gz: 4b7ad8090e88c90eeab3d4b93c1869d6aff4dd504380a77b2737559d00fc2b5d8029463ad296fc5ff3661a70f3a9e80482edf3e8166c51370912546ab9ba5e64
7
+ data.tar.gz: 49db82ba69f466d477863bbb9456f16ceb0f53ae2a6494eed456b79ea629eacc0821fd384c36c5c45df38e2e0a6443ee8b9a0e7685a306908f5556848a09fd38
data/lib/termit.rb CHANGED
@@ -1,5 +1,4 @@
1
1
  require 'delegate_it'
2
- require 'termit/suppress_warnings'
3
2
  require 'termit/output_manager'
4
3
  require 'termit/can_output'
5
4
  require 'termit/user_input_parser'
@@ -7,9 +7,6 @@ module Termit
7
7
  class DataFetcher
8
8
  include CanOutput
9
9
  delegate :display_no_internet_msg, to: :output_manager
10
- silence_warnings do
11
- ::OpenSSL::SSL::VERIFY_PEER = ::OpenSSL::SSL::VERIFY_NONE
12
- end
13
10
 
14
11
  def initialize url, text
15
12
  @url = url
@@ -29,6 +26,7 @@ module Termit
29
26
  url = "#{uri.request_uri}&#{query}"
30
27
  request = Net::HTTP::Get.new(url)
31
28
  http.use_ssl = true
29
+ http.verify_mode = OpenSSL::SSL::VERIFY_NONE
32
30
  http.request(request)
33
31
  rescue SocketError
34
32
  display_no_internet_msg
@@ -1,3 +1,3 @@
1
1
  module Termit
2
- VERSION = "2.12.0"
2
+ VERSION = "2.12.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: termit
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.12.0
4
+ version: 2.12.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - pawurb
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-11 00:00:00.000000000 Z
11
+ date: 2015-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: delegate_it
@@ -132,7 +132,6 @@ files:
132
132
  - lib/termit/output_manager.rb
133
133
  - lib/termit/sound_response_handler.rb
134
134
  - lib/termit/speech_synthesizer.rb
135
- - lib/termit/suppress_warnings.rb
136
135
  - lib/termit/text_response_handler.rb
137
136
  - lib/termit/text_translator.rb
138
137
  - lib/termit/url_constructor.rb
@@ -1,9 +0,0 @@
1
- module Kernel
2
- def silence_warnings
3
- original_verbosity = $VERBOSE
4
- $VERBOSE = nil
5
- result = yield
6
- $VERBOSE = original_verbosity
7
- return result
8
- end
9
- end