stardog-rb 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/stardog.rb +3 -4
  2. metadata +2 -2
data/lib/stardog.rb CHANGED
@@ -215,8 +215,8 @@ module Stardog
215
215
  begin
216
216
  txID = self.begin(db_name)
217
217
  yield txID
218
- commit(db_name,txID)
219
- true
218
+ result = commit(db_name,txID)
219
+ result.success? || false
220
220
  rescue Exception => ex
221
221
  debug "* Error in transaction #{txID}"
222
222
  debug ex.message
@@ -377,8 +377,7 @@ module Stardog
377
377
  body = result.body
378
378
  end
379
379
 
380
- is_json = (content_type.index("json") ? true : false)
381
- http_request("POST", "#{database}/icv/convert", "*/*", {}, body, is_json, content_type, nil)
380
+ http_request("POST", "#{database}/icv/convert", "*/*", {}, body, false, content_type, nil)
382
381
  end
383
382
 
384
383
  #######################
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stardog-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-03-08 00:00:00.000000000 Z
12
+ date: 2013-03-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client