sedna 0.5.0 → 0.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. data/CHANGES +6 -0
  2. data/README +5 -5
  3. data/Rakefile +2 -1
  4. data/ext/extconf.rb +26 -7
  5. metadata +6 -4
data/CHANGES CHANGED
@@ -1,3 +1,9 @@
1
+ === 0.5.1
2
+
3
+ * Released on January 23th, 2010.
4
+ * Added ~/sedna/include and ~/sedna/driver/c to the default search path when
5
+ installing the gem.
6
+
1
7
  === 0.5.0
2
8
 
3
9
  * Released on April 26th, 2009.
data/README CHANGED
@@ -16,7 +16,7 @@ at http://modis.ispras.ru/sedna
16
16
 
17
17
  Author: Rolf Timmermans (r.timmermans <i>at</i> voormedia.com)
18
18
 
19
- Copyright 2008, 2009 Voormedia B.V.
19
+ Copyright 2008-2010 Voormedia B.V.
20
20
 
21
21
  Licensed under the Apache License, Version 2.0 (the "License");
22
22
  you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ limitations under the License.
32
32
 
33
33
  === Current version
34
34
 
35
- The current version of this library is 0.5.0. This is a <b>stable release</b>.
35
+ The current version of this library is 0.5.1. This is a <b>stable release</b>.
36
36
  For a complete overview all recent and previous changes, see CHANGES.
37
37
 
38
38
  === Requirements
@@ -52,10 +52,10 @@ library as a rubygem.
52
52
  % gem install sedna
53
53
 
54
54
  If the library or header files of the \Sedna C driver are located at non-default
55
- locations, you can specify these locations by adding the <tt>--with-sedna-lib</tt>
56
- or <tt>--with-sedna-include</tt> options when installing.
55
+ locations, you can specify these locations by adding the <tt>--with-sedna-bin</tt>
56
+ options when installing.
57
57
 
58
- % gem install sedna -- --with-sedna-lib=/path/to/sedna/lib --with-sedna-include=/path/to/sedna/include
58
+ % gem install sedna -- --with-sedna-bin=/path/to/sedna
59
59
 
60
60
  === Usage
61
61
 
data/Rakefile CHANGED
@@ -57,7 +57,7 @@ end
57
57
 
58
58
  gem_spec = Gem::Specification.new do |s|
59
59
  s.name = "sedna"
60
- s.version = "0.5.0"
60
+ s.version = "0.5.1"
61
61
 
62
62
  s.summary = "Sedna XML DBMS client library."
63
63
  s.description = %{Ruby extension that provides a client library for the Sedna XML DBMS, making use of the official C driver of the Sedna project.}
@@ -88,4 +88,5 @@ Rake::RDocTask.new do |rdoc|
88
88
  rdoc.rdoc_dir = 'doc'
89
89
  rdoc.title = RDOC_TITLE
90
90
  rdoc.rdoc_files.include *RDOC_FILES
91
+ rdoc.main = "README"
91
92
  end
data/ext/extconf.rb CHANGED
@@ -25,20 +25,35 @@ if RUBY_VERSION < "1.8"
25
25
  end
26
26
 
27
27
  driver = "/driver/c"
28
- default_driver_dirs = ["/usr/local/sedna#{driver}", "/opt/sedna#{driver}"]
28
+ default_driver_dirs = ["/usr/local/sedna#{driver}", "/opt/sedna#{driver}", File.expand_path("~/sedna#{driver}")]
29
29
  default_include_dirs = ["/usr/include", "/usr/include/sedna"] + default_driver_dirs
30
30
  default_lib_dirs = ["/usr/lib", "/usr/lib/sedna"] + default_driver_dirs
31
+
32
+ # If user specified directories.
31
33
  idir, ldir = dir_config "sedna", nil, nil
32
- idir ||= default_include_dirs
33
- ldir ||= default_lib_dirs
34
+ if idir.nil? or ldir.nil?
35
+ idir, ldir = default_include_dirs, default_lib_dirs
36
+ else
37
+ ldir = File.expand_path(ldir.sub("/lib", driver)) unless ldir.nil?
38
+ idir = [File.expand_path(idir), ldir] unless idir.nil?
39
+ end
34
40
 
35
41
  if not find_library "sedna", "SEconnect", *ldir
36
42
  $stderr.write %{
37
43
  ==============================================================================
38
44
  Could not find libsedna.
39
- * Did you install Sedna somewhere else than in /usr/local/sedna or /opt/sedna?
40
- Call extconf.rb with --with-sedna-lib=/path to override default location.
45
+
46
+ * Did you install Sedna in a non default location? Call extconf.rb
47
+ with --with-sedna-dir=/path/to/sedna to override it. With rubygems:
48
+
49
+ gem install sedna -- --with-sedna-dir=/path/to/sedna
50
+
41
51
  * Did you install a version of Sedna not compiled for your architecture?
52
+ The standard Sedna distribution of Sedna is compiled for i386. If your
53
+ platform is x86_64, and your Ruby was compiled as x86_64, you must
54
+ recompile Sedna for x86_64 as well. Download the sources at:
55
+
56
+ http://modis.ispras.ru/sedna/download.html
42
57
  ==============================================================================
43
58
  }
44
59
  exit 2
@@ -48,8 +63,12 @@ if not find_header "libsedna.h", *idir or not find_header "sp_defs.h", *idir
48
63
  $stderr.write %{
49
64
  ==============================================================================
50
65
  Could not find header file(s) for libsedna.
51
- * Did you install Sedna somewhere else than in /usr/local/sedna or /opt/sedna?
52
- Call extconf.rb with --with-sedna-include=/path to override default location.
66
+
67
+ * Did you install Sedna in a non default location? Call extconf.rb
68
+ with --with-sedna-dir=/path/to/sedna to override it. With rubygems:
69
+
70
+ gem install sedna -- --with-sedna-dir=/path/to/sedna
71
+
53
72
  ==============================================================================
54
73
  }
55
74
  exit 3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sedna
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rolf Timmermans
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-26 00:00:00 +02:00
12
+ date: 2010-01-23 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -32,6 +32,8 @@ files:
32
32
  - README
33
33
  has_rdoc: true
34
34
  homepage: http://sedna.rubyforge.org/
35
+ licenses: []
36
+
35
37
  post_install_message:
36
38
  rdoc_options:
37
39
  - --title
@@ -55,9 +57,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
57
  requirements:
56
58
  - Sedna XML DBMS C driver (library and headers).
57
59
  rubyforge_project: sedna
58
- rubygems_version: 1.3.1
60
+ rubygems_version: 1.3.5
59
61
  signing_key:
60
- specification_version: 2
62
+ specification_version: 3
61
63
  summary: Sedna XML DBMS client library.
62
64
  test_files:
63
65
  - test/sedna_test.rb