digest-tiger 1.0.1 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 199fa1a7d0826d9ff8718e19ade7c714a7a4a30a
4
+ data.tar.gz: 9d1814e2b128fc989fbc7f02a05079d06d11e66d
5
+ SHA512:
6
+ metadata.gz: 834668678052f4adf67f7a8e081e209beb093d0b6fc7bfd7a77d9e81ddcbb20daae4c7c2efbe770e710f42db942c3de87e4115cb52170c5e8216de9deaa35d78
7
+ data.tar.gz: 703b988e219a250526a36e3b0346625dc271c4402b2b9fe1068f6f4ccaf034f75648d50c6ed34ae5e602c146765c7ccb7ea00a2565f92db2de6025ef08dd0a68
data/.gitignore CHANGED
@@ -1,21 +1,18 @@
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
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
17
9
  coverage
18
- rdoc
10
+ doc/
11
+ lib/bundler/man
12
+ lib/**/*.so
19
13
  pkg
20
-
21
- ## PROJECT::SPECIFIC
14
+ rdoc
15
+ spec/reports
16
+ test/tmp
17
+ test/version_tmp
18
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in digest-tiger.gemspec
4
+ gemspec
data/LICENSE CHANGED
@@ -15,4 +15,4 @@ For the rest:
15
15
 
16
16
  You can redistribute and/or modify it under the same terms as Ruby.
17
17
 
18
- Copyright (c) 2006, 2009 Akinori MUSHA <knu@iDaemons.org>
18
+ Copyright (c) 2006, 2009, 2013 Akinori MUSHA <knu@iDaemons.org>
@@ -3,7 +3,7 @@
3
3
  == Summary
4
4
 
5
5
  Digest::Tiger is a Ruby library for calculating message digests using
6
- the Tiger algorithm. The library interface corforms to the standard
6
+ the Tiger algorithm. The library interface conforms to the standard
7
7
  Digest API.
8
8
 
9
9
  More information about Tiger:
data/Rakefile CHANGED
@@ -1,56 +1,26 @@
1
- require 'rubygems'
2
- require 'rake'
1
+ require 'bundler/gem_tasks'
3
2
 
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
3
+ gemspec = Bundler::GemHelper.gemspec
23
4
 
24
5
  require 'rake/testtask'
25
6
  Rake::TestTask.new(:test) do |test|
26
- test.libs << 'lib' << 'test'
27
- test.pattern = 'test/**/test_*.rb'
7
+ test.libs << 'test'
8
+ test.test_files = gemspec.test_files
28
9
  test.verbose = true
29
10
  end
30
11
 
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
12
+ require 'rake/extensiontask'
13
+ Rake::ExtensionTask.new('tiger', gemspec) do |ext|
14
+ ext.ext_dir = 'ext/digest/tiger'
15
+ ext.lib_dir = 'lib/digest'
42
16
  end
43
17
 
44
- task :test => :check_dependencies
45
-
46
- task :default => :test
47
-
48
- require 'rake/rdoctask'
18
+ require 'rdoc/task'
49
19
  Rake::RDocTask.new do |rdoc|
50
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
51
-
52
20
  rdoc.rdoc_dir = 'rdoc'
53
- rdoc.title = "digest-tiger #{version}"
54
- rdoc.rdoc_files.include('README*')
21
+ rdoc.title = "#{gemspec.name} #{gemspec.version}"
22
+ rdoc.rdoc_files.include(gemspec.extra_rdoc_files)
55
23
  rdoc.rdoc_files.include('lib/**/*.rb')
56
24
  end
25
+
26
+ task :default => :test
@@ -1,47 +1,30 @@
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 -*-
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'digest/tiger/version'
5
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.
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "digest-tiger"
8
+ spec.version = Digest::Tiger::VERSION
9
+ spec.authors = ["Akinori MUSHA"]
10
+ spec.email = ["knu@idaemons.org"]
11
+ spec.description = %q{This is a Digest module implementing the Tiger hashing algorithm.
14
12
  The size of a Tiger hash value is 192 bits.
15
13
  }
16
- s.email = %q{knu@idaemons.org}
17
- s.extensions = [%q{ext/digest/tiger/extconf.rb}]
18
- s.files = [
19
- ".document",
20
- ".gitignore",
14
+ spec.summary = %q{A Digest module implementing the Tiger hashing algorithm}
15
+ spec.homepage = "https://github.com/knu/ruby-digest-extra"
16
+ spec.license = "BSD"
17
+
18
+ spec.files = `git ls-files`.split($/)
19
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
20
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
21
+ spec.extensions = ["ext/digest/tiger/extconf.rb"]
22
+
23
+ spec.extra_rdoc_files = [
21
24
  "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"
25
+ "README.rdoc"
32
26
  ]
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
27
 
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
28
+ spec.add_development_dependency "bundler", "~> 1.3"
29
+ spec.add_development_dependency "rake"
46
30
  end
47
-
@@ -3,6 +3,8 @@ require 'mkmf'
3
3
  $defs << "-DHAVE_CONFIG_H"
4
4
  $INCFLAGS << " -I$(srcdir)/.. -I$(hdrdir)/ruby"
5
5
 
6
+ have_header('ruby/digest.h')
7
+
6
8
  $preload = %w[digest]
7
9
 
8
10
  create_makefile('digest/tiger')
@@ -2,11 +2,15 @@
2
2
 
3
3
  tiger_init.c - provides Digest::Tiger class
4
4
 
5
- Copyright (C) 2006 Akinori MUSHA
5
+ Copyright (C) 2006-2013 Akinori MUSHA
6
6
 
7
7
  ************************************************/
8
8
 
9
+ #ifdef HAVE_RUBY_DIGEST_H
10
+ #include "ruby/digest.h"
11
+ #else
9
12
  #include "digest.h"
13
+ #endif
10
14
  #include "tiger.h"
11
15
 
12
16
  static rb_digest_metadata_t tiger = {
@@ -0,0 +1,2 @@
1
+ require 'digest/tiger.so'
2
+ require 'digest/tiger/version'
@@ -0,0 +1,5 @@
1
+ module Digest
2
+ class Tiger
3
+ VERSION = "1.0.2"
4
+ end
5
+ end
metadata CHANGED
@@ -1,80 +1,93 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: digest-tiger
3
- version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 1
10
- version: 1.0.1
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.2
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - Akinori MUSHA
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2011-09-27 00:00:00 Z
19
- dependencies: []
20
-
11
+ date: 2013-05-21 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: '1.3'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: '1.3'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
21
41
  description: |
22
42
  This is a Digest module implementing the Tiger hashing algorithm.
23
43
  The size of a Tiger hash value is 192 bits.
24
-
25
- email: knu@idaemons.org
44
+ email:
45
+ - knu@idaemons.org
26
46
  executables: []
27
-
28
- extensions:
47
+ extensions:
29
48
  - ext/digest/tiger/extconf.rb
30
- extra_rdoc_files: []
31
-
32
- files:
49
+ extra_rdoc_files:
50
+ - LICENSE
51
+ - README.rdoc
52
+ files:
33
53
  - .document
34
54
  - .gitignore
55
+ - Gemfile
35
56
  - LICENSE
36
57
  - README.rdoc
37
58
  - Rakefile
38
- - VERSION
39
59
  - digest-tiger.gemspec
40
60
  - ext/digest/tiger/depend
41
61
  - ext/digest/tiger/extconf.rb
42
62
  - ext/digest/tiger/tiger.c
43
63
  - ext/digest/tiger/tiger.h
44
64
  - ext/digest/tiger/tiger_init.c
65
+ - lib/digest/tiger.rb
66
+ - lib/digest/tiger/version.rb
45
67
  - test/test_digest-tiger.rb
46
- homepage: http://github.com/knu/ruby-digest-extra
47
- licenses: []
48
-
68
+ homepage: https://github.com/knu/ruby-digest-extra
69
+ licenses:
70
+ - BSD
71
+ metadata: {}
49
72
  post_install_message:
50
73
  rdoc_options: []
51
-
52
- require_paths:
74
+ require_paths:
53
75
  - lib
54
- required_ruby_version: !ruby/object:Gem::Requirement
55
- none: false
56
- requirements:
57
- - - ">="
58
- - !ruby/object:Gem::Version
59
- hash: 3
60
- segments:
61
- - 0
62
- version: "0"
63
- required_rubygems_version: !ruby/object:Gem::Requirement
64
- none: false
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- hash: 3
69
- segments:
70
- - 0
71
- version: "0"
76
+ required_ruby_version: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - '>='
79
+ - !ruby/object:Gem::Version
80
+ version: '0'
81
+ required_rubygems_version: !ruby/object:Gem::Requirement
82
+ requirements:
83
+ - - '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
72
86
  requirements: []
73
-
74
87
  rubyforge_project:
75
- rubygems_version: 1.8.8
88
+ rubygems_version: 2.0.3
76
89
  signing_key:
77
- specification_version: 3
90
+ specification_version: 4
78
91
  summary: A Digest module implementing the Tiger hashing algorithm
79
- test_files: []
80
-
92
+ test_files:
93
+ - test/test_digest-tiger.rb
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 1.0.1