libcdb-ruby 0.2.0 → 0.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16c0aecf11141408bf924eb8fb720274b00243ff
4
- data.tar.gz: a18316f3428804a9e75b290343f14c58a874608f
3
+ metadata.gz: 33d50fc0541b83c9abae299b5d517a399909b453
4
+ data.tar.gz: 40a569865b5b3b0a1c9fe2115cf5edb1bffcd72f
5
5
  SHA512:
6
- metadata.gz: a076b50bcebf0e90f5d889e14a8e615f41dd8287b2c1e699cfec742f7cf9e5596108f4bae23089551c1b583ab867976bfa993c552ce3f59f20445cf682564c8a
7
- data.tar.gz: a776122e6ae6b44a1bba030cbb0c3073f0ea9e2636b4ebd39de9435c2c514291890bc1b4e693c4e79e97ab904c66e17da0e125d7a2386fe670c83d10f4989687
6
+ metadata.gz: 970186f2b1dcc002f2a64ff7fc6694450e3f48f3e9ee19cfee6a373da063bf78c8c2917e8cb02dcebec444e9b070cc686a94036534e1b5074628b087c8221788
7
+ data.tar.gz: 2188ae647c41ed73aa3e2362e0fe97488855cdca0e1c744617ed392ec71c4b9f41f345173a65d120eefa3caa37e025929b0fa3a8bede6e23d26ff5d8fe998735
data/ChangeLog CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  = Revision history for libcdb-ruby
4
4
 
5
+ == 0.2.1 [2016-04-19]
6
+
7
+ * Housekeeping.
8
+
5
9
  == 0.2.0 [2014-12-05]
6
10
 
7
11
  * Added encoding support to LibCDB::CDB::Reader.
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to libcdb-ruby version 0.2.0
5
+ This documentation refers to libcdb-ruby version 0.2.1
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -108,7 +108,7 @@ team for making extension building such a breeze :)
108
108
  Copyright (C) 2012 University of Cologne,
109
109
  Albertus-Magnus-Platz, 50923 Cologne, Germany
110
110
 
111
- Copyright (C) 2013-2014 Jens Wille
111
+ Copyright (C) 2013-2016 Jens Wille
112
112
 
113
113
  libcdb-ruby is free software: you can redistribute it and/or modify it
114
114
  under the terms of the GNU Affero General Public License as published by
data/Rakefile CHANGED
@@ -3,17 +3,6 @@ require_relative 'lib/libcdb/version'
3
3
  begin
4
4
  require 'hen'
5
5
 
6
- cco = []
7
-
8
- if dir = ENV['TINYCDB']
9
- cco << "--with-cdb-include=#{dir}"
10
- cco << "--with-cdb-lib=#{dir}"
11
- end
12
-
13
- if dir = ENV['MINGW32']
14
- cco << %Q{--with-cflags="-I#{dir}/include -L#{dir}/lib"}
15
- end
16
-
17
6
  Hen.lay! {{
18
7
  gem: {
19
8
  name: %q{libcdb-ruby},
@@ -23,7 +12,7 @@ begin
23
12
  email: %q{jens.wille@gmail.com},
24
13
  license: %q{AGPL-3.0},
25
14
  homepage: :blackwinter,
26
- extension: { cross_config_options: cco },
15
+ extension: { with_cross_cdb: lambda { |dir| [dir] } },
27
16
 
28
17
  required_ruby_version: '>= 1.9.3'
29
18
  }
@@ -1,6 +1,34 @@
1
+ #--
2
+ ###############################################################################
3
+ # #
4
+ # libcdb-ruby -- Ruby bindings for CDB Constant Databases #
5
+ # #
6
+ # Copyright (C) 2012 University of Cologne, #
7
+ # Albertus-Magnus-Platz, #
8
+ # 50923 Cologne, Germany #
9
+ # #
10
+ # Copyright (C) 2013-2016 Jens Wille #
11
+ # #
12
+ # libcdb-ruby is free software; you can redistribute it and/or modify it #
13
+ # under the terms of the GNU Affero General Public License as published by #
14
+ # the Free Software Foundation; either version 3 of the License, or (at your #
15
+ # option) any later version. #
16
+ # #
17
+ # libcdb-ruby is distributed in the hope that it will be useful, but WITHOUT #
18
+ # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or #
19
+ # FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public #
20
+ # License for more details. #
21
+ # #
22
+ # You should have received a copy of the GNU Affero General Public License #
23
+ # along with libcdb-ruby. If not, see <http://www.gnu.org/licenses/>. #
24
+ # #
25
+ ###############################################################################
26
+ #++
27
+
1
28
  begin
2
29
  require "libcdb/#{RUBY_VERSION[/\d+.\d+/]}/libcdb_ruby"
3
- rescue LoadError
30
+ rescue LoadError => err
31
+ raise if err.respond_to?(:path) && !err.path
4
32
  require 'libcdb/libcdb_ruby'
5
33
  end
6
34
 
@@ -185,7 +213,9 @@ module LibCDB
185
213
  puts 'number of records: %d' % r
186
214
  puts 'key min/avg/max length: %d/%d/%d' % k.values_at(*v1)
187
215
  puts 'val min/avg/max length: %d/%d/%d' % v.values_at(*v1)
188
- next # TODO: hash table stats
216
+
217
+ # TODO: hash table stats
218
+ =begin
189
219
  puts 'hash tables/entries/collisions: %d/%d/%d' % h.values_at(*v2)
190
220
  puts 'hash table min/avg/max length: %d/%d/%d' % h.values_at(*v1)
191
221
  puts 'hash table distances:'
@@ -193,6 +223,7 @@ module LibCDB
193
223
  d = h[:distances]
194
224
  0.upto(9) { |i| puts ' d%d: %6d %2d%%' % [i, *d[i]] }
195
225
  puts ' >9: %6d %2d%%' % d[-1]
226
+ =end
196
227
  }
197
228
  end
198
229
 
@@ -6,7 +6,7 @@ module LibCDB
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 2
9
- TINY = 0
9
+ TINY = 1
10
10
 
11
11
  class << self
12
12
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libcdb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-12-05 00:00:00.000000000 Z
11
+ date: 2016-04-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hen
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '0.8'
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 0.8.0
22
+ version: 0.8.3
23
23
  type: :development
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '0.8'
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 0.8.0
32
+ version: 0.8.3
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: rake
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -118,19 +118,13 @@ licenses:
118
118
  metadata: {}
119
119
  post_install_message: |2+
120
120
 
121
- libcdb-ruby-0.2.0 [2014-12-05]:
121
+ libcdb-ruby-0.2.1 [2016-04-19]:
122
122
 
123
- * Added encoding support to LibCDB::CDB::Reader.
124
- * Added LibCDB::CDB.load and LibCDB::CDB.load_file to create a database from a
125
- dump.
126
- * Added LibCDB::CDB.stats and LibCDB::CDB.print_stats to collect stats from a
127
- database.
128
- * Fixed that LibCDB::CDB::Reader#each_key and LibCDB::CDB::Reader#each_value
129
- would not return an enumerator when no block was given.
123
+ * Housekeeping.
130
124
 
131
125
  rdoc_options:
132
126
  - "--title"
133
- - libcdb-ruby Application documentation (v0.2.0)
127
+ - libcdb-ruby Application documentation (v0.2.1)
134
128
  - "--charset"
135
129
  - UTF-8
136
130
  - "--line-numbers"
@@ -151,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
145
  version: '0'
152
146
  requirements: []
153
147
  rubyforge_project:
154
- rubygems_version: 2.4.5
148
+ rubygems_version: 2.6.3
155
149
  signing_key:
156
150
  specification_version: 4
157
151
  summary: Ruby bindings for CDB Constant Databases.