kryptonita 0.0.6 → 0.0.7

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: 2b63c6008621170d0780774c3254a8ab6cc5f7cd
4
- data.tar.gz: 512bd1d1b316dd5e96863b1600b373af4a738882
3
+ metadata.gz: d445db8bccb99bcd8a46559f5302673957938366
4
+ data.tar.gz: 2215768c05d7d1beff2d346b6cf2b62510742a29
5
5
  SHA512:
6
- metadata.gz: 0bc6dbfe9d14bf411dab4bf72478875eca84ed5e4e6b6c3c4b3bca06e876dc0cb3d842448c4699932d75a81da15c53a86ea223a7256ca12acab8060e0d0c432d
7
- data.tar.gz: 973b0747d89f1d0f2e653112308e9a4abd5ca494f5b8acc5666c16478c313e72a6b6ae22d2a33ec071df36d75179945bde9a70ecc8121854319250b8128682da
6
+ metadata.gz: ad75217222774e2cc706c31455d691166dad892a56402e557b99ed0292a2da8e1f4e434eadf2af7108fb1eda11425133a4123b7cffc01cf36b57768fa9251aa6
7
+ data.tar.gz: 5f142ba409c1cecb05150bf254f6cdfd2010363ecc2f60344b02742800348d97c0280b8c260ba2110e3289f6519004ce26b79335885383f4b83012d4b3b65f98
data/.gitignore CHANGED
@@ -7,9 +7,9 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
-
10
+ *.bundle
11
11
  *.so
12
-
12
+ *.o
13
13
  *.a
14
14
  mkmf.log
15
15
 
@@ -2,7 +2,7 @@ language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
4
 
5
- script: 'bundle exec rake spec'
5
+ script: 'CODECLIMATE_REPO_TOKEN=5fe43105cb9861b4b478597b3a03666eeec71eeffc39bd64cab3552e2c36c238 bundle exec rake'
6
6
 
7
7
  notifications:
8
8
  email:
data/Gemfile CHANGED
@@ -2,3 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in kryptonita.gemspec
4
4
  gemspec
5
+
6
+ gem "codeclimate-test-reporter", group: :test, require: nil
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Kryptonita [![Gem Version](https://badge.fury.io/rb/kryptonita.svg)](http://badge.fury.io/rb/kryptonita) [![Code Climate](https://codeclimate.com/github/AngoDev/kryptonita/badges/gpa.svg)](https://codeclimate.com/github/AngoDev/kryptonita) [![Build Status](https://travis-ci.org/AngoDev/kryptonita.svg)](https://travis-ci.org/AngoDev/kryptonita)
1
+ # Kryptonita [![Gem Version](https://badge.fury.io/rb/kryptonita.svg)](http://badge.fury.io/rb/kryptonita) [![Code Climate](https://codeclimate.com/github/AngoDev/kryptonita/badges/gpa.svg)](https://codeclimate.com/github/AngoDev/kryptonita) [![Test Coverage](https://codeclimate.com/github/psantos10/Validation/badges/coverage.svg)](https://codeclimate.com/github/psantos10/Validation) [![Build Status](https://travis-ci.org/AngoDev/kryptonita.svg)](https://travis-ci.org/AngoDev/kryptonita)
2
2
 
3
3
  Kryptonita is a Ruby gem that provides a lot of functions for hashing, encrypt and decrypt
4
4
 
data/Rakefile CHANGED
@@ -6,7 +6,7 @@ RSpec::Core::RakeTask.new(:spec)
6
6
 
7
7
  gemspec = Gem::Specification::load(File.expand_path('../kryptonita.gemspec', __FILE__))
8
8
 
9
- #task :build => [:clean, :compile]
9
+ task :build => [:clean, :compile]
10
10
 
11
11
  task default: [:build, :spec]
12
12
 
@@ -1,7 +1,15 @@
1
1
  require "kryptonita/version"
2
- require "whirlpool/whirlpool"
2
+ #require "./whirlpool/whirlpool"
3
3
  require "digest/sha2"
4
4
 
5
+ # Support multiple ruby versions, fat binaries under Windows.
6
+ begin
7
+ RUBY_VERSION =~ /(\d+.\d+)/
8
+ require "whirlpool/#{$1}/whirlpool"
9
+ rescue LoadError
10
+ require 'whirlpool/whirlpool'
11
+ end
12
+
5
13
  module Kryptonita
6
14
  class Hash
7
15
 
@@ -1,3 +1,3 @@
1
1
  module Kryptonita
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1,3 +1,6 @@
1
+ require "codeclimate-test-reporter"
2
+ CodeClimate::TestReporter.start
3
+
1
4
  require "kryptonita"
2
5
 
3
6
  # This file was generated by the `rspec --init` command. Conventionally, all
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kryptonita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrício dos Santos
@@ -90,8 +90,6 @@ files:
90
90
  - kryptonita.gemspec
91
91
  - lib/kryptonita.rb
92
92
  - lib/kryptonita/version.rb
93
- - lib/whirlpool/whirlpool.bundle
94
- - lib/whirlpool/whirlpool.o
95
93
  - spec/kryptonita/hash_spec.rb
96
94
  - spec/spec_helper.rb
97
95
  homepage: https://github.com/AngoDev/kryptonita
Binary file