digest-tiger 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,5 @@
1
+ README.rdoc
2
+ lib/**/*.rb
3
+ bin/*
4
+ features/**/*.feature
5
+ LICENSE
@@ -0,0 +1,21 @@
1
+ ## MAC OS
2
+ .DS_Store
3
+
4
+ ## TEXTMATE
5
+ *.tmproj
6
+ tmtags
7
+
8
+ ## EMACS
9
+ *~
10
+ \#*
11
+ .\#*
12
+
13
+ ## VIM
14
+ *.swp
15
+
16
+ ## PROJECT::GENERAL
17
+ coverage
18
+ rdoc
19
+ pkg
20
+
21
+ ## PROJECT::SPECIFIC
@@ -0,0 +1,56 @@
1
+ require 'rubygems'
2
+ require 'rake'
3
+
4
+ begin
5
+ require 'jeweler'
6
+ Jeweler::Tasks.new do |gem|
7
+ gem.name = "digest-tiger"
8
+ gem.summary = %Q{A Digest module implementing the Tiger hashing algorithm}
9
+ gem.description = <<-EOS
10
+ This is a Digest module implementing the Tiger hashing algorithm.
11
+ The size of a Tiger hash value is 192 bits.
12
+ EOS
13
+ gem.email = "knu@idaemons.org"
14
+ gem.homepage = "http://github.com/knu/ruby-digest-extra"
15
+ gem.authors = ["Akinori MUSHA"]
16
+ gem.extensions.concat FileList["ext/**/extconf.rb"]
17
+ # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional set
18
+ end
19
+ Jeweler::GemcutterTasks.new
20
+ rescue LoadError
21
+ puts "Jeweler (or a dependency) not available. Install it with: sudo gem install jeweler"
22
+ end
23
+
24
+ require 'rake/testtask'
25
+ Rake::TestTask.new(:test) do |test|
26
+ test.libs << 'lib' << 'test'
27
+ test.pattern = 'test/**/test_*.rb'
28
+ test.verbose = true
29
+ end
30
+
31
+ begin
32
+ require 'rcov/rcovtask'
33
+ Rcov::RcovTask.new do |test|
34
+ test.libs << 'test'
35
+ test.pattern = 'test/**/test_*.rb'
36
+ test.verbose = true
37
+ end
38
+ rescue LoadError
39
+ task :rcov do
40
+ abort "RCov is not available. In order to run rcov, you must: sudo gem install spicycode-rcov"
41
+ end
42
+ end
43
+
44
+ task :test => :check_dependencies
45
+
46
+ task :default => :test
47
+
48
+ require 'rake/rdoctask'
49
+ Rake::RDocTask.new do |rdoc|
50
+ version = File.exist?('VERSION') ? File.read('VERSION') : ""
51
+
52
+ rdoc.rdoc_dir = 'rdoc'
53
+ rdoc.title = "digest-tiger #{version}"
54
+ rdoc.rdoc_files.include('README*')
55
+ rdoc.rdoc_files.include('lib/**/*.rb')
56
+ end
data/VERSION ADDED
@@ -0,0 +1 @@
1
+ 1.0.1
@@ -0,0 +1,47 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{digest-tiger}
8
+ s.version = "1.0.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = [%q{Akinori MUSHA}]
12
+ s.date = %q{2011-09-27}
13
+ s.description = %q{This is a Digest module implementing the Tiger hashing algorithm.
14
+ The size of a Tiger hash value is 192 bits.
15
+ }
16
+ s.email = %q{knu@idaemons.org}
17
+ s.extensions = [%q{ext/digest/tiger/extconf.rb}]
18
+ s.files = [
19
+ ".document",
20
+ ".gitignore",
21
+ "LICENSE",
22
+ "README.rdoc",
23
+ "Rakefile",
24
+ "VERSION",
25
+ "digest-tiger.gemspec",
26
+ "ext/digest/tiger/depend",
27
+ "ext/digest/tiger/extconf.rb",
28
+ "ext/digest/tiger/tiger.c",
29
+ "ext/digest/tiger/tiger.h",
30
+ "ext/digest/tiger/tiger_init.c",
31
+ "test/test_digest-tiger.rb"
32
+ ]
33
+ s.homepage = %q{http://github.com/knu/ruby-digest-extra}
34
+ s.require_paths = [%q{lib}]
35
+ s.rubygems_version = %q{1.8.8}
36
+ s.summary = %q{A Digest module implementing the Tiger hashing algorithm}
37
+
38
+ if s.respond_to? :specification_version then
39
+ s.specification_version = 3
40
+
41
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
42
+ else
43
+ end
44
+ else
45
+ end
46
+ end
47
+
@@ -1,9 +1,7 @@
1
- # $Id$
2
-
3
1
  require 'mkmf'
4
2
 
5
3
  $defs << "-DHAVE_CONFIG_H"
6
- $INCFLAGS << " -I$(srcdir)/.."
4
+ $INCFLAGS << " -I$(srcdir)/.. -I$(hdrdir)/ruby"
7
5
 
8
6
  $preload = %w[digest]
9
7
 
@@ -2,12 +2,8 @@
2
2
 
3
3
  tiger_init.c - provides Digest::Tiger class
4
4
 
5
- $Author$
6
-
7
5
  Copyright (C) 2006 Akinori MUSHA
8
6
 
9
- $Id$
10
-
11
7
  ************************************************/
12
8
 
13
9
  #include "digest.h"
@@ -0,0 +1,28 @@
1
+ require 'test/unit'
2
+
3
+ begin
4
+ require 'digest/tiger'
5
+ rescue LoadError
6
+ require 'rubygems'
7
+ require 'digest/tiger'
8
+ end
9
+
10
+ class TC_Digest_Tiger < Test::Unit::TestCase
11
+ def cases
12
+ [
13
+ {
14
+ :data => '',
15
+ :hexdigest => '3293ac630c13f0245f92bbb1766e16167a4e58492dde73f3',
16
+ }, {
17
+ :data => 'The quick brown fox jumps over the lazy dog',
18
+ :hexdigest => '6d12a41e72e644f017b6f0e2f7b44c6285f06dd5d2c5b075',
19
+ }
20
+ ]
21
+ end
22
+
23
+ def test_s_hexdigest
24
+ cases.each { |h|
25
+ assert_equal(h[:hexdigest], Digest::Tiger.hexdigest(h[:data]))
26
+ }
27
+ end
28
+ end
metadata CHANGED
@@ -1,7 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: digest-tiger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ hash: 21
5
+ prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 1
10
+ version: 1.0.1
5
11
  platform: ruby
6
12
  authors:
7
13
  - Akinori MUSHA
@@ -9,8 +15,7 @@ autorequire:
9
15
  bindir: bin
10
16
  cert_chain: []
11
17
 
12
- date: 2009-11-13 00:00:00 +09:00
13
- default_executable:
18
+ date: 2011-09-27 00:00:00 Z
14
19
  dependencies: []
15
20
 
16
21
  description: |
@@ -22,42 +27,52 @@ executables: []
22
27
 
23
28
  extensions:
24
29
  - ext/digest/tiger/extconf.rb
25
- extra_rdoc_files:
30
+ extra_rdoc_files: []
31
+
32
+ files:
33
+ - .document
34
+ - .gitignore
26
35
  - LICENSE
27
36
  - README.rdoc
28
- files:
37
+ - Rakefile
38
+ - VERSION
39
+ - digest-tiger.gemspec
29
40
  - ext/digest/tiger/depend
30
41
  - ext/digest/tiger/extconf.rb
31
42
  - ext/digest/tiger/tiger.c
32
43
  - ext/digest/tiger/tiger.h
33
44
  - ext/digest/tiger/tiger_init.c
34
- - LICENSE
35
- - README.rdoc
36
- has_rdoc: true
45
+ - test/test_digest-tiger.rb
37
46
  homepage: http://github.com/knu/ruby-digest-extra
38
47
  licenses: []
39
48
 
40
49
  post_install_message:
41
- rdoc_options:
42
- - --charset=UTF-8
50
+ rdoc_options: []
51
+
43
52
  require_paths:
44
53
  - lib
45
54
  required_ruby_version: !ruby/object:Gem::Requirement
55
+ none: false
46
56
  requirements:
47
57
  - - ">="
48
58
  - !ruby/object:Gem::Version
59
+ hash: 3
60
+ segments:
61
+ - 0
49
62
  version: "0"
50
- version:
51
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
+ none: false
52
65
  requirements:
53
66
  - - ">="
54
67
  - !ruby/object:Gem::Version
68
+ hash: 3
69
+ segments:
70
+ - 0
55
71
  version: "0"
56
- version:
57
72
  requirements: []
58
73
 
59
74
  rubyforge_project:
60
- rubygems_version: 1.3.5
75
+ rubygems_version: 1.8.8
61
76
  signing_key:
62
77
  specification_version: 3
63
78
  summary: A Digest module implementing the Tiger hashing algorithm