Skip to content

Commit

Permalink
Version 0.0.5 fix bug on JSON parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhuanbarreto committed May 10, 2019
1 parent 85bc89a commit 14c249c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ gem 'ip21'
And use the class in your code to execute queries:

```ruby
require 'ip21' # If you are using Ruby. Don't need rrequire if you use Rails
require 'ip21' # If you are using Ruby. Don't need require if you use Rails

IP21.new(
auth: {
Expand Down
8 changes: 4 additions & 4 deletions ip21.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ Gem::Specification.new do |s|
s.summary = 'Aspentech IP21 Adapter for Ruby'
s.description = 'Aspentech IP21 Adapter for executing queries using SQLPlus' \
'WebService or REST API'
s.version = '0.0.4'
s.version = '0.0.5'
s.date = Time.now.strftime('%Y-%m-%d')
s.author = 'Rhuan Barreto'
s.email = 'rhuan@rhuan.com.br'
s.homepage = 'http://rubygems.org/gems/ip21'
s.platform = Gem::Platform::RUBY
s.license = 'MIT'
s.add_dependency 'ruby-ntlm'
s.add_dependency 'rubyntlm'
s.add_dependency 'savon'
s.add_dependency 'ruby-ntlm', '~>0.0'
s.add_dependency 'rubyntlm', '~>0.6'
s.add_dependency 'savon', '~>2.12'
s.files = Dir.glob('{docs,bin,lib,spec,templates,benchmarks}/**/*') +
['LICENSE', 'README.md', '.yardopts', __FILE__]
s.require_path = 'lib'
Expand Down
1 change: 1 addition & 0 deletions lib/ip21.rb
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ def rest(sql, limit)

def parse_rest(response)
if response.code == '200'
require 'json'
JSON.parse(response.body)
else
{
Expand Down

0 comments on commit 14c249c

Please sign in to comment.