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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 261694a9a388deae44a05e9563bdad72743a3ca2
4
- data.tar.gz: 9a47a08e84e01cccfe84ad2203ef7d06d75e7bdd
3
+ metadata.gz: 371cf397820a008eb84c905f41cb9935fd665504
4
+ data.tar.gz: feb9d595f467c35e28ccc0a9dd6ae27e95accd79
5
5
  SHA512:
6
- metadata.gz: 2e94980bbbe345e4b0e2e992e4dcd48ef1a444cbb66c74ae66f7aceff056a6a91b3b808e60cfbbf1f379a1af0bb6fb5c4fc86a3b629c4068f75345b4a0f4679a
7
- data.tar.gz: 788bf457fa9f7191d8ce4bece000b273689721a6814d5c8c0aed3a53d95135cc7820d0c6e30db712496269f52c0850344bbcc5d55893cf47ef64ef2efeebdd77
6
+ metadata.gz: 171ba3a04c30c510036d06e296d0c4425d6e5c3faa0e6c5778f9de07fbb5a5581ff344992c10c7ba4c40e0fb611869cea3089e28165aeecafa7c67e05e861e48
7
+ data.tar.gz: 68b8acca054bd9a0f23e79d0b6aa44db62ab6746518b697d34c99b4091e9923433365c1b6d3e80917c634230355c839de3df762c5fdfdb400a2e8cb861a78a8d
@@ -0,0 +1 @@
1
+ jruby
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- couchbase_lite_local (0.0.3-java)
4
+ couchbase_lite_local (0.0.4-java)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -37,7 +37,7 @@ releases](https://github.com/couchbaselabs/couchbase-lite-local/releases) unpack
37
37
  and run via
38
38
 
39
39
  ```
40
- $ java -jar couchbase_lite_local.jar
40
+ $ java -jar couchbase-lite-local.jar
41
41
  ```
42
42
 
43
43
  ### Source
@@ -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 = start_cblite_server @context
52
- @port = start_cblite_listener port, server, @credentials
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 start_cblite_server context
73
- Manager.new context, Manager::DEFAULT_OPTIONS
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
 
@@ -1,3 +1,3 @@
1
1
  module CouchbaseLiteLocal
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -26,5 +26,4 @@ describe CouchbaseLiteLocal do
26
26
  # either the database is already created or we just created it, both good!
27
27
  [201, 412].must_include output["status"]
28
28
  end
29
-
30
29
  end
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.3
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-04 00:00:00.000000000 Z
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/commons-codec-1.3.jar
76
+ - vendor/cbl_collator_so-1.0.3.1.jar
76
77
  - vendor/commons-io-2.0.1.jar
77
- - vendor/commons-logging-1.1.3.jar
78
- - vendor/couchbase-lite-java-core-1.0.0-72.jar
79
- - vendor/couchbase-lite-java-javascript-1.0.0-72.jar
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.0-beta1.jar
84
- - vendor/httpcore-4.0-beta2.jar
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