kryptonita 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d445db8bccb99bcd8a46559f5302673957938366
4
- data.tar.gz: 2215768c05d7d1beff2d346b6cf2b62510742a29
3
+ metadata.gz: 4a422b0c719217d808a03db0999df77ead10e62b
4
+ data.tar.gz: 60676305f2cf1428599a7a36f5a6fa51ffa11d8c
5
5
  SHA512:
6
- metadata.gz: ad75217222774e2cc706c31455d691166dad892a56402e557b99ed0292a2da8e1f4e434eadf2af7108fb1eda11425133a4123b7cffc01cf36b57768fa9251aa6
7
- data.tar.gz: 5f142ba409c1cecb05150bf254f6cdfd2010363ecc2f60344b02742800348d97c0280b8c260ba2110e3289f6519004ce26b79335885383f4b83012d4b3b65f98
6
+ metadata.gz: 91e3d6bdefff60954c3648b86063045d7ecb2ab84afe074d2dcb05dcc1d0445dccaaff133b038f5dfb515655f431fbda6062580a3c3c1587b03604a2ca357d84
7
+ data.tar.gz: eac79d9d2bd10aaafc9774192efd0a2b0dc4c64873e090393bef85f9cb277725626f13ea2e0752e5c060b7ecf7239fa6a42d15ed589216fb7f7de7beb72e725b
@@ -1,5 +1,14 @@
1
+ ENV['RC_ARCHS'] = '' if RUBY_PLATFORM =~ /darwin/
2
+
1
3
  require "mkmf"
2
4
 
3
- dir_config('whirlpool')
5
+ RbConfig::MAKEFILE_CONFIG['CC'] = ENV['CC'] if ENV['CC']
6
+
7
+ dir_config("whirlpool")
8
+
9
+ if RbConfig::CONFIG["host_os"] =~ /mswin/
10
+ $CFLAGS << ' -W3'
11
+ end
4
12
 
5
- create_makefile "whirlpool"
13
+ #create_makefile "whirlpool"
14
+ create_makefile "whirlpool/whirlpool"
@@ -1754,16 +1754,16 @@ print_string(VALUE class, VALUE valor) {
1754
1754
  char* valor2 = RSTRING_PTR(valor);
1755
1755
 
1756
1756
  int i;
1757
+ int sizeo;
1758
+
1757
1759
  for (i = 0; valor2[i] != '\0'; i++);
1758
- int sizeo = i;
1760
+ sizeo = i;
1759
1761
 
1760
1762
  NESSIEinit(&w);
1761
1763
  NESSIEadd((u8*)valor2, 8*sizeo, &w);
1762
1764
  NESSIEfinalize(&w, digest);
1763
1765
 
1764
1766
  info = rb_str_new_cstr(displayHash(digest, DIGESTBYTES));
1765
- //info = rb_str_new2(displayHash(digest, DIGESTBYTES));
1766
- //info = rb_str_new_cstr(valor2);
1767
1767
 
1768
1768
  return info;
1769
1769
  }
@@ -1,3 +1,3 @@
1
1
  module Kryptonita
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
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.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrício dos Santos