repomate 0.2.9 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/repomate/package.rb +1 -2
- metadata +2 -2
data/lib/repomate/package.rb
CHANGED
@@ -60,11 +60,10 @@ module RepoMate
|
|
60
60
|
# Creates the checksums for a package
|
61
61
|
def create_checksums
|
62
62
|
# puts "Ins: #{@basename}"
|
63
|
-
now = DateTime.now
|
64
63
|
md5 = Digest::MD5.file(@fullname).to_s
|
65
64
|
sha1 = Digest::SHA1.file(@fullname).to_s
|
66
65
|
sha256 = Digest::SHA2.new(256).file(@fullname).to_s
|
67
|
-
@pkgdb.query("insert into checksums values ( '
|
66
|
+
@pkgdb.query("insert into checksums values ( datetime('now'), '#{@basename}', '#{@suitename}', '#{@mtime.iso8601}', '#{md5}', '#{sha1}', '#{sha256}' )")
|
68
67
|
end
|
69
68
|
|
70
69
|
# Gets checksums for the given package
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: repomate
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-
|
13
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: slop
|