orientdb 0.0.24-jruby → 0.0.25-jruby
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/orientdb/database.rb +24 -0
- data/orientdb.gemspec +2 -2
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.25
|
data/lib/orientdb/database.rb
CHANGED
@@ -112,6 +112,18 @@ module OrientDB
|
|
112
112
|
new(database_url).open(username, password)
|
113
113
|
end
|
114
114
|
|
115
|
+
def self.current_thread_connection
|
116
|
+
Thread.current[:orientdb_connection]
|
117
|
+
end
|
118
|
+
|
119
|
+
def self.connect_current_thread(database_url, username, password)
|
120
|
+
Thread.current[:orientdb_connection] = connect database_url, username, password
|
121
|
+
end
|
122
|
+
|
123
|
+
def self.close_current_thread
|
124
|
+
Thread.current[:orientdb_connection] && Thread.current[:orientdb_connection].close
|
125
|
+
end
|
126
|
+
|
115
127
|
alias :each_in_class :browseClass
|
116
128
|
alias :each_in_cluster :browseCluster
|
117
129
|
|
@@ -123,6 +135,18 @@ module OrientDB
|
|
123
135
|
global.acquire(url, username, password)
|
124
136
|
end
|
125
137
|
|
138
|
+
def self.current_thread_connection
|
139
|
+
Thread.current[:orientdb_connection]
|
140
|
+
end
|
141
|
+
|
142
|
+
def self.connect_current_thread(database_url, username, password)
|
143
|
+
Thread.current[:orientdb_connection] = connect database_url, username, password
|
144
|
+
end
|
145
|
+
|
146
|
+
def self.close_current_thread
|
147
|
+
Thread.current[:orientdb_connection] && Thread.current[:orientdb_connection].close
|
148
|
+
end
|
149
|
+
|
126
150
|
end
|
127
151
|
|
128
152
|
class DocumentDatabasePooled
|
data/orientdb.gemspec
CHANGED
@@ -5,12 +5,12 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{orientdb}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.25"
|
9
9
|
s.platform = %q{jruby}
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 1.3.6") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.authors = [%q{Adrian Madrid}]
|
13
|
-
s.date = %q{2012-01-
|
13
|
+
s.date = %q{2012-01-24}
|
14
14
|
s.description = %q{Simple JRuby wrapper for the OrientDB.}
|
15
15
|
s.email = [%q{aemadrid@gmail.com}]
|
16
16
|
s.executables = [%q{orientdb_console}]
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: orientdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.0.
|
5
|
+
version: 0.0.25
|
6
6
|
platform: jruby
|
7
7
|
authors:
|
8
8
|
- Adrian Madrid
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2012-01-
|
13
|
+
date: 2012-01-24 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: awesome_print
|