File tree Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Expand file tree Collapse file tree 3 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,16 @@ while binaries for libxslt and libexslt areprovided in the
44
44
libxslt-ruby bindings.
45
45
46
46
47
+ Installation from source:
48
+
49
+ ruby ext/libxslt/extconf.rb
50
+ make
51
+ sudo make install
52
+
53
+ gem build libxslt-ruby.gemspec
54
+ gem install libxslt-ruby-1.1.1.gem
55
+
56
+
47
57
== USAGE
48
58
49
59
For in-depth information about using libxslt-ruby please refer
Original file line number Diff line number Diff line change @@ -126,12 +126,12 @@ def crash(str)
126
126
127
127
RUBY_VERSION =~ /(\d +.\d +)/
128
128
minor_version = $1
129
- paths = [ "#{ gem_spec . full_gem_path } /lib" ,
129
+ paths = [ "#{ gem_spec . full_gem_path } /lib" ,
130
130
"#{ gem_spec . full_gem_path } /lib/#{ minor_version } " ,
131
131
"#{ gem_spec . full_gem_path } /ext/libxml" ]
132
132
133
133
# No need to link xml_ruby on OS X
134
- unless RbConfig ::CONFIG [ 'host_os' ] . match ( /darwin/ )
134
+ unless RbConfig ::CONFIG [ 'host_os' ] . match ( /darwin|linux / )
135
135
# Hack to make sure ruby library is *after* xml_ruby library
136
136
$LIBS = "#{ $LIBRUBYARG_STATIC} #{ $LIBS} "
137
137
Original file line number Diff line number Diff line change 1
1
# encoding: utf-8
2
+ require 'date'
2
3
3
4
# Determine the current version of the software
4
5
version = File . read ( 'ext/libxslt/version.h' ) . match ( /\s *RUBY_LIBXSLT_VERSION\s *['"](\d .+)['"]/ ) [ 1 ]
You can’t perform that action at this time.
0 commit comments