libcdb-ruby 0.1.0 → 0.1.1

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: 3404589e8e27dd8a4c61154bcecf15c802bfb128
4
- data.tar.gz: 32d8dea77430d3a08bc72d473f6728a28fa79d06
3
+ metadata.gz: 7a350d25e790bf8b2e405067e69a154393a0749e
4
+ data.tar.gz: 51c44fe36fd9ac0130e76a1c7d19de6ee4d8db94
5
5
  SHA512:
6
- metadata.gz: e36a65ee548c3e6b7d86e03e19c4824d0177b6264e232fc4056a75774b25917b1ce9d1b0c289f42c0b20dd97c273e936a1cf6f3f27e0755a543cde7103cf0524
7
- data.tar.gz: 7bc16f8acb3268fdd539ad627ba9148645cfbbc1ad64370ce9712b3ddc9e304dc010a6e254eca5e372858512c669a22320a2bf6030c233bd82b72aeab1679ddb
6
+ metadata.gz: 73d37a569b353eac9c087b96498f4974115679824a3014b6133e8c7288675797e882442d6fb07adf6378dc02b9fb9a1bb0c0058bc551cfe2adcb1e0a09ef7759
7
+ data.tar.gz: 452daa03315b780f5c2d222834982aedec3d552f942371b76c82bb3a4617f09af7a486220c19d251c08982b8371c48982652e31a023332d1e96e8bc6bba4864b
data/ChangeLog CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  = Revision history for libcdb-ruby
4
4
 
5
- == 0.1.0 [unreleased]
5
+ == 0.1.1 [2014-04-25]
6
+
7
+ * <b>Dropped support for Ruby 1.9.2.</b>
8
+ * Housekeeping.
9
+
10
+ == 0.1.0 [2013-08-03]
6
11
 
7
12
  * Removed usage of +RARRAY_PTR+ (cf. Ruby bug
8
13
  {#8399}[https://bugs.ruby-lang.org/issues/8399]).
data/README CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  == VERSION
4
4
 
5
- This documentation refers to libcdb-ruby version 0.1.0
5
+ This documentation refers to libcdb-ruby version 0.1.1
6
6
 
7
7
 
8
8
  == DESCRIPTION
@@ -62,7 +62,6 @@ creating and reading {constant databases}[http://cr.yp.to/cdb.html].
62
62
 
63
63
  == PREREQUISITES
64
64
 
65
- <b></b>
66
65
  * Ruby 1.9+ (see {below}[rdoc-label:label-SUPPORTED+PLATFORMS] for details)
67
66
  * TinyCDB[http://www.corpit.ru/mjt/tinycdb.html] headers (not needed when
68
67
  installing the fat binary gem on Windows)
@@ -74,20 +73,19 @@ creating and reading {constant databases}[http://cr.yp.to/cdb.html].
74
73
 
75
74
  == SUPPORTED PLATFORMS
76
75
 
77
- <b></b>
78
- Linux:: MRI 1.9 & 2.0 (Tested on 64-bit Ubuntu GNU/Linux with 1.9.2p323,
79
- 1.9.3p286 and 2.0.0p119)
80
- Windows:: MRI 1.9 (Tested on 32-bit Windows XP with 1.9.2p290 and 1.9.3p194)
76
+ Linux:: MRI 1.9.3, 2.0 & 2.1 (Tested on 64-bit Ubuntu GNU/Linux
77
+ with 1.9.3p488, 2.0.0p377 and 2.1.2p77)
78
+ Windows:: MRI 1.9.3 (Tested on 32-bit Windows XP with 1.9.3p194)
81
79
 
82
80
 
83
81
  == LINKS
84
82
 
85
- <b></b>
86
- Documentation:: http://blackwinter.github.com/libcdb-ruby
87
- Source code:: http://github.com/blackwinter/libcdb-ruby
88
- RubyGem:: http://rubygems.org/gems/libcdb-ruby
89
- TinyCDB:: http://www.corpit.ru/mjt/tinycdb.html
90
83
  CDB:: http://cr.yp.to/cdb.html
84
+ TinyCDB:: http://www.corpit.ru/mjt/tinycdb.html
85
+ Documentation:: https://blackwinter.github.io/libcdb-ruby/
86
+ Source code:: https://github.com/blackwinter/libcdb-ruby
87
+ RubyGem:: https://rubygems.org/gems/libcdb-ruby
88
+ Travis CI:: https://travis-ci.org/blackwinter/libcdb-ruby
91
89
 
92
90
 
93
91
  == AUTHORS
@@ -110,7 +108,7 @@ team for making extension building such a breeze :)
110
108
  Copyright (C) 2012 University of Cologne,
111
109
  Albertus-Magnus-Platz, 50923 Cologne, Germany
112
110
 
113
- Copyright (C) 2013 Jens Wille
111
+ Copyright (C) 2013-2014 Jens Wille
114
112
 
115
113
  libcdb-ruby is free software: you can redistribute it and/or modify it
116
114
  under the terms of the GNU Affero General Public License as published by
data/Rakefile CHANGED
@@ -11,23 +11,21 @@ begin
11
11
  end
12
12
 
13
13
  if dir = ENV['MINGW32']
14
- cco << "--with-cflags=\"-I#{dir}/include -L#{dir}/lib\""
14
+ cco << %Q{--with-cflags="-I#{dir}/include -L#{dir}/lib"}
15
15
  end
16
16
 
17
17
  Hen.lay! {{
18
- :gem => {
19
- :name => %q{libcdb-ruby},
20
- :version => LibCDB::CDB::VERSION,
21
- :summary => %q{Ruby bindings for CDB Constant Databases.},
22
- :author => %q{Jens Wille},
23
- :email => %q{jens.wille@gmail.com},
24
- :license => %q{AGPL},
25
- :homepage => :blackwinter,
26
- :extension => {
27
- :cross_config_options => cco,
28
- :ruby_versions => RUBY_VERSION
29
- },
30
- required_ruby_version: '>= 1.9.2'
18
+ gem: {
19
+ name: %q{libcdb-ruby},
20
+ version: LibCDB::CDB::VERSION,
21
+ summary: %q{Ruby bindings for CDB Constant Databases.},
22
+ author: %q{Jens Wille},
23
+ email: %q{jens.wille@gmail.com},
24
+ license: %q{AGPL-3.0},
25
+ homepage: :blackwinter,
26
+ extension: { cross_config_options: cco },
27
+
28
+ required_ruby_version: '>= 1.9.3'
31
29
  }
32
30
  }}
33
31
  rescue LoadError => err
@@ -3,8 +3,6 @@ require 'mkmf'
3
3
  dir_config('cdb')
4
4
 
5
5
  if have_library('cdb', 'cdb_init') && have_header('cdb.h') && have_macro('TINYCDB_VERSION', 'cdb.h')
6
- have_header('ruby/io.h')
7
- have_header('ruby/st.h')
8
6
  create_makefile('libcdb/libcdb_ruby')
9
7
  else
10
8
  abort '*** ERROR: missing required library to compile this module'
@@ -1,12 +1,6 @@
1
1
  #ifndef RUBY_CDB_H
2
2
  #define RUBY_CDB_H
3
3
 
4
- #ifdef HAVE_RUBY_IO_H
5
- #define RCDB_GET_FD(fptr) (fptr)->fd
6
- #else
7
- #define RCDB_GET_FD(fptr) fileno((fptr)->f)
8
- #endif
9
-
10
4
  #define RCDB_GET_STRUCT(what, _struct, obj, ptr) \
11
5
  if (RTEST(rcdb_##what##er_closed_p(obj))) {\
12
6
  rb_raise(rb_eIOError, "closed stream");\
@@ -40,7 +34,7 @@ rcdb_##what##er_alloc(VALUE klass) {\
40
34
  \
41
35
  RCDB_##WHAT##ER_GET(self, ptr);\
42
36
  \
43
- if (cdb_##init(ptr, RCDB_GET_FD(fptr)) == -1) {\
37
+ if (cdb_##init(ptr, fptr->fd) == -1) {\
44
38
  rb_sys_fail(0);\
45
39
  }
46
40
 
@@ -2,16 +2,8 @@
2
2
  #define RUBY_LIBCDB_H
3
3
 
4
4
  #include <ruby.h>
5
- #if HAVE_RUBY_IO_H
6
5
  #include <ruby/io.h>
7
- #else
8
- #include <rubyio.h>
9
- #endif
10
- #if HAVE_RUBY_ST_H
11
6
  #include <ruby/st.h>
12
- #else
13
- #include <st.h>
14
- #endif
15
7
  #include <cdb.h>
16
8
  #include <sys/types.h>
17
9
  #include <sys/stat.h>
@@ -6,7 +6,7 @@ module LibCDB
6
6
 
7
7
  MAJOR = 0
8
8
  MINOR = 1
9
- TINY = 0
9
+ TINY = 1
10
10
 
11
11
  class << self
12
12
 
data/spec/spec_helper.rb CHANGED
@@ -4,6 +4,8 @@ require 'libcdb'
4
4
  require 'tempfile'
5
5
 
6
6
  RSpec.configure { |config|
7
+ config.expect_with(:rspec) { |c| c.syntax = [:should, :expect] }
8
+
7
9
  config.include(Module.new {
8
10
  TEST_DATA = {}
9
11
 
metadata CHANGED
@@ -1,36 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libcdb-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Wille
8
8
  autorequire:
9
9
  bindir: bin
10
- cert_chain:
11
- - |
12
- -----BEGIN CERTIFICATE-----
13
-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S7OcRRHCryuo09l
29
- NBGyZvOBuqUp0xostWSk0dfxyn/YQ7eqvQRGBhK1VGa7Tg/KYqnemDE57+VOXrua
30
- 59wzaA==
31
- -----END CERTIFICATE-----
32
- date: 2013-08-03 00:00:00.000000000 Z
33
- dependencies: []
10
+ cert_chain: []
11
+ date: 2014-04-25 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hen
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
34
55
  description: Ruby bindings for CDB Constant Databases.
35
56
  email: jens.wille@gmail.com
36
57
  executables: []
@@ -45,10 +66,6 @@ extra_rdoc_files:
45
66
  - ext/libcdb/ruby_cdb_reader.c
46
67
  - ext/libcdb/ruby_cdb_writer.c
47
68
  files:
48
- - lib/cdb.rb
49
- - lib/libcdb-ruby.rb
50
- - lib/libcdb.rb
51
- - lib/libcdb/version.rb
52
69
  - COPYING
53
70
  - ChangeLog
54
71
  - README
@@ -64,39 +81,48 @@ files:
64
81
  - ext/libcdb/ruby_cdb_writer.c
65
82
  - ext/libcdb/ruby_cdb_writer.h
66
83
  - ext/libcdb/ruby_libcdb.h
84
+ - lib/cdb.rb
85
+ - lib/libcdb-ruby.rb
86
+ - lib/libcdb.rb
87
+ - lib/libcdb/version.rb
67
88
  - spec/libcdb/reader_spec.rb
68
89
  - spec/libcdb/writer_spec.rb
69
90
  - spec/spec_helper.rb
70
- - .rspec
71
91
  homepage: http://github.com/blackwinter/libcdb-ruby
72
92
  licenses:
73
- - AGPL
93
+ - AGPL-3.0
74
94
  metadata: {}
75
- post_install_message:
95
+ post_install_message: |2+
96
+
97
+ libcdb-ruby-0.1.1 [2014-04-25]:
98
+
99
+ * <b>Dropped support for Ruby 1.9.2.</b>
100
+ * Housekeeping.
101
+
76
102
  rdoc_options:
77
- - --charset
103
+ - "--title"
104
+ - libcdb-ruby Application documentation (v0.1.1)
105
+ - "--charset"
78
106
  - UTF-8
79
- - --line-numbers
80
- - --all
81
- - --title
82
- - libcdb-ruby Application documentation (v0.1.0)
83
- - --main
107
+ - "--line-numbers"
108
+ - "--all"
109
+ - "--main"
84
110
  - README
85
111
  require_paths:
86
112
  - lib
87
113
  required_ruby_version: !ruby/object:Gem::Requirement
88
114
  requirements:
89
- - - '>='
115
+ - - ">="
90
116
  - !ruby/object:Gem::Version
91
- version: 1.9.2
117
+ version: 1.9.3
92
118
  required_rubygems_version: !ruby/object:Gem::Requirement
93
119
  requirements:
94
- - - '>='
120
+ - - ">="
95
121
  - !ruby/object:Gem::Version
96
122
  version: '0'
97
123
  requirements: []
98
124
  rubyforge_project:
99
- rubygems_version: 2.0.6
125
+ rubygems_version: 2.2.2.x
100
126
  signing_key:
101
127
  specification_version: 4
102
128
  summary: Ruby bindings for CDB Constant Databases.
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --colour