kryptonita 0.0.3 → 0.0.4

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: 84c1b53fbd1f95ac91126ac41410b80a9d2f9b59
4
- data.tar.gz: 189e82657b8f2d6c65356b22aed9977e0887e9b6
3
+ metadata.gz: 680cd326fc8dd4b006c6e5c58f85c57e43a860b7
4
+ data.tar.gz: b10fa40c8a3b0073bfa1b1c180a43065f6d4f468
5
5
  SHA512:
6
- metadata.gz: 4e3ede1950406cdac34a7a0396b93a32ecdce355e87e1b68f8db9425c3852866c72717b6e351b1561251620d3253f55ec30e7017499d3f6bf5c9240712ab8ae0
7
- data.tar.gz: 9f48fd4b057cd8ed56ccd9cf43c1ccaa8c7301a123acec360c00349d97d95ebdf12dd28c5ef9a00b522f09bf36dfe6a6edd7be48c0a7ab0886b004c188d4282a
6
+ metadata.gz: c6ca215da5c5a5eccf349fa505a64bbb6a449e431b50df7e3aa622151a866ac1ca187459a6c4b535fb9487128e0322a98ba8846292462421a0cf57617ec71e4c
7
+ data.tar.gz: 7a5766dcfd8ea9cf92fbbeb4c3c142ea3f561aaea8d9f0ff0617c4d6478b83cdc5449d9bcb81ff037a901205c0c8bc38249242fc336ba4a5f5090f4d06fe5309
@@ -1 +1 @@
1
- ruby-2.0.0-p598
1
+ ruby-2.1.5
@@ -1,3 +1,12 @@
1
1
  language: ruby
2
2
  rvm:
3
3
  - 2.0.0
4
+
5
+ script: 'bundle exec rake spec'
6
+
7
+ notifications:
8
+ email:
9
+ recipients:
10
+ - ps@patriciodossantos.net
11
+ on_failure: change
12
+ on_success: never
data/README.md CHANGED
@@ -25,7 +25,9 @@ Or install it yourself as:
25
25
  ## Usage
26
26
 
27
27
  ```ruby
28
- Kryptonita::Hash.whirlpool("ruby")
28
+ require 'kryptonita'
29
+
30
+ puts Kryptonita::Hash.whirlpool("ruby")
29
31
  # => "95fc6a05b1edd849a202d9cdb1158930cf1e101900357a8816b743520710be2487c890c3bfb2b70f2308f7e8737473a477bb44950516c23e53a2993091faa9d2"
30
32
  ```
31
33
 
@@ -11,12 +11,12 @@ ECHO = $(ECHO1:0=@echo)
11
11
  #### Start of system configuration section. ####
12
12
 
13
13
  srcdir = .
14
- topdir = /Users/psantos/.rvm/rubies/ruby-2.0.0-p598/include/ruby-2.0.0
14
+ topdir = /Users/psantos/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0
15
15
  hdrdir = $(topdir)
16
- arch_hdrdir = /Users/psantos/.rvm/rubies/ruby-2.0.0-p598/include/ruby-2.0.0/x86_64-darwin14.0.0
16
+ arch_hdrdir = /Users/psantos/.rvm/rubies/ruby-2.1.5/include/ruby-2.1.0/x86_64-darwin14.0
17
17
  PATH_SEPARATOR = :
18
18
  VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = /Users/psantos/.rvm/rubies/ruby-2.0.0-p598
19
+ prefix = $(DESTDIR)/Users/psantos/.rvm/rubies/ruby-2.1.5
20
20
  rubysitearchprefix = $(rubylibprefix)/$(sitearch)
21
21
  rubyarchprefix = $(rubylibprefix)/$(arch)
22
22
  rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
@@ -49,7 +49,7 @@ dvidir = $(docdir)
49
49
  htmldir = $(docdir)
50
50
  infodir = $(datarootdir)/info
51
51
  docdir = $(datarootdir)/doc/$(PACKAGE)
52
- oldincludedir = /usr/include
52
+ oldincludedir = $(DESTDIR)/usr/include
53
53
  includedir = $(prefix)/include
54
54
  localstatedir = $(prefix)/var
55
55
  sharedstatedir = $(prefix)/com
@@ -62,12 +62,12 @@ bindir = $(exec_prefix)/bin
62
62
  archdir = $(rubyarchdir)
63
63
 
64
64
 
65
- CC = /usr/bin/clang
66
- CXX = clang++
65
+ CC = gcc
66
+ CXX = g++
67
67
  LIBRUBY = $(LIBRUBY_SO)
68
68
  LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
69
69
  LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
70
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
70
+ LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static -framework CoreFoundation
71
71
  empty =
72
72
  OUTFLAG = -o $(empty)
73
73
  COUTFLAG = -o $(empty)
@@ -76,12 +76,12 @@ RUBY_EXTCONF_H =
76
76
  cflags = $(optflags) $(debugflags) $(warnflags)
77
77
  optflags = -O3 -fno-fast-math
78
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
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
80
  CCDLFLAGS = -fno-common
81
81
  CFLAGS = $(CCDLFLAGS) $(cflags) -fno-common -pipe $(ARCH_FLAG)
82
82
  INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
83
83
  DEFS =
84
- CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -D_DARWIN_UNLIMITED_SELECT -D_REENTRANT -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include $(DEFS) $(cppflags)
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
85
  CXXFLAGS = $(CCDLFLAGS) $(cxxflags) $(ARCH_FLAG)
86
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
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
@@ -93,18 +93,18 @@ AR = ar
93
93
  EXEEXT =
94
94
 
95
95
  RUBY_INSTALL_NAME = ruby
96
- RUBY_SO_NAME = ruby.2.0.0
96
+ RUBY_SO_NAME = ruby.2.1.0
97
97
  RUBYW_INSTALL_NAME =
98
98
  RUBY_VERSION_NAME = $(RUBY_BASE_NAME)-$(ruby_version)
99
99
  RUBYW_BASE_NAME = rubyw
100
100
  RUBY_BASE_NAME = ruby
101
101
 
102
- arch = x86_64-darwin14.0.0
102
+ arch = x86_64-darwin14.0
103
103
  sitearch = $(arch)
104
- ruby_version = 2.0.0
104
+ ruby_version = 2.1.0
105
105
  ruby = $(bindir)/ruby
106
106
  RUBY = $(ruby)
107
- ruby_headers = $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
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
108
 
109
109
  RM = rm -f
110
110
  RM_RF = $(RUBY) -run -e rm -- -rf
@@ -144,12 +144,13 @@ DLLIB = $(TARGET).bundle
144
144
  EXTSTATIC =
145
145
  STATIC_LIB =
146
146
 
147
- BINDIR = $(DESTDIR)$(bindir)
148
- RUBYCOMMONDIR = $(DESTDIR)$(sitedir)$(target_prefix)
149
- RUBYLIBDIR = $(DESTDIR)$(sitelibdir)$(target_prefix)
150
- RUBYARCHDIR = $(DESTDIR)$(sitearchdir)$(target_prefix)
151
- HDRDIR = $(DESTDIR)$(rubyhdrdir)/ruby$(target_prefix)
152
- ARCHHDRDIR = $(DESTDIR)$(rubyhdrdir)/$(arch)/ruby$(target_prefix)
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)
153
154
 
154
155
  TARGET_SO = $(DLLIB)
155
156
  CLEANLIBS = $(TARGET).bundle
@@ -179,7 +180,7 @@ distclean: clean distclean-so distclean-static distclean-rb-default distclean-rb
179
180
  realclean: distclean
180
181
  install: install-so install-rb
181
182
 
182
- install-so: $(DLLIB) ./.RUBYARCHDIR.time
183
+ install-so: $(DLLIB) $(TIMESTAMP_DIR)/.RUBYARCHDIR.time
183
184
  $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
184
185
  clean-static::
185
186
  -$(Q)$(RM) $(STATIC_LIB)
@@ -189,8 +190,8 @@ pre-install-rb: Makefile
189
190
  pre-install-rb-default: Makefile
190
191
  pre-install-rb-default:
191
192
  $(ECHO) installing default whirlpool libraries
192
- ./.RUBYARCHDIR.time:
193
- $(Q) $(MAKEDIRS) $(RUBYARCHDIR)
193
+ $(TIMESTAMP_DIR)/.RUBYARCHDIR.time:
194
+ $(Q) $(MAKEDIRS) $(@D) $(RUBYARCHDIR)
194
195
  $(Q) $(TOUCH) $@
195
196
 
196
197
  site-install: site-install-so site-install-rb
@@ -231,7 +232,7 @@ $(DLLIB): $(OBJS) Makefile
231
232
  $(ECHO) linking shared-object $(DLLIB)
232
233
  -$(Q)$(RM) $(@)
233
234
  $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
234
- $(Q) test -z '$(RUBY_CODESIGN)' || codesign -s '$(RUBY_CODESIGN)' -f $@
235
+ $(Q) $(POSTLINK)
235
236
 
236
237
 
237
238
 
@@ -20,7 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.extensions = %w[ext/whirlpool/extconf.rb]
22
22
 
23
- spec.required_ruby_version = ">= 2.0.0"
23
+ spec.required_ruby_version = "~> 2.1"
24
24
  spec.add_development_dependency "bundler", "~> 1.7"
25
25
  spec.add_development_dependency "rake", "~> 10.0"
26
26
  spec.add_development_dependency "rspec", "~> 3.1.0"
@@ -1,3 +1,3 @@
1
1
  module Kryptonita
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
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.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrício dos Santos
@@ -14,42 +14,42 @@ dependencies:
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
55
  description: Kryptonita is a Ruby gem that provides a lot of functions for hashing,
@@ -61,20 +61,20 @@ extensions:
61
61
  - ext/whirlpool/extconf.rb
62
62
  extra_rdoc_files: []
63
63
  files:
64
- - .gitignore
65
- - .rspec
66
- - .ruby-gemset
67
- - .ruby-version
68
- - .travis.yml
64
+ - ".gitignore"
65
+ - ".rspec"
66
+ - ".ruby-gemset"
67
+ - ".ruby-version"
68
+ - ".travis.yml"
69
69
  - Gemfile
70
70
  - LICENSE.txt
71
71
  - README.md
72
72
  - Rakefile
73
73
  - ext/whirlpool/Makefile
74
- - ext/whirlpool/Whirlpool.c
75
74
  - ext/whirlpool/extconf.rb
76
75
  - ext/whirlpool/nessie.h
77
76
  - ext/whirlpool/whirlpool.bundle
77
+ - ext/whirlpool/whirlpool.c
78
78
  - kryptonita.gemspec
79
79
  - lib/kryptonita.rb
80
80
  - lib/kryptonita/version.rb
@@ -91,12 +91,12 @@ require_paths:
91
91
  - lib
92
92
  required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: 2.0.0
96
+ version: '2.1'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
- - - '>='
99
+ - - ">="
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []