blastr 0.1.1 → 0.1.2
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.
- data/History.txt +8 -0
- data/Manifest.txt +2 -0
- data/Rakefile +1 -0
- data/lib/blastr.rb +1 -1
- data/lib/filesystem.rb +20 -0
- metadata +9 -8
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -7,6 +7,7 @@ bin/blastr
|
|
7
7
|
config/website.yml
|
8
8
|
lib/blastr.rb
|
9
9
|
lib/error.rb
|
10
|
+
lib/filesystem.rb
|
10
11
|
lib/people/people.rb
|
11
12
|
lib/scm/git.rb
|
12
13
|
lib/scm/hg.rb
|
@@ -29,6 +30,7 @@ test/scm/test_svn.rb
|
|
29
30
|
test/scm/test_svn_log.rb
|
30
31
|
test/scm/test_svn_revision.rb
|
31
32
|
test/test_blastr.rb
|
33
|
+
test/test_filesystem.rb
|
32
34
|
test/test_helper.rb
|
33
35
|
test/tts/test_tts.rb
|
34
36
|
website/index.html
|
data/Rakefile
CHANGED
data/lib/blastr.rb
CHANGED
@@ -8,7 +8,7 @@ module Blastr
|
|
8
8
|
require File.expand_path(File.join(File.dirname(__FILE__), 'tts/tts.rb'))
|
9
9
|
require File.expand_path(File.join(File.dirname(__FILE__), 'people/people.rb'))
|
10
10
|
|
11
|
-
VERSION = '0.1.
|
11
|
+
VERSION = '0.1.2'
|
12
12
|
COPYRIGHT = "Copyright (c) 2009-#{Time.now.year}, Lasse Koskela. All Rights Reserved."
|
13
13
|
|
14
14
|
def self.trap_and_exit(signal)
|
data/lib/filesystem.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require 'fileutils'
|
2
|
+
|
3
|
+
module Blastr::FileSystem
|
4
|
+
def self.delete_at_exit(file_or_directory)
|
5
|
+
at_exit do
|
6
|
+
if (File.exist?(file_or_directory))
|
7
|
+
puts "Cleaning up leftovers: #{file_or_directory}" if $DEBUG
|
8
|
+
FileUtils.rm_r(file_or_directory, :force => true, :secure => true)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.temp_dir
|
14
|
+
temp_file = Tempfile.new("tmp")
|
15
|
+
temp_dir = temp_file.path
|
16
|
+
temp_file.unlink
|
17
|
+
FileUtils.mkdir_p(temp_dir)
|
18
|
+
temp_dir
|
19
|
+
end
|
20
|
+
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blastr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Lasse Koskela
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-
|
18
|
+
date: 2010-12-06 00:00:00 +08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -45,9 +45,9 @@ dependencies:
|
|
45
45
|
hash: 19
|
46
46
|
segments:
|
47
47
|
- 2
|
48
|
-
-
|
49
|
-
-
|
50
|
-
version: 2.
|
48
|
+
- 7
|
49
|
+
- 0
|
50
|
+
version: 2.7.0
|
51
51
|
type: :development
|
52
52
|
version_requirements: *id002
|
53
53
|
description: |-
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- config/website.yml
|
80
80
|
- lib/blastr.rb
|
81
81
|
- lib/error.rb
|
82
|
+
- lib/filesystem.rb
|
82
83
|
- lib/people/people.rb
|
83
84
|
- lib/scm/git.rb
|
84
85
|
- lib/scm/hg.rb
|
@@ -101,10 +102,10 @@ files:
|
|
101
102
|
- test/scm/test_svn_log.rb
|
102
103
|
- test/scm/test_svn_revision.rb
|
103
104
|
- test/test_blastr.rb
|
105
|
+
- test/test_filesystem.rb
|
104
106
|
- test/test_helper.rb
|
105
107
|
- test/tts/test_tts.rb
|
106
108
|
- website/index.html
|
107
|
-
- test/test_filesystem.rb
|
108
109
|
has_rdoc: true
|
109
110
|
homepage: http://rubyforge.org/projects/blastr/
|
110
111
|
licenses: []
|