kryptonita 0.0.4 → 0.0.5

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: 680cd326fc8dd4b006c6e5c58f85c57e43a860b7
4
- data.tar.gz: b10fa40c8a3b0073bfa1b1c180a43065f6d4f468
3
+ metadata.gz: 3d26dcddb729eeca13faa50ecb96c434b6715dbe
4
+ data.tar.gz: 02a1fae49ac22b9b59d39302c443ce15e92611c9
5
5
  SHA512:
6
- metadata.gz: c6ca215da5c5a5eccf349fa505a64bbb6a449e431b50df7e3aa622151a866ac1ca187459a6c4b535fb9487128e0322a98ba8846292462421a0cf57617ec71e4c
7
- data.tar.gz: 7a5766dcfd8ea9cf92fbbeb4c3c142ea3f561aaea8d9f0ff0617c4d6478b83cdc5449d9bcb81ff037a901205c0c8bc38249242fc336ba4a5f5090f4d06fe5309
6
+ metadata.gz: ffd83b9cbacf9cad59e7333aa9c17e6d5abe7a832553f8950e47cbfe2cd49f48b43aed5ca15bf6bc2297cacaea5a68d5cb798c97a37ce57d17e51677ee1ed9e0
7
+ data.tar.gz: bfc2a6f72153743cee33e690a2baa3dfe81f2656c1b9de5fe02befe8434f0641199271b2b2383d63a85aabda120a13730fea1c068aaff3b7c7b6c35b259919bc
data/.gitignore CHANGED
@@ -9,7 +9,7 @@
9
9
  /tmp/
10
10
 
11
11
  *.so
12
- *.o
12
+
13
13
  *.a
14
14
  mkmf.log
15
15
 
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- ruby-2.1.5
1
+ ruby-2.0.0
data/Rakefile CHANGED
@@ -1,5 +1,10 @@
1
1
  require "bundler/gem_tasks"
2
2
  require "rspec/core/rake_task"
3
+ require 'rake/extensiontask'
4
+
5
+ Rake::ExtensionTask.new "whirlpool" do |ext|
6
+ ext.lib_dir = "lib/whirlpool"
7
+ end
3
8
 
4
9
  RSpec::Core::RakeTask.new(:spec)
5
10
 
@@ -1758,7 +1758,6 @@ print_string(VALUE class, VALUE valor) {
1758
1758
  int sizeo = i;
1759
1759
 
1760
1760
  NESSIEinit(&w);
1761
- //NESSIEadd((u8*)valor, 8*sizeo, &w);
1762
1761
  NESSIEadd((u8*)valor2, 8*sizeo, &w);
1763
1762
  NESSIEfinalize(&w, digest);
1764
1763
 
data/kryptonita.gemspec CHANGED
@@ -18,10 +18,12 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.platform = Gem::Platform::RUBY
21
22
  spec.extensions = %w[ext/whirlpool/extconf.rb]
22
23
 
23
- spec.required_ruby_version = "~> 2.1"
24
+ spec.required_ruby_version = ">= 2.0.0"
24
25
  spec.add_development_dependency "bundler", "~> 1.7"
25
26
  spec.add_development_dependency "rake", "~> 10.0"
26
27
  spec.add_development_dependency "rspec", "~> 3.1.0"
28
+ spec.add_development_dependency "rake-compiler"
27
29
  end
@@ -1,3 +1,3 @@
1
1
  module Kryptonita
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
Binary file
Binary file
metadata CHANGED
@@ -1,57 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kryptonita
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
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-11 00:00:00.000000000 Z
11
+ date: 2015-01-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.7'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ~>
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.7'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '10.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
47
  version: 3.1.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - "~>"
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
54
  version: 3.1.0
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake-compiler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  description: Kryptonita is a Ruby gem that provides a lot of functions for hashing,
56
70
  encrypt and decrypt.
57
71
  email:
@@ -61,24 +75,23 @@ extensions:
61
75
  - ext/whirlpool/extconf.rb
62
76
  extra_rdoc_files: []
63
77
  files:
64
- - ".gitignore"
65
- - ".rspec"
66
- - ".ruby-gemset"
67
- - ".ruby-version"
68
- - ".travis.yml"
78
+ - .gitignore
79
+ - .rspec
80
+ - .ruby-gemset
81
+ - .ruby-version
82
+ - .travis.yml
69
83
  - Gemfile
70
84
  - LICENSE.txt
71
85
  - README.md
72
86
  - Rakefile
73
- - ext/whirlpool/Makefile
74
87
  - ext/whirlpool/extconf.rb
75
88
  - ext/whirlpool/nessie.h
76
- - ext/whirlpool/whirlpool.bundle
77
89
  - ext/whirlpool/whirlpool.c
78
90
  - kryptonita.gemspec
79
91
  - lib/kryptonita.rb
80
92
  - lib/kryptonita/version.rb
81
93
  - lib/whirlpool/whirlpool.bundle
94
+ - lib/whirlpool/whirlpool.o
82
95
  - spec/kryptonita/hash_spec.rb
83
96
  - spec/spec_helper.rb
84
97
  homepage: https://github.com/AngoDev/kryptonita
@@ -91,12 +104,12 @@ require_paths:
91
104
  - lib
92
105
  required_ruby_version: !ruby/object:Gem::Requirement
93
106
  requirements:
94
- - - "~>"
107
+ - - '>='
95
108
  - !ruby/object:Gem::Version
96
- version: '2.1'
109
+ version: 2.0.0
97
110
  required_rubygems_version: !ruby/object:Gem::Requirement
98
111
  requirements:
99
- - - ">="
112
+ - - '>='
100
113
  - !ruby/object:Gem::Version
101
114
  version: '0'
102
115
  requirements: []
@@ -1,239 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- # V=0 quiet, V=1 verbose. other values don't work.
5
- V = 0
6
- Q1 = $(V:1=)
7
- Q = $(Q1:0=@)
8
- ECHO1 = $(V:1=@:)
9
- ECHO = $(ECHO1:0=@echo)
10
-
11
- #### Start of system configuration section. ####
12
-
13
- srcdir = .
14
- topdir = /Users/psantos/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0
15
- hdrdir = $(topdir)
16
- arch_hdrdir = /Users/psantos/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-darwin14.0
17
- PATH_SEPARATOR = :
18
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = $(DESTDIR)/Users/psantos/.rvm/rubies/ruby-2.1.5
20
- rubysitearchprefix = $(rubylibprefix)/$(sitearch)
21
- rubyarchprefix = $(rubylibprefix)/$(arch)
22
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
23
- exec_prefix = $(prefix)
24
- vendorarchhdrdir = $(vendorhdrdir)/$(sitearch)
25
- sitearchhdrdir = $(sitehdrdir)/$(sitearch)
26
- rubyarchhdrdir = $(rubyhdrdir)/$(arch)
27
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
28
- sitehdrdir = $(rubyhdrdir)/site_ruby
29
- rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
30
- vendorarchdir = $(vendorlibdir)/$(sitearch)
31
- vendorlibdir = $(vendordir)/$(ruby_version)
32
- vendordir = $(rubylibprefix)/vendor_ruby
33
- sitearchdir = $(sitelibdir)/$(sitearch)
34
- sitelibdir = $(sitedir)/$(ruby_version)
35
- sitedir = $(rubylibprefix)/site_ruby
36
- rubyarchdir = $(rubylibdir)/$(arch)
37
- rubylibdir = $(rubylibprefix)/$(ruby_version)
38
- sitearchincludedir = $(includedir)/$(sitearch)
39
- archincludedir = $(includedir)/$(arch)
40
- sitearchlibdir = $(libdir)/$(sitearch)
41
- archlibdir = $(libdir)/$(arch)
42
- ridir = $(datarootdir)/$(RI_BASE_NAME)
43
- mandir = $(datarootdir)/man
44
- localedir = $(datarootdir)/locale
45
- libdir = $(exec_prefix)/lib
46
- psdir = $(docdir)
47
- pdfdir = $(docdir)
48
- dvidir = $(docdir)
49
- htmldir = $(docdir)
50
- infodir = $(datarootdir)/info
51
- docdir = $(datarootdir)/doc/$(PACKAGE)
52
- oldincludedir = $(DESTDIR)/usr/include
53
- includedir = $(prefix)/include
54
- localstatedir = $(prefix)/var
55
- sharedstatedir = $(prefix)/com
56
- sysconfdir = $(prefix)/etc
57
- datadir = $(datarootdir)
58
- datarootdir = $(prefix)/share
59
- libexecdir = $(exec_prefix)/libexec
60
- sbindir = $(exec_prefix)/sbin
61
- bindir = $(exec_prefix)/bin
62
- archdir = $(rubyarchdir)
63
-
64
-
65
- CC = gcc
66
- CXX = g++
67
- LIBRUBY = $(LIBRUBY_SO)
68
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
69
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
70
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation
71
- empty =
72
- OUTFLAG = -o $(empty)
73
- COUTFLAG = -o $(empty)
74
-
75
- RUBY_EXTCONF_H =
76
- cflags = $(optflags) $(debugflags) $(warnflags)
77
- optflags = -O3 -fno-fast-math
78
- debugflags = -ggdb3
79
- warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wunused-variable -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -Wdivision-by-zero -Wextra-tokens
80
- CCDLFLAGS = -fno-common
81
- CFLAGS = $(CCDLFLAGS) $(cflags) -fno-common -pipe $(ARCH_FLAG)
82
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
83
- DEFS =
84
- CPPFLAGS = -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT $(DEFS) $(cppflags)
85
- CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
86
- ldflags = -L. -fstack-protector -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib
87
- dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib
88
- ARCH_FLAG =
89
- DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
90
- LDSHARED = $(CC) -dynamic -bundle
91
- LDSHAREDXX = $(CXX) -dynamic -bundle
92
- AR = ar
93
- EXEEXT =
94
-
95
- RUBY_INSTALL_NAME = ruby
96
- RUBY_SO_NAME = ruby.2.1.0
97
- RUBYW_INSTALL_NAME =
98
- RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
99
- RUBYW_BASE_NAME = rubyw
100
- RUBY_BASE_NAME = ruby
101
-
102
- arch = x86_64-darwin14.0
103
- sitearch = $(arch)
104
- ruby_version = 2.1.0
105
- ruby = $(bindir)/ruby
106
- RUBY = $(ruby)
107
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/defines.h $(hdrdir)/ruby/missing.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/subst.h $(arch_hdrdir)/ruby/config.h
108
-
109
- RM = rm -f
110
- RM_RF = $(RUBY) -run -e rm -- -rf
111
- RMDIRS = rmdir -p
112
- MAKEDIRS = mkdir -p
113
- INSTALL = /usr/bin/install -c
114
- INSTALL_PROG = $(INSTALL) -m 0755
115
- INSTALL_DATA = $(INSTALL) -m 644
116
- COPY = cp
117
- TOUCH = exit >
118
-
119
- #### End of system configuration section. ####
120
-
121
- preload =
122
-
123
- libpath = . $(libdir) /usr/local/opt/libyaml/lib /usr/local/opt/readline/lib /usr/local/opt/libksba/lib /usr/local/opt/openssl/lib
124
- LIBPATH = -L. -L$(libdir) -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib
125
- DEFFILE =
126
-
127
- CLEANFILES = mkmf.log
128
- DISTCLEANFILES =
129
- DISTCLEANDIRS =
130
-
131
- extout =
132
- extout_prefix =
133
- target_prefix =
134
- LOCAL_LIBS =
135
- LIBS = $(LIBRUBYARG_SHARED) -lpthread -ldl -lobjc
136
- ORIG_SRCS = whirlpool.c
137
- SRCS = $(ORIG_SRCS)
138
- OBJS = whirlpool.o
139
- HDRS = $(srcdir)/nessie.h
140
- TARGET = whirlpool
141
- TARGET_NAME = whirlpool
142
- TARGET_ENTRY = Init_$(TARGET_NAME)
143
- DLLIB = $(TARGET).bundle
144
- EXTSTATIC =
145
- STATIC_LIB =
146
-
147
- TIMESTAMP_DIR = .
148
- BINDIR = $(bindir)
149
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
150
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
151
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
152
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
153
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
154
-
155
- TARGET_SO = $(DLLIB)
156
- CLEANLIBS = $(TARGET).bundle
157
- CLEANOBJS = *.o *.bak
158
-
159
- all: $(DLLIB)
160
- static: $(STATIC_LIB)
161
- .PHONY: all install static install-so install-rb
162
- .PHONY: clean clean-so clean-static clean-rb
163
-
164
- clean-static::
165
- clean-rb-default::
166
- clean-rb::
167
- clean-so::
168
- clean: clean-so clean-static clean-rb-default clean-rb
169
- -$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
170
-
171
- distclean-rb-default::
172
- distclean-rb::
173
- distclean-so::
174
- distclean-static::
175
- distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
176
- -$(Q)$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
177
- -$(Q)$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
178
- -$(Q)$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
179
-
180
- realclean: distclean
181
- install: install-so install-rb
182
-
183
- install-so: $(DLLIB) $(TIMESTAMP_DIR)/.RUBYARCHDIR.time
184
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
185
- clean-static::
186
- -$(Q)$(RM) $(STATIC_LIB)
187
- install-rb: pre-install-rb install-rb-default
188
- install-rb-default: pre-install-rb-default
189
- pre-install-rb: Makefile
190
- pre-install-rb-default: Makefile
191
- pre-install-rb-default:
192
- $(ECHO) installing default whirlpool libraries
193
- $(TIMESTAMP_DIR)/.RUBYARCHDIR.time:
194
- $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
195
- $(Q) $(TOUCH) $@
196
-
197
- site-install: site-install-so site-install-rb
198
- site-install-so: install-so
199
- site-install-rb: install-rb
200
-
201
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
202
-
203
- .cc.o:
204
- $(ECHO) compiling $(<)
205
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
206
-
207
- .mm.o:
208
- $(ECHO) compiling $(<)
209
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
210
-
211
- .cxx.o:
212
- $(ECHO) compiling $(<)
213
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
214
-
215
- .cpp.o:
216
- $(ECHO) compiling $(<)
217
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
218
-
219
- .C.o:
220
- $(ECHO) compiling $(<)
221
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
222
-
223
- .c.o:
224
- $(ECHO) compiling $(<)
225
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
226
-
227
- .m.o:
228
- $(ECHO) compiling $(<)
229
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
230
-
231
- $(DLLIB): $(OBJS) Makefile
232
- $(ECHO) linking shared-object $(DLLIB)
233
- -$(Q)$(RM) $(@)
234
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
235
- $(Q) $(POSTLINK)
236
-
237
-
238
-
239
- $(OBJS): $(HDRS) $(ruby_headers)
Binary file