kryptonita 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3d26dcddb729eeca13faa50ecb96c434b6715dbe
4
- data.tar.gz: 02a1fae49ac22b9b59d39302c443ce15e92611c9
3
+ metadata.gz: 2b63c6008621170d0780774c3254a8ab6cc5f7cd
4
+ data.tar.gz: 512bd1d1b316dd5e96863b1600b373af4a738882
5
5
  SHA512:
6
- metadata.gz: ffd83b9cbacf9cad59e7333aa9c17e6d5abe7a832553f8950e47cbfe2cd49f48b43aed5ca15bf6bc2297cacaea5a68d5cb798c97a37ce57d17e51677ee1ed9e0
7
- data.tar.gz: bfc2a6f72153743cee33e690a2baa3dfe81f2656c1b9de5fe02befe8434f0641199271b2b2383d63a85aabda120a13730fea1c068aaff3b7c7b6c35b259919bc
6
+ metadata.gz: 0bc6dbfe9d14bf411dab4bf72478875eca84ed5e4e6b6c3c4b3bca06e876dc0cb3d842448c4699932d75a81da15c53a86ea223a7256ca12acab8060e0d0c432d
7
+ data.tar.gz: 973b0747d89f1d0f2e653112308e9a4abd5ca494f5b8acc5666c16478c313e72a6b6ae22d2a33ec071df36d75179945bde9a70ecc8121854319250b8128682da
data/Rakefile CHANGED
@@ -2,14 +2,32 @@ require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
3
  require 'rake/extensiontask'
4
4
 
5
- Rake::ExtensionTask.new "whirlpool" do |ext|
6
- ext.lib_dir = "lib/whirlpool"
7
- end
8
-
9
5
  RSpec::Core::RakeTask.new(:spec)
10
6
 
11
- task default: :spec
7
+ gemspec = Gem::Specification::load(File.expand_path('../kryptonita.gemspec', __FILE__))
8
+
9
+ #task :build => [:clean, :compile]
10
+
11
+ task default: [:build, :spec]
12
12
 
13
13
  task :console do
14
14
  exec "irb -r kryptonita -I ./lib"
15
15
  end
16
+
17
+ Rake::ExtensionTask.new("whirlpool", gemspec) do |ext|
18
+ ext.lib_dir = "lib/whirlpool"
19
+ if RUBY_PLATFORM =~ /mswin|mingw/ then
20
+ # Define target for extension (Supporting fat binaries)
21
+ RUBY_VERSION =~ /(\d+\.\d+)/
22
+ ext.lib_dir = "lib/whirlpool/#{$1}"
23
+ else
24
+ ext.cross_compile = true
25
+ ext.cross_platform = []
26
+ ext.cross_config_options << "--disable-lookup"
27
+ config_opts = {}
28
+ platform_host_map = {
29
+ 'x86-mingw32' => 'i586-mingw32msvc',
30
+ 'x64-mingw32' => 'x86_64-w64-mingw32'
31
+ }
32
+ end
33
+ end
@@ -6,6 +6,7 @@ require 'kryptonita/version'
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "kryptonita"
8
8
  spec.version = Kryptonita::VERSION
9
+ spec.platform = Gem::Platform::RUBY
9
10
  spec.authors = ["Patrício dos Santos"]
10
11
  spec.email = ["ps@patriciodossantos.net"]
11
12
  spec.summary = %q{Kryptonita is a Ruby gem that provides a lot of functions for hashing, encrypt and decrypt}
@@ -18,7 +19,7 @@ Gem::Specification.new do |spec|
18
19
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
20
  spec.require_paths = ["lib"]
20
21
 
21
- spec.platform = Gem::Platform::RUBY
22
+ spec.require_paths = ['lib']
22
23
  spec.extensions = %w[ext/whirlpool/extconf.rb]
23
24
 
24
25
  spec.required_ruby_version = ">= 2.0.0"
@@ -1,3 +1,3 @@
1
1
  module Kryptonita
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kryptonita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrício dos Santos
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-13 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler