leveldb-native 0.5 → 0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE +1 -1
- data/README.md +1 -1
- data/Rakefile +30 -3
- data/lib/leveldb-native/version.rb +1 -1
- metadata +39 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2af4220b44400682abe0a2c82378cb82706042d5
|
4
|
+
data.tar.gz: 913be658f9ae445d83cf35974bde2a1b0c2945e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd450b09c114a2f6c638ab7823006b66388052fea1bccb65942dfaef6a597fcd02d4c28433e42b871790b1660e1affa02b46e66b3c5db7167267864d2925b1c7
|
7
|
+
data.tar.gz: 6566c24b89860b878582226b000d14b784eb8bb15273dc867bba919895c11cbc443c9b6dcd481d6bb57a9de92ac53980c9bdb7a517a956004d853d7db1c42659
|
data/LICENSE
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -3,6 +3,9 @@ require 'rake/testtask'
|
|
3
3
|
|
4
4
|
PRJ = "leveldb-native"
|
5
5
|
|
6
|
+
ext_dir = "ext/#{PRJ}"
|
7
|
+
so_name = "leveldb_native.so"
|
8
|
+
|
6
9
|
def version
|
7
10
|
@version ||= begin
|
8
11
|
require 'leveldb-native/version'
|
@@ -16,15 +19,39 @@ def tag
|
|
16
19
|
@tag ||= "#{PRJ}-#{version}"
|
17
20
|
end
|
18
21
|
|
22
|
+
desc "Build extension"
|
23
|
+
task :ext => File.join(ext_dir, so_name)
|
24
|
+
|
25
|
+
file File.join(ext_dir, so_name) => FileList[
|
26
|
+
File.join(ext_dir, "*.{c,cc,h}"),
|
27
|
+
File.join(ext_dir, "Makefile")] do
|
28
|
+
sh "cd #{ext_dir} && make"
|
29
|
+
end
|
30
|
+
|
31
|
+
file File.join(ext_dir, "Makefile") => File.join(ext_dir, "extconf.rb") do
|
32
|
+
sh "cd #{ext_dir} && ruby extconf.rb"
|
33
|
+
end
|
34
|
+
|
35
|
+
desc "Clean compiled files"
|
36
|
+
task :clean do
|
37
|
+
sh "cd #{ext_dir} && make clean"
|
38
|
+
end
|
39
|
+
|
40
|
+
desc "Clean compiled files and Makefile"
|
41
|
+
task :dist_clean => :clean do
|
42
|
+
sh "cd #{ext_dir} && rm Makefile"
|
43
|
+
end
|
44
|
+
|
45
|
+
|
19
46
|
desc "Run unit tests"
|
20
|
-
Rake::TestTask.new :test do |t|
|
47
|
+
Rake::TestTask.new :test => :ext do |t|
|
21
48
|
t.libs << "lib"
|
22
49
|
t.libs << "ext"
|
23
50
|
t.test_files = FileList["test/*.rb"]
|
24
51
|
end
|
25
52
|
|
26
|
-
desc "
|
27
|
-
task :release => "release:is_new_version" do
|
53
|
+
desc "Test, commit, tag, and push repo; build and push gem"
|
54
|
+
task :release => ["release:is_new_version", :test] do
|
28
55
|
require 'tempfile'
|
29
56
|
|
30
57
|
sh "gem build #{PRJ}.gemspec"
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: leveldb-native
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.6'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Joel VanderWerf
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
12
|
-
dependencies:
|
11
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: minitest
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '5.0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '5.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.9'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.9'
|
13
41
|
description: Ruby binding to LevelDB.
|
14
42
|
email: vjoel@users.sourceforge.net
|
15
43
|
executables: []
|
@@ -20,19 +48,19 @@ extra_rdoc_files:
|
|
20
48
|
- LICENSE
|
21
49
|
- ext/leveldb-native/leveldb-native.cc
|
22
50
|
files:
|
23
|
-
- README.md
|
24
51
|
- LICENSE
|
52
|
+
- README.md
|
25
53
|
- Rakefile
|
26
|
-
-
|
27
|
-
-
|
54
|
+
- example/iterator.rb
|
55
|
+
- example/snapshot.rb
|
28
56
|
- ext/leveldb-native/extconf.rb
|
29
57
|
- ext/leveldb-native/leveldb-native.cc
|
30
|
-
-
|
31
|
-
-
|
32
|
-
- test/test-db.rb
|
58
|
+
- lib/leveldb-native.rb
|
59
|
+
- lib/leveldb-native/version.rb
|
33
60
|
- test/test-db-options.rb
|
34
|
-
- test/test-
|
61
|
+
- test/test-db.rb
|
35
62
|
- test/test-iterator.rb
|
63
|
+
- test/test-snapshot.rb
|
36
64
|
homepage: https://github.com/vjoel/ruby-leveldb-native
|
37
65
|
licenses:
|
38
66
|
- MIT
|
@@ -60,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
88
|
version: '0'
|
61
89
|
requirements: []
|
62
90
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
91
|
+
rubygems_version: 2.2.2
|
64
92
|
signing_key:
|
65
93
|
specification_version: 4
|
66
94
|
summary: Ruby binding to LevelDB
|