fsdb 0.7.3 → 0.7.4

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: 1361cd08dce77d57a66448c543f9bbbdb9a10c3d
4
- data.tar.gz: 1ccdb0778b35c995ce5608814ce05f2f5a8609f8
3
+ metadata.gz: 97611d3f327fae56a9d4f4dc45f1dea66c5fdac1
4
+ data.tar.gz: 941e8a195852cc6e3c81b864447fed3560ea1295
5
5
  SHA512:
6
- metadata.gz: 9a100f043d08103fb8f933c690978a1e1aa8680a742050ddc83f95047ac1013593847d779af76abd6cf74428f174f972adb544fc970df6e6e93de4e833d09ede
7
- data.tar.gz: 868743ef4823cecc61b439779756a7a34bba8c9da01c88b7bc91e963fd8c925c9dc6506948c69091a552d873402a99f5b06ecef095865d39e5183d437e27e16f
6
+ metadata.gz: b12b0fb93922526edcae5c08501e245bb8adb0d61196127978fe74c2b0e14f75b7bd11dce55a81edc91f3e3b7826242212a7ac25de11bc1778d60d47521738f6
7
+ data.tar.gz: 4e0a5f54d14fada1cfb3a573a34b0ac134d68d8d4734b7e4075f5cb07e8900745ca91073d9582b881eed1c0497d2aa6e09848a340dfd17cf843699bae4c12fa2
@@ -1,3 +1,8 @@
1
+ fsdb 0.7.4
2
+
3
+ - modernize rakefile and gemspec
4
+ - switch to minitest
5
+
1
6
  fsdb 0.7.3
2
7
 
3
8
  - avoid warnings with ruby 2.0
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
@@ -8,7 +8,7 @@ require 'fsdb/formats'
8
8
  module FSDB
9
9
  include Formats
10
10
 
11
- FSDB::VERSION = "0.7.3"
11
+ FSDB::VERSION = "0.7.4"
12
12
 
13
13
  # A thread-safe, process-safe object database class which uses the
14
14
  # native file system as its back end and allows multiple file formats.
@@ -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 'test/unit'
5
+ require 'minitest/autorun'
6
6
 
7
- class Test_Formats < Test::Unit::TestCase
7
+ class Test_Formats < Minitest::Test
8
8
 
9
9
  PREFIX_FORMAT =
10
10
  FSDB::Format.new(/^prefix\/format\/here\//, :binary,
@@ -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 'test/unit'
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::Unit::TestCase
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
- assert_not_equal(obj.object_id, @db['cache_equality'].object_id)
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.3
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-05-28 00:00:00.000000000 Z
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.3
91
+ rubygems_version: 2.1.0
92
92
  signing_key:
93
93
  specification_version: 4
94
94
  summary: File System Database