xmlsec 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,31 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ xmlsec (0.0.3)
5
+
6
+ GEM
7
+ remote: http://rubygems.org/
8
+ specs:
9
+ diff-lcs (1.1.3)
10
+ nokogiri (1.5.0)
11
+ rake (0.8.7)
12
+ rake-compiler (0.7.9)
13
+ rake
14
+ rspec (2.10.0)
15
+ rspec-core (~> 2.10.0)
16
+ rspec-expectations (~> 2.10.0)
17
+ rspec-mocks (~> 2.10.0)
18
+ rspec-core (2.10.1)
19
+ rspec-expectations (2.10.0)
20
+ diff-lcs (~> 1.1.3)
21
+ rspec-mocks (2.10.1)
22
+
23
+ PLATFORMS
24
+ ruby
25
+
26
+ DEPENDENCIES
27
+ nokogiri (= 1.5.0)
28
+ rake (= 0.8.7)
29
+ rake-compiler (~> 0.7.7)
30
+ rspec
31
+ xmlsec!
@@ -143,7 +143,7 @@ static VALUE rb_xmlsec_sign_file(VALUE self, VALUE template_file, VALUE key_file
143
143
 
144
144
  if ((doc == NULL) || (xmlDocGetRootElement(doc) == NULL)) {
145
145
  rb_raise(rb_eRuntimeError, "Error: unable to parse template file.");
146
- return;
146
+ return Qnil;
147
147
  }
148
148
 
149
149
  return xmlsec_sign(self, doc, key_file, password, x509_file, node_name );
@@ -160,7 +160,7 @@ static VALUE rb_xmlsec_sign(VALUE self, VALUE template, VALUE key_file, VALUE pa
160
160
  );
161
161
  if ((doc == NULL) || (xmlDocGetRootElement(doc) == NULL)){
162
162
  rb_raise(rb_eRuntimeError, "Error: unable to parse template.");
163
- return;
163
+ return Qnil;
164
164
  }
165
165
  return xmlsec_sign(self, doc, key_file, password, x509_file,node_name );
166
166
  }
@@ -171,4 +171,4 @@ void init_xmlsec_sign() {
171
171
  rb_define_singleton_method(mXmlSec, "sign_file", rb_xmlsec_sign_file, 5);
172
172
  rb_define_singleton_method(mXmlSec, "sign", rb_xmlsec_sign, 5);
173
173
 
174
- }
174
+ }
@@ -178,7 +178,7 @@ static VALUE rb_xmlsec_is_valid_file(VALUE self, VALUE template_file, VALUE key_
178
178
 
179
179
  if ((doc == NULL) || (xmlDocGetRootElement(doc) == NULL)) {
180
180
  rb_raise(rb_eRuntimeError, "Error: unable to parse template file.");
181
- return;
181
+ return Qnil;
182
182
  }
183
183
  if (! NIL_P(x509_file)) return xmlsec_is_valid_by_x509_file(self, doc, x509_file );
184
184
  if (! NIL_P(key_file)) return xmlsec_is_valid_by_key(self, doc, key_file);
@@ -196,7 +196,7 @@ static VALUE rb_xmlsec_is_valid(VALUE self, VALUE template, VALUE key_file, VALU
196
196
  );
197
197
  if ((doc == NULL) || (xmlDocGetRootElement(doc) == NULL)){
198
198
  rb_raise(rb_eRuntimeError, "Error: unable to parse template.");
199
- return;
199
+ return Qnil;
200
200
  }
201
201
  if (! NIL_P(x509_file)) return xmlsec_is_valid_by_x509_file(self, doc, x509_file );
202
202
  if (! NIL_P(key_file)) return xmlsec_is_valid_by_key(self, doc, key_file);
@@ -209,4 +209,4 @@ void init_xmlsec_verify(){
209
209
  rb_define_singleton_method(mXmlSec, "valid_file?", rb_xmlsec_is_valid_file, 3);
210
210
  rb_define_singleton_method(mXmlSec, "valid?", rb_xmlsec_is_valid, 3);
211
211
 
212
- }
212
+ }
@@ -1,3 +1,3 @@
1
1
  module XmlSec
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
@@ -5,8 +5,8 @@ require "xmlsec/version"
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "xmlsec"
7
7
  s.version = XmlSec::VERSION
8
- s.authors = ["Tomas Didziokas"]
9
- s.email = ["tomas.did@gmail.com"]
8
+ s.authors = ["Tomas Didziokas", "Justas Janauskas", "Edvinas Bartkus", "Laurynas Butkus"]
9
+ s.email = ["tomas.did@gmail.com", "jjanauskas@gmail.com", "edvinas.bartkus@gmail.com", "laurynas.butkus@gmail.com"]
10
10
  s.homepage = "https://github.com/friendlyfashion/xmlsec"
11
11
  s.extensions = ["ext/xmlsec/extconf.rb"]
12
12
  s.summary = "Ruby bindings for xmlsec"
metadata CHANGED
@@ -1,19 +1,22 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xmlsec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Tomas Didziokas
9
+ - Justas Janauskas
10
+ - Edvinas Bartkus
11
+ - Laurynas Butkus
9
12
  autorequire:
10
13
  bindir: bin
11
14
  cert_chain: []
12
- date: 2012-04-27 00:00:00.000000000 Z
15
+ date: 2012-05-30 00:00:00.000000000 Z
13
16
  dependencies:
14
17
  - !ruby/object:Gem::Dependency
15
18
  name: rake-compiler
16
- requirement: &8975640 !ruby/object:Gem::Requirement
19
+ requirement: !ruby/object:Gem::Requirement
17
20
  none: false
18
21
  requirements:
19
22
  - - ~>
@@ -21,21 +24,31 @@ dependencies:
21
24
  version: 0.7.7
22
25
  type: :development
23
26
  prerelease: false
24
- version_requirements: *8975640
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ~>
31
+ - !ruby/object:Gem::Version
32
+ version: 0.7.7
25
33
  - !ruby/object:Gem::Dependency
26
34
  name: rake
27
- requirement: &8974740 !ruby/object:Gem::Requirement
35
+ requirement: !ruby/object:Gem::Requirement
28
36
  none: false
29
37
  requirements:
30
- - - =
38
+ - - '='
31
39
  - !ruby/object:Gem::Version
32
40
  version: 0.8.7
33
41
  type: :development
34
42
  prerelease: false
35
- version_requirements: *8974740
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - '='
47
+ - !ruby/object:Gem::Version
48
+ version: 0.8.7
36
49
  - !ruby/object:Gem::Dependency
37
50
  name: rspec
38
- requirement: &8974320 !ruby/object:Gem::Requirement
51
+ requirement: !ruby/object:Gem::Requirement
39
52
  none: false
40
53
  requirements:
41
54
  - - ! '>='
@@ -43,21 +56,34 @@ dependencies:
43
56
  version: '0'
44
57
  type: :development
45
58
  prerelease: false
46
- version_requirements: *8974320
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ none: false
61
+ requirements:
62
+ - - ! '>='
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
47
65
  - !ruby/object:Gem::Dependency
48
66
  name: nokogiri
49
- requirement: &8973660 !ruby/object:Gem::Requirement
67
+ requirement: !ruby/object:Gem::Requirement
50
68
  none: false
51
69
  requirements:
52
- - - =
70
+ - - '='
53
71
  - !ruby/object:Gem::Version
54
72
  version: 1.5.0
55
73
  type: :development
56
74
  prerelease: false
57
- version_requirements: *8973660
75
+ version_requirements: !ruby/object:Gem::Requirement
76
+ none: false
77
+ requirements:
78
+ - - '='
79
+ - !ruby/object:Gem::Version
80
+ version: 1.5.0
58
81
  description: Ruby bindings for xmlsec
59
82
  email:
60
83
  - tomas.did@gmail.com
84
+ - jjanauskas@gmail.com
85
+ - edvinas.bartkus@gmail.com
86
+ - laurynas.butkus@gmail.com
61
87
  executables: []
62
88
  extensions:
63
89
  - ext/xmlsec/extconf.rb
@@ -65,21 +91,17 @@ extra_rdoc_files: []
65
91
  files:
66
92
  - .gitignore
67
93
  - Gemfile
94
+ - Gemfile.lock
68
95
  - README.md
69
96
  - Rakefile
70
- - ext/xmlsec/Makefile
71
97
  - ext/xmlsec/extconf.rb
72
98
  - ext/xmlsec/mkmf.log
73
99
  - ext/xmlsec/sign.c
74
100
  - ext/xmlsec/sign.h
75
- - ext/xmlsec/sign.o
76
101
  - ext/xmlsec/verify.c
77
102
  - ext/xmlsec/verify.h
78
- - ext/xmlsec/verify.o
79
103
  - ext/xmlsec/xmlsec_ext.c
80
104
  - ext/xmlsec/xmlsec_ext.h
81
- - ext/xmlsec/xmlsec_ext.o
82
- - ext/xmlsec/xmlsec_ext.so
83
105
  - lib/xmlsec.rb
84
106
  - lib/xmlsec/error.rb
85
107
  - lib/xmlsec/version.rb
@@ -115,7 +137,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
115
137
  version: '0'
116
138
  requirements: []
117
139
  rubyforge_project:
118
- rubygems_version: 1.8.15
140
+ rubygems_version: 1.8.24
119
141
  signing_key:
120
142
  specification_version: 3
121
143
  summary: Ruby bindings for xmlsec
@@ -1,213 +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
- n=$(NULLCMD)
9
- ECHO1 = $(V:1=@$n)
10
- ECHO = $(ECHO1:0=@echo)
11
-
12
- #### Start of system configuration section. ####
13
-
14
- srcdir = .
15
- topdir = /usr/local/include/ruby-1.9.1
16
- hdrdir = /usr/local/include/ruby-1.9.1
17
- arch_hdrdir = /usr/local/include/ruby-1.9.1/$(arch)
18
- VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
19
- prefix = $(DESTDIR)/usr/local
20
- rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
21
- exec_prefix = $(prefix)
22
- vendorhdrdir = $(rubyhdrdir)/vendor_ruby
23
- sitehdrdir = $(rubyhdrdir)/site_ruby
24
- rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
25
- vendordir = $(rubylibprefix)/vendor_ruby
26
- sitedir = $(rubylibprefix)/site_ruby
27
- ridir = $(datarootdir)/$(RI_BASE_NAME)
28
- mandir = $(datarootdir)/man
29
- localedir = $(datarootdir)/locale
30
- libdir = $(exec_prefix)/lib
31
- psdir = $(docdir)
32
- pdfdir = $(docdir)
33
- dvidir = $(docdir)
34
- htmldir = $(docdir)
35
- infodir = $(datarootdir)/info
36
- docdir = $(datarootdir)/doc/$(PACKAGE)
37
- oldincludedir = $(DESTDIR)/usr/include
38
- includedir = $(prefix)/include
39
- localstatedir = $(prefix)/var
40
- sharedstatedir = $(prefix)/com
41
- sysconfdir = $(prefix)/etc
42
- datadir = $(datarootdir)
43
- datarootdir = $(prefix)/share
44
- libexecdir = $(exec_prefix)/libexec
45
- sbindir = $(exec_prefix)/sbin
46
- bindir = $(exec_prefix)/bin
47
- rubylibdir = $(rubylibprefix)/$(ruby_version)
48
- archdir = $(rubylibdir)/$(arch)
49
- sitelibdir = $(sitedir)/$(ruby_version)
50
- sitearchdir = $(sitelibdir)/$(sitearch)
51
- vendorlibdir = $(vendordir)/$(ruby_version)
52
- vendorarchdir = $(vendorlibdir)/$(sitearch)
53
-
54
- NULLCMD = :
55
-
56
- CC = gcc
57
- CXX = g++
58
- LIBRUBY = $(LIBRUBY_A)
59
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
60
- LIBRUBYARG_SHARED = -Wl,-R -Wl,$(libdir) -L$(libdir)
61
- LIBRUBYARG_STATIC = -Wl,-R -Wl,$(libdir) -L$(libdir) -l$(RUBY_SO_NAME)-static
62
- OUTFLAG = -o
63
- COUTFLAG = -o
64
-
65
- RUBY_EXTCONF_H =
66
- cflags = $(optflags) $(debugflags) $(warnflags)
67
- optflags = -O3
68
- debugflags = -ggdb
69
- warnflags = -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wimplicit-function-declaration
70
- CFLAGS = -fPIC $(cflags) -DXMLSEC_CRYPTO=\"openssl\" -D__XMLSEC_FUNCTION__=__FUNCTION__ -DXMLSEC_NO_GOST=1 -DXMLSEC_NO_XKMS=1 -DXMLSEC_DL_LIBLTDL=1, -DXMLSEC_OPENSSL_098=1 -DXMLSEC_CRYPTO_OPENSSL=1 -I/usr/include/xmlsec1 -I/usr/include/libxml2
71
- INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
72
- DEFS = -D_FILE_OFFSET_BITS=64
73
- CPPFLAGS = $(DEFS) $(cppflags)
74
- CXXFLAGS = $(CFLAGS) $(cxxflags)
75
- ldflags = -L. -rdynamic -Wl,-export-dynamic
76
- dldflags =
77
- ARCH_FLAG =
78
- DLDFLAGS = $(ldflags) $(dldflags)
79
- LDSHARED = $(CC) -shared
80
- LDSHAREDXX = $(CXX) -shared
81
- AR = ar
82
- EXEEXT =
83
-
84
- RUBY_BASE_NAME = ruby
85
- RUBY_INSTALL_NAME = ruby
86
- RUBY_SO_NAME = ruby
87
- arch = i686-linux
88
- sitearch = $(arch)
89
- ruby_version = 1.9.1
90
- ruby = /usr/local/bin/ruby
91
- RUBY = $(ruby)
92
- RM = rm -f
93
- RM_RF = $(RUBY) -run -e rm -- -rf
94
- RMDIRS = rmdir --ignore-fail-on-non-empty -p
95
- MAKEDIRS = /bin/mkdir -p
96
- INSTALL = /usr/bin/install -c
97
- INSTALL_PROG = $(INSTALL) -m 0755
98
- INSTALL_DATA = $(INSTALL) -m 644
99
- COPY = cp
100
-
101
- #### End of system configuration section. ####
102
-
103
- preload =
104
-
105
- libpath = . $(libdir)
106
- LIBPATH = -L. -L$(libdir) -Wl,-R$(libdir)
107
- DEFFILE =
108
-
109
- CLEANFILES = mkmf.log
110
- DISTCLEANFILES =
111
- DISTCLEANDIRS =
112
-
113
- extout =
114
- extout_prefix =
115
- target_prefix = /xmlsec
116
- LOCAL_LIBS =
117
- LIBS = -lxmlsec1-openssl -lxmlsec1 -lltdl -lssl -lcrypto -ldl -lxslt -lz -lm -lxml2 -lpthread -lrt -ldl -lcrypt -lm -lc
118
- SRCS = sign.c xmlsec_ext.c verify.c
119
- OBJS = sign.o xmlsec_ext.o verify.o
120
- TARGET = xmlsec_ext
121
- DLLIB = $(TARGET).so
122
- EXTSTATIC =
123
- STATIC_LIB =
124
-
125
- BINDIR = $(bindir)
126
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
127
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
128
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
129
- HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
130
- ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
131
-
132
- TARGET_SO = $(DLLIB)
133
- CLEANLIBS = $(TARGET).so
134
- CLEANOBJS = *.o *.bak
135
-
136
- all: $(DLLIB)
137
- static: $(STATIC_LIB)
138
- .PHONY: all install static install-so install-rb
139
- .PHONY: clean clean-so clean-rb
140
-
141
- clean-rb-default::
142
- clean-rb::
143
- clean-so::
144
- clean: clean-so clean-rb-default clean-rb
145
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
146
-
147
- distclean-rb-default::
148
- distclean-rb::
149
- distclean-so::
150
- distclean: clean distclean-so distclean-rb-default distclean-rb
151
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
152
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
153
- @-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
154
-
155
- realclean: distclean
156
- install: install-so install-rb
157
-
158
- install-so: $(RUBYARCHDIR)
159
- install-so: $(RUBYARCHDIR)/$(DLLIB)
160
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
161
- @-$(MAKEDIRS) $(@D)
162
- $(INSTALL_PROG) $(DLLIB) $(@D)
163
- install-rb: pre-install-rb install-rb-default
164
- install-rb-default: pre-install-rb-default
165
- pre-install-rb: Makefile
166
- pre-install-rb-default: Makefile
167
- pre-install-rb-default:
168
- $(ECHO) installing default xmlsec_ext libraries
169
- $(RUBYARCHDIR):
170
- $(Q) $(MAKEDIRS) $@
171
-
172
- site-install: site-install-so site-install-rb
173
- site-install-so: install-so
174
- site-install-rb: install-rb
175
-
176
- .SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
177
-
178
- .cc.o:
179
- $(ECHO) compiling $(<)
180
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
181
-
182
- .mm.o:
183
- $(ECHO) compiling $(<)
184
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
185
-
186
- .cxx.o:
187
- $(ECHO) compiling $(<)
188
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
189
-
190
- .cpp.o:
191
- $(ECHO) compiling $(<)
192
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
193
-
194
- .C.o:
195
- $(ECHO) compiling $(<)
196
- $(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
197
-
198
- .c.o:
199
- $(ECHO) compiling $(<)
200
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
201
-
202
- .m.o:
203
- $(ECHO) compiling $(<)
204
- $(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
205
-
206
- $(DLLIB): $(OBJS) Makefile
207
- $(ECHO) linking shared-object xmlsec/$(DLLIB)
208
- @-$(RM) $(@)
209
- $(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
210
-
211
-
212
-
213
- $(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
Binary file
Binary file
Binary file
Binary file