Skip to content

Commit

Permalink
updates to readme, gemspec and extconf for bundled yajl
Browse files Browse the repository at this point in the history
  • Loading branch information
brianmario committed May 19, 2009
1 parent 36c61bd commit e7a70ff
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 16 deletions.
20 changes: 8 additions & 12 deletions README.rdoc
Expand Up @@ -4,6 +4,14 @@ This gem (although not in gem form just yet) is a C binding to the excellent YAJ

You can read more info at the projects website http://lloydforge.org/projects/yajl or check out it's codes at http://github.com/lloyd/yajl.

== How to install

Install it like any other gem hosted at the Githubs like so:

(more instructions here: http://gems.github.com)

sudo gem install brianmario-yajl-ruby

== Example of use

First, you're probably gonna want to require it:
Expand Down Expand Up @@ -112,18 +120,6 @@ Some ideas are:
* Patch Marshal#load and Marshal#dump to use JSON? ;)
* etc...

== How to install

First, Yajl uses CMake to build itself (yes, the author realizes this isn't the norm for open source and is willing and ready to accept patches, fork away kids!) so you'll need to grab it first from http://www.cmake.org.

After you've got that, grab the latest version (I suggest at least 1.0.4 as it contains fixes for Unicode parsing) of Yajl itself from the Githubs at http://github.com/lloyd/yajl.

After you have that installed, you should be able to install it like any other gem hosted here like so:

(more instructions here: http://gems.github.com)

sudo gem install brianmario-yajl-ruby

== Benchmarks

After I finished implementation - this library performs close to the same as the current JSON.parse (C gem) does on small/medium files.
Expand Down
2 changes: 0 additions & 2 deletions ext/extconf.rb
Expand Up @@ -3,7 +3,5 @@
require 'rbconfig'

# $CFLAGS << ' -Wall'
$CFLAGS << ' -static'
$LDFLAGS << ' -read_only_relocs suppress'

create_makefile("yajl_ext")
20 changes: 18 additions & 2 deletions yajl-ruby.gemspec
Expand Up @@ -6,7 +6,7 @@ Gem::Specification.new do |s|

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Brian Lopez"]
s.date = %q{2009-05-17}
s.date = %q{2009-05-18}
s.email = %q{seniorlopez@gmail.com}
s.extensions = ["ext/extconf.rb"]
s.extra_rdoc_files = [
Expand Down Expand Up @@ -34,9 +34,25 @@ Gem::Specification.new do |s|
"benchmark/subjects/twitter_search.json",
"benchmark/subjects/unicode.json",
"benchmark/subjects/yelp.json",
"ext/api/yajl_common.h",
"ext/api/yajl_gen.h",
"ext/api/yajl_parse.h",
"ext/extconf.rb",
"ext/yajl.c",
"ext/yajl.h",
"ext/yajl_alloc.c",
"ext/yajl_alloc.h",
"ext/yajl_buf.c",
"ext/yajl_buf.h",
"ext/yajl_bytestack.h",
"ext/yajl_encode.c",
"ext/yajl_encode.h",
"ext/yajl_ext.c",
"ext/yajl_ext.h",
"ext/yajl_gen.c",
"ext/yajl_lex.c",
"ext/yajl_lex.h",
"ext/yajl_parser.c",
"ext/yajl_parser.h",
"lib/yajl.rb",
"lib/yajl/bzip2.rb",
"lib/yajl/bzip2/stream_reader.rb",
Expand Down

0 comments on commit e7a70ff

Please sign in to comment.