fsdb 0.7.3 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/History.txt +5 -0
- data/Rakefile +54 -0
- data/lib/fsdb/database.rb +1 -1
- data/test/test-formats.rb +2 -2
- data/test/test-fsdb.rb +3 -3
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 97611d3f327fae56a9d4f4dc45f1dea66c5fdac1
|
4
|
+
data.tar.gz: 941e8a195852cc6e3c81b864447fed3560ea1295
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12b0fb93922526edcae5c08501e245bb8adb0d61196127978fe74c2b0e14f75b7bd11dce55a81edc91f3e3b7826242212a7ac25de11bc1778d60d47521738f6
|
7
|
+
data.tar.gz: 4e0a5f54d14fada1cfb3a573a34b0ac134d68d8d4734b7e4075f5cb07e8900745ca91073d9582b881eed1c0497d2aa6e09848a340dfd17cf843699bae4c12fa2
|
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
require 'rake'
|
2
2
|
require 'rake/testtask'
|
3
3
|
|
4
|
+
PRJ = "fsdb"
|
5
|
+
|
6
|
+
def version
|
7
|
+
@version ||= begin
|
8
|
+
require 'fsdb'
|
9
|
+
warn "FSDB::VERSION not a string" unless FSDB::VERSION.kind_of? String
|
10
|
+
FSDB::VERSION
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
def tag
|
15
|
+
@tag ||= "#{PRJ}-#{version}"
|
16
|
+
end
|
17
|
+
|
4
18
|
def cur_ruby
|
5
19
|
require 'rbconfig'
|
6
20
|
@cur_ruby ||= RbConfig::CONFIG["RUBY_INSTALL_NAME"]
|
@@ -44,3 +58,43 @@ task :bench_system do
|
|
44
58
|
sh cur_ruby, "test/test-concurrency.rb", "-b"
|
45
59
|
end
|
46
60
|
|
61
|
+
desc "Commit, tag, and push repo; build and push gem"
|
62
|
+
task :release => "release:is_new_version" do
|
63
|
+
require 'tempfile'
|
64
|
+
|
65
|
+
sh "gem build #{PRJ}.gemspec"
|
66
|
+
|
67
|
+
file = Tempfile.new "template"
|
68
|
+
begin
|
69
|
+
file.puts "release #{version}"
|
70
|
+
file.close
|
71
|
+
sh "git commit --allow-empty -a -v -t #{file.path}"
|
72
|
+
ensure
|
73
|
+
file.close unless file.closed?
|
74
|
+
file.unlink
|
75
|
+
end
|
76
|
+
|
77
|
+
sh "git tag #{tag}"
|
78
|
+
sh "git push"
|
79
|
+
sh "git push --tags"
|
80
|
+
|
81
|
+
sh "gem push #{tag}.gem"
|
82
|
+
end
|
83
|
+
|
84
|
+
namespace :release do
|
85
|
+
desc "Diff to latest release"
|
86
|
+
task :diff do
|
87
|
+
latest = `git describe --abbrev=0 --tags --match '#{PRJ}-*'`.chomp
|
88
|
+
sh "git diff #{latest}"
|
89
|
+
end
|
90
|
+
|
91
|
+
desc "Log to latest release"
|
92
|
+
task :log do
|
93
|
+
latest = `git describe --abbrev=0 --tags --match '#{PRJ}-*'`.chomp
|
94
|
+
sh "git log #{latest}.."
|
95
|
+
end
|
96
|
+
|
97
|
+
task :is_new_version do
|
98
|
+
abort "#{tag} exists; update version!" unless `git tag -l #{tag}`.empty?
|
99
|
+
end
|
100
|
+
end
|
data/lib/fsdb/database.rb
CHANGED
data/test/test-formats.rb
CHANGED
@@ -2,9 +2,9 @@ $LOAD_PATH.unshift(File.join(File.expand_path("..", __FILE__), "lib"))
|
|
2
2
|
|
3
3
|
require 'db-for-test'
|
4
4
|
|
5
|
-
require '
|
5
|
+
require 'minitest/autorun'
|
6
6
|
|
7
|
-
class Test_Formats < Test
|
7
|
+
class Test_Formats < Minitest::Test
|
8
8
|
|
9
9
|
PREFIX_FORMAT =
|
10
10
|
FSDB::Format.new(/^prefix\/format\/here\//, :binary,
|
data/test/test-fsdb.rb
CHANGED
@@ -2,7 +2,7 @@ $LOAD_PATH.unshift(File.join(File.expand_path("..", __FILE__), "lib"))
|
|
2
2
|
|
3
3
|
require 'db-for-test'
|
4
4
|
|
5
|
-
require '
|
5
|
+
require 'minitest/autorun'
|
6
6
|
|
7
7
|
#Dir.chdir('/')
|
8
8
|
# Just to show that the curr dir is irrelevant.
|
@@ -14,7 +14,7 @@ SYMLINKS_WORK = !FSDB::PLATFORM_IS_WINDOWS # maybe cygwin?
|
|
14
14
|
|
15
15
|
# test basic use without concurrency
|
16
16
|
|
17
|
-
class Test_FSDB < Test
|
17
|
+
class Test_FSDB < Minitest::Test
|
18
18
|
|
19
19
|
def initialize(*args)
|
20
20
|
super
|
@@ -57,7 +57,7 @@ class Test_FSDB < Test::Unit::TestCase
|
|
57
57
|
obj = ["cache_equality"]
|
58
58
|
@db['cache_equality'] = obj
|
59
59
|
shakeup
|
60
|
-
|
60
|
+
refute_equal(obj.object_id, @db['cache_equality'].object_id)
|
61
61
|
end
|
62
62
|
|
63
63
|
def test_multipath
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fsdb
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.4
|
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
|
+
date: 2013-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A file system data base. Provides a thread-safe, process-safe Database
|
14
14
|
class. Each entry is a separate file referenced by its relative path. Allows multiple
|
@@ -62,7 +62,7 @@ files:
|
|
62
62
|
- test/lib/db-for-test.rb
|
63
63
|
- test/lib/test-concurrency/init.rb
|
64
64
|
- test/lib/test-concurrency/test-object.rb
|
65
|
-
homepage: http://rubyforge.org/projects/fsdb
|
65
|
+
homepage: http://rubyforge.org/projects/fsdb
|
66
66
|
licenses: []
|
67
67
|
metadata: {}
|
68
68
|
post_install_message:
|
@@ -88,7 +88,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
88
|
version: '0'
|
89
89
|
requirements: []
|
90
90
|
rubyforge_project: fsdb
|
91
|
-
rubygems_version: 2.0
|
91
|
+
rubygems_version: 2.1.0
|
92
92
|
signing_key:
|
93
93
|
specification_version: 4
|
94
94
|
summary: File System Database
|