couchbase_lite_local 0.0.3-universal-java-1.8 → 0.0.4-universal-java-1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/Gemfile.lock +1 -1
- data/README.md +1 -1
- data/lib/couchbase_lite_local.rb +13 -5
- data/lib/couchbase_lite_local/version.rb +1 -1
- data/test/couchbase_lite_local_test.rb +0 -1
- data/vendor/cbl_collator_so-1.0.3.1.jar +0 -0
- data/vendor/couchbase-lite-java-core.jar +0 -0
- data/vendor/{couchbase-lite-java-javascript-1.0.0-72.jar → couchbase-lite-java-javascript-1.0.3.1.jar} +0 -0
- data/vendor/{couchbase-lite-java-listener-1.0.0-72.jar → couchbase-lite-java-listener-1.0.3.1.jar} +0 -0
- data/vendor/couchbase-lite-java.jar +0 -0
- data/vendor/httpclient-4.3.6.jar +0 -0
- data/vendor/httpcore-4.0.1.jar +0 -0
- data/vendor/linux_arm/couchbase-lite-java-native.jar +0 -0
- data/vendor/linux_x86_64/couchbase-lite-java-native.jar +0 -0
- data/vendor/macosx/couchbase-lite-java-native.jar +0 -0
- data/vendor/stateless4j-2.4.0.jar +0 -0
- metadata +10 -11
- data/vendor/commons-codec-1.3.jar +0 -0
- data/vendor/commons-logging-1.1.3.jar +0 -0
- data/vendor/couchbase-lite-java-core-1.0.0-72.jar +0 -0
- data/vendor/couchbase-lite-java-native.jar +0 -0
- data/vendor/httpclient-4.0-beta1.jar +0 -0
- data/vendor/httpcore-4.0-beta2.jar +0 -0
- data/vendor/json-20090211.jar +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 371cf397820a008eb84c905f41cb9935fd665504
|
4
|
+
data.tar.gz: feb9d595f467c35e28ccc0a9dd6ae27e95accd79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 171ba3a04c30c510036d06e296d0c4425d6e5c3faa0e6c5778f9de07fbb5a5581ff344992c10c7ba4c40e0fb611869cea3089e28165aeecafa7c67e05e861e48
|
7
|
+
data.tar.gz: 68b8acca054bd9a0f23e79d0b6aa44db62ab6746518b697d34c99b4091e9923433365c1b6d3e80917c634230355c839de3df762c5fdfdb400a2e8cb861a78a8d
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
jruby
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
data/lib/couchbase_lite_local.rb
CHANGED
@@ -33,6 +33,7 @@ java_import com.couchbase.lite.View
|
|
33
33
|
java_import com.couchbase.lite.javascript.JavaScriptViewCompiler
|
34
34
|
java_import com.couchbase.lite.Manager
|
35
35
|
java_import com.couchbase.lite.JavaContext
|
36
|
+
java_import com.couchbase.lite.util.Log
|
36
37
|
|
37
38
|
|
38
39
|
module CouchbaseLiteLocal
|
@@ -44,12 +45,11 @@ module CouchbaseLiteLocal
|
|
44
45
|
class HTTPListener
|
45
46
|
|
46
47
|
def initialize port
|
47
|
-
@context = JavaContext.new
|
48
48
|
@credentials = Credentials.new
|
49
49
|
URLStreamHandlerFactory.registerSelfIgnoreError
|
50
50
|
View.setCompiler JavaScriptViewCompiler.new
|
51
|
-
server =
|
52
|
-
@port = start_cblite_listener
|
51
|
+
server = start_cblite
|
52
|
+
@port = start_cblite_listener(port, server, @credentials)
|
53
53
|
end
|
54
54
|
|
55
55
|
def stop
|
@@ -69,13 +69,21 @@ module CouchbaseLiteLocal
|
|
69
69
|
end
|
70
70
|
|
71
71
|
private
|
72
|
-
def
|
73
|
-
|
72
|
+
def start_cblite
|
73
|
+
begin
|
74
|
+
# get the actual database
|
75
|
+
Manager.new JavaContext.new, Manager::DEFAULT_OPTIONS
|
76
|
+
rescue IOException => e
|
77
|
+
raise "Failed to open databse #{e}"
|
78
|
+
end
|
74
79
|
end
|
75
80
|
|
76
81
|
def start_cblite_listener port, server, credentials
|
77
82
|
listener = LiteListener.new server, port, credentials
|
78
83
|
@thread = Thread.new { listener.run }
|
84
|
+
|
85
|
+
# return the actual port where the listener runs on, this might differ from
|
86
|
+
# the port passed if it is in use.
|
79
87
|
listener.getListenPort
|
80
88
|
end
|
81
89
|
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/{couchbase-lite-java-listener-1.0.0-72.jar → couchbase-lite-java-listener-1.0.3.1.jar}
RENAMED
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: couchbase_lite_local
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: universal-java-1.8
|
6
6
|
authors:
|
7
7
|
- Philipp Fehre
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-11-
|
11
|
+
date: 2014-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
requirement: !ruby/object:Gem::Requirement
|
@@ -61,6 +61,7 @@ extensions: []
|
|
61
61
|
extra_rdoc_files: []
|
62
62
|
files:
|
63
63
|
- .gitignore
|
64
|
+
- .ruby-version
|
64
65
|
- Gemfile
|
65
66
|
- Gemfile.lock
|
66
67
|
- LICENSE
|
@@ -72,24 +73,22 @@ files:
|
|
72
73
|
- lib/couchbase_lite_local/version.rb
|
73
74
|
- test/couchbase_lite_local_test.rb
|
74
75
|
- test/test_helper.rb
|
75
|
-
- vendor/
|
76
|
+
- vendor/cbl_collator_so-1.0.3.1.jar
|
76
77
|
- vendor/commons-io-2.0.1.jar
|
77
|
-
- vendor/
|
78
|
-
- vendor/couchbase-lite-java-
|
79
|
-
- vendor/couchbase-lite-java-
|
80
|
-
- vendor/couchbase-lite-java-listener-1.0.0-72.jar
|
81
|
-
- vendor/couchbase-lite-java-native.jar
|
78
|
+
- vendor/couchbase-lite-java-core.jar
|
79
|
+
- vendor/couchbase-lite-java-javascript-1.0.3.1.jar
|
80
|
+
- vendor/couchbase-lite-java-listener-1.0.3.1.jar
|
82
81
|
- vendor/couchbase-lite-java.jar
|
83
|
-
- vendor/httpclient-4.
|
84
|
-
- vendor/httpcore-4.0
|
82
|
+
- vendor/httpclient-4.3.6.jar
|
83
|
+
- vendor/httpcore-4.0.1.jar
|
85
84
|
- vendor/jackson-core-asl-1.9.2.jar
|
86
85
|
- vendor/jackson-mapper-asl-1.9.2.jar
|
87
|
-
- vendor/json-20090211.jar
|
88
86
|
- vendor/linux_arm/couchbase-lite-java-native.jar
|
89
87
|
- vendor/linux_x86_64/couchbase-lite-java-native.jar
|
90
88
|
- vendor/macosx/couchbase-lite-java-native.jar
|
91
89
|
- vendor/rhino-1.7R3.jar
|
92
90
|
- vendor/servlet-2-3.jar
|
91
|
+
- vendor/stateless4j-2.4.0.jar
|
93
92
|
- vendor/webserver-2-3.jar
|
94
93
|
homepage: http://github.com/couchbaselabs/couchbase_lite_local
|
95
94
|
licenses:
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
data/vendor/json-20090211.jar
DELETED
Binary file
|