tdb 0.6.2 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.document +0 -2
- data/.gitignore +1 -2
- data/.olddoc.yml +6 -0
- data/GIT-VERSION-GEN +1 -1
- data/GNUmakefile +1 -2
- data/HACKING +3 -3
- data/README +9 -9
- data/pkg.mk +23 -48
- data/tdb.gemspec +11 -14
- data/test/test_tdb_mt.rb +4 -1
- metadata +9 -39
- data/.wrongdoc.yml +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: af4f762698ec0253f7221c5a4e913bfc59cc68960f5b2dc2e57aeb2b338b6e94
|
4
|
+
data.tar.gz: 47405c4bfbc3bf89a98da7a7e6e38dcd33f4d952b98cfdfab1022bebc680b1d0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1722c95542cae4f2d477653f5eef6f62547a1ab11d7857a2e4e682497a051f037cd360605e76745395fc87cc424fa85738d2c246844d9ce51608c8e1f942e25a
|
7
|
+
data.tar.gz: e7c3ce28f05dd19c055bcd384e3e98b087d91660e920d7ee7a769dd3376061a991e3351a3577c55ffb1e2006ba8f3acb76dffa18c5bfabab0041605910cb0eb4
|
data/.document
CHANGED
data/.gitignore
CHANGED
data/.olddoc.yml
ADDED
data/GIT-VERSION-GEN
CHANGED
data/GNUmakefile
CHANGED
data/HACKING
CHANGED
@@ -17,7 +17,7 @@ characters wide) and NOT the indentation style of Matz Ruby.
|
|
17
17
|
|
18
18
|
Contributions are welcome in the form of patches, pull requests, code
|
19
19
|
review, testing, documentation, user support or any other feedback. The
|
20
|
-
{Ruby TDB
|
20
|
+
{Ruby TDB public inbox}[mailto:ruby-tdb-public@yhbt.net] is the
|
21
21
|
coordination point for all user and developer feedback and bug reports.
|
22
22
|
|
23
23
|
=== Submitting Patches
|
@@ -41,8 +41,8 @@ don't email the git mailing list or maintainer with Ruby TDB patches :)
|
|
41
41
|
* Do not send HTML mail, they will be mercilessly deleted.
|
42
42
|
|
43
43
|
When referencing mailing list posts, use
|
44
|
-
|
45
|
-
Message-ID remains searchable even if a particular
|
44
|
+
<tt>https://yhbt.net/ruby-tdb-public/<$MESSAGE_ID>/</tt> since the
|
45
|
+
Message-ID remains searchable even if a particular site becomes unavailable.
|
46
46
|
|
47
47
|
== Running Development Versions
|
48
48
|
|
data/README
CHANGED
@@ -23,7 +23,7 @@ write to the same databases used by Samba!
|
|
23
23
|
== Caveats
|
24
24
|
|
25
25
|
These caveats will be addressed upstream in
|
26
|
-
{TDB2}[
|
26
|
+
{TDB2}[https://marc.info/?i=201008021002.47351.rusty@rustcorp.com.au]
|
27
27
|
|
28
28
|
* NOT native thread-safe. Don't try accessing TDB objects from
|
29
29
|
multiple threads at the same time. This probably needs to be
|
@@ -49,10 +49,10 @@ The library consists of a C extension so you'll need a C compiler
|
|
49
49
|
and Ruby development libraries/headers.
|
50
50
|
|
51
51
|
You may download the tarball from our
|
52
|
-
{download site}[
|
52
|
+
{download site}[https://yhbt.net/ruby-tdb/files/] and run setup.rb after
|
53
53
|
unpacking it:
|
54
54
|
|
55
|
-
|
55
|
+
https://yhbt.net/ruby-tdb/files/
|
56
56
|
|
57
57
|
You may also install it via RubyGems on RubyGems.org:
|
58
58
|
|
@@ -70,13 +70,13 @@ Or if you have a non-standard prefix that linkers normally do not search:
|
|
70
70
|
You can get the latest source via git from the following locations
|
71
71
|
(these versions may not be stable):
|
72
72
|
|
73
|
-
git://
|
73
|
+
git://yhbt.net/ruby-tdb.git
|
74
74
|
git://repo.or.cz/ruby-tdb.git (mirror)
|
75
75
|
|
76
76
|
You may browse the code from the web and download the latest snapshot
|
77
77
|
tarballs here:
|
78
78
|
|
79
|
-
*
|
79
|
+
* https://yhbt.net/ruby-tdb.git
|
80
80
|
* http://repo.or.cz/w/ruby-tdb.git (gitweb)
|
81
81
|
|
82
82
|
See the HACKING guide on how to contribute and build prerelease gems
|
@@ -87,22 +87,22 @@ from git.
|
|
87
87
|
All feedback (bug reports, user/development dicussion, patches, pull
|
88
88
|
requests) go to the mailing list:
|
89
89
|
|
90
|
-
ruby-tdb-public@
|
90
|
+
ruby-tdb-public@yhbt.net
|
91
91
|
|
92
92
|
No subscription is required to post, and HTML will be considered spam
|
93
93
|
and rejected. Subscription is optional, you may subscribe by sending
|
94
94
|
a blank email to:
|
95
95
|
|
96
|
-
ruby-tdb-public+subscribe@
|
96
|
+
ruby-tdb-public+subscribe@yhbt.net
|
97
97
|
|
98
98
|
And following instructions in the confirmation email.
|
99
99
|
Similarly, you may unsubscribe by sending an email to:
|
100
100
|
|
101
|
-
ruby-tdb-public+unsubscribe@
|
101
|
+
ruby-tdb-public+unsubscribe@yhbt.net
|
102
102
|
|
103
103
|
Mailing list archives are available at:
|
104
104
|
|
105
|
-
|
105
|
+
https://yhbt.net/ruby-tdb-public/
|
106
106
|
|
107
107
|
For the latest on tdb releases, you may check our NEWS page (and
|
108
108
|
subscribe to our Atom feed).
|
data/pkg.mk
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
RUBY = ruby
|
2
2
|
RAKE = rake
|
3
3
|
RSYNC = rsync
|
4
|
-
|
4
|
+
OLDDOC = olddoc
|
5
|
+
RDOC = rdoc
|
5
6
|
|
6
7
|
GIT-VERSION-FILE: .FORCE-GIT-VERSION-FILE
|
7
8
|
@./GIT-VERSION-GEN
|
@@ -12,14 +13,6 @@ RUBY_VERSION := $(shell $(RUBY) -e 'puts RUBY_VERSION')
|
|
12
13
|
RUBY_ENGINE := $(shell $(RUBY) -e 'puts((RUBY_ENGINE rescue "ruby"))')
|
13
14
|
lib := lib
|
14
15
|
|
15
|
-
ifeq ($(shell test -f script/isolate_for_tests && echo t),t)
|
16
|
-
isolate_libs := tmp/isolate/$(RUBY_ENGINE)-$(RUBY_VERSION)/isolate.mk
|
17
|
-
$(isolate_libs): script/isolate_for_tests
|
18
|
-
@$(RUBY) script/isolate_for_tests
|
19
|
-
-include $(isolate_libs)
|
20
|
-
lib := $(lib):$(ISOLATE_LIBS)
|
21
|
-
endif
|
22
|
-
|
23
16
|
ext := $(firstword $(wildcard ext/*))
|
24
17
|
ifneq ($(ext),)
|
25
18
|
ext_pfx := tmp/ext/$(RUBY_ENGINE)-$(RUBY_VERSION)
|
@@ -36,7 +29,7 @@ $(ext_pfx)/$(ext)/%: $(ext)/% $(ext_d)
|
|
36
29
|
install -m 644 $< $@
|
37
30
|
$(ext_pfx)/$(ext)/Makefile: $(ext)/extconf.rb $(ext_d) $(ext_h)
|
38
31
|
$(RM) -f $(@D)/*.o
|
39
|
-
cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb
|
32
|
+
cd $(@D) && $(RUBY) $(CURDIR)/$(ext)/extconf.rb $(EXTCONF_ARGS)
|
40
33
|
ext_sfx := _ext.$(DLEXT)
|
41
34
|
ext_dl := $(ext_pfx)/$(ext)/$(notdir $(ext)_ext.$(DLEXT))
|
42
35
|
$(ext_dl): $(ext_src) $(ext_pfx_src) $(ext_pfx)/$(ext)/Makefile
|
@@ -48,10 +41,10 @@ else
|
|
48
41
|
build:
|
49
42
|
endif
|
50
43
|
|
51
|
-
pkg_extra += GIT-VERSION-FILE NEWS
|
52
|
-
|
53
|
-
$(
|
54
|
-
|
44
|
+
pkg_extra += GIT-VERSION-FILE NEWS LATEST
|
45
|
+
NEWS: GIT-VERSION-FILE .olddoc.yml
|
46
|
+
$(OLDDOC) prepare
|
47
|
+
LATEST: NEWS
|
55
48
|
|
56
49
|
manifest:
|
57
50
|
$(RM) .manifest
|
@@ -63,28 +56,20 @@ manifest:
|
|
63
56
|
cmp $@+ $@ || mv $@+ $@
|
64
57
|
$(RM) $@+
|
65
58
|
|
66
|
-
doc:: .document .
|
59
|
+
doc:: .document .olddoc.yml $(pkg_extra) $(PLACEHOLDERS)
|
67
60
|
-find lib -type f -name '*.rbc' -exec rm -f '{}' ';'
|
68
61
|
-find ext -type f -name '*.rbc' -exec rm -f '{}' ';'
|
69
62
|
$(RM) -r doc
|
70
|
-
$(
|
63
|
+
$(RDOC) -f dark216
|
64
|
+
$(OLDDOC) merge
|
71
65
|
install -m644 COPYING doc/COPYING
|
66
|
+
install -m644 NEWS doc/NEWS
|
67
|
+
install -m644 NEWS.atom.xml doc/NEWS.atom.xml
|
72
68
|
install -m644 $(shell LC_ALL=C grep '^[A-Z]' .document) doc/
|
73
69
|
|
74
70
|
ifneq ($(VERSION),)
|
75
71
|
pkggem := pkg/$(rfpackage)-$(VERSION).gem
|
76
72
|
pkgtgz := pkg/$(rfpackage)-$(VERSION).tgz
|
77
|
-
release_notes := release_notes-$(VERSION)
|
78
|
-
release_changes := release_changes-$(VERSION)
|
79
|
-
|
80
|
-
release-notes: $(release_notes)
|
81
|
-
release-changes: $(release_changes)
|
82
|
-
$(release_changes):
|
83
|
-
$(WRONGDOC) release_changes > $@+
|
84
|
-
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
85
|
-
$(release_notes):
|
86
|
-
$(WRONGDOC) release_notes > $@+
|
87
|
-
$(VISUAL) $@+ && test -s $@+ && mv $@+ $@
|
88
73
|
|
89
74
|
# ensures we're actually on the tagged $(VERSION), only used for release
|
90
75
|
verify:
|
@@ -120,31 +105,18 @@ $(pkgtgz): manifest fix-perms
|
|
120
105
|
|
121
106
|
package: $(pkgtgz) $(pkggem)
|
122
107
|
|
123
|
-
|
124
|
-
# make tgz release on RubyForge
|
125
|
-
@echo rubyforge add_release -f \
|
126
|
-
-n $(release_notes) -a $(release_changes) \
|
127
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
|
128
|
-
@echo gem push $(pkggem)
|
129
|
-
@echo rubyforge add_file \
|
130
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
131
|
-
release:: verify package $(release_notes) $(release_changes)
|
132
|
-
# make tgz release on RubyForge
|
133
|
-
rubyforge add_release -f -n $(release_notes) -a $(release_changes) \
|
134
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkgtgz)
|
108
|
+
release:: verify package
|
135
109
|
# push gem to RubyGems.org
|
136
110
|
gem push $(pkggem)
|
137
|
-
# in case of gem downloads from RubyForge releases page
|
138
|
-
rubyforge add_file \
|
139
|
-
$(rfproject) $(rfpackage) $(VERSION) $(pkggem)
|
140
111
|
else
|
141
112
|
gem install-gem: GIT-VERSION-FILE
|
142
113
|
$(MAKE) $@ VERSION=$(GIT_VERSION)
|
143
114
|
endif
|
144
115
|
|
145
|
-
all::
|
116
|
+
all:: check
|
146
117
|
test_units := $(wildcard test/test_*.rb)
|
147
|
-
test:
|
118
|
+
test: check
|
119
|
+
check: test-unit
|
148
120
|
test-unit: $(test_units)
|
149
121
|
$(test_units): build
|
150
122
|
$(RUBY) -I $(lib) $@ $(RUBY_TEST_OPTS)
|
@@ -154,8 +126,6 @@ ifneq ($(RSYNC_DEST),)
|
|
154
126
|
publish_doc:
|
155
127
|
-git set-file-times
|
156
128
|
$(MAKE) doc
|
157
|
-
find doc/images -type f | \
|
158
|
-
TZ=UTC xargs touch -d '1970-01-01 00:00:06' doc/rdoc.css
|
159
129
|
$(MAKE) doc_gz
|
160
130
|
$(RSYNC) -av doc/ $(RSYNC_DEST)/
|
161
131
|
git ls-files | xargs touch
|
@@ -163,7 +133,7 @@ endif
|
|
163
133
|
|
164
134
|
# Create gzip variants of the same timestamp as the original so nginx
|
165
135
|
# "gzip_static on" can serve the gzipped versions directly.
|
166
|
-
doc_gz: docs = $(shell find doc -type f ! -regex '
|
136
|
+
doc_gz: docs = $(shell find doc -type f ! -regex '^.*\.gz$$')
|
167
137
|
doc_gz:
|
168
138
|
for i in $(docs); do \
|
169
139
|
gzip --rsyncable -9 < $$i > $$i.gz; touch -r $$i $$i.gz; done
|
@@ -171,5 +141,10 @@ check-warnings:
|
|
171
141
|
@(for i in $$(git ls-files '*.rb'| grep -v '^setup\.rb$$'); \
|
172
142
|
do $(RUBY) -d -W2 -c $$i; done) | grep -v '^Syntax OK$$' || :
|
173
143
|
|
174
|
-
|
144
|
+
ifneq ($(PLACEHOLDERS),)
|
145
|
+
$(PLACEHOLDERS):
|
146
|
+
echo olddoc_placeholder > $@
|
147
|
+
endif
|
148
|
+
|
149
|
+
.PHONY: all .FORCE-GIT-VERSION-FILE doc check test $(test_units) manifest
|
175
150
|
.PHONY: check-warnings
|
data/tdb.gemspec
CHANGED
@@ -1,23 +1,20 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require 'wrongdoc'
|
4
|
-
extend Wrongdoc::Gemspec
|
5
|
-
name, summary, title = readme_metadata
|
1
|
+
manifest = File.exist?('.manifest') ?
|
2
|
+
IO.readlines('.manifest').map!(&:chomp!) : `git ls-files`.split("\n")
|
6
3
|
|
7
4
|
Gem::Specification.new do |s|
|
8
5
|
s.name = %q{tdb}
|
9
|
-
s.version = ENV[
|
10
|
-
s.homepage = '
|
6
|
+
s.version = (ENV['VERSION'] || '0.6.4').dup
|
7
|
+
s.homepage = 'https://yhbt.net/ruby-tdb/'
|
11
8
|
s.authors = ["Ruby tdb hackers"]
|
12
|
-
s.description =
|
13
|
-
s.email = %q{ruby-tdb@
|
14
|
-
s.extra_rdoc_files =
|
9
|
+
s.description = File.read('README').split("\n\n")[1]
|
10
|
+
s.email = %q{ruby-tdb@yhbt.net}
|
11
|
+
s.extra_rdoc_files = IO.readlines('.document').map!(&:chomp!).keep_if do |f|
|
12
|
+
File.exist?(f)
|
13
|
+
end
|
15
14
|
s.files = manifest
|
16
|
-
s.
|
17
|
-
s.summary = summary
|
15
|
+
s.summary = 'Trivial Database bindings for Ruby'
|
18
16
|
s.test_files = Dir['test/test_*.rb']
|
19
17
|
s.extensions = %w(ext/tdb/extconf.rb)
|
20
|
-
s.add_development_dependency('wrongdoc', '~> 1.8', '>= 1.8.1')
|
21
18
|
s.add_development_dependency('test-unit', '>= 2.0', '< 4.0')
|
22
|
-
s.licenses = %w(
|
19
|
+
s.licenses = %w(LGPL-2.1+)
|
23
20
|
end
|
data/test/test_tdb_mt.rb
CHANGED
@@ -90,7 +90,10 @@ class Test_TDB_MT < Test::Unit::TestCase
|
|
90
90
|
@tdb = TDB.new(nil)
|
91
91
|
respond_to?(:refute_match) and
|
92
92
|
m.each { |meth| refute_match(/\bTDB::MT\b/, @tdb.method(meth).to_s) }
|
93
|
+
before = m.map { |meth| [ meth, @tdb.method(meth).to_s ] }
|
93
94
|
@tdb.threadsafe!
|
94
|
-
|
95
|
+
before.each do |(meth, old)|
|
96
|
+
refute_equal old, @tdb.method(meth).to_s
|
97
|
+
end
|
95
98
|
end
|
96
99
|
end
|
metadata
CHANGED
@@ -1,35 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ruby tdb hackers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
-
- !ruby/object:Gem::Dependency
|
14
|
-
name: wrongdoc
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
-
requirements:
|
17
|
-
- - "~>"
|
18
|
-
- !ruby/object:Gem::Version
|
19
|
-
version: '1.8'
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.8.1
|
23
|
-
type: :development
|
24
|
-
prerelease: false
|
25
|
-
version_requirements: !ruby/object:Gem::Requirement
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.8'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.8.1
|
33
13
|
- !ruby/object:Gem::Dependency
|
34
14
|
name: test-unit
|
35
15
|
requirement: !ruby/object:Gem::Requirement
|
@@ -55,7 +35,7 @@ description: |-
|
|
55
35
|
writer processes. TDB was initially developed for Samba, but is used by
|
56
36
|
other projects as well. These Ruby bindings allow Ruby apps to read and
|
57
37
|
write to the same databases used by Samba!
|
58
|
-
email: ruby-tdb@
|
38
|
+
email: ruby-tdb@yhbt.net
|
59
39
|
executables: []
|
60
40
|
extensions:
|
61
41
|
- ext/tdb/extconf.rb
|
@@ -65,18 +45,13 @@ extra_rdoc_files:
|
|
65
45
|
- Hash_Functions
|
66
46
|
- TODO
|
67
47
|
- NEWS
|
68
|
-
- ChangeLog
|
69
|
-
- lib/tdb.rb
|
70
|
-
- lib/tdb/mt.rb
|
71
48
|
- ext/tdb/tdb.c
|
72
|
-
- LATEST
|
73
49
|
files:
|
74
50
|
- ".document"
|
75
51
|
- ".gitignore"
|
76
52
|
- ".manifest"
|
77
|
-
- ".
|
53
|
+
- ".olddoc.yml"
|
78
54
|
- COPYING
|
79
|
-
- ChangeLog
|
80
55
|
- GIT-VERSION-FILE
|
81
56
|
- GIT-VERSION-GEN
|
82
57
|
- GNUmakefile
|
@@ -107,16 +82,12 @@ files:
|
|
107
82
|
- test/test_tdb.rb
|
108
83
|
- test/test_tdb_hash_functions.rb
|
109
84
|
- test/test_tdb_mt.rb
|
110
|
-
homepage:
|
85
|
+
homepage: https://yhbt.net/ruby-tdb/
|
111
86
|
licenses:
|
112
|
-
-
|
87
|
+
- LGPL-2.1+
|
113
88
|
metadata: {}
|
114
89
|
post_install_message:
|
115
|
-
rdoc_options:
|
116
|
-
- "-t"
|
117
|
-
- tdb - Trivial Database bindings for Ruby
|
118
|
-
- "-W"
|
119
|
-
- http://bogomips.org/ruby-tdb.git/tree/%s
|
90
|
+
rdoc_options: []
|
120
91
|
require_paths:
|
121
92
|
- lib
|
122
93
|
required_ruby_version: !ruby/object:Gem::Requirement
|
@@ -130,12 +101,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
101
|
- !ruby/object:Gem::Version
|
131
102
|
version: '0'
|
132
103
|
requirements: []
|
133
|
-
|
134
|
-
rubygems_version: 2.2.2
|
104
|
+
rubygems_version: 3.0.2
|
135
105
|
signing_key:
|
136
106
|
specification_version: 4
|
137
107
|
summary: Trivial Database bindings for Ruby
|
138
108
|
test_files:
|
139
|
-
- test/test_tdb.rb
|
140
109
|
- test/test_tdb_mt.rb
|
141
110
|
- test/test_tdb_hash_functions.rb
|
111
|
+
- test/test_tdb.rb
|
data/.wrongdoc.yml
DELETED