diff options
author | jlam <jlam@pkgsrc.org> | 2008-04-04 15:21:50 +0000 |
---|---|---|
committer | jlam <jlam@pkgsrc.org> | 2008-04-04 15:21:50 +0000 |
commit | 8b90e797917a02e8b59b6b02dac89f3318977a22 (patch) | |
tree | 9fdcec36337a4e0d4c6187478fe5dc85d2a0b6a0 /textproc | |
parent | 8fff57d2a39609caef126ee9b0a595c2ff980be6 (diff) | |
download | pkgsrc-8b90e797917a02e8b59b6b02dac89f3318977a22.tar.gz |
Initial import of ruby18-json-pure-1.1.2 as textproc/ruby-json-pure.
This is a implementation of the JSON specification according to RFC
4627. You can think of it as a low fat alternative to XML, if you
want to store data to disk or transmit it over a network rather than
use a verbose markup language.
The JSON generator escapes all non-ASCII an control characters with
\uXXXX escape sequences and supports UTF-16 surrogate pairs in order
to be able to generate the whole range of Unicode code points. This
means that generated JSON text is encoded as UTF-8 (because ASCII is
a subset of UTF-8) and at the same time avoids decoding problems for
receiving endpoints that don't expect UTF-8 encoded texts.
This package is a pure Ruby variant that relies on the iconv and the
stringscan extensions, which are both part of the Ruby standard library.
Diffstat (limited to 'textproc')
-rw-r--r-- | textproc/ruby-json-pure/DESCR | 14 | ||||
-rw-r--r-- | textproc/ruby-json-pure/Makefile | 12 | ||||
-rw-r--r-- | textproc/ruby-json-pure/PLIST | 105 | ||||
-rw-r--r-- | textproc/ruby-json-pure/distinfo | 5 |
4 files changed, 136 insertions, 0 deletions
diff --git a/textproc/ruby-json-pure/DESCR b/textproc/ruby-json-pure/DESCR new file mode 100644 index 00000000000..6955c01016a --- /dev/null +++ b/textproc/ruby-json-pure/DESCR @@ -0,0 +1,14 @@ +This is a implementation of the JSON specification according to RFC +4627. You can think of it as a low fat alternative to XML, if you +want to store data to disk or transmit it over a network rather than +use a verbose markup language. + +The JSON generator escapes all non-ASCII an control characters with +\uXXXX escape sequences and supports UTF-16 surrogate pairs in order +to be able to generate the whole range of Unicode code points. This +means that generated JSON text is encoded as UTF-8 (because ASCII is +a subset of UTF-8) and at the same time avoids decoding problems for +receiving endpoints that don't expect UTF-8 encoded texts. + +This package is a pure Ruby variant that relies on the iconv and the +stringscan extensions, which are both part of the Ruby standard library. diff --git a/textproc/ruby-json-pure/Makefile b/textproc/ruby-json-pure/Makefile new file mode 100644 index 00000000000..56daac3ed2c --- /dev/null +++ b/textproc/ruby-json-pure/Makefile @@ -0,0 +1,12 @@ +# $NetBSD: Makefile,v 1.1.1.1 2008/04/04 15:21:50 jlam Exp $ + +DISTNAME= json_pure-1.1.2 +PKGNAME= ${RUBY_PKGPREFIX}-${DISTNAME:S/_/-/g} +CATEGORIES= textproc + +MAINTAINER= pkgsrc-users@NetBSD.org +HOMEPAGE= http://json.rubyforge.org/ +COMMENT= Pure Ruby implementation of JSON + +.include "../../misc/rubygems/rubygem.mk" +.include "../../mk/bsd.pkg.mk" diff --git a/textproc/ruby-json-pure/PLIST b/textproc/ruby-json-pure/PLIST new file mode 100644 index 00000000000..7eafa09c6eb --- /dev/null +++ b/textproc/ruby-json-pure/PLIST @@ -0,0 +1,105 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2008/04/04 15:21:50 jlam Exp $ +bin/edit_json.rb +${GEM_HOME}/cache/json_pure-${PKGVERSION}.gem +${GEM_LIBDIR}/CHANGES +${GEM_LIBDIR}/GPL +${GEM_LIBDIR}/README +${GEM_LIBDIR}/RUBY +${GEM_LIBDIR}/Rakefile +${GEM_LIBDIR}/TODO +${GEM_LIBDIR}/VERSION +${GEM_LIBDIR}/benchmarks/benchmark.txt +${GEM_LIBDIR}/benchmarks/benchmark_generator.rb +${GEM_LIBDIR}/benchmarks/benchmark_parser.rb +${GEM_LIBDIR}/benchmarks/benchmark_rails.rb +${GEM_LIBDIR}/bin/edit_json.rb +${GEM_LIBDIR}/bin/prettify_json.rb +${GEM_LIBDIR}/data/example.json +${GEM_LIBDIR}/data/index.html +${GEM_LIBDIR}/data/prototype.js +${GEM_LIBDIR}/ext/json/ext/generator/extconf.rb +${GEM_LIBDIR}/ext/json/ext/generator/generator.c +${GEM_LIBDIR}/ext/json/ext/generator/unicode.c +${GEM_LIBDIR}/ext/json/ext/generator/unicode.h +${GEM_LIBDIR}/ext/json/ext/parser/extconf.rb +${GEM_LIBDIR}/ext/json/ext/parser/parser.c +${GEM_LIBDIR}/ext/json/ext/parser/parser.rl +${GEM_LIBDIR}/ext/json/ext/parser/unicode.c +${GEM_LIBDIR}/ext/json/ext/parser/unicode.h +${GEM_LIBDIR}/install.rb +${GEM_LIBDIR}/lib/json.rb +${GEM_LIBDIR}/lib/json/Array.xpm +${GEM_LIBDIR}/lib/json/FalseClass.xpm +${GEM_LIBDIR}/lib/json/Hash.xpm +${GEM_LIBDIR}/lib/json/Key.xpm +${GEM_LIBDIR}/lib/json/NilClass.xpm +${GEM_LIBDIR}/lib/json/Numeric.xpm +${GEM_LIBDIR}/lib/json/String.xpm +${GEM_LIBDIR}/lib/json/TrueClass.xpm +${GEM_LIBDIR}/lib/json/add/core.rb +${GEM_LIBDIR}/lib/json/add/rails.rb +${GEM_LIBDIR}/lib/json/common.rb +${GEM_LIBDIR}/lib/json/editor.rb +${GEM_LIBDIR}/lib/json/ext.rb +${GEM_LIBDIR}/lib/json/json.xpm +${GEM_LIBDIR}/lib/json/pure.rb +${GEM_LIBDIR}/lib/json/pure/generator.rb +${GEM_LIBDIR}/lib/json/pure/parser.rb +${GEM_LIBDIR}/lib/json/version.rb +${GEM_LIBDIR}/tests/fixtures/fail1.json +${GEM_LIBDIR}/tests/fixtures/fail10.json +${GEM_LIBDIR}/tests/fixtures/fail11.json +${GEM_LIBDIR}/tests/fixtures/fail12.json +${GEM_LIBDIR}/tests/fixtures/fail13.json +${GEM_LIBDIR}/tests/fixtures/fail14.json +${GEM_LIBDIR}/tests/fixtures/fail18.json +${GEM_LIBDIR}/tests/fixtures/fail19.json +${GEM_LIBDIR}/tests/fixtures/fail2.json +${GEM_LIBDIR}/tests/fixtures/fail20.json +${GEM_LIBDIR}/tests/fixtures/fail21.json +${GEM_LIBDIR}/tests/fixtures/fail22.json +${GEM_LIBDIR}/tests/fixtures/fail23.json +${GEM_LIBDIR}/tests/fixtures/fail24.json +${GEM_LIBDIR}/tests/fixtures/fail25.json +${GEM_LIBDIR}/tests/fixtures/fail27.json +${GEM_LIBDIR}/tests/fixtures/fail28.json +${GEM_LIBDIR}/tests/fixtures/fail3.json +${GEM_LIBDIR}/tests/fixtures/fail4.json +${GEM_LIBDIR}/tests/fixtures/fail5.json +${GEM_LIBDIR}/tests/fixtures/fail6.json +${GEM_LIBDIR}/tests/fixtures/fail7.json +${GEM_LIBDIR}/tests/fixtures/fail8.json +${GEM_LIBDIR}/tests/fixtures/fail9.json +${GEM_LIBDIR}/tests/fixtures/pass1.json +${GEM_LIBDIR}/tests/fixtures/pass15.json +${GEM_LIBDIR}/tests/fixtures/pass16.json +${GEM_LIBDIR}/tests/fixtures/pass17.json +${GEM_LIBDIR}/tests/fixtures/pass2.json +${GEM_LIBDIR}/tests/fixtures/pass26.json +${GEM_LIBDIR}/tests/fixtures/pass3.json +${GEM_LIBDIR}/tests/runner.rb +${GEM_LIBDIR}/tests/test_json.rb +${GEM_LIBDIR}/tests/test_json_addition.rb +${GEM_LIBDIR}/tests/test_json_fixtures.rb +${GEM_LIBDIR}/tests/test_json_generate.rb +${GEM_LIBDIR}/tests/test_json_rails.rb +${GEM_LIBDIR}/tests/test_json_unicode.rb +${GEM_LIBDIR}/tools/fuzz.rb +${GEM_LIBDIR}/tools/server.rb +${GEM_HOME}/specifications/json_pure-${PKGVERSION}.gemspec +@dirrm ${GEM_LIBDIR}/tools +@dirrm ${GEM_LIBDIR}/tests/fixtures +@dirrm ${GEM_LIBDIR}/tests +@dirrm ${GEM_LIBDIR}/lib/json/pure +@dirrm ${GEM_LIBDIR}/lib/json/add +@dirrm ${GEM_LIBDIR}/lib/json +@dirrm ${GEM_LIBDIR}/lib +@dirrm ${GEM_LIBDIR}/ext/json/ext/parser +@dirrm ${GEM_LIBDIR}/ext/json/ext/generator +@dirrm ${GEM_LIBDIR}/ext/json/ext +@dirrm ${GEM_LIBDIR}/ext/json +@dirrm ${GEM_LIBDIR}/ext +@dirrm ${GEM_LIBDIR}/data +@dirrm ${GEM_LIBDIR}/bin +@dirrm ${GEM_LIBDIR}/benchmarks +@dirrm ${GEM_LIBDIR} diff --git a/textproc/ruby-json-pure/distinfo b/textproc/ruby-json-pure/distinfo new file mode 100644 index 00000000000..56abe40d2ca --- /dev/null +++ b/textproc/ruby-json-pure/distinfo @@ -0,0 +1,5 @@ +$NetBSD: distinfo,v 1.1.1.1 2008/04/04 15:21:50 jlam Exp $ + +SHA1 (json_pure-1.1.2.gem) = 5f7bb49d462c4e083c6329b37fa069af15eda449 +RMD160 (json_pure-1.1.2.gem) = 81cf8b1fb4d41fd44250b44308e420b6a49148c4 +Size (json_pure-1.1.2.gem) = 113152 bytes |