Skip to content
This repository has been archived by the owner on May 18, 2023. It is now read-only.

Commit

Permalink
add debug flag and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
pawurb committed Sep 7, 2016
1 parent 5ff96d4 commit 88eeac2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
5 changes: 0 additions & 5 deletions bin/termit
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
#!/usr/bin/env ruby
require 'rubygems'

# FIX https://github.com/rubygems/rubygems/issues/1420
class Gem::Specification
def this; self; end
end

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib') unless $LOAD_PATH.include?(File.dirname(__FILE__) + '/../lib')

require 'termit'
Expand Down
2 changes: 2 additions & 0 deletions lib/termit/data_fetcher_base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ def initialize url, text
def data
send_request
rescue RestClient::BadRequest
raise if ENV['DEBUG']
display_invalid_data_msg
rescue RestClient::Exception, SocketError
raise if ENV['DEBUG']
display_error_msg
end

Expand Down
2 changes: 1 addition & 1 deletion lib/termit/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Termit
VERSION = "3.3.0"
VERSION = "3.4.0"
end

0 comments on commit 88eeac2

Please sign in to comment.