rethinkdb_job 0.1.1 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -20,9 +20,10 @@ class RethinkDBJob
20
20
 
21
21
  def create
22
22
  ensure_setup
23
- result = @r.table(@table).insert({}, :return_vals => true).run(rdb)
23
+ result = @r.table(@table).insert({}, :return_changes => true).run(rdb)
24
24
  if result["inserted"] == 1
25
- result["new_val"]["id"]
25
+ change = result["changes"].first
26
+ change["new_val"]["id"]
26
27
  else
27
28
  raise "Unable to create new job record"
28
29
  end
@@ -1,3 +1,3 @@
1
1
  module RethinkdbJob
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rethinkdb_job
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
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: 2014-08-25 00:00:00.000000000 Z
12
+ date: 2014-09-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rethinkdb
@@ -18,7 +18,7 @@ dependencies:
18
18
  requirements:
19
19
  - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 1.13.0
21
+ version: 1.14.0
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 1.13.0
29
+ version: 1.14.0
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: debugger
32
32
  requirement: !ruby/object:Gem::Requirement