pacer-orient 2.3.3.pre-java → 2.3.4.pre-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Jarfile +2 -2
- data/Rakefile +3 -0
- data/lib/pacer-orient.rb +3 -1
- data/lib/pacer-orient/db_listener.rb +4 -19
- data/lib/pacer-orient/version.rb +2 -5
- data/pacer-orient.gemspec +3 -1
- metadata +21 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eee4755c989cb92372c8dc385f8661bef0166489
|
4
|
+
data.tar.gz: c02853a97c7cb0541d4fb5b8c1bd318cd197c322
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5015ce33675e307a0b748fd2dcc534f5c8bfc8d7de108fcf07f34aa053856d8a2167de30a215ff27504b0d089120a27166bebc3de33b66f9f4b4695a3cc3778d
|
7
|
+
data.tar.gz: f64ca41185068d93608d7df7b9176aff87dc5e542cfde0d27a33a9821993913a0d86d0fe54a70c40ae7ab01df2fcf1f226b839d1be25b9bd6f0f47c4c28eb7dd
|
data/Jarfile
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
jar "com.orientechnologies:orientdb-core:2.0-
|
2
|
-
jar "com.orientechnologies:orientdb-graphdb:2.0-
|
1
|
+
jar "com.orientechnologies:orientdb-core:2.0-SNAPSHOT"
|
2
|
+
jar "com.orientechnologies:orientdb-graphdb:2.0-SNAPSHOT"
|
data/Rakefile
CHANGED
data/lib/pacer-orient.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require 'pacer'
|
1
|
+
require 'pacer'
|
2
2
|
|
3
3
|
java.lang.System.setProperty("java.awt.headless", "true") unless ENV['PACER_ORIENT_HEAD']
|
4
4
|
|
@@ -6,6 +6,8 @@ lib_path = File.expand_path(File.join(File.dirname(__FILE__), '../lib'))
|
|
6
6
|
$:.unshift lib_path unless $:.any? { |path| path == lib_path }
|
7
7
|
|
8
8
|
require 'pacer-orient/version'
|
9
|
+
LockJar.lock File.join(File.dirname(__FILE__), '../Jarfile'), lockfile: 'Jarfile.pacer-orient.lock'
|
10
|
+
LockJar.load 'Jarfile.pacer-orient.lock'
|
9
11
|
|
10
12
|
# Orient will kill you at the drop of a hat if you don't do this!
|
11
13
|
com.orientechnologies.orient.core.Orient.instance.removeShutdownHook
|
@@ -61,17 +61,7 @@ module Pacer
|
|
61
61
|
end
|
62
62
|
|
63
63
|
def onBeforeTxCommit(db)
|
64
|
-
self.data =
|
65
|
-
#on_commit.call d
|
66
|
-
pp transaction: { getAllRecordEntries: d.entries,
|
67
|
-
length: d.entries.length,
|
68
|
-
contents: d.entries.to_a }
|
69
|
-
pp created_v: d.created_v
|
70
|
-
pp created_e: d.created_e
|
71
|
-
pp changed_v: d.changed_v
|
72
|
-
pp changed_e: d.changed_e
|
73
|
-
pp deleted_v: d.deleted_v
|
74
|
-
pp deleted_e: d.deleted_e
|
64
|
+
self.data = CachedTxDataWrapper.new db, graph
|
75
65
|
rescue Exception => e
|
76
66
|
puts "Exception: #{ e.message }"
|
77
67
|
pp e.backtrace
|
@@ -79,18 +69,13 @@ module Pacer
|
|
79
69
|
end
|
80
70
|
|
81
71
|
def onAfterTxCommit(db)
|
82
|
-
|
83
|
-
d = self.data
|
84
|
-
pp created_v: d.created_v
|
85
|
-
pp created_e: d.created_e
|
86
|
-
pp changed_v: d.changed_v
|
87
|
-
pp changed_e: d.changed_e
|
88
|
-
pp deleted_v: d.deleted_v
|
89
|
-
pp deleted_e: d.deleted_e
|
72
|
+
on_commit.call self.data
|
90
73
|
rescue Exception => e
|
91
74
|
puts "Exception: #{ e.message }"
|
92
75
|
pp e.backtrace
|
93
76
|
nil
|
77
|
+
ensure
|
78
|
+
self.data = nil
|
94
79
|
end
|
95
80
|
end
|
96
81
|
end
|
data/lib/pacer-orient/version.rb
CHANGED
data/pacer-orient.gemspec
CHANGED
@@ -13,7 +13,9 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = s.summary
|
14
14
|
|
15
15
|
s.add_dependency 'pacer', Pacer::Orient::PACER_REQ
|
16
|
-
s.add_dependency "lock_jar", "~> 0.10.
|
16
|
+
s.add_dependency "lock_jar", "~> 0.10.1"
|
17
|
+
|
18
|
+
s.add_development_dependency 'xn_gem_release_tasks'
|
17
19
|
|
18
20
|
s.rubyforge_project = "pacer-orient"
|
19
21
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pacer-orient
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.4.pre
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Darrick Wiebe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-01-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pacer
|
@@ -16,12 +16,12 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 2.0.
|
19
|
+
version: 2.0.6
|
20
20
|
requirement: !ruby/object:Gem::Requirement
|
21
21
|
requirements:
|
22
22
|
- - '>='
|
23
23
|
- !ruby/object:Gem::Version
|
24
|
-
version: 2.0.
|
24
|
+
version: 2.0.6
|
25
25
|
prerelease: false
|
26
26
|
type: :runtime
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -30,14 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.10.
|
33
|
+
version: 0.10.1
|
34
34
|
requirement: !ruby/object:Gem::Requirement
|
35
35
|
requirements:
|
36
36
|
- - ~>
|
37
37
|
- !ruby/object:Gem::Version
|
38
|
-
version: 0.10.
|
38
|
+
version: 0.10.1
|
39
39
|
prerelease: false
|
40
40
|
type: :runtime
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: xn_gem_release_tasks
|
43
|
+
version_requirements: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - '>='
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '0'
|
53
|
+
prerelease: false
|
54
|
+
type: :development
|
41
55
|
description: Orient jars and related code for Pacer
|
42
56
|
email:
|
43
57
|
- dw@xnlogic.com
|
@@ -82,7 +96,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
96
|
version: 1.3.1
|
83
97
|
requirements: []
|
84
98
|
rubyforge_project: pacer-orient
|
85
|
-
rubygems_version: 2.
|
99
|
+
rubygems_version: 2.4.5
|
86
100
|
signing_key:
|
87
101
|
specification_version: 4
|
88
102
|
summary: Orient jars and related code for Pacer
|