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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ef4964a2f9b139fffad14a5ac66e608d102987a7
4
- data.tar.gz: ef06c2d3dc13d4053aa56e348693e773c201b276
3
+ metadata.gz: 2af4220b44400682abe0a2c82378cb82706042d5
4
+ data.tar.gz: 913be658f9ae445d83cf35974bde2a1b0c2945e4
5
5
  SHA512:
6
- metadata.gz: 2888ec29fd21d98b9ccce964c63f3e8d76bc489546cbe790a9187b2041ce1d021578159776fb182f69838ed3c15db25917da0385a5561e2158fb12d50ad7da81
7
- data.tar.gz: d1dda8e6d7a414d4684e70da5481cfd3beae7fd2a3161f8e35499c78ef16bdd57bf17dc8fa443a8e05b6f012e296ee4b05ab89b575518eced15f1f8be99b36f3
6
+ metadata.gz: cd450b09c114a2f6c638ab7823006b66388052fea1bccb65942dfaef6a597fcd02d4c28433e42b871790b1660e1affa02b46e66b3c5db7167267864d2925b1c7
7
+ data.tar.gz: 6566c24b89860b878582226b000d14b784eb8bb15273dc867bba919895c11cbc443c9b6dcd481d6bb57a9de92ac53980c9bdb7a517a956004d853d7db1c42659
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2013 Joel VanderWerf
3
+ Copyright (c) 2013-2014 Joel VanderWerf
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of
6
6
  this software and associated documentation files (the "Software"), to deal in
data/README.md CHANGED
@@ -79,7 +79,7 @@ Contact Joel VanderWerf:
79
79
  License and Copyright
80
80
  ---------------------
81
81
 
82
- Copyright (c) 2013, Joel VanderWerf.
82
+ Copyright (c) 2013-2014, Joel VanderWerf.
83
83
 
84
84
  Portions of ext/leveldb-native/leveldb-native.cc are copyright William Morgan.
85
85
 
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 "Commit, tag, and push repo; build and push gem"
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"
@@ -1,3 +1,3 @@
1
1
  module LevelDBNative
2
- VERSION = "0.5"
2
+ VERSION = "0.6"
3
3
  end
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.5'
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: 2013-11-12 00:00:00.000000000 Z
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
- - lib/leveldb-native.rb
27
- - lib/leveldb-native/version.rb
54
+ - example/iterator.rb
55
+ - example/snapshot.rb
28
56
  - ext/leveldb-native/extconf.rb
29
57
  - ext/leveldb-native/leveldb-native.cc
30
- - example/snapshot.rb
31
- - example/iterator.rb
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-snapshot.rb
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.1.10
91
+ rubygems_version: 2.2.2
64
92
  signing_key:
65
93
  specification_version: 4
66
94
  summary: Ruby binding to LevelDB