pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/ruby-yajl-ruby Import devel/ruby-yajl-ruby into ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/e4fc6d493735
branches:  trunk
changeset: 635349:e4fc6d493735
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jun 03 13:53:15 2014 +0000

description:
Import devel/ruby-yajl-ruby into pkgsrc.

This gem is a C binding to the excellent YAJL JSON parsing and
generation library.

Features:

 * JSON parsing and encoding directly to and from an IO stream (file,
   socket, etc) or String. Compressed stream parsing and encoding
   supported for Bzip2, Gzip and Deflate.

 * Parse and encode multiple JSON objects to and from streams or
   strings continuously.

 * JSON gem compatibility API - allows yajl-ruby to be used as a
   drop-in replacement for the JSON gem

 * Basic HTTP client (only GET requests supported for now) which
   parses JSON directly off the response body as it's being received

 * ~3.5x faster than JSON.generate

 * ~1.9x faster than JSON.parse

 * ~4.5x faster than YAML.load

 * ~377.5x faster than YAML.dump

 * ~1.5x faster than Marshal.load

 * ~2x faster than Marshal.dump

diffstat:

 devel/ruby-yajl-ruby/DESCR    |   24 ++++++
 devel/ruby-yajl-ruby/Makefile |   12 +++
 devel/ruby-yajl-ruby/PLIST    |  154 ++++++++++++++++++++++++++++++++++++++++++
 devel/ruby-yajl-ruby/distinfo |    5 +
 4 files changed, 195 insertions(+), 0 deletions(-)

diffs (211 lines):

diff -r dcc4fafa0be3 -r e4fc6d493735 devel/ruby-yajl-ruby/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-yajl-ruby/DESCR        Tue Jun 03 13:53:15 2014 +0000
@@ -0,0 +1,24 @@
+This gem is a C binding to the excellent YAJL JSON parsing and
+generation library.
+
+Features:
+
+ * JSON parsing and encoding directly to and from an IO stream (file,
+   socket, etc) or String. Compressed stream parsing and encoding
+   supported for Bzip2, Gzip and Deflate.
+
+ * Parse and encode multiple JSON objects to and from streams or
+   strings continuously.
+
+ * JSON gem compatibility API - allows yajl-ruby to be used as a
+   drop-in replacement for the JSON gem
+
+ * Basic HTTP client (only GET requests supported for now) which
+   parses JSON directly off the response body as it's being received
+
+ * ~3.5x faster than JSON.generate
+ * ~1.9x faster than JSON.parse
+ * ~4.5x faster than YAML.load
+ * ~377.5x faster than YAML.dump
+ * ~1.5x faster than Marshal.load
+ * ~2x faster than Marshal.dump
diff -r dcc4fafa0be3 -r e4fc6d493735 devel/ruby-yajl-ruby/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-yajl-ruby/Makefile     Tue Jun 03 13:53:15 2014 +0000
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile,v 1.1 2014/06/03 13:53:15 jperkin Exp $
+
+DISTNAME=      yajl-ruby-1.2.0
+CATEGORIES=    devel
+
+MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+HOMEPAGE=      https://github.com/brianmario/yajl-ruby
+COMMENT=       Streaming JSON parsing and encoding library
+LICENSE=       mit
+
+.include "../../lang/ruby/gem.mk"
+.include "../../mk/bsd.pkg.mk"
diff -r dcc4fafa0be3 -r e4fc6d493735 devel/ruby-yajl-ruby/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-yajl-ruby/PLIST        Tue Jun 03 13:53:15 2014 +0000
@@ -0,0 +1,154 @@
+@comment $NetBSD: PLIST,v 1.1 2014/06/03 13:53:15 jperkin Exp $
+${GEM_HOME}/cache/${GEM_NAME}.gem
+${GEM_LIBDIR}/.gitignore
+${GEM_LIBDIR}/.rspec
+${GEM_LIBDIR}/.travis.yml
+${GEM_LIBDIR}/CHANGELOG.md
+${GEM_LIBDIR}/Gemfile
+${GEM_LIBDIR}/MIT-LICENSE
+${GEM_LIBDIR}/README.md
+${GEM_LIBDIR}/Rakefile
+${GEM_LIBDIR}/benchmark/encode.rb
+${GEM_LIBDIR}/benchmark/encode_json_and_marshal.rb
+${GEM_LIBDIR}/benchmark/encode_json_and_yaml.rb
+${GEM_LIBDIR}/benchmark/http.rb
+${GEM_LIBDIR}/benchmark/parse.rb
+${GEM_LIBDIR}/benchmark/parse_json_and_marshal.rb
+${GEM_LIBDIR}/benchmark/parse_json_and_yaml.rb
+${GEM_LIBDIR}/benchmark/parse_stream.rb
+${GEM_LIBDIR}/benchmark/subjects/item.json
+${GEM_LIBDIR}/benchmark/subjects/ohai.json
+${GEM_LIBDIR}/benchmark/subjects/ohai.marshal_dump
+${GEM_LIBDIR}/benchmark/subjects/ohai.yml
+${GEM_LIBDIR}/benchmark/subjects/twitter_search.json
+${GEM_LIBDIR}/benchmark/subjects/twitter_stream.json
+${GEM_LIBDIR}/benchmark/subjects/unicode.json
+${GEM_LIBDIR}/examples/encoding/chunked_encoding.rb
+${GEM_LIBDIR}/examples/encoding/one_shot.rb
+${GEM_LIBDIR}/examples/encoding/to_an_io.rb
+${GEM_LIBDIR}/examples/http/twitter_search_api.rb
+${GEM_LIBDIR}/examples/http/twitter_stream_api.rb
+${GEM_LIBDIR}/examples/parsing/from_file.rb
+${GEM_LIBDIR}/examples/parsing/from_stdin.rb
+${GEM_LIBDIR}/examples/parsing/from_string.rb
+${GEM_LIBDIR}/ext/yajl/api/yajl_common.h
+${GEM_LIBDIR}/ext/yajl/api/yajl_gen.h
+${GEM_LIBDIR}/ext/yajl/api/yajl_parse.h
+${GEM_LIBDIR}/ext/yajl/api/yajl_version.h
+${GEM_LIBDIR}/ext/yajl/extconf.rb
+${GEM_LIBDIR}/ext/yajl/yajl.c
+${GEM_LIBDIR}/ext/yajl/yajl_alloc.c
+${GEM_LIBDIR}/ext/yajl/yajl_alloc.h
+${GEM_LIBDIR}/ext/yajl/yajl_buf.c
+${GEM_LIBDIR}/ext/yajl/yajl_buf.h
+${GEM_LIBDIR}/ext/yajl/yajl_bytestack.h
+${GEM_LIBDIR}/ext/yajl/yajl_encode.c
+${GEM_LIBDIR}/ext/yajl/yajl_encode.h
+${GEM_LIBDIR}/ext/yajl/yajl_ext.c
+${GEM_LIBDIR}/ext/yajl/yajl_ext.h
+${GEM_LIBDIR}/ext/yajl/yajl_gen.c
+${GEM_LIBDIR}/ext/yajl/yajl_lex.c
+${GEM_LIBDIR}/ext/yajl/yajl_lex.h
+${GEM_LIBDIR}/ext/yajl/yajl_parser.c
+${GEM_LIBDIR}/ext/yajl/yajl_parser.h
+${GEM_LIBDIR}/ext/yajl/yajl_version.c
+${GEM_LIBDIR}/lib/yajl.rb
+${GEM_LIBDIR}/lib/yajl/bzip2.rb
+${GEM_LIBDIR}/lib/yajl/bzip2/stream_reader.rb
+${GEM_LIBDIR}/lib/yajl/bzip2/stream_writer.rb
+${GEM_LIBDIR}/lib/yajl/deflate.rb
+${GEM_LIBDIR}/lib/yajl/deflate/stream_reader.rb
+${GEM_LIBDIR}/lib/yajl/deflate/stream_writer.rb
+${GEM_LIBDIR}/lib/yajl/gzip.rb
+${GEM_LIBDIR}/lib/yajl/gzip/stream_reader.rb
+${GEM_LIBDIR}/lib/yajl/gzip/stream_writer.rb
+${GEM_LIBDIR}/lib/yajl/http_stream.rb
+${GEM_LIBDIR}/lib/yajl/json_gem.rb
+${GEM_LIBDIR}/lib/yajl/json_gem/encoding.rb
+${GEM_LIBDIR}/lib/yajl/json_gem/parsing.rb
+${GEM_LIBDIR}/lib/yajl/version.rb
+${GEM_LIBDIR}/lib/yajl/yajl.${RUBY_DLEXT}
+${GEM_LIBDIR}/script/bootstrap
+${GEM_LIBDIR}/spec/encoding/encoding_spec.rb
+${GEM_LIBDIR}/spec/global/global_spec.rb
+${GEM_LIBDIR}/spec/http/fixtures/http.bzip2.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.chunked.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.deflate.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.error.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.gzip.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.html.dump
+${GEM_LIBDIR}/spec/http/fixtures/http.raw.dump
+${GEM_LIBDIR}/spec/http/http_delete_spec.rb
+${GEM_LIBDIR}/spec/http/http_error_spec.rb
+${GEM_LIBDIR}/spec/http/http_get_spec.rb
+${GEM_LIBDIR}/spec/http/http_post_spec.rb
+${GEM_LIBDIR}/spec/http/http_put_spec.rb
+${GEM_LIBDIR}/spec/http/http_stream_options_spec.rb
+${GEM_LIBDIR}/spec/json_gem_compatibility/compatibility_spec.rb
+${GEM_LIBDIR}/spec/parsing/active_support_spec.rb
+${GEM_LIBDIR}/spec/parsing/chunked_spec.rb
+${GEM_LIBDIR}/spec/parsing/fixtures/fail.15.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail.16.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail.17.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail.26.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail11.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail12.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail13.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail14.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail19.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail20.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail21.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail22.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail23.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail24.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail25.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail27.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail28.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail3.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail4.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail5.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail6.json
+${GEM_LIBDIR}/spec/parsing/fixtures/fail9.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.array.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.codepoints_from_unicode_org.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.contacts.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.db100.xml.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.db1000.xml.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.dc_simple_with_comments.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.deep_arrays.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.difficult_json_c_test_case.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.difficult_json_c_test_case_with_comments.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.doubles.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.empty_array.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.empty_string.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.escaped_bulgarian.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.escaped_foobar.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.item.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample1.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample2.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample3.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample4-nows.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample4.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.json-org-sample5.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.map-spain.xml.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.ns-invoice100.xml.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.ns-soap.xml.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.numbers-fp-4k.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.numbers-fp-64k.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.numbers-int-4k.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.numbers-int-64k.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.twitter-search.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.twitter-search2.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.unicode.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass.yelp.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass1.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass2.json
+${GEM_LIBDIR}/spec/parsing/fixtures/pass3.json
+${GEM_LIBDIR}/spec/parsing/fixtures_spec.rb
+${GEM_LIBDIR}/spec/parsing/one_off_spec.rb
+${GEM_LIBDIR}/spec/rcov.opts
+${GEM_LIBDIR}/spec/spec_helper.rb
+${GEM_LIBDIR}/tasks/compile.rake
+${GEM_LIBDIR}/tasks/rspec.rake
+${GEM_LIBDIR}/yajl-ruby.gemspec
+${GEM_HOME}/specifications/${GEM_NAME}.gemspec
diff -r dcc4fafa0be3 -r e4fc6d493735 devel/ruby-yajl-ruby/distinfo
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/ruby-yajl-ruby/distinfo     Tue Jun 03 13:53:15 2014 +0000
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1 2014/06/03 13:53:15 jperkin Exp $
+
+SHA1 (yajl-ruby-1.2.0.gem) = 8b2c10498215e8526bba106b4600e820d12e06a1
+RMD160 (yajl-ruby-1.2.0.gem) = fe897a014db4fd0aeacf8f246ab648e6b31780fa
+Size (yajl-ruby-1.2.0.gem) = 549376 bytes



Home | Main Index | Thread Index | Old Index