pygments.rb-jruby 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.gitignore +6 -0
- data/CHANGELOG.md +71 -0
- data/Gemfile +2 -0
- data/LICENSE +17 -0
- data/README.md +118 -0
- data/Rakefile +66 -0
- data/bench.rb +22 -0
- data/cache-lexers.rb +8 -0
- data/lexers +0 -0
- data/lib/pygments.rb +8 -0
- data/lib/pygments/lexer.rb +148 -0
- data/lib/pygments/mentos.py +351 -0
- data/lib/pygments/popen.rb +404 -0
- data/lib/pygments/version.rb +3 -0
- data/pygments.rb.gemspec +24 -0
- data/test/test_data.c +2581 -0
- data/test/test_data.py +514 -0
- data/test/test_data_generated +2582 -0
- data/test/test_pygments.rb +287 -0
- data/vendor/custom_lexers/github.py +565 -0
- data/vendor/pygments-main/AUTHORS +153 -0
- data/vendor/pygments-main/CHANGES +889 -0
- data/vendor/pygments-main/LICENSE +25 -0
- data/vendor/pygments-main/MANIFEST.in +6 -0
- data/vendor/pygments-main/Makefile +59 -0
- data/vendor/pygments-main/REVISION +1 -0
- data/vendor/pygments-main/TODO +15 -0
- data/vendor/pygments-main/docs/generate.py +472 -0
- data/vendor/pygments-main/docs/pygmentize.1 +94 -0
- data/vendor/pygments-main/docs/src/api.txt +270 -0
- data/vendor/pygments-main/docs/src/authors.txt +5 -0
- data/vendor/pygments-main/docs/src/changelog.txt +5 -0
- data/vendor/pygments-main/docs/src/cmdline.txt +147 -0
- data/vendor/pygments-main/docs/src/filterdevelopment.txt +70 -0
- data/vendor/pygments-main/docs/src/filters.txt +42 -0
- data/vendor/pygments-main/docs/src/formatterdevelopment.txt +169 -0
- data/vendor/pygments-main/docs/src/formatters.txt +48 -0
- data/vendor/pygments-main/docs/src/index.txt +69 -0
- data/vendor/pygments-main/docs/src/installation.txt +71 -0
- data/vendor/pygments-main/docs/src/integrate.txt +48 -0
- data/vendor/pygments-main/docs/src/java.txt +70 -0
- data/vendor/pygments-main/docs/src/lexerdevelopment.txt +603 -0
- data/vendor/pygments-main/docs/src/lexers.txt +67 -0
- data/vendor/pygments-main/docs/src/moinmoin.txt +39 -0
- data/vendor/pygments-main/docs/src/plugins.txt +93 -0
- data/vendor/pygments-main/docs/src/quickstart.txt +202 -0
- data/vendor/pygments-main/docs/src/rstdirective.txt +22 -0
- data/vendor/pygments-main/docs/src/styles.txt +143 -0
- data/vendor/pygments-main/docs/src/tokens.txt +349 -0
- data/vendor/pygments-main/docs/src/unicode.txt +49 -0
- data/vendor/pygments-main/external/autopygmentize +64 -0
- data/vendor/pygments-main/external/lasso-builtins-generator-9.lasso +144 -0
- data/vendor/pygments-main/external/markdown-processor.py +67 -0
- data/vendor/pygments-main/external/moin-parser.py +112 -0
- data/vendor/pygments-main/external/pygments.bashcomp +38 -0
- data/vendor/pygments-main/external/rst-directive-old.py +77 -0
- data/vendor/pygments-main/external/rst-directive.py +83 -0
- data/vendor/pygments-main/ez_setup.py +276 -0
- data/vendor/pygments-main/pygmentize +7 -0
- data/vendor/pygments-main/pygments/__init__.py +91 -0
- data/vendor/pygments-main/pygments/cmdline.py +441 -0
- data/vendor/pygments-main/pygments/console.py +74 -0
- data/vendor/pygments-main/pygments/filter.py +74 -0
- data/vendor/pygments-main/pygments/filters/__init__.py +356 -0
- data/vendor/pygments-main/pygments/formatter.py +95 -0
- data/vendor/pygments-main/pygments/formatters/__init__.py +68 -0
- data/vendor/pygments-main/pygments/formatters/_mapping.py +92 -0
- data/vendor/pygments-main/pygments/formatters/bbcode.py +109 -0
- data/vendor/pygments-main/pygments/formatters/html.py +821 -0
- data/vendor/pygments-main/pygments/formatters/img.py +553 -0
- data/vendor/pygments-main/pygments/formatters/latex.py +378 -0
- data/vendor/pygments-main/pygments/formatters/other.py +115 -0
- data/vendor/pygments-main/pygments/formatters/rtf.py +136 -0
- data/vendor/pygments-main/pygments/formatters/svg.py +154 -0
- data/vendor/pygments-main/pygments/formatters/terminal.py +112 -0
- data/vendor/pygments-main/pygments/formatters/terminal256.py +222 -0
- data/vendor/pygments-main/pygments/lexer.py +765 -0
- data/vendor/pygments-main/pygments/lexers/__init__.py +240 -0
- data/vendor/pygments-main/pygments/lexers/_asybuiltins.py +1645 -0
- data/vendor/pygments-main/pygments/lexers/_clbuiltins.py +232 -0
- data/vendor/pygments-main/pygments/lexers/_lassobuiltins.py +5172 -0
- data/vendor/pygments-main/pygments/lexers/_luabuiltins.py +249 -0
- data/vendor/pygments-main/pygments/lexers/_mapping.py +354 -0
- data/vendor/pygments-main/pygments/lexers/_openedgebuiltins.py +562 -0
- data/vendor/pygments-main/pygments/lexers/_phpbuiltins.py +3787 -0
- data/vendor/pygments-main/pygments/lexers/_postgres_builtins.py +233 -0
- data/vendor/pygments-main/pygments/lexers/_robotframeworklexer.py +557 -0
- data/vendor/pygments-main/pygments/lexers/_scilab_builtins.py +40 -0
- data/vendor/pygments-main/pygments/lexers/_sourcemodbuiltins.py +1072 -0
- data/vendor/pygments-main/pygments/lexers/_stan_builtins.py +360 -0
- data/vendor/pygments-main/pygments/lexers/_vimbuiltins.py +13 -0
- data/vendor/pygments-main/pygments/lexers/agile.py +2290 -0
- data/vendor/pygments-main/pygments/lexers/asm.py +398 -0
- data/vendor/pygments-main/pygments/lexers/compiled.py +3723 -0
- data/vendor/pygments-main/pygments/lexers/dalvik.py +104 -0
- data/vendor/pygments-main/pygments/lexers/dotnet.py +671 -0
- data/vendor/pygments-main/pygments/lexers/foxpro.py +428 -0
- data/vendor/pygments-main/pygments/lexers/functional.py +2731 -0
- data/vendor/pygments-main/pygments/lexers/github.py +565 -0
- data/vendor/pygments-main/pygments/lexers/hdl.py +356 -0
- data/vendor/pygments-main/pygments/lexers/jvm.py +1112 -0
- data/vendor/pygments-main/pygments/lexers/math.py +1918 -0
- data/vendor/pygments-main/pygments/lexers/other.py +3778 -0
- data/vendor/pygments-main/pygments/lexers/parsers.py +778 -0
- data/vendor/pygments-main/pygments/lexers/shell.py +424 -0
- data/vendor/pygments-main/pygments/lexers/special.py +100 -0
- data/vendor/pygments-main/pygments/lexers/sql.py +559 -0
- data/vendor/pygments-main/pygments/lexers/templates.py +1742 -0
- data/vendor/pygments-main/pygments/lexers/text.py +1893 -0
- data/vendor/pygments-main/pygments/lexers/web.py +4045 -0
- data/vendor/pygments-main/pygments/modeline.py +40 -0
- data/vendor/pygments-main/pygments/plugin.py +74 -0
- data/vendor/pygments-main/pygments/scanner.py +104 -0
- data/vendor/pygments-main/pygments/style.py +117 -0
- data/vendor/pygments-main/pygments/styles/__init__.py +70 -0
- data/vendor/pygments-main/pygments/styles/autumn.py +65 -0
- data/vendor/pygments-main/pygments/styles/borland.py +51 -0
- data/vendor/pygments-main/pygments/styles/bw.py +49 -0
- data/vendor/pygments-main/pygments/styles/colorful.py +81 -0
- data/vendor/pygments-main/pygments/styles/default.py +73 -0
- data/vendor/pygments-main/pygments/styles/emacs.py +72 -0
- data/vendor/pygments-main/pygments/styles/friendly.py +72 -0
- data/vendor/pygments-main/pygments/styles/fruity.py +42 -0
- data/vendor/pygments-main/pygments/styles/manni.py +75 -0
- data/vendor/pygments-main/pygments/styles/monokai.py +106 -0
- data/vendor/pygments-main/pygments/styles/murphy.py +80 -0
- data/vendor/pygments-main/pygments/styles/native.py +65 -0
- data/vendor/pygments-main/pygments/styles/pastie.py +75 -0
- data/vendor/pygments-main/pygments/styles/perldoc.py +69 -0
- data/vendor/pygments-main/pygments/styles/rrt.py +33 -0
- data/vendor/pygments-main/pygments/styles/tango.py +141 -0
- data/vendor/pygments-main/pygments/styles/trac.py +63 -0
- data/vendor/pygments-main/pygments/styles/vim.py +63 -0
- data/vendor/pygments-main/pygments/styles/vs.py +38 -0
- data/vendor/pygments-main/pygments/token.py +195 -0
- data/vendor/pygments-main/pygments/unistring.py +140 -0
- data/vendor/pygments-main/pygments/util.py +277 -0
- data/vendor/pygments-main/scripts/check_sources.py +242 -0
- data/vendor/pygments-main/scripts/detect_missing_analyse_text.py +32 -0
- data/vendor/pygments-main/scripts/epydoc.css +280 -0
- data/vendor/pygments-main/scripts/find_codetags.py +205 -0
- data/vendor/pygments-main/scripts/find_error.py +170 -0
- data/vendor/pygments-main/scripts/get_vimkw.py +43 -0
- data/vendor/pygments-main/scripts/pylintrc +301 -0
- data/vendor/pygments-main/scripts/reindent.py +291 -0
- data/vendor/pygments-main/scripts/vim2pygments.py +933 -0
- data/vendor/pygments-main/setup.cfg +7 -0
- data/vendor/pygments-main/setup.py +90 -0
- data/vendor/pygments-main/tests/dtds/HTML4-f.dtd +37 -0
- data/vendor/pygments-main/tests/dtds/HTML4-s.dtd +869 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dcl +88 -0
- data/vendor/pygments-main/tests/dtds/HTML4.dtd +1092 -0
- data/vendor/pygments-main/tests/dtds/HTML4.soc +9 -0
- data/vendor/pygments-main/tests/dtds/HTMLlat1.ent +195 -0
- data/vendor/pygments-main/tests/dtds/HTMLspec.ent +77 -0
- data/vendor/pygments-main/tests/dtds/HTMLsym.ent +241 -0
- data/vendor/pygments-main/tests/examplefiles/ANTLRv3.g +608 -0
- data/vendor/pygments-main/tests/examplefiles/AcidStateAdvanced.hs +209 -0
- data/vendor/pygments-main/tests/examplefiles/AlternatingGroup.mu +102 -0
- data/vendor/pygments-main/tests/examplefiles/BOM.js +1 -0
- data/vendor/pygments-main/tests/examplefiles/CPDictionary.j +611 -0
- data/vendor/pygments-main/tests/examplefiles/Config.in.cache +1973 -0
- data/vendor/pygments-main/tests/examplefiles/Constants.mo +158 -0
- data/vendor/pygments-main/tests/examplefiles/DancingSudoku.lhs +411 -0
- data/vendor/pygments-main/tests/examplefiles/Deflate.fs +578 -0
- data/vendor/pygments-main/tests/examplefiles/Errors.scala +18 -0
- data/vendor/pygments-main/tests/examplefiles/File.hy +174 -0
- data/vendor/pygments-main/tests/examplefiles/Get-CommandDefinitionHtml.ps1 +66 -0
- data/vendor/pygments-main/tests/examplefiles/IPDispatchC.nc +104 -0
- data/vendor/pygments-main/tests/examplefiles/IPDispatchP.nc +671 -0
- data/vendor/pygments-main/tests/examplefiles/Intro.java +1660 -0
- data/vendor/pygments-main/tests/examplefiles/Makefile +1131 -0
- data/vendor/pygments-main/tests/examplefiles/Object.st +4394 -0
- data/vendor/pygments-main/tests/examplefiles/OrderedMap.hx +584 -0
- data/vendor/pygments-main/tests/examplefiles/RoleQ.pm6 +23 -0
- data/vendor/pygments-main/tests/examplefiles/SmallCheck.hs +378 -0
- data/vendor/pygments-main/tests/examplefiles/Sorting.mod +470 -0
- data/vendor/pygments-main/tests/examplefiles/Sudoku.lhs +382 -0
- data/vendor/pygments-main/tests/examplefiles/addressbook.proto +30 -0
- data/vendor/pygments-main/tests/examplefiles/antlr_throws +1 -0
- data/vendor/pygments-main/tests/examplefiles/apache2.conf +393 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test.as +143 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test2.as +46 -0
- data/vendor/pygments-main/tests/examplefiles/as3_test3.as +3 -0
- data/vendor/pygments-main/tests/examplefiles/aspx-cs_example +27 -0
- data/vendor/pygments-main/tests/examplefiles/autoit_submit.au3 +25 -0
- data/vendor/pygments-main/tests/examplefiles/badcase.java +2 -0
- data/vendor/pygments-main/tests/examplefiles/batchfile.bat +49 -0
- data/vendor/pygments-main/tests/examplefiles/bigtest.nsi +308 -0
- data/vendor/pygments-main/tests/examplefiles/boot-9.scm +1557 -0
- data/vendor/pygments-main/tests/examplefiles/ca65_example +284 -0
- data/vendor/pygments-main/tests/examplefiles/cbmbas_example +9 -0
- data/vendor/pygments-main/tests/examplefiles/cells.ps +515 -0
- data/vendor/pygments-main/tests/examplefiles/ceval.c +2604 -0
- data/vendor/pygments-main/tests/examplefiles/cheetah_example.html +13 -0
- data/vendor/pygments-main/tests/examplefiles/classes.dylan +125 -0
- data/vendor/pygments-main/tests/examplefiles/condensed_ruby.rb +10 -0
- data/vendor/pygments-main/tests/examplefiles/coq_RelationClasses +447 -0
- data/vendor/pygments-main/tests/examplefiles/database.pytb +20 -0
- data/vendor/pygments-main/tests/examplefiles/de.MoinMoin.po +2461 -0
- data/vendor/pygments-main/tests/examplefiles/demo.ahk +181 -0
- data/vendor/pygments-main/tests/examplefiles/demo.cfm +38 -0
- data/vendor/pygments-main/tests/examplefiles/django_sample.html+django +68 -0
- data/vendor/pygments-main/tests/examplefiles/dwarf.cw +17 -0
- data/vendor/pygments-main/tests/examplefiles/erl_session +10 -0
- data/vendor/pygments-main/tests/examplefiles/escape_semicolon.clj +1 -0
- data/vendor/pygments-main/tests/examplefiles/evil_regex.js +48 -0
- data/vendor/pygments-main/tests/examplefiles/example.Rd +78 -0
- data/vendor/pygments-main/tests/examplefiles/example.bug +54 -0
- data/vendor/pygments-main/tests/examplefiles/example.c +2080 -0
- data/vendor/pygments-main/tests/examplefiles/example.ceylon +52 -0
- data/vendor/pygments-main/tests/examplefiles/example.clay +33 -0
- data/vendor/pygments-main/tests/examplefiles/example.cls +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.cob +3556 -0
- data/vendor/pygments-main/tests/examplefiles/example.cpp +2363 -0
- data/vendor/pygments-main/tests/examplefiles/example.gs +106 -0
- data/vendor/pygments-main/tests/examplefiles/example.gst +7 -0
- data/vendor/pygments-main/tests/examplefiles/example.hx +142 -0
- data/vendor/pygments-main/tests/examplefiles/example.jag +48 -0
- data/vendor/pygments-main/tests/examplefiles/example.kt +47 -0
- data/vendor/pygments-main/tests/examplefiles/example.lagda +19 -0
- data/vendor/pygments-main/tests/examplefiles/example.lua +250 -0
- data/vendor/pygments-main/tests/examplefiles/example.monkey +152 -0
- data/vendor/pygments-main/tests/examplefiles/example.moo +26 -0
- data/vendor/pygments-main/tests/examplefiles/example.moon +629 -0
- data/vendor/pygments-main/tests/examplefiles/example.msc +43 -0
- data/vendor/pygments-main/tests/examplefiles/example.nim +1010 -0
- data/vendor/pygments-main/tests/examplefiles/example.ns2 +69 -0
- data/vendor/pygments-main/tests/examplefiles/example.p +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.pas +2708 -0
- data/vendor/pygments-main/tests/examplefiles/example.prg +161 -0
- data/vendor/pygments-main/tests/examplefiles/example.rb +1852 -0
- data/vendor/pygments-main/tests/examplefiles/example.reg +19 -0
- data/vendor/pygments-main/tests/examplefiles/example.rexx +50 -0
- data/vendor/pygments-main/tests/examplefiles/example.rhtml +561 -0
- data/vendor/pygments-main/tests/examplefiles/example.rkt +95 -0
- data/vendor/pygments-main/tests/examplefiles/example.rpf +4 -0
- data/vendor/pygments-main/tests/examplefiles/example.sh-session +19 -0
- data/vendor/pygments-main/tests/examplefiles/example.shell-session +45 -0
- data/vendor/pygments-main/tests/examplefiles/example.sml +156 -0
- data/vendor/pygments-main/tests/examplefiles/example.snobol +15 -0
- data/vendor/pygments-main/tests/examplefiles/example.stan +108 -0
- data/vendor/pygments-main/tests/examplefiles/example.tea +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.ts +28 -0
- data/vendor/pygments-main/tests/examplefiles/example.u +548 -0
- data/vendor/pygments-main/tests/examplefiles/example.weechatlog +9 -0
- data/vendor/pygments-main/tests/examplefiles/example.xhtml +376 -0
- data/vendor/pygments-main/tests/examplefiles/example.xtend +34 -0
- data/vendor/pygments-main/tests/examplefiles/example.yaml +302 -0
- data/vendor/pygments-main/tests/examplefiles/example2.aspx +29 -0
- data/vendor/pygments-main/tests/examplefiles/example2.msc +79 -0
- data/vendor/pygments-main/tests/examplefiles/example_elixir.ex +363 -0
- data/vendor/pygments-main/tests/examplefiles/example_file.fy +128 -0
- data/vendor/pygments-main/tests/examplefiles/firefox.mak +586 -0
- data/vendor/pygments-main/tests/examplefiles/flipflop.sv +19 -0
- data/vendor/pygments-main/tests/examplefiles/foo.sce +6 -0
- data/vendor/pygments-main/tests/examplefiles/format.ml +1213 -0
- data/vendor/pygments-main/tests/examplefiles/fucked_up.rb +77 -0
- data/vendor/pygments-main/tests/examplefiles/function.mu +1 -0
- data/vendor/pygments-main/tests/examplefiles/functional.rst +1472 -0
- data/vendor/pygments-main/tests/examplefiles/garcia-wachs.kk +133 -0
- data/vendor/pygments-main/tests/examplefiles/genclass.clj +510 -0
- data/vendor/pygments-main/tests/examplefiles/genshi_example.xml+genshi +193 -0
- data/vendor/pygments-main/tests/examplefiles/genshitext_example.genshitext +33 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.frag +7 -0
- data/vendor/pygments-main/tests/examplefiles/glsl.vert +13 -0
- data/vendor/pygments-main/tests/examplefiles/grammar-test.p6 +22 -0
- data/vendor/pygments-main/tests/examplefiles/hello.smali +40 -0
- data/vendor/pygments-main/tests/examplefiles/hello.sp +9 -0
- data/vendor/pygments-main/tests/examplefiles/html+php_faulty.php +1 -0
- data/vendor/pygments-main/tests/examplefiles/http_request_example +15 -0
- data/vendor/pygments-main/tests/examplefiles/http_response_example +29 -0
- data/vendor/pygments-main/tests/examplefiles/import.hs +4 -0
- data/vendor/pygments-main/tests/examplefiles/inet_pton6.dg +71 -0
- data/vendor/pygments-main/tests/examplefiles/intro.ik +24 -0
- data/vendor/pygments-main/tests/examplefiles/ints.php +10 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.fun +675 -0
- data/vendor/pygments-main/tests/examplefiles/intsyn.sig +286 -0
- data/vendor/pygments-main/tests/examplefiles/irb_heredoc +8 -0
- data/vendor/pygments-main/tests/examplefiles/irc.lsp +214 -0
- data/vendor/pygments-main/tests/examplefiles/java.properties +16 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example1.jbst +28 -0
- data/vendor/pygments-main/tests/examplefiles/jbst_example2.jbst +45 -0
- data/vendor/pygments-main/tests/examplefiles/jinjadesignerdoc.rst +713 -0
- data/vendor/pygments-main/tests/examplefiles/json.lasso +301 -0
- data/vendor/pygments-main/tests/examplefiles/json.lasso9 +213 -0
- data/vendor/pygments-main/tests/examplefiles/lighttpd_config.conf +13 -0
- data/vendor/pygments-main/tests/examplefiles/linecontinuation.py +47 -0
- data/vendor/pygments-main/tests/examplefiles/livescript-demo.ls +41 -0
- data/vendor/pygments-main/tests/examplefiles/logos_example.xm +28 -0
- data/vendor/pygments-main/tests/examplefiles/ltmain.sh +2849 -0
- data/vendor/pygments-main/tests/examplefiles/main.cmake +42 -0
- data/vendor/pygments-main/tests/examplefiles/markdown.lsp +679 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_noreturn +3 -0
- data/vendor/pygments-main/tests/examplefiles/matlab_sample +30 -0
- data/vendor/pygments-main/tests/examplefiles/matlabsession_sample.txt +37 -0
- data/vendor/pygments-main/tests/examplefiles/metagrammar.treetop +455 -0
- data/vendor/pygments-main/tests/examplefiles/mg_sample.pro +73 -0
- data/vendor/pygments-main/tests/examplefiles/minehunt.qml +112 -0
- data/vendor/pygments-main/tests/examplefiles/minimal.ns2 +4 -0
- data/vendor/pygments-main/tests/examplefiles/moin_SyntaxReference.txt +340 -0
- data/vendor/pygments-main/tests/examplefiles/multiline_regexes.rb +38 -0
- data/vendor/pygments-main/tests/examplefiles/nanomsg.intr +95 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_aoutso.asm +96 -0
- data/vendor/pygments-main/tests/examplefiles/nasm_objexe.asm +30 -0
- data/vendor/pygments-main/tests/examplefiles/nemerle_sample.n +87 -0
- data/vendor/pygments-main/tests/examplefiles/nginx_nginx.conf +118 -0
- data/vendor/pygments-main/tests/examplefiles/numbers.c +12 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example.m +32 -0
- data/vendor/pygments-main/tests/examplefiles/objc_example2.m +24 -0
- data/vendor/pygments-main/tests/examplefiles/perl_misc +62 -0
- data/vendor/pygments-main/tests/examplefiles/perl_perl5db +998 -0
- data/vendor/pygments-main/tests/examplefiles/perl_regex-delims +120 -0
- data/vendor/pygments-main/tests/examplefiles/perlfunc.1 +856 -0
- data/vendor/pygments-main/tests/examplefiles/phpMyAdmin.spec +163 -0
- data/vendor/pygments-main/tests/examplefiles/phpcomplete.vim +567 -0
- data/vendor/pygments-main/tests/examplefiles/pleac.in.rb +1223 -0
- data/vendor/pygments-main/tests/examplefiles/postgresql_test.txt +47 -0
- data/vendor/pygments-main/tests/examplefiles/pppoe.applescript +10 -0
- data/vendor/pygments-main/tests/examplefiles/psql_session.txt +122 -0
- data/vendor/pygments-main/tests/examplefiles/py3_test.txt +2 -0
- data/vendor/pygments-main/tests/examplefiles/py3tb_test.py3tb +4 -0
- data/vendor/pygments-main/tests/examplefiles/pycon_test.pycon +14 -0
- data/vendor/pygments-main/tests/examplefiles/pytb_test2.pytb +2 -0
- data/vendor/pygments-main/tests/examplefiles/pytb_test3.pytb +4 -0
- data/vendor/pygments-main/tests/examplefiles/python25-bsd.mak +234 -0
- data/vendor/pygments-main/tests/examplefiles/qsort.prolog +13 -0
- data/vendor/pygments-main/tests/examplefiles/r-console-transcript.Rout +38 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_rlscan +280 -0
- data/vendor/pygments-main/tests/examplefiles/ragel-cpp_snippet +2 -0
- data/vendor/pygments-main/tests/examplefiles/regex.js +22 -0
- data/vendor/pygments-main/tests/examplefiles/reversi.lsp +427 -0
- data/vendor/pygments-main/tests/examplefiles/robotframework.txt +39 -0
- data/vendor/pygments-main/tests/examplefiles/ruby_func_def.rb +11 -0
- data/vendor/pygments-main/tests/examplefiles/rust_example.rs +233 -0
- data/vendor/pygments-main/tests/examplefiles/scilab.sci +30 -0
- data/vendor/pygments-main/tests/examplefiles/session.dylan-console +9 -0
- data/vendor/pygments-main/tests/examplefiles/sibling.prolog +19 -0
- data/vendor/pygments-main/tests/examplefiles/simple.md +747 -0
- data/vendor/pygments-main/tests/examplefiles/smarty_example.html +209 -0
- data/vendor/pygments-main/tests/examplefiles/source.lgt +343 -0
- data/vendor/pygments-main/tests/examplefiles/sources.list +62 -0
- data/vendor/pygments-main/tests/examplefiles/sphere.pov +18 -0
- data/vendor/pygments-main/tests/examplefiles/sqlite3.sqlite3-console +27 -0
- data/vendor/pygments-main/tests/examplefiles/squid.conf +30 -0
- data/vendor/pygments-main/tests/examplefiles/string.jl +1031 -0
- data/vendor/pygments-main/tests/examplefiles/string_delimiters.d +21 -0
- data/vendor/pygments-main/tests/examplefiles/stripheredoc.sh +3 -0
- data/vendor/pygments-main/tests/examplefiles/swig_java.swg +1329 -0
- data/vendor/pygments-main/tests/examplefiles/swig_std_vector.i +225 -0
- data/vendor/pygments-main/tests/examplefiles/test.R +153 -0
- data/vendor/pygments-main/tests/examplefiles/test.adb +211 -0
- data/vendor/pygments-main/tests/examplefiles/test.agda +102 -0
- data/vendor/pygments-main/tests/examplefiles/test.asy +131 -0
- data/vendor/pygments-main/tests/examplefiles/test.awk +121 -0
- data/vendor/pygments-main/tests/examplefiles/test.bas +29 -0
- data/vendor/pygments-main/tests/examplefiles/test.bb +95 -0
- data/vendor/pygments-main/tests/examplefiles/test.bmx +145 -0
- data/vendor/pygments-main/tests/examplefiles/test.boo +39 -0
- data/vendor/pygments-main/tests/examplefiles/test.bro +250 -0
- data/vendor/pygments-main/tests/examplefiles/test.cs +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.css +54 -0
- data/vendor/pygments-main/tests/examplefiles/test.cu +36 -0
- data/vendor/pygments-main/tests/examplefiles/test.d +135 -0
- data/vendor/pygments-main/tests/examplefiles/test.dart +23 -0
- data/vendor/pygments-main/tests/examplefiles/test.dtd +89 -0
- data/vendor/pygments-main/tests/examplefiles/test.ebnf +31 -0
- data/vendor/pygments-main/tests/examplefiles/test.ec +605 -0
- data/vendor/pygments-main/tests/examplefiles/test.ecl +58 -0
- data/vendor/pygments-main/tests/examplefiles/test.eh +315 -0
- data/vendor/pygments-main/tests/examplefiles/test.erl +169 -0
- data/vendor/pygments-main/tests/examplefiles/test.evoque +33 -0
- data/vendor/pygments-main/tests/examplefiles/test.fan +818 -0
- data/vendor/pygments-main/tests/examplefiles/test.flx +57 -0
- data/vendor/pygments-main/tests/examplefiles/test.gdc +13 -0
- data/vendor/pygments-main/tests/examplefiles/test.groovy +97 -0
- data/vendor/pygments-main/tests/examplefiles/test.html +339 -0
- data/vendor/pygments-main/tests/examplefiles/test.ini +10 -0
- data/vendor/pygments-main/tests/examplefiles/test.java +653 -0
- data/vendor/pygments-main/tests/examplefiles/test.jsp +24 -0
- data/vendor/pygments-main/tests/examplefiles/test.maql +45 -0
- data/vendor/pygments-main/tests/examplefiles/test.mod +374 -0
- data/vendor/pygments-main/tests/examplefiles/test.moo +51 -0
- data/vendor/pygments-main/tests/examplefiles/test.myt +166 -0
- data/vendor/pygments-main/tests/examplefiles/test.nim +93 -0
- data/vendor/pygments-main/tests/examplefiles/test.opa +10 -0
- data/vendor/pygments-main/tests/examplefiles/test.p6 +252 -0
- data/vendor/pygments-main/tests/examplefiles/test.pas +743 -0
- data/vendor/pygments-main/tests/examplefiles/test.php +505 -0
- data/vendor/pygments-main/tests/examplefiles/test.plot +333 -0
- data/vendor/pygments-main/tests/examplefiles/test.ps1 +108 -0
- data/vendor/pygments-main/tests/examplefiles/test.pypylog +1839 -0
- data/vendor/pygments-main/tests/examplefiles/test.r3 +94 -0
- data/vendor/pygments-main/tests/examplefiles/test.rb +177 -0
- data/vendor/pygments-main/tests/examplefiles/test.rhtml +43 -0
- data/vendor/pygments-main/tests/examplefiles/test.scaml +8 -0
- data/vendor/pygments-main/tests/examplefiles/test.ssp +12 -0
- data/vendor/pygments-main/tests/examplefiles/test.tcsh +830 -0
- data/vendor/pygments-main/tests/examplefiles/test.vb +407 -0
- data/vendor/pygments-main/tests/examplefiles/test.vhdl +161 -0
- data/vendor/pygments-main/tests/examplefiles/test.xqy +138 -0
- data/vendor/pygments-main/tests/examplefiles/test.xsl +23 -0
- data/vendor/pygments-main/tests/examplefiles/test2.pypylog +120 -0
- data/vendor/pygments-main/tests/examplefiles/truncated.pytb +15 -0
- data/vendor/pygments-main/tests/examplefiles/type.lisp +1218 -0
- data/vendor/pygments-main/tests/examplefiles/underscore.coffee +603 -0
- data/vendor/pygments-main/tests/examplefiles/unicode.applescript +5 -0
- data/vendor/pygments-main/tests/examplefiles/unicodedoc.py +11 -0
- data/vendor/pygments-main/tests/examplefiles/unix-io.lid +37 -0
- data/vendor/pygments-main/tests/examplefiles/webkit-transition.css +3 -0
- data/vendor/pygments-main/tests/examplefiles/while.pov +13 -0
- data/vendor/pygments-main/tests/examplefiles/wiki.factor +384 -0
- data/vendor/pygments-main/tests/examplefiles/xml_example +1897 -0
- data/vendor/pygments-main/tests/examplefiles/zmlrpc.f90 +798 -0
- data/vendor/pygments-main/tests/old_run.py +138 -0
- data/vendor/pygments-main/tests/run.py +49 -0
- data/vendor/pygments-main/tests/support.py +15 -0
- data/vendor/pygments-main/tests/support/tags +36 -0
- data/vendor/pygments-main/tests/test_basic_api.py +295 -0
- data/vendor/pygments-main/tests/test_clexer.py +31 -0
- data/vendor/pygments-main/tests/test_cmdline.py +105 -0
- data/vendor/pygments-main/tests/test_examplefiles.py +99 -0
- data/vendor/pygments-main/tests/test_html_formatter.py +178 -0
- data/vendor/pygments-main/tests/test_latex_formatter.py +55 -0
- data/vendor/pygments-main/tests/test_lexers_other.py +68 -0
- data/vendor/pygments-main/tests/test_perllexer.py +137 -0
- data/vendor/pygments-main/tests/test_regexlexer.py +47 -0
- data/vendor/pygments-main/tests/test_token.py +46 -0
- data/vendor/pygments-main/tests/test_using_api.py +40 -0
- data/vendor/pygments-main/tests/test_util.py +135 -0
- data/vendor/simplejson/.gitignore +10 -0
- data/vendor/simplejson/.travis.yml +5 -0
- data/vendor/simplejson/CHANGES.txt +291 -0
- data/vendor/simplejson/LICENSE.txt +19 -0
- data/vendor/simplejson/MANIFEST.in +5 -0
- data/vendor/simplejson/README.rst +19 -0
- data/vendor/simplejson/conf.py +179 -0
- data/vendor/simplejson/index.rst +628 -0
- data/vendor/simplejson/scripts/make_docs.py +18 -0
- data/vendor/simplejson/setup.py +104 -0
- data/vendor/simplejson/simplejson/__init__.py +510 -0
- data/vendor/simplejson/simplejson/_speedups.c +2745 -0
- data/vendor/simplejson/simplejson/decoder.py +425 -0
- data/vendor/simplejson/simplejson/encoder.py +567 -0
- data/vendor/simplejson/simplejson/ordered_dict.py +119 -0
- data/vendor/simplejson/simplejson/scanner.py +77 -0
- data/vendor/simplejson/simplejson/tests/__init__.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_bigint_as_string.py +55 -0
- data/vendor/simplejson/simplejson/tests/test_check_circular.py +30 -0
- data/vendor/simplejson/simplejson/tests/test_decimal.py +66 -0
- data/vendor/simplejson/simplejson/tests/test_decode.py +83 -0
- data/vendor/simplejson/simplejson/tests/test_default.py +9 -0
- data/vendor/simplejson/simplejson/tests/test_dump.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_encode_basestring_ascii.py +46 -0
- data/vendor/simplejson/simplejson/tests/test_encode_for_html.py +32 -0
- data/vendor/simplejson/simplejson/tests/test_errors.py +34 -0
- data/vendor/simplejson/simplejson/tests/test_fail.py +91 -0
- data/vendor/simplejson/simplejson/tests/test_float.py +19 -0
- data/vendor/simplejson/simplejson/tests/test_indent.py +86 -0
- data/vendor/simplejson/simplejson/tests/test_item_sort_key.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_namedtuple.py +121 -0
- data/vendor/simplejson/simplejson/tests/test_pass1.py +76 -0
- data/vendor/simplejson/simplejson/tests/test_pass2.py +14 -0
- data/vendor/simplejson/simplejson/tests/test_pass3.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_recursion.py +67 -0
- data/vendor/simplejson/simplejson/tests/test_scanstring.py +117 -0
- data/vendor/simplejson/simplejson/tests/test_separators.py +42 -0
- data/vendor/simplejson/simplejson/tests/test_speedups.py +20 -0
- data/vendor/simplejson/simplejson/tests/test_tuple.py +49 -0
- data/vendor/simplejson/simplejson/tests/test_unicode.py +109 -0
- data/vendor/simplejson/simplejson/tool.py +39 -0
- metadata +557 -0
@@ -0,0 +1,291 @@
|
|
1
|
+
Version 2.6.0 released 2012-06-26
|
2
|
+
|
3
|
+
* Error messages changed to match proposal for Python 3.3.1
|
4
|
+
http://bugs.python.org/issue5067
|
5
|
+
|
6
|
+
Version 2.5.2 released 2012-05-10
|
7
|
+
|
8
|
+
* Fix for regression introduced in 2.5.1
|
9
|
+
https://github.com/simplejson/simplejson/issues/35
|
10
|
+
|
11
|
+
Version 2.5.1 released 2012-05-10
|
12
|
+
|
13
|
+
* Support for use_decimal=True in environments that use Python
|
14
|
+
sub-interpreters such as uWSGI
|
15
|
+
https://github.com/simplejson/simplejson/issues/34
|
16
|
+
|
17
|
+
Version 2.5.0 released 2012-03-29
|
18
|
+
|
19
|
+
* New item_sort_key option for encoder to allow fine grained control of sorted
|
20
|
+
output
|
21
|
+
|
22
|
+
Version 2.4.0 released 2012-03-06
|
23
|
+
|
24
|
+
* New bigint_as_string option for encoder to trade JavaScript number precision
|
25
|
+
issues for type issues.
|
26
|
+
https://github.com/simplejson/simplejson/issues/31
|
27
|
+
|
28
|
+
Version 2.3.3 released 2012-02-27
|
29
|
+
|
30
|
+
* Allow unknown numerical types for indent parameter
|
31
|
+
https://github.com/simplejson/simplejson/pull/29
|
32
|
+
|
33
|
+
Version 2.3.2 released 2011-12-30
|
34
|
+
|
35
|
+
* Fix crashing regression in speedups introduced in 2.3.1
|
36
|
+
|
37
|
+
Version 2.3.1 released 2011-12-29
|
38
|
+
|
39
|
+
* namedtuple_as_object now checks _asdict to ensure that it
|
40
|
+
is callable.
|
41
|
+
https://github.com/simplejson/simplejson/issues/26
|
42
|
+
|
43
|
+
Version 2.3.0 released 2011-12-05
|
44
|
+
|
45
|
+
* Any objects with _asdict() methods are now considered for
|
46
|
+
namedtuple_as_object.
|
47
|
+
https://github.com/simplejson/simplejson/pull/22
|
48
|
+
|
49
|
+
Version 2.2.1 released 2011-09-06
|
50
|
+
|
51
|
+
* Fix MANIFEST.in issue when building a sdist from a sdist.
|
52
|
+
https://github.com/simplejson/simplejson/issues/16
|
53
|
+
|
54
|
+
Version 2.2.0 released 2011-09-04
|
55
|
+
|
56
|
+
* Remove setuptools requirement, reverted to pure distutils
|
57
|
+
* use_decimal default for encoding (dump, dumps, JSONEncoder) is now True
|
58
|
+
* tuple encoding as JSON objects can be turned off with new
|
59
|
+
tuple_as_array=False option.
|
60
|
+
https://github.com/simplejson/simplejson/pull/6
|
61
|
+
* namedtuple (or other tuple subclasses with _asdict methods) are now
|
62
|
+
encoded as JSON objects rather than arrays by default. Can be disabled
|
63
|
+
and treated as a tuple with the new namedtuple_as_object=False option.
|
64
|
+
https://github.com/simplejson/simplejson/pull/6
|
65
|
+
* JSONDecodeError is now raised instead of ValueError when a document
|
66
|
+
ends with an opening quote and the C speedups are in use.
|
67
|
+
https://github.com/simplejson/simplejson/issues/15
|
68
|
+
* Updated documentation with information about JSONDecodeError
|
69
|
+
* Force unicode linebreak characters to be escaped (U+2028 and U+2029)
|
70
|
+
http://timelessrepo.com/json-isnt-a-javascript-subset
|
71
|
+
* Moved documentation from a git submodule to
|
72
|
+
http://simplejson.readthedocs.org/
|
73
|
+
|
74
|
+
Version 2.1.6 released 2011-05-08
|
75
|
+
|
76
|
+
* Prevent segfaults with deeply nested JSON documents
|
77
|
+
https://github.com/simplejson/simplejson/issues/11
|
78
|
+
* Fix compatibility with Python 2.5
|
79
|
+
https://github.com/simplejson/simplejson/issues/5
|
80
|
+
|
81
|
+
Version 2.1.5 released 2011-04-17
|
82
|
+
|
83
|
+
* Built sdist tarball with setuptools_git installed. Argh.
|
84
|
+
|
85
|
+
Version 2.1.4 released 2011-04-17
|
86
|
+
|
87
|
+
* Does not try to build the extension when using PyPy
|
88
|
+
* Trailing whitespace after commas no longer emitted when indent is used
|
89
|
+
* Migrated to github http://github.com/simplejson/simplejson
|
90
|
+
|
91
|
+
Version 2.1.3 released 2011-01-17
|
92
|
+
|
93
|
+
* Support the sort_keys option in C encoding speedups
|
94
|
+
http://code.google.com/p/simplejson/issues/detail?id=86
|
95
|
+
* Allow use_decimal to work with dump()
|
96
|
+
http://code.google.com/p/simplejson/issues/detail?id=87
|
97
|
+
|
98
|
+
Version 2.1.2 released 2010-11-01
|
99
|
+
|
100
|
+
* Correct wrong end when object_pairs_hook is used
|
101
|
+
http://code.google.com/p/simplejson/issues/detail?id=85
|
102
|
+
* Correct output for indent=0
|
103
|
+
http://bugs.python.org/issue10019
|
104
|
+
* Correctly raise TypeError when non-string keys are used with speedups
|
105
|
+
http://code.google.com/p/simplejson/issues/detail?id=82
|
106
|
+
* Fix the endlineno, endcolno attributes of the JSONDecodeError exception.
|
107
|
+
http://code.google.com/p/simplejson/issues/detail?id=81
|
108
|
+
|
109
|
+
Version 2.1.1 released 2010-03-31
|
110
|
+
|
111
|
+
* Change how setup.py imports ez_setup.py to try and workaround old versions
|
112
|
+
of setuptools.
|
113
|
+
http://code.google.com/p/simplejson/issues/detail?id=75
|
114
|
+
* Fix compilation on Windows platform (and other platforms with very
|
115
|
+
picky compilers)
|
116
|
+
* Corrected simplejson.__version__ and other minor doc changes.
|
117
|
+
* Do not fail speedups tests if speedups could not be built.
|
118
|
+
http://code.google.com/p/simplejson/issues/detail?id=73
|
119
|
+
|
120
|
+
Version 2.1.0 released 2010-03-10
|
121
|
+
|
122
|
+
* Decimal serialization officially supported for encoding with
|
123
|
+
use_decimal=True. For encoding this encodes Decimal objects and
|
124
|
+
for decoding it implies parse_float=Decimal
|
125
|
+
* Python 2.4 no longer supported (may still work, but no longer tested)
|
126
|
+
* Decoding performance and memory utilization enhancements
|
127
|
+
http://bugs.python.org/issue7451
|
128
|
+
* JSONEncoderForHTML class for escaping &, <, >
|
129
|
+
http://code.google.com/p/simplejson/issues/detail?id=66
|
130
|
+
* Memoization of object keys during encoding (when using speedups)
|
131
|
+
* Encoder changed to use PyIter_Next for list iteration to avoid
|
132
|
+
potential threading issues
|
133
|
+
* Encoder changed to use iteritems rather than PyDict_Next in order to
|
134
|
+
support dict subclasses that have a well defined ordering
|
135
|
+
http://bugs.python.org/issue6105
|
136
|
+
* indent encoding parameter changed to be a string rather than an integer
|
137
|
+
(integer use still supported for backwards compatibility)
|
138
|
+
http://code.google.com/p/simplejson/issues/detail?id=56
|
139
|
+
* Test suite (python setup.py test) now automatically runs with and without
|
140
|
+
speedups
|
141
|
+
http://code.google.com/p/simplejson/issues/detail?id=55
|
142
|
+
* Fixed support for older versions of easy_install (e.g. stock Mac OS X config)
|
143
|
+
http://code.google.com/p/simplejson/issues/detail?id=54
|
144
|
+
* Fixed str/unicode mismatches when using ensure_ascii=False
|
145
|
+
http://code.google.com/p/simplejson/issues/detail?id=48
|
146
|
+
* Fixed error message when parsing an array with trailing comma with speedups
|
147
|
+
http://code.google.com/p/simplejson/issues/detail?id=46
|
148
|
+
* Refactor decoder errors to raise JSONDecodeError instead of ValueError
|
149
|
+
http://code.google.com/p/simplejson/issues/detail?id=45
|
150
|
+
* New ordered_pairs_hook feature in decoder which makes it possible to
|
151
|
+
preserve key order. http://bugs.python.org/issue5381
|
152
|
+
* Fixed containerless unicode float decoding (same bug as 2.0.4, oops!)
|
153
|
+
http://code.google.com/p/simplejson/issues/detail?id=43
|
154
|
+
* Share PosInf definition between encoder and decoder
|
155
|
+
* Minor reformatting to make it easier to backport simplejson changes
|
156
|
+
to Python 2.7/3.1 json module
|
157
|
+
|
158
|
+
Version 2.0.9 released 2009-02-18
|
159
|
+
|
160
|
+
* Adds cyclic GC to the Encoder and Scanner speedups, which could've
|
161
|
+
caused uncollectible cycles in some cases when using custom parser
|
162
|
+
or encoder functions
|
163
|
+
|
164
|
+
Version 2.0.8 released 2009-02-15
|
165
|
+
|
166
|
+
* Documentation fixes
|
167
|
+
* Fixes encoding True and False as keys
|
168
|
+
* Fixes checking for True and False by identity for several parameters
|
169
|
+
|
170
|
+
Version 2.0.7 released 2009-01-04
|
171
|
+
|
172
|
+
* Documentation fixes
|
173
|
+
* C extension now always returns unicode strings when the input string is
|
174
|
+
unicode, even for empty strings
|
175
|
+
|
176
|
+
Version 2.0.6 released 2008-12-19
|
177
|
+
|
178
|
+
* Windows build fixes
|
179
|
+
|
180
|
+
Version 2.0.5 released 2008-11-23
|
181
|
+
|
182
|
+
* Fixes a segfault in the C extension when using check_circular=False and
|
183
|
+
encoding an invalid document
|
184
|
+
|
185
|
+
Version 2.0.4 released 2008-10-24
|
186
|
+
|
187
|
+
* Fixes a parsing error in the C extension when the JSON document is (only)
|
188
|
+
a floating point number. It would consume one too few characters in that
|
189
|
+
case, and claim the document invalid.
|
190
|
+
|
191
|
+
Version 2.0.3 released 2008-10-11
|
192
|
+
|
193
|
+
* Fixes reference leaks in the encoding speedups (sorry about that!)
|
194
|
+
* Fixes doctest suite for Python 2.6
|
195
|
+
* More optimizations for the decoder
|
196
|
+
|
197
|
+
Version 2.0.2 released 2008-10-06
|
198
|
+
|
199
|
+
* Fixes MSVC2003 build regression
|
200
|
+
* Fixes Python 2.4 compatibility in _speedups.c
|
201
|
+
|
202
|
+
Version 2.0.1 released 2008-09-29
|
203
|
+
|
204
|
+
* Fixes long encoding regression introduced in 2.0.0
|
205
|
+
* Fixes MinGW build regression introduced in 2.0.0
|
206
|
+
|
207
|
+
Version 2.0.0 released 2008-09-27
|
208
|
+
|
209
|
+
* optimized Python encoding path
|
210
|
+
* optimized Python decoding path
|
211
|
+
* optimized C encoding path
|
212
|
+
* optimized C decoding path
|
213
|
+
* switched to sphinx docs (nearly the same as the json module in python 2.6)
|
214
|
+
|
215
|
+
Version 1.9.3 released 2008-09-23
|
216
|
+
|
217
|
+
* Decoding is significantly faster (for our internal benchmarks)
|
218
|
+
* Pretty-printing tool changed from simplejson to simplejson.tool for better
|
219
|
+
Python 2.6 comaptibility
|
220
|
+
* Misc. bug fixes
|
221
|
+
|
222
|
+
Version 1.9 released 2008-05-03
|
223
|
+
|
224
|
+
* Rewrote test suite with unittest and doctest (no more nosetest dependency)
|
225
|
+
* Better PEP 7 and PEP 8 source compliance
|
226
|
+
* Removed simplejson.jsonfilter demo module
|
227
|
+
* simplejson.jsonfilter is no longer included
|
228
|
+
|
229
|
+
Version 1.8.1 released 2008-03-24
|
230
|
+
|
231
|
+
* Optional C extension for accelerating the decoding of JSON strings
|
232
|
+
* Command line interface for pretty-printing JSON (via python -msimplejson)
|
233
|
+
* Decoding of integers and floats is now extensible (e.g. to use Decimal) via
|
234
|
+
parse_int, parse_float options.
|
235
|
+
* Subversion and issue tracker moved to google code:
|
236
|
+
http://code.google.com/p/simplejson/
|
237
|
+
* "/" is no longer escaped, so if you're embedding JSON directly in HTML
|
238
|
+
you'll want to use .replace("/", "\\/") to prevent a close-tag attack.
|
239
|
+
|
240
|
+
Version 1.7 released 2007-03-18
|
241
|
+
|
242
|
+
* Improves encoding performance with an optional C extension to speed up
|
243
|
+
str/unicode encoding (by 10-150x or so), which yields an overall speed
|
244
|
+
boost of 2x+ (JSON is string-heavy).
|
245
|
+
* Support for encoding unicode code points outside the BMP to UTF-16
|
246
|
+
surrogate code pairs (specified by the Strings section of RFC 4627).
|
247
|
+
|
248
|
+
Version 1.6 released 2007-03-03
|
249
|
+
|
250
|
+
* Improved str support for encoding. Previous versions of simplejson
|
251
|
+
integrated strings directly into the output stream, this version ensures
|
252
|
+
they're of a particular encoding (default is UTF-8) so that the output
|
253
|
+
stream is valid.
|
254
|
+
|
255
|
+
Version 1.5 released 2007-01-18
|
256
|
+
|
257
|
+
* Better Python 2.5 compatibility
|
258
|
+
* Better Windows compatibility
|
259
|
+
* indent encoding parameter for pretty printing
|
260
|
+
* separators encoding parameter for generating optimally compact JSON
|
261
|
+
|
262
|
+
Version 1.3 released 2006-04-01
|
263
|
+
|
264
|
+
* The optional object_hook function is called upon decoding of any JSON
|
265
|
+
object literal, and its return value is used instead of the dict that
|
266
|
+
would normally be used. This can be used to efficiently implement
|
267
|
+
features such as JSON-RPC class hinting, or other custom decodings of
|
268
|
+
JSON. See the documentation for more information.
|
269
|
+
|
270
|
+
Version 1.1 released 2005-12-31
|
271
|
+
|
272
|
+
* Renamed from simple_json to simplejson to comply with PEP 8 module naming
|
273
|
+
guidelines
|
274
|
+
* Full set of documentation
|
275
|
+
* More tests
|
276
|
+
* The encoder and decoder have been extended to understand NaN, Infinity, and
|
277
|
+
-Infinity (but this can be turned off via allow_nan=False for strict JSON
|
278
|
+
compliance)
|
279
|
+
* The decoder's scanner has been fixed so that it no longer accepts invalid
|
280
|
+
JSON documents
|
281
|
+
* The decoder now reports line and column information as well as character
|
282
|
+
numbers for easier debugging
|
283
|
+
* The encoder now has a circular reference checker, which can be optionally
|
284
|
+
disabled with check_circular=False
|
285
|
+
* dump, dumps, load, loads now accept an optional cls kwarg to use an
|
286
|
+
alternate JSONEncoder or JSONDecoder class for convenience.
|
287
|
+
* The read/write compatibility shim for json-py now have deprecation warnings
|
288
|
+
|
289
|
+
Version 1.0 released 2005-12-25
|
290
|
+
|
291
|
+
* Initial release
|
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2006 Bob Ippolito
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
5
|
+
the Software without restriction, including without limitation the rights to
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
8
|
+
so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
@@ -0,0 +1,19 @@
|
|
1
|
+
simplejson is a simple, fast, complete, correct and extensible
|
2
|
+
JSON <http://json.org> encoder and decoder for Python 2.5+. It is
|
3
|
+
pure Python code with no dependencies, but includes an optional C
|
4
|
+
extension for a serious speed boost.
|
5
|
+
|
6
|
+
The latest documentation for simplejson can be read online here:
|
7
|
+
http://simplejson.readthedocs.org/
|
8
|
+
|
9
|
+
simplejson is the externally maintained development version of the
|
10
|
+
json library included with Python 2.6 and Python 3.0, but maintains
|
11
|
+
backwards compatibility with Python 2.5.
|
12
|
+
|
13
|
+
The encoder may be subclassed to provide serialization in any kind of
|
14
|
+
situation, without any special support by the objects to be serialized
|
15
|
+
(somewhat like pickle).
|
16
|
+
|
17
|
+
The decoder can handle incoming JSON strings of any specified encoding
|
18
|
+
(UTF-8 by default).
|
19
|
+
|
@@ -0,0 +1,179 @@
|
|
1
|
+
# -*- coding: utf-8 -*-
|
2
|
+
#
|
3
|
+
# simplejson documentation build configuration file, created by
|
4
|
+
# sphinx-quickstart on Fri Sep 26 18:58:30 2008.
|
5
|
+
#
|
6
|
+
# This file is execfile()d with the current directory set to its containing dir.
|
7
|
+
#
|
8
|
+
# The contents of this file are pickled, so don't put values in the namespace
|
9
|
+
# that aren't pickleable (module imports are okay, they're removed automatically).
|
10
|
+
#
|
11
|
+
# All configuration values have a default value; values that are commented out
|
12
|
+
# serve to show the default value.
|
13
|
+
|
14
|
+
import sys, os
|
15
|
+
|
16
|
+
# If your extensions are in another directory, add it here. If the directory
|
17
|
+
# is relative to the documentation root, use os.path.abspath to make it
|
18
|
+
# absolute, like shown here.
|
19
|
+
#sys.path.append(os.path.abspath('some/directory'))
|
20
|
+
|
21
|
+
# General configuration
|
22
|
+
# ---------------------
|
23
|
+
|
24
|
+
# Add any Sphinx extension module names here, as strings. They can be extensions
|
25
|
+
# coming with Sphinx (named 'sphinx.ext.*') or your custom ones.
|
26
|
+
extensions = []
|
27
|
+
|
28
|
+
# Add any paths that contain templates here, relative to this directory.
|
29
|
+
templates_path = ['_templates']
|
30
|
+
|
31
|
+
# The suffix of source filenames.
|
32
|
+
source_suffix = '.rst'
|
33
|
+
|
34
|
+
# The master toctree document.
|
35
|
+
master_doc = 'index'
|
36
|
+
|
37
|
+
# General substitutions.
|
38
|
+
project = 'simplejson'
|
39
|
+
copyright = '2012, Bob Ippolito'
|
40
|
+
|
41
|
+
# The default replacements for |version| and |release|, also used in various
|
42
|
+
# other places throughout the built documents.
|
43
|
+
#
|
44
|
+
# The short X.Y version.
|
45
|
+
version = '2.6'
|
46
|
+
# The full version, including alpha/beta/rc tags.
|
47
|
+
release = '2.6.0'
|
48
|
+
|
49
|
+
# There are two options for replacing |today|: either, you set today to some
|
50
|
+
# non-false value, then it is used:
|
51
|
+
#today = ''
|
52
|
+
# Else, today_fmt is used as the format for a strftime call.
|
53
|
+
today_fmt = '%B %d, %Y'
|
54
|
+
|
55
|
+
# List of documents that shouldn't be included in the build.
|
56
|
+
#unused_docs = []
|
57
|
+
|
58
|
+
# List of directories, relative to source directories, that shouldn't be searched
|
59
|
+
# for source files.
|
60
|
+
#exclude_dirs = []
|
61
|
+
|
62
|
+
# The reST default role (used for this markup: `text`) to use for all documents.
|
63
|
+
#default_role = None
|
64
|
+
|
65
|
+
# If true, '()' will be appended to :func: etc. cross-reference text.
|
66
|
+
#add_function_parentheses = True
|
67
|
+
|
68
|
+
# If true, the current module name will be prepended to all description
|
69
|
+
# unit titles (such as .. function::).
|
70
|
+
#add_module_names = True
|
71
|
+
|
72
|
+
# If true, sectionauthor and moduleauthor directives will be shown in the
|
73
|
+
# output. They are ignored by default.
|
74
|
+
#show_authors = False
|
75
|
+
|
76
|
+
# The name of the Pygments (syntax highlighting) style to use.
|
77
|
+
pygments_style = 'sphinx'
|
78
|
+
|
79
|
+
|
80
|
+
# Options for HTML output
|
81
|
+
# -----------------------
|
82
|
+
|
83
|
+
# The style sheet to use for HTML and HTML Help pages. A file of that name
|
84
|
+
# must exist either in Sphinx' static/ path, or in one of the custom paths
|
85
|
+
# given in html_static_path.
|
86
|
+
html_style = 'default.css'
|
87
|
+
|
88
|
+
# The name for this set of Sphinx documents. If None, it defaults to
|
89
|
+
# "<project> v<release> documentation".
|
90
|
+
#html_title = None
|
91
|
+
|
92
|
+
# A shorter title for the navigation bar. Default is the same as html_title.
|
93
|
+
#html_short_title = None
|
94
|
+
|
95
|
+
# The name of an image file (within the static path) to place at the top of
|
96
|
+
# the sidebar.
|
97
|
+
#html_logo = None
|
98
|
+
|
99
|
+
# The name of an image file (within the static path) to use as favicon of the
|
100
|
+
# docs. This file should be a Windows icon file (.ico) being 16x16 or 32x32
|
101
|
+
# pixels large.
|
102
|
+
#html_favicon = None
|
103
|
+
|
104
|
+
# Add any paths that contain custom static files (such as style sheets) here,
|
105
|
+
# relative to this directory. They are copied after the builtin static files,
|
106
|
+
# so a file named "default.css" will overwrite the builtin "default.css".
|
107
|
+
html_static_path = ['_static']
|
108
|
+
|
109
|
+
# If not '', a 'Last updated on:' timestamp is inserted at every page bottom,
|
110
|
+
# using the given strftime format.
|
111
|
+
html_last_updated_fmt = '%b %d, %Y'
|
112
|
+
|
113
|
+
# If true, SmartyPants will be used to convert quotes and dashes to
|
114
|
+
# typographically correct entities.
|
115
|
+
#html_use_smartypants = True
|
116
|
+
|
117
|
+
# Custom sidebar templates, maps document names to template names.
|
118
|
+
#html_sidebars = {}
|
119
|
+
|
120
|
+
# Additional templates that should be rendered to pages, maps page names to
|
121
|
+
# template names.
|
122
|
+
#html_additional_pages = {}
|
123
|
+
|
124
|
+
# If false, no module index is generated.
|
125
|
+
html_use_modindex = False
|
126
|
+
|
127
|
+
# If false, no index is generated.
|
128
|
+
#html_use_index = True
|
129
|
+
|
130
|
+
# If true, the index is split into individual pages for each letter.
|
131
|
+
#html_split_index = False
|
132
|
+
|
133
|
+
# If true, the reST sources are included in the HTML build as _sources/<name>.
|
134
|
+
#html_copy_source = True
|
135
|
+
|
136
|
+
# If true, an OpenSearch description file will be output, and all pages will
|
137
|
+
# contain a <link> tag referring to it. The value of this option must be the
|
138
|
+
# base URL from which the finished HTML is served.
|
139
|
+
#html_use_opensearch = ''
|
140
|
+
|
141
|
+
# If nonempty, this is the file name suffix for HTML files (e.g. ".xhtml").
|
142
|
+
html_file_suffix = '.html'
|
143
|
+
|
144
|
+
# Output file base name for HTML help builder.
|
145
|
+
htmlhelp_basename = 'simplejsondoc'
|
146
|
+
|
147
|
+
|
148
|
+
# Options for LaTeX output
|
149
|
+
# ------------------------
|
150
|
+
|
151
|
+
# The paper size ('letter' or 'a4').
|
152
|
+
#latex_paper_size = 'letter'
|
153
|
+
|
154
|
+
# The font size ('10pt', '11pt' or '12pt').
|
155
|
+
#latex_font_size = '10pt'
|
156
|
+
|
157
|
+
# Grouping the document tree into LaTeX files. List of tuples
|
158
|
+
# (source start file, target name, title, author, document class [howto/manual]).
|
159
|
+
latex_documents = [
|
160
|
+
('index', 'simplejson.tex', 'simplejson Documentation',
|
161
|
+
'Bob Ippolito', 'manual'),
|
162
|
+
]
|
163
|
+
|
164
|
+
# The name of an image file (relative to this directory) to place at the top of
|
165
|
+
# the title page.
|
166
|
+
#latex_logo = None
|
167
|
+
|
168
|
+
# For "manual" documents, if this is true, then toplevel headings are parts,
|
169
|
+
# not chapters.
|
170
|
+
#latex_use_parts = False
|
171
|
+
|
172
|
+
# Additional stuff for the LaTeX preamble.
|
173
|
+
#latex_preamble = ''
|
174
|
+
|
175
|
+
# Documents to append as an appendix to all manuals.
|
176
|
+
#latex_appendices = []
|
177
|
+
|
178
|
+
# If false, no module index is generated.
|
179
|
+
#latex_use_modindex = True
|