challah 1.0.0.beta2 → 1.0.0.beta3
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 +4 -4
- data/lib/challah/authorization.rb +13 -6
- data/lib/challah/user/providers.rb +3 -1
- data/lib/challah/version.rb +1 -1
- data/test/authorization_test.rb +15 -0
- data/test/user_test.rb +2 -1
- data/vendor/bundle/build_info/highline-1.6.18.info +1 -0
- data/vendor/bundle/build_info/mime-types-1.23.info +1 -0
- data/vendor/bundle/build_info/minitest-4.7.4.info +1 -0
- data/vendor/bundle/build_info/multi_json-1.7.3.info +1 -0
- data/vendor/bundle/build_info/rdiscount-2.0.7.3.info +1 -0
- data/vendor/bundle/build_info/shoulda-3.5.0.info +1 -0
- data/vendor/bundle/build_info/shoulda-matchers-2.1.0.info +1 -0
- data/vendor/bundle/build_info/tilt-1.4.1.info +1 -0
- data/vendor/bundle/build_info/yard-0.8.6.1.info +1 -0
- data/vendor/bundle/cache/highline-1.6.18.gem +0 -0
- data/vendor/bundle/cache/mime-types-1.23.gem +0 -0
- data/vendor/bundle/cache/minitest-4.7.4.gem +0 -0
- data/vendor/bundle/cache/multi_json-1.7.3.gem +0 -0
- data/vendor/bundle/cache/rdiscount-2.0.7.3.gem +0 -0
- data/vendor/bundle/cache/shoulda-3.5.0.gem +0 -0
- data/vendor/bundle/cache/shoulda-matchers-2.1.0.gem +0 -0
- data/vendor/bundle/cache/tilt-1.4.1.gem +0 -0
- data/vendor/bundle/cache/yard-0.8.6.1.gem +0 -0
- data/vendor/bundle/gems/highline-1.6.18/AUTHORS +3 -0
- data/vendor/bundle/gems/highline-1.6.18/CHANGELOG +342 -0
- data/vendor/bundle/gems/highline-1.6.18/COPYING +340 -0
- data/vendor/bundle/gems/highline-1.6.18/INSTALL +55 -0
- data/vendor/bundle/gems/highline-1.6.18/LICENSE +7 -0
- data/vendor/bundle/gems/highline-1.6.18/README.rdoc +63 -0
- data/vendor/bundle/gems/highline-1.6.18/Rakefile +50 -0
- data/vendor/bundle/gems/highline-1.6.18/TODO +6 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/ansi_colors.rb +38 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/asking_for_arrays.rb +18 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/basic_usage.rb +75 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/color_scheme.rb +32 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/get_character.rb +12 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/limit.rb +12 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/menus.rb +65 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/overwrite.rb +19 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/page_and_wrap.rb +322 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/password.rb +7 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/repeat_entry.rb +21 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/trapping_eof.rb +22 -0
- data/vendor/bundle/gems/highline-1.6.18/examples/using_readline.rb +17 -0
- data/vendor/bundle/gems/highline-1.6.18/highline.gemspec +37 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/color_scheme.rb +134 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/compatibility.rb +16 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/import.rb +41 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/menu.rb +398 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/question.rb +475 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/simulate.rb +48 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/string_extensions.rb +131 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/style.rb +181 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline/system_extensions.rb +218 -0
- data/vendor/bundle/gems/highline-1.6.18/lib/highline.rb +1012 -0
- data/vendor/bundle/gems/highline-1.6.18/setup.rb +1360 -0
- data/vendor/bundle/gems/highline-1.6.18/site/highline.css +65 -0
- data/vendor/bundle/gems/highline-1.6.18/site/images/logo.png +0 -0
- data/vendor/bundle/gems/highline-1.6.18/site/index.html +58 -0
- data/vendor/bundle/gems/highline-1.6.18/test/string_methods.rb +32 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_color_scheme.rb +96 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_highline.rb +1123 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_import.rb +52 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_menu.rb +439 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_string_extension.rb +20 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_string_highline.rb +38 -0
- data/vendor/bundle/gems/highline-1.6.18/test/tc_style.rb +567 -0
- data/vendor/bundle/gems/highline-1.6.18/test/ts_all.rb +16 -0
- data/vendor/bundle/gems/mime-types-1.23/Contributing.rdoc +68 -0
- data/vendor/bundle/gems/mime-types-1.23/Gemfile +21 -0
- data/vendor/bundle/gems/mime-types-1.23/History.rdoc +215 -0
- data/vendor/bundle/gems/mime-types-1.23/Licence.rdoc +37 -0
- data/vendor/bundle/gems/mime-types-1.23/Manifest.txt +40 -0
- data/vendor/bundle/gems/mime-types-1.23/README.rdoc +63 -0
- data/vendor/bundle/gems/mime-types-1.23/Rakefile +206 -0
- data/vendor/bundle/gems/mime-types-1.23/docs/COPYING.txt +339 -0
- data/vendor/bundle/gems/mime-types-1.23/docs/artistic.txt +127 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/application +1002 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/application.mac +3 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/application.nonstandard +131 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/application.obsolete +41 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/audio +138 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/audio.nonstandard +11 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/audio.obsolete +1 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/image +46 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/image.nonstandard +20 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/image.obsolete +5 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/message +18 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/message.obsolete +2 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/model +15 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/multipart +14 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/multipart.nonstandard +1 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/multipart.obsolete +7 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/other.nonstandard +8 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/text +61 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/text.nonstandard +7 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/text.obsolete +8 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/text.vms +1 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/video +73 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/video.nonstandard +16 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types/video.obsolete +3 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime/types.rb +881 -0
- data/vendor/bundle/gems/mime-types-1.23/lib/mime-types.rb +3 -0
- data/vendor/bundle/gems/mime-types-1.23/test/test_mime_type.rb +319 -0
- data/vendor/bundle/gems/mime-types-1.23/test/test_mime_types.rb +119 -0
- data/vendor/bundle/gems/minitest-4.7.4/History.txt +796 -0
- data/vendor/bundle/gems/minitest-4.7.4/Manifest.txt +20 -0
- data/vendor/bundle/gems/minitest-4.7.4/README.txt +457 -0
- data/vendor/bundle/gems/minitest-4.7.4/Rakefile +94 -0
- data/vendor/bundle/gems/minitest-4.7.4/design_rationale.rb +52 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/hoe/minitest.rb +22 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/autorun.rb +12 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/benchmark.rb +416 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/hell.rb +13 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/mock.rb +193 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/parallel_each.rb +73 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/pride.rb +112 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/spec.rb +545 -0
- data/vendor/bundle/gems/minitest-4.7.4/lib/minitest/unit.rb +1415 -0
- data/vendor/bundle/gems/minitest-4.7.4/test/minitest/metametameta.rb +67 -0
- data/vendor/bundle/gems/minitest-4.7.4/test/minitest/test_minitest_benchmark.rb +128 -0
- data/vendor/bundle/gems/minitest-4.7.4/test/minitest/test_minitest_mock.rb +403 -0
- data/vendor/bundle/gems/minitest-4.7.4/test/minitest/test_minitest_spec.rb +804 -0
- data/vendor/bundle/gems/minitest-4.7.4/test/minitest/test_minitest_unit.rb +1860 -0
- data/vendor/bundle/gems/multi_json-1.7.3/CHANGELOG.md +147 -0
- data/vendor/bundle/gems/multi_json-1.7.3/CONTRIBUTING.md +46 -0
- data/vendor/bundle/gems/multi_json-1.7.3/Gemfile +31 -0
- data/vendor/bundle/gems/multi_json-1.7.3/LICENSE.md +20 -0
- data/vendor/bundle/gems/multi_json-1.7.3/README.md +109 -0
- data/vendor/bundle/gems/multi_json-1.7.3/Rakefile +12 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapter.rb +43 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/gson.rb +19 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/jr_jackson.rb +19 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/json_common.rb +35 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/json_gem.rb +15 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/json_pure.rb +15 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/oj.rb +28 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/ok_json.rb +22 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/adapters/yajl.rb +19 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/convertible_hash_keys.rb +43 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/options.rb +39 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/vendor/okjson.rb +600 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json/version.rb +3 -0
- data/vendor/bundle/gems/multi_json-1.7.3/lib/multi_json.rb +154 -0
- data/vendor/bundle/gems/multi_json-1.7.3/multi_json.gemspec +22 -0
- data/vendor/bundle/gems/multi_json-1.7.3/spec/adapter_shared_example.rb +235 -0
- data/vendor/bundle/gems/multi_json-1.7.3/spec/has_options.rb +74 -0
- data/vendor/bundle/gems/multi_json-1.7.3/spec/helper.rb +32 -0
- data/vendor/bundle/gems/multi_json-1.7.3/spec/json_common_shared_example.rb +30 -0
- data/vendor/bundle/gems/multi_json-1.7.3/spec/multi_json_spec.rb +224 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/BUILDING +142 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/COPYING +52 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/README.markdown +72 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/Rakefile +218 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/bin/rdiscount +13 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/Csio.c +61 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/Csio.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/Makefile +237 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/VERSION +1 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/amalloc.c +111 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/amalloc.h +29 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/amalloc.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/basename.c +43 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/basename.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/config.h +25 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/css.c +85 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/css.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/cstring.h +77 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/docheader.c +49 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/docheader.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/dumptree.c +152 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/dumptree.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/emmatch.c +188 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/emmatch.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/extconf.rb +37 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/flags.c +84 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/flags.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/generate.c +1717 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/generate.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/html5.c +24 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/html5.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/markdown.c +1227 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/markdown.h +181 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/markdown.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/mkdio.c +354 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/mkdio.h +108 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/mkdio.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/mkmf.log +191 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/rdiscount.bundle +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/rdiscount.c +147 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/rdiscount.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/resource.c +157 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/resource.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/ruby-config.h +10 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/setup.c +47 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/setup.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/siteconf20130510-69347-e72tzr.rb +6 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/tags.c +123 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/tags.h +19 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/tags.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/toc.c +103 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/toc.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/version.c +22 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/version.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/xml.c +82 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/xml.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/xmlpage.c +48 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/ext/xmlpage.o +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/lib/markdown.rb +1 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/lib/rdiscount.bundle +0 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/lib/rdiscount.rb +100 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/man/markdown.7 +1020 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/man/rdiscount.1 +22 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/man/rdiscount.1.ronn +24 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/rdiscount.gemspec +65 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/test/benchmark.rb +56 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/test/benchmark.txt +306 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/test/markdown_test.rb +158 -0
- data/vendor/bundle/gems/rdiscount-2.0.7.3/test/rdiscount_test.rb +132 -0
- data/vendor/bundle/gems/shoulda-3.5.0/Appraisals +15 -0
- data/vendor/bundle/gems/shoulda-3.5.0/CONTRIBUTING.md +38 -0
- data/vendor/bundle/gems/shoulda-3.5.0/Gemfile +3 -0
- data/vendor/bundle/gems/shoulda-3.5.0/MIT-LICENSE +22 -0
- data/vendor/bundle/gems/shoulda-3.5.0/README.md +103 -0
- data/vendor/bundle/gems/shoulda-3.5.0/Rakefile +17 -0
- data/vendor/bundle/gems/shoulda-3.5.0/features/rails_integration.feature +87 -0
- data/vendor/bundle/gems/shoulda-3.5.0/features/step_definitions/rails_steps.rb +77 -0
- data/vendor/bundle/gems/shoulda-3.5.0/features/support/env.rb +14 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.0.gemfile +7 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.0.gemfile.lock +127 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.1.gemfile +9 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.1.gemfile.lock +148 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.2.gemfile +9 -0
- data/vendor/bundle/gems/shoulda-3.5.0/gemfiles/3.2.gemfile.lock +146 -0
- data/vendor/bundle/gems/shoulda-3.5.0/lib/shoulda/version.rb +3 -0
- data/vendor/bundle/gems/shoulda-3.5.0/lib/shoulda.rb +3 -0
- data/vendor/bundle/gems/shoulda-3.5.0/shoulda.gemspec +30 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/Appraisals +17 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/CONTRIBUTING.md +41 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/Gemfile +15 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/Gemfile.lock +148 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/MIT-LICENSE +22 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/NEWS.md +181 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/README.md +93 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/Rakefile +28 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/features/rails_integration.feature +114 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/features/step_definitions/rails_steps.rb +130 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/features/support/env.rb +5 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.0.gemfile +14 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.0.gemfile.lock +139 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.1.gemfile +16 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.1.gemfile.lock +160 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.2.gemfile +16 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/gemfiles/3.2.gemfile.lock +158 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/filter_param_matcher.rb +46 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/redirect_to_matcher.rb +65 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/render_template_matcher.rb +61 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/render_with_layout_matcher.rb +94 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/respond_with_matcher.rb +83 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/route_matcher.rb +96 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/set_session_matcher.rb +105 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb +147 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/action_controller.rb +35 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/allow_mass_assignment_of_matcher.rb +113 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/allow_value_matcher.rb +174 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/disallow_value_matcher.rb +42 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/ensure_exclusion_of_matcher.rb +94 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/ensure_inclusion_of_matcher.rb +156 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/ensure_length_of_matcher.rb +176 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/errors.rb +7 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/exception_message_finder.rb +58 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/helpers.rb +45 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/odd_even_number_matcher.rb +47 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/only_integer_matcher.rb +37 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validate_acceptance_of_matcher.rb +41 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validate_confirmation_of_matcher.rb +65 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validate_numericality_of_matcher.rb +115 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validate_presence_of_matcher.rb +64 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validate_uniqueness_of_matcher.rb +221 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validation_matcher.rb +89 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model/validation_message_finder.rb +70 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_model.rb +50 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/accept_nested_attributes_for_matcher.rb +140 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/association_matcher.rb +368 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/have_db_column_matcher.rb +195 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/have_db_index_matcher.rb +111 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/have_readonly_attribute_matcher.rb +55 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record/serialize_matcher.rb +112 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/active_record.rb +25 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/assertion_error.rb +16 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/integrations/rspec.rb +20 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/integrations/test_unit.rb +42 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers/version.rb +5 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda/matchers.rb +8 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/lib/shoulda-matchers.rb +1 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/shoulda-matchers.gemspec +33 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/active_model/validate_uniqueness_of_matcher_spec.rb +195 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/filter_param_matcher_spec.rb +22 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/redirect_to_matcher_spec.rb +42 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/render_template_matcher_spec.rb +78 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/render_with_layout_matcher_spec.rb +58 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/respond_with_matcher_spec.rb +31 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/route_matcher_spec.rb +65 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/set_session_matcher_spec.rb +51 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/action_controller/set_the_flash_matcher_spec.rb +153 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/allow_mass_assignment_of_matcher_spec.rb +111 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/allow_value_matcher_spec.rb +146 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/disallow_value_matcher_spec.rb +43 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/ensure_exclusion_of_matcher_spec.rb +95 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/ensure_inclusion_of_matcher_spec.rb +194 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/ensure_length_of_matcher_spec.rb +159 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/exception_message_finder_spec.rb +112 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/helpers_spec.rb +158 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/odd_even_number_matcher_spec.rb +93 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/only_integer_matcher_spec.rb +52 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validate_acceptance_of_matcher_spec.rb +41 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validate_confirmation_of_matcher_spec.rb +47 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validate_numericality_of_matcher_spec.rb +133 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validate_presence_of_matcher_spec.rb +143 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb +212 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_model/validation_message_finder_spec.rb +119 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/accept_nested_attributes_for_matcher_spec.rb +106 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/association_matcher_spec.rb +606 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/have_db_column_matcher_spec.rb +111 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/have_db_index_matcher_spec.rb +78 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/have_readonly_attributes_matcher_spec.rb +41 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/shoulda/matchers/active_record/serialize_matcher_spec.rb +86 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/spec_helper.rb +28 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/active_model_versions.rb +13 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/activemodel_helpers.rb +19 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/class_builder.rb +42 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/controller_builder.rb +80 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/i18n_faker.rb +10 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/mailer_builder.rb +10 -0
- data/vendor/bundle/gems/shoulda-matchers-2.1.0/spec/support/model_builder.rb +77 -0
- data/vendor/bundle/gems/tilt-1.4.1/CHANGELOG.md +44 -0
- data/vendor/bundle/gems/tilt-1.4.1/COPYING +18 -0
- data/vendor/bundle/gems/tilt-1.4.1/Gemfile +32 -0
- data/vendor/bundle/gems/tilt-1.4.1/HACKING +16 -0
- data/vendor/bundle/gems/tilt-1.4.1/README.md +232 -0
- data/vendor/bundle/gems/tilt-1.4.1/Rakefile +104 -0
- data/vendor/bundle/gems/tilt-1.4.1/TEMPLATES.md +516 -0
- data/vendor/bundle/gems/tilt-1.4.1/bin/tilt +112 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/asciidoc.rb +34 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/builder.rb +40 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/coffee.rb +54 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/css.rb +80 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/csv.rb +71 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/erb.rb +110 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/etanni.rb +27 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/haml.rb +64 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/liquid.rb +45 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/markaby.rb +52 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/markdown.rb +214 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/nokogiri.rb +43 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/plain.rb +20 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/radius.rb +55 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/rdoc.rb +47 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/string.rb +21 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/template.rb +292 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/textile.rb +30 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/wiki.rb +58 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt/yajl.rb +94 -0
- data/vendor/bundle/gems/tilt-1.4.1/lib/tilt.rb +204 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/contest.rb +68 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/locals.mab +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/markaby.mab +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/markaby_other_static.mab +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/render_twice.mab +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/scope.mab +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/markaby/yielding.mab +2 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_asciidoctor_test.rb +44 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_blueclothtemplate_test.rb +45 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_buildertemplate_test.rb +59 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_cache_test.rb +32 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_coffeescripttemplate_test.rb +114 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_compilesite_test.rb +51 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_creoletemplate_test.rb +28 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_csv_test.rb +69 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_erbtemplate_test.rb +239 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_erubistemplate_test.rb +151 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_etannitemplate_test.rb +173 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_fallback_test.rb +122 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_hamltemplate_test.rb +144 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_kramdown_test.rb +42 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_lesstemplate_test.less +1 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_lesstemplate_test.rb +42 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_liquidtemplate_test.rb +78 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_markaby_test.rb +88 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_markdown_test.rb +172 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_marukutemplate_test.rb +48 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_nokogiritemplate_test.rb +87 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_radiustemplate_test.rb +75 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_rdiscounttemplate_test.rb +55 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_rdoctemplate_test.rb +31 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_redcarpettemplate_test.rb +71 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_redclothtemplate_test.rb +36 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_sasstemplate_test.rb +41 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_stringtemplate_test.rb +170 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_template_test.rb +323 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_test.rb +65 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_wikiclothtemplate_test.rb +32 -0
- data/vendor/bundle/gems/tilt-1.4.1/test/tilt_yajltemplate_test.rb +101 -0
- data/vendor/bundle/gems/tilt-1.4.1/tilt.gemspec +120 -0
- data/vendor/bundle/gems/yard-0.8.6.1/LEGAL +66 -0
- data/vendor/bundle/gems/yard-0.8.6.1/LICENSE +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/README.md +601 -0
- data/vendor/bundle/gems/yard-0.8.6.1/Rakefile +61 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/builtins_vs_eval.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/concat_vs_join.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/erb_vs_erubis.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/format_args.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/generation.rb +37 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/marshal_vs_dbm.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/parsing.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/pathname_vs_string.rb +50 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/rdoc_vs_yardoc.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/registry_store_types.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/ri_vs_yri.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/ripper_parser.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/splat_vs_flatten.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/template_erb.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/template_format.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/template_profile.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.6.1/benchmarks/yri_cache.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.6.1/bin/yard +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/bin/yardoc +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/bin/yri +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/CodeObjects.md +115 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/GettingStarted.md +592 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/Handlers.md +152 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/Overview.md +61 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/Parser.md +191 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/Tags.md +282 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/TagsArch.md +123 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/Templates.md +496 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/WhatsNew.md +1244 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/images/code-objects-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/images/handlers-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/images/overview-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/images/parser-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/images/tags-class-diagram.png +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/fulldoc/html/full_list_tag.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/fulldoc/html/setup.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/layout/html/setup.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/layout/html/tag_list.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/yard_tags/html/list.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/default/yard_tags/html/setup.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.6.1/docs/templates/plugin.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/rubygems_plugin.rb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/autoload.rb +290 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/command.rb +84 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/command_parser.rb +92 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/config.rb +136 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/diff.rb +270 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/display.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/gems.rb +83 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/graph.rb +125 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/help.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/i18n.rb +69 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/list.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/markup_types.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/server.rb +253 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/stats.rb +213 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/yardoc.rb +731 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/yardopts_command.rb +109 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/cli/yri.rb +214 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/base.rb +585 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/class_object.rb +143 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/class_variable_object.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/constant_object.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/extended_method_object.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/extra_file_object.rb +128 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/macro_object.rb +172 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/method_object.rb +191 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/module_object.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/namespace_object.rb +200 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/proxy.rb +258 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/code_objects/root_object.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/config.rb +269 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/array.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/file.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/hash.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/insertion.rb +60 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/module.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/string.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/core_ext/symbol_hash.rb +73 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/docstring.rb +364 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/docstring_parser.rb +321 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/globals.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/base.rb +597 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/alias_handler.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/attribute_handler.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/base.rb +110 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/class_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/constant_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/handler_methods.rb +166 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/init_handler.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/method_handler.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/mixin_handler.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/module_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/override_comment_handler.rb +30 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/path_handler.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/struct_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/c/symbol_handler.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/processor.rb +201 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/alias_handler.rb +41 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/attribute_handler.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/base.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_condition_handler.rb +86 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_handler.rb +121 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/class_variable_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/comment_handler.rb +9 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/constant_handler.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/dsl_handler.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/dsl_handler_methods.rb +77 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/exception_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/extend_handler.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/alias_handler.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/attribute_handler.rb +60 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/base.rb +250 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_condition_handler.rb +83 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_handler.rb +111 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/class_variable_handler.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/comment_handler.rb +9 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/constant_handler.rb +28 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/dsl_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/exception_handler.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/extend_handler.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/method_handler.rb +85 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/mixin_handler.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/module_function_handler.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/module_handler.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/private_constant_handler.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/visibility_handler.rb +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/legacy/yield_handler.rb +28 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/method_condition_handler.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/method_handler.rb +92 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/mixin_handler.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/module_function_handler.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/module_handler.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/private_constant_handler.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/struct_handler_methods.rb +141 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/visibility_handler.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/handlers/ruby/yield_handler.rb +30 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/i18n/locale.rb +74 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/i18n/message.rb +56 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/i18n/messages.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/i18n/pot_generator.rb +280 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/i18n/text.rb +173 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/logging.rb +190 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/options.rb +216 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/base.rb +56 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/c/c_parser.rb +225 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/c/comment_parser.rb +131 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/c/statement.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/ast_node.rb +496 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/ruby_lex.rb +1377 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/ruby_parser.rb +31 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/statement.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/statement_list.rb +384 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/legacy/token_list.rb +71 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/ruby/ruby_parser.rb +625 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/parser/source_parser.rb +517 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rake/yardoc_task.rb +74 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/registry.rb +438 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/registry_store.rb +319 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/backports/LICENSE.txt +57 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/backports/MIT.txt +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/backports/gem.rb +9 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/backports/source_index.rb +370 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/backports.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/doc_manager.rb +88 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/rubygems/specification.rb +41 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/serializers/base.rb +80 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/serializers/file_system_serializer.rb +90 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/serializers/process_serializer.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/serializers/stdout_serializer.rb +32 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/serializers/yardoc_serializer.rb +124 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/adapter.rb +100 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/base.rb +192 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/display_file_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/display_object_command.rb +58 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/frames_command.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/library_command.rb +148 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/library_index_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/list_command.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/search_command.rb +78 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/commands/static_file_command.rb +57 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/doc_server_helper.rb +76 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/doc_server_serializer.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/library_version.rb +227 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/rack_adapter.rb +88 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/router.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/static_caching.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/css/custom.css +78 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/images/processing.gif +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/fulldoc/html/js/autocomplete.js +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/breadcrumb.erb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/script_setup.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/layout/html/setup.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/method_details/html/permalink.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/default/method_details/html/setup.rb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/contents.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/headers.erb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/library_list.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/library_list/html/title.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/processing/html/processing.erb +51 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/processing/html/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/search/html/search.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/templates/doc_server/search/html/setup.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server/webrick_adapter.rb +43 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/server.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/default_factory.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/default_tag.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/directives.rb +595 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/library.rb +630 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/option_tag.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/overload_tag.rb +65 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/ref_tag.rb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/ref_tag_list.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/tag.rb +57 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/tags/tag_format_error.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/engine.rb +185 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/erb_cache.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/base_helper.rb +212 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/filter_helper.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/html_helper.rb +599 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/html_syntax_highlight_helper.rb +59 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup/rdoc_markdown.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup/rdoc_markup.rb +106 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/markup_helper.rb +169 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/method_helper.rb +74 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/module_helper.rb +19 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/text_helper.rb +95 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/helpers/uml_helper.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/section.rb +106 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/template.rb +407 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/templates/template_options.rb +88 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/verifier.rb +148 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard/version.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/lib/yard.rb +71 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/command_parser_spec.rb +43 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/command_spec.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/config_spec.rb +92 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/diff_spec.rb +260 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/display_spec.rb +30 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/gems_spec.rb +81 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/graph_spec.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/help_spec.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/i18n_spec.rb +111 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/list_spec.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/markup_types_spec.rb +22 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/server_spec.rb +327 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/stats_spec.rb +90 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/yardoc_spec.rb +777 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/cli/yri_spec.rb +99 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/base_spec.rb +438 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/class_object_spec.rb +225 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/code_object_list_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/constants_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/extra_file_object_spec.rb +147 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/macro_object_spec.rb +148 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/method_object_spec.rb +175 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/module_object_spec.rb +141 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/namespace_object_spec.rb +170 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/proxy_spec.rb +140 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/code_objects/spec_helper.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/config_spec.rb +176 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/array_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/file_spec.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/hash_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/insertion_spec.rb +37 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/module_spec.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/string_spec.rb +42 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/core_ext/symbol_hash_spec.rb +86 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/docstring_parser_spec.rb +228 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/docstring_spec.rb +325 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/alias_handler_spec.rb +80 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/attribute_handler_spec.rb +94 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/base_spec.rb +206 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/alias_handler_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/attribute_handler_spec.rb +40 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/class_handler_spec.rb +63 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/constant_handler_spec.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/init_handler_spec.rb +47 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/method_handler_spec.rb +229 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/mixin_handler_spec.rb +27 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/module_handler_spec.rb +38 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/override_comment_handler_spec.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/path_handler_spec.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/spec_helper.rb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/c/struct_handler_spec.rb +15 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/class_condition_handler_spec.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/class_handler_spec.rb +246 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/class_variable_handler_spec.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/constant_handler_spec.rb +64 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/dsl_handler_spec.rb +197 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/alias_handler_001.rb.txt +44 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/attribute_handler_001.rb.txt +32 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/class_condition_handler_001.rb.txt +69 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/class_handler_001.rb.txt +120 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/class_variable_handler_001.rb.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/constant_handler_001.rb.txt +25 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/dsl_handler_001.rb.txt +125 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/exception_handler_001.rb.txt +59 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/extend_handler_001.rb.txt +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/method_condition_handler_001.rb.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/method_handler_001.rb.txt +126 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/mixin_handler_001.rb.txt +37 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/module_handler_001.rb.txt +29 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/private_constant_handler_001.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/process_handler_001.rb.txt +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/visibility_handler_001.rb.txt +32 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/examples/yield_handler_001.rb.txt +54 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/exception_handler_spec.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/extend_handler_spec.rb +23 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/legacy_base_spec.rb +128 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/method_condition_handler_spec.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/method_handler_spec.rb +184 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/mixin_handler_spec.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/module_function_handler_spec.rb +105 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/module_handler_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/private_constant_handler_spec.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/processor_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/ruby/base_spec.rb +94 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/ruby/legacy/base_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/spec_helper.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/visibility_handler_spec.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/handlers/yield_handler_spec.rb +51 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/i18n/locale_spec.rb +68 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/i18n/message_spec.rb +52 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/i18n/messages_spec.rb +67 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/i18n/pot_generator_spec.rb +262 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/i18n/text_spec.rb +180 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/logging_spec.rb +35 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/options_spec.rb +171 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/base_spec.rb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/c_parser_spec.rb +166 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/array.c.txt +3887 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/example1.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/extrafile.c.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/multifile.c.txt +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/override.c.txt +424 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/parse_in_order_001.rb.txt +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/parse_in_order_002.rb.txt +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/examples/tag_handler_001.rb.txt +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/ruby/ast_node_spec.rb +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/ruby/legacy/statement_list_spec.rb +299 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/ruby/legacy/token_list_spec.rb +77 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/ruby/ruby_parser_spec.rb +334 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/source_parser_spec.rb +717 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/parser/tag_parsing_spec.rb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/rake/yardoc_task_spec.rb +101 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/registry_spec.rb +393 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/registry_store_spec.rb +315 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/rubygems/doc_manager_spec.rb +112 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/checksums +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo/bar_i.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo/baz_i.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/Foo.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/objects/root.dat +0 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/data/serialized_yardoc/proxy_types +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/file_system_serializer_spec.rb +124 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/spec_helper.rb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/serializers/yardoc_serializer_spec.rb +46 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/adapter_spec.rb +38 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/commands/base_spec.rb +87 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/commands/library_command_spec.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/commands/static_file_command_spec.rb +84 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/doc_server_helper_spec.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/doc_server_serializer_spec.rb +45 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/rack_adapter_spec.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/router_spec.rb +122 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/spec_helper.rb +17 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/static_caching_spec.rb +39 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server/webrick_servlet_spec.rb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/server_spec.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/spec_helper.rb +128 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/default_factory_spec.rb +152 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/default_tag_spec.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/directives_spec.rb +436 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/library_spec.rb +34 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/overload_tag_spec.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/tags/ref_tag_list_spec.rb +53 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/class_spec.rb +44 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/constant_spec.rb +40 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/engine_spec.rb +121 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/class001.html +280 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/class001.txt +36 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/class002.html +35 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/constant001.txt +25 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/constant002.txt +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/constant003.txt +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method001.html +130 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method001.txt +35 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method002.html +86 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method002.txt +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method003.html +159 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method003.txt +45 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method004.html +44 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method004.txt +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method005.html +99 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/method005.txt +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module001.dot +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module001.html +791 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module001.txt +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module002.html +318 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module003.html +185 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/module004.html +387 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/examples/tag001.txt +82 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/base_helper_spec.rb +175 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/html_helper_spec.rb +612 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/html_syntax_highlight_helper_spec.rb +48 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/markup/rdoc_markup_spec.rb +84 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/markup_helper_spec.rb +135 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/method_helper_spec.rb +82 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/shared_signature_examples.rb +123 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/helpers/text_helper_spec.rb +44 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/method_spec.rb +102 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/module_spec.rb +181 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/onefile_spec.rb +64 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/section_spec.rb +146 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/spec_helper.rb +73 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/tag_spec.rb +51 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/templates/template_spec.rb +409 -0
- data/vendor/bundle/gems/yard-0.8.6.1/spec/verifier_spec.rb +106 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/dot/setup.rb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/dot/superklass.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/html/constructor_details.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/html/subclasses.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/setup.rb +36 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/text/setup.rb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/class/text/subclasses.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/constant/text/header.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/constant/text/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/abstract.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/deprecated.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/index.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/note.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/private.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/returns_void.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/text.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/html/todo.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/setup.rb +49 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/abstract.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/deprecated.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/index.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/note.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/private.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/returns_void.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/text.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/docstring/text/todo.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/common.css +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/full_list.css +57 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/css/style.css +338 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/frames.erb +28 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list.erb +39 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_class.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_file.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/full_list_method.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/app.js +214 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/full_list.js +178 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/js/jquery.js +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/fulldoc/html/setup.rb +199 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/dot/header.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/dot/setup.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/breadcrumb.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/files.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/footer.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/headers.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/index.erb +2 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/layout.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/listing.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/objects.erb +32 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/script_setup.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/search.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/layout/html/setup.rb +71 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method/html/header.erb +16 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method/setup.rb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method/text/header.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/html/header.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/html/method_signature.erb +25 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/html/source.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/setup.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/text/header.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/text/method_signature.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/method_details/text/setup.rb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/dot/child.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/dot/dependencies.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/dot/header.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/dot/info.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/dot/setup.rb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/attribute_details.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/attribute_summary.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/box_info.erb +37 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/children.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/constant_summary.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/defines.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/header.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/inherited_attributes.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/inherited_constants.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/inherited_methods.erb +19 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/item_summary.erb +40 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/method_details_list.erb +9 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/method_summary.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/methodmissing.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/html/pre_docstring.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/setup.rb +164 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/children.erb +10 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/class_meths_list.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/extends.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/header.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/includes.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/instance_meths_list.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/module/text/setup.rb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/onefile/html/files.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/onefile/html/headers.erb +6 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/onefile/html/layout.erb +17 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/onefile/html/readme.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/onefile/html/setup.rb +61 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/root/dot/child.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/root/dot/setup.rb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/root/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/example.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/index.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/option.erb +24 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/overload.erb +14 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/see.erb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/html/tag.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/setup.rb +55 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/example.erb +12 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/index.erb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/option.erb +20 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/overload.erb +19 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/see.erb +11 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/default/tags/text/tag.erb +13 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/class/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/docstring/html/setup.rb +1 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/fulldoc/html/css/style.css +108 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/fulldoc/html/js/app.js +33 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/fulldoc/html/setup.rb +73 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/layout/html/layout.erb +81 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/layout/html/setup.rb +28 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/method/html/header.erb +18 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/method/html/setup.rb +21 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/module/html/header.erb +7 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/module/html/method_list.erb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/module/html/setup.rb +26 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/onefile/html/files.erb +4 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/onefile/html/setup.rb +5 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/onefile/html/toc.erb +3 -0
- data/vendor/bundle/gems/yard-0.8.6.1/templates/guide/tags/html/setup.rb +8 -0
- data/vendor/bundle/gems/yard-0.8.6.1/yard.gemspec +25 -0
- data/vendor/bundle/specifications/highline-1.6.18.gemspec +21 -0
- data/vendor/bundle/specifications/mime-types-1.23.gemspec +67 -0
- data/vendor/bundle/specifications/minitest-4.7.4.gemspec +36 -0
- data/vendor/bundle/specifications/multi_json-1.7.3.gemspec +30 -0
- data/vendor/bundle/specifications/rdiscount-2.0.7.3.gemspec +21 -0
- data/vendor/bundle/specifications/shoulda-3.5.0.gemspec +50 -0
- data/vendor/bundle/specifications/shoulda-matchers-2.1.0.gemspec +57 -0
- data/vendor/bundle/specifications/tilt-1.4.1.gemspec +98 -0
- data/vendor/bundle/specifications/yard-0.8.6.1.gemspec +20 -0
- metadata +964 -2
@@ -0,0 +1,1377 @@
|
|
1
|
+
require "e2mmap"
|
2
|
+
require "irb/slex"
|
3
|
+
|
4
|
+
module YARD
|
5
|
+
module Parser::Ruby::Legacy
|
6
|
+
# Legacy lexical tokenizer module.
|
7
|
+
module RubyToken
|
8
|
+
EXPR_BEG = :EXPR_BEG
|
9
|
+
EXPR_MID = :EXPR_MID
|
10
|
+
EXPR_END = :EXPR_END
|
11
|
+
EXPR_ARG = :EXPR_ARG
|
12
|
+
EXPR_FNAME = :EXPR_FNAME
|
13
|
+
EXPR_DOT = :EXPR_DOT
|
14
|
+
EXPR_CLASS = :EXPR_CLASS
|
15
|
+
|
16
|
+
# Represents a token in the Ruby lexer
|
17
|
+
class Token
|
18
|
+
# @return [Integer] the line number in the file/stream the token is
|
19
|
+
# located.
|
20
|
+
attr_reader :line_no
|
21
|
+
|
22
|
+
# @return [Integer] the character number in the file/stream the token
|
23
|
+
# is located.
|
24
|
+
attr_reader :char_no
|
25
|
+
|
26
|
+
# @return [String] the token text value
|
27
|
+
attr_reader :text
|
28
|
+
|
29
|
+
# @return [Symbol] the lexical state at the token
|
30
|
+
attr_accessor :lex_state
|
31
|
+
|
32
|
+
# @private
|
33
|
+
NO_TEXT = "??".freeze
|
34
|
+
|
35
|
+
# Creates a new Token object
|
36
|
+
# @param [Integer] line_no the line number to initialize the token to
|
37
|
+
# @param [Integer] char_no the char number to initialize the token to
|
38
|
+
def initialize(line_no, char_no)
|
39
|
+
@line_no = line_no
|
40
|
+
@char_no = char_no
|
41
|
+
@text = NO_TEXT
|
42
|
+
end
|
43
|
+
|
44
|
+
# Chainable way to sets the text attribute
|
45
|
+
#
|
46
|
+
# @param [String] text the new text
|
47
|
+
# @return [Token] this token object
|
48
|
+
def set_text(text)
|
49
|
+
@text = text
|
50
|
+
self
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
# Represents a block
|
55
|
+
class TkBlockContents < Token
|
56
|
+
def text; '...' end
|
57
|
+
end
|
58
|
+
|
59
|
+
# Represents an end statement
|
60
|
+
class TkStatementEnd < Token
|
61
|
+
def text; '' end
|
62
|
+
end
|
63
|
+
|
64
|
+
class TkNode < Token
|
65
|
+
attr :node
|
66
|
+
end
|
67
|
+
|
68
|
+
# Represents whitespace
|
69
|
+
class TkWhitespace < Token
|
70
|
+
end
|
71
|
+
|
72
|
+
# Represents a Ruby identifier
|
73
|
+
class TkId < Token
|
74
|
+
def initialize(line_no, char_no, name)
|
75
|
+
super(line_no, char_no)
|
76
|
+
@name = name
|
77
|
+
end
|
78
|
+
attr :name
|
79
|
+
end
|
80
|
+
|
81
|
+
# Represents a Ruby keyword
|
82
|
+
class TkKW < TkId
|
83
|
+
end
|
84
|
+
|
85
|
+
# Represents a Ruby value
|
86
|
+
class TkVal < Token
|
87
|
+
def initialize(line_no, char_no, value = nil)
|
88
|
+
super(line_no, char_no)
|
89
|
+
set_text(value)
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
class TkOp < Token
|
94
|
+
def name
|
95
|
+
self.class.op_name
|
96
|
+
end
|
97
|
+
end
|
98
|
+
|
99
|
+
class TkOPASGN < TkOp
|
100
|
+
def initialize(line_no, char_no, op)
|
101
|
+
super(line_no, char_no)
|
102
|
+
op = TkReading2Token[op] unless op.kind_of?(Symbol)
|
103
|
+
@op = op
|
104
|
+
end
|
105
|
+
attr :op
|
106
|
+
end
|
107
|
+
|
108
|
+
class TkUnknownChar < Token
|
109
|
+
def initialize(line_no, char_no, id)
|
110
|
+
super(line_no, char_no)
|
111
|
+
@name = char_no > 255 ? '?' : char_no.chr
|
112
|
+
end
|
113
|
+
attr :name
|
114
|
+
end
|
115
|
+
|
116
|
+
class TkError < Token
|
117
|
+
end
|
118
|
+
|
119
|
+
# @private
|
120
|
+
def set_token_position(line, char)
|
121
|
+
@prev_line_no = line
|
122
|
+
@prev_char_no = char
|
123
|
+
end
|
124
|
+
|
125
|
+
# @private
|
126
|
+
def Token(token, value = nil)
|
127
|
+
tk = nil
|
128
|
+
case token
|
129
|
+
when String, Symbol
|
130
|
+
source = token.kind_of?(String) ? TkReading2Token : TkSymbol2Token
|
131
|
+
if (tk = source[token]).nil?
|
132
|
+
IRB.fail TkReading2TokenNoKey, token
|
133
|
+
end
|
134
|
+
tk = Token(tk[0], value)
|
135
|
+
else
|
136
|
+
if token
|
137
|
+
tk = if (token.ancestors & [TkId, TkVal, TkOPASGN, TkUnknownChar]).empty?
|
138
|
+
token.new(@prev_line_no, @prev_char_no)
|
139
|
+
else
|
140
|
+
token.new(@prev_line_no, @prev_char_no, value)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
tk
|
145
|
+
end
|
146
|
+
|
147
|
+
# @private
|
148
|
+
TokenDefinitions = [
|
149
|
+
[:TkCLASS, TkKW, "class", EXPR_CLASS],
|
150
|
+
[:TkMODULE, TkKW, "module", EXPR_BEG],
|
151
|
+
[:TkDEF, TkKW, "def", EXPR_FNAME],
|
152
|
+
[:TkUNDEF, TkKW, "undef", EXPR_FNAME],
|
153
|
+
[:TkBEGIN, TkKW, "begin", EXPR_BEG],
|
154
|
+
[:TkRESCUE, TkKW, "rescue", EXPR_MID],
|
155
|
+
[:TkENSURE, TkKW, "ensure", EXPR_BEG],
|
156
|
+
[:TkEND, TkKW, "end", EXPR_END],
|
157
|
+
[:TkIF, TkKW, "if", EXPR_BEG, :TkIF_MOD],
|
158
|
+
[:TkUNLESS, TkKW, "unless", EXPR_BEG, :TkUNLESS_MOD],
|
159
|
+
[:TkTHEN, TkKW, "then", EXPR_BEG],
|
160
|
+
[:TkELSIF, TkKW, "elsif", EXPR_BEG],
|
161
|
+
[:TkELSE, TkKW, "else", EXPR_BEG],
|
162
|
+
[:TkCASE, TkKW, "case", EXPR_BEG],
|
163
|
+
[:TkWHEN, TkKW, "when", EXPR_BEG],
|
164
|
+
[:TkWHILE, TkKW, "while", EXPR_BEG, :TkWHILE_MOD],
|
165
|
+
[:TkUNTIL, TkKW, "until", EXPR_BEG, :TkUNTIL_MOD],
|
166
|
+
[:TkFOR, TkKW, "for", EXPR_BEG],
|
167
|
+
[:TkBREAK, TkKW, "break", EXPR_END],
|
168
|
+
[:TkNEXT, TkKW, "next", EXPR_END],
|
169
|
+
[:TkREDO, TkKW, "redo", EXPR_END],
|
170
|
+
[:TkRETRY, TkKW, "retry", EXPR_END],
|
171
|
+
[:TkIN, TkKW, "in", EXPR_BEG],
|
172
|
+
[:TkDO, TkKW, "do", EXPR_BEG],
|
173
|
+
[:TkRETURN, TkKW, "return", EXPR_MID],
|
174
|
+
[:TkYIELD, TkKW, "yield", EXPR_END],
|
175
|
+
[:TkSUPER, TkKW, "super", EXPR_END],
|
176
|
+
[:TkSELF, TkKW, "self", EXPR_END],
|
177
|
+
[:TkNIL, TkKW, "nil", EXPR_END],
|
178
|
+
[:TkTRUE, TkKW, "true", EXPR_END],
|
179
|
+
[:TkFALSE, TkKW, "false", EXPR_END],
|
180
|
+
[:TkAND, TkKW, "and", EXPR_BEG],
|
181
|
+
[:TkOR, TkKW, "or", EXPR_BEG],
|
182
|
+
[:TkNOT, TkKW, "not", EXPR_BEG],
|
183
|
+
[:TkIF_MOD, TkKW],
|
184
|
+
[:TkUNLESS_MOD, TkKW],
|
185
|
+
[:TkWHILE_MOD, TkKW],
|
186
|
+
[:TkUNTIL_MOD, TkKW],
|
187
|
+
[:TkALIAS, TkKW, "alias", EXPR_FNAME],
|
188
|
+
[:TkDEFINED, TkKW, "defined?", EXPR_END],
|
189
|
+
[:TklBEGIN, TkKW, "BEGIN", EXPR_END],
|
190
|
+
[:TklEND, TkKW, "END", EXPR_END],
|
191
|
+
[:Tk__LINE__, TkKW, "__LINE__", EXPR_END],
|
192
|
+
[:Tk__FILE__, TkKW, "__FILE__", EXPR_END],
|
193
|
+
|
194
|
+
[:TkIDENTIFIER, TkId],
|
195
|
+
[:TkFID, TkId],
|
196
|
+
[:TkGVAR, TkId],
|
197
|
+
[:TkIVAR, TkId],
|
198
|
+
[:TkCONSTANT, TkId],
|
199
|
+
|
200
|
+
[:TkINTEGER, TkVal],
|
201
|
+
[:TkFLOAT, TkVal],
|
202
|
+
[:TkSYMBOL, TkVal],
|
203
|
+
[:TkLABEL, TkVal],
|
204
|
+
[:TkSTRING, TkVal],
|
205
|
+
[:TkXSTRING, TkVal],
|
206
|
+
[:TkREGEXP, TkVal],
|
207
|
+
[:TkCOMMENT, TkVal],
|
208
|
+
|
209
|
+
[:TkDSTRING, TkNode],
|
210
|
+
[:TkDXSTRING, TkNode],
|
211
|
+
[:TkDREGEXP, TkNode],
|
212
|
+
[:TkNTH_REF, TkId],
|
213
|
+
[:TkBACK_REF, TkId],
|
214
|
+
|
215
|
+
[:TkUPLUS, TkOp, "+@"],
|
216
|
+
[:TkUMINUS, TkOp, "-@"],
|
217
|
+
[:TkPOW, TkOp, "**"],
|
218
|
+
[:TkCMP, TkOp, "<=>"],
|
219
|
+
[:TkEQ, TkOp, "=="],
|
220
|
+
[:TkEQQ, TkOp, "==="],
|
221
|
+
[:TkNEQ, TkOp, "!="],
|
222
|
+
[:TkGEQ, TkOp, ">="],
|
223
|
+
[:TkLEQ, TkOp, "<="],
|
224
|
+
[:TkANDOP, TkOp, "&&"],
|
225
|
+
[:TkOROP, TkOp, "||"],
|
226
|
+
[:TkMATCH, TkOp, "=~"],
|
227
|
+
[:TkNMATCH, TkOp, "!~"],
|
228
|
+
[:TkDOT2, TkOp, ".."],
|
229
|
+
[:TkDOT3, TkOp, "..."],
|
230
|
+
[:TkAREF, TkOp, "[]"],
|
231
|
+
[:TkASET, TkOp, "[]="],
|
232
|
+
[:TkLSHFT, TkOp, "<<"],
|
233
|
+
[:TkRSHFT, TkOp, ">>"],
|
234
|
+
[:TkCOLON2, TkOp],
|
235
|
+
[:TkCOLON3, TkOp],
|
236
|
+
[:OPASGN, TkOp], # +=, -= etc. #
|
237
|
+
[:TkASSOC, TkOp, "=>"],
|
238
|
+
[:TkQUESTION, TkOp, "?"], #?
|
239
|
+
[:TkCOLON, TkOp, ":"], #:
|
240
|
+
|
241
|
+
# [:TkfLPAREN], # func( #
|
242
|
+
# [:TkfLBRACK], # func[ #
|
243
|
+
# [:TkfLBRACE], # func{ #
|
244
|
+
[:TkSTAR], # *arg
|
245
|
+
[:TkAMPER], # &arg #
|
246
|
+
# [:TkSYMBOL, TkId], # :SYMBOL
|
247
|
+
[:TkSYMBEG, TkId],
|
248
|
+
[:TkGT, TkOp, ">"],
|
249
|
+
[:TkLT, TkOp, "<"],
|
250
|
+
[:TkPLUS, TkOp, "+"],
|
251
|
+
[:TkMINUS, TkOp, "-"],
|
252
|
+
[:TkMULT, TkOp, "*"],
|
253
|
+
[:TkDIV, TkOp, "/"],
|
254
|
+
[:TkMOD, TkOp, "%"],
|
255
|
+
[:TkBITOR, TkOp, "|"],
|
256
|
+
[:TkBITXOR, TkOp, "^"],
|
257
|
+
[:TkBITAND, TkOp, "&"],
|
258
|
+
[:TkBITNOT, TkOp, "~"],
|
259
|
+
[:TkNOTOP, TkOp, "!"],
|
260
|
+
|
261
|
+
[:TkBACKQUOTE, TkOp, "`"],
|
262
|
+
|
263
|
+
[:TkASSIGN, Token, "="],
|
264
|
+
[:TkDOT, Token, "."],
|
265
|
+
[:TkLPAREN, Token, "("], #(exp)
|
266
|
+
[:TkLBRACK, Token, "["], #[arry]
|
267
|
+
[:TkLBRACE, Token, "{"], #{hash}
|
268
|
+
[:TkRPAREN, Token, ")"],
|
269
|
+
[:TkRBRACK, Token, "]"],
|
270
|
+
[:TkRBRACE, Token, "}"],
|
271
|
+
[:TkCOMMA, Token, ","],
|
272
|
+
[:TkSEMICOLON, Token, ";"],
|
273
|
+
|
274
|
+
# [:TkRD_COMMENT, TkVal],
|
275
|
+
[:TkSPACE, TkWhitespace],
|
276
|
+
[:TkNL, TkWhitespace],
|
277
|
+
[:TkEND_OF_SCRIPT, TkWhitespace],
|
278
|
+
|
279
|
+
[:TkBACKSLASH, TkUnknownChar, "\\"],
|
280
|
+
[:TkAT, TkUnknownChar, "@"],
|
281
|
+
[:TkDOLLAR, TkUnknownChar, "\$"], #"
|
282
|
+
]
|
283
|
+
|
284
|
+
# { reading => token_class }
|
285
|
+
# { reading => [token_class, *opt] }
|
286
|
+
TkReading2Token = {}
|
287
|
+
TkSymbol2Token = {}
|
288
|
+
|
289
|
+
# @private
|
290
|
+
def RubyToken.def_token(token_n, super_token = Token, reading = nil, *opts)
|
291
|
+
token_n = token_n.id2name unless token_n.kind_of?(String)
|
292
|
+
if RubyToken.const_defined?(token_n)
|
293
|
+
# IRB.fail AlreadyDefinedToken, token_n
|
294
|
+
end
|
295
|
+
|
296
|
+
token_c = Class.new super_token
|
297
|
+
RubyToken.const_set token_n, token_c
|
298
|
+
# token_c.inspect
|
299
|
+
|
300
|
+
if reading
|
301
|
+
if TkReading2Token[reading]
|
302
|
+
IRB.fail TkReading2TokenDuplicateError, token_n, reading
|
303
|
+
end
|
304
|
+
if opts.empty?
|
305
|
+
TkReading2Token[reading] = [token_c]
|
306
|
+
else
|
307
|
+
TkReading2Token[reading] = [token_c].concat(opts)
|
308
|
+
end
|
309
|
+
end
|
310
|
+
TkSymbol2Token[token_n.intern] = token_c
|
311
|
+
|
312
|
+
if token_c <= TkOp
|
313
|
+
token_c.class_eval %{
|
314
|
+
def self.op_name; "#{reading}"; end
|
315
|
+
}
|
316
|
+
end
|
317
|
+
end
|
318
|
+
|
319
|
+
for defs in TokenDefinitions
|
320
|
+
def_token(*defs)
|
321
|
+
end
|
322
|
+
|
323
|
+
NEWLINE_TOKEN = TkNL.new(0,0)
|
324
|
+
NEWLINE_TOKEN.set_text("\n")
|
325
|
+
|
326
|
+
end
|
327
|
+
|
328
|
+
|
329
|
+
|
330
|
+
# Lexical analyzer for Ruby source
|
331
|
+
# @private
|
332
|
+
class RubyLex
|
333
|
+
# Read an input stream character by character. We allow for unlimited
|
334
|
+
# ungetting of characters just read.
|
335
|
+
#
|
336
|
+
# We simplify the implementation greatly by reading the entire input
|
337
|
+
# into a buffer initially, and then simply traversing it using
|
338
|
+
# pointers.
|
339
|
+
#
|
340
|
+
# We also have to allow for the <i>here document diversion</i>. This
|
341
|
+
# little gem comes about when the lexer encounters a here
|
342
|
+
# document. At this point we effectively need to split the input
|
343
|
+
# stream into two parts: one to read the body of the here document,
|
344
|
+
# the other to read the rest of the input line where the here
|
345
|
+
# document was initially encountered. For example, we might have
|
346
|
+
#
|
347
|
+
# do_something(<<-A, <<-B)
|
348
|
+
# stuff
|
349
|
+
# for
|
350
|
+
# A
|
351
|
+
# stuff
|
352
|
+
# for
|
353
|
+
# B
|
354
|
+
#
|
355
|
+
# When the lexer encounters the <<A, it reads until the end of the
|
356
|
+
# line, and keeps it around for later. It then reads the body of the
|
357
|
+
# here document. Once complete, it needs to read the rest of the
|
358
|
+
# original line, but then skip the here document body.
|
359
|
+
#
|
360
|
+
# @private
|
361
|
+
class BufferedReader
|
362
|
+
|
363
|
+
attr_reader :line_num
|
364
|
+
|
365
|
+
def initialize(content)
|
366
|
+
if /\t/ =~ content
|
367
|
+
tab_width = 2
|
368
|
+
content = content.split(/\n/).map do |line|
|
369
|
+
1 while line.gsub!(/\t+/) { ' ' * (tab_width*$&.length - $`.length % tab_width)} && $~ #`
|
370
|
+
line
|
371
|
+
end .join("\n")
|
372
|
+
end
|
373
|
+
@content = content
|
374
|
+
@content << "\n" unless @content[-1,1] == "\n"
|
375
|
+
@size = @content.size
|
376
|
+
@offset = 0
|
377
|
+
@hwm = 0
|
378
|
+
@line_num = 1
|
379
|
+
@read_back_offset = 0
|
380
|
+
@last_newline = 0
|
381
|
+
@newline_pending = false
|
382
|
+
end
|
383
|
+
|
384
|
+
def column
|
385
|
+
@offset - @last_newline
|
386
|
+
end
|
387
|
+
|
388
|
+
def getc
|
389
|
+
return nil if @offset >= @size
|
390
|
+
ch = @content[@offset, 1]
|
391
|
+
|
392
|
+
@offset += 1
|
393
|
+
@hwm = @offset if @hwm < @offset
|
394
|
+
|
395
|
+
if @newline_pending
|
396
|
+
@line_num += 1
|
397
|
+
@last_newline = @offset - 1
|
398
|
+
@newline_pending = false
|
399
|
+
end
|
400
|
+
|
401
|
+
if ch == "\n"
|
402
|
+
@newline_pending = true
|
403
|
+
end
|
404
|
+
ch
|
405
|
+
end
|
406
|
+
|
407
|
+
def getc_already_read
|
408
|
+
getc
|
409
|
+
end
|
410
|
+
|
411
|
+
def ungetc(ch)
|
412
|
+
raise "unget past beginning of file" if @offset <= 0
|
413
|
+
@offset -= 1
|
414
|
+
if @content[@offset] == ?\n
|
415
|
+
@newline_pending = false
|
416
|
+
end
|
417
|
+
end
|
418
|
+
|
419
|
+
def get_read
|
420
|
+
res = @content[@read_back_offset...@offset]
|
421
|
+
@read_back_offset = @offset
|
422
|
+
res
|
423
|
+
end
|
424
|
+
|
425
|
+
def peek(at)
|
426
|
+
pos = @offset + at
|
427
|
+
if pos >= @size
|
428
|
+
nil
|
429
|
+
else
|
430
|
+
@content[pos, 1]
|
431
|
+
end
|
432
|
+
end
|
433
|
+
|
434
|
+
def peek_equal(str)
|
435
|
+
@content[@offset, str.length] == str
|
436
|
+
end
|
437
|
+
|
438
|
+
def divert_read_from(reserve)
|
439
|
+
@content[@offset, 0] = reserve
|
440
|
+
@size = @content.size
|
441
|
+
end
|
442
|
+
end
|
443
|
+
|
444
|
+
# end of nested class BufferedReader
|
445
|
+
|
446
|
+
extend Exception2MessageMapper
|
447
|
+
def_exception(:AlreadyDefinedToken, "Already defined token(%s)")
|
448
|
+
def_exception(:TkReading2TokenNoKey, "key nothing(key='%s')")
|
449
|
+
def_exception(:TkSymbol2TokenNoKey, "key nothing(key='%s')")
|
450
|
+
def_exception(:TkReading2TokenDuplicateError,
|
451
|
+
"key duplicate(token_n='%s', key='%s')")
|
452
|
+
def_exception(:SyntaxError, "%s")
|
453
|
+
|
454
|
+
include RubyToken
|
455
|
+
include IRB
|
456
|
+
|
457
|
+
attr_reader :continue
|
458
|
+
attr_reader :lex_state
|
459
|
+
|
460
|
+
def RubyLex.debug?
|
461
|
+
false
|
462
|
+
end
|
463
|
+
|
464
|
+
def initialize(content)
|
465
|
+
lex_init
|
466
|
+
|
467
|
+
@reader = BufferedReader.new(content)
|
468
|
+
|
469
|
+
@exp_line_no = @line_no = 1
|
470
|
+
@base_char_no = 0
|
471
|
+
@indent = 0
|
472
|
+
|
473
|
+
@ltype = nil
|
474
|
+
@quoted = nil
|
475
|
+
@lex_state = EXPR_BEG
|
476
|
+
@space_seen = false
|
477
|
+
|
478
|
+
@continue = false
|
479
|
+
@line = ""
|
480
|
+
|
481
|
+
@skip_space = false
|
482
|
+
@read_auto_clean_up = false
|
483
|
+
@exception_on_syntax_error = true
|
484
|
+
end
|
485
|
+
|
486
|
+
attr_accessor :skip_space
|
487
|
+
attr_accessor :read_auto_clean_up
|
488
|
+
attr_accessor :exception_on_syntax_error
|
489
|
+
|
490
|
+
attr :indent
|
491
|
+
|
492
|
+
# io functions
|
493
|
+
def line_no
|
494
|
+
@reader.line_num
|
495
|
+
end
|
496
|
+
|
497
|
+
def char_no
|
498
|
+
@reader.column
|
499
|
+
end
|
500
|
+
|
501
|
+
def get_read
|
502
|
+
@reader.get_read
|
503
|
+
end
|
504
|
+
|
505
|
+
def getc
|
506
|
+
@reader.getc
|
507
|
+
end
|
508
|
+
|
509
|
+
def getc_of_rests
|
510
|
+
@reader.getc_already_read
|
511
|
+
end
|
512
|
+
|
513
|
+
def gets
|
514
|
+
c = getc or return
|
515
|
+
l = ""
|
516
|
+
begin
|
517
|
+
l.concat c unless c == "\r"
|
518
|
+
break if c == "\n"
|
519
|
+
end while c = getc
|
520
|
+
l
|
521
|
+
end
|
522
|
+
|
523
|
+
|
524
|
+
def ungetc(c = nil)
|
525
|
+
@reader.ungetc(c)
|
526
|
+
end
|
527
|
+
|
528
|
+
def peek_equal?(str)
|
529
|
+
@reader.peek_equal(str)
|
530
|
+
end
|
531
|
+
|
532
|
+
def peek(i = 0)
|
533
|
+
@reader.peek(i)
|
534
|
+
end
|
535
|
+
|
536
|
+
def lex
|
537
|
+
catch(:eof) do
|
538
|
+
until (((tk = token).kind_of?(TkNL) || tk.kind_of?(TkEND_OF_SCRIPT)) &&
|
539
|
+
!@continue or
|
540
|
+
tk.nil?)
|
541
|
+
end
|
542
|
+
line = get_read
|
543
|
+
|
544
|
+
if line == "" and tk.kind_of?(TkEND_OF_SCRIPT) || tk.nil?
|
545
|
+
nil
|
546
|
+
else
|
547
|
+
line
|
548
|
+
end
|
549
|
+
end
|
550
|
+
end
|
551
|
+
|
552
|
+
def token
|
553
|
+
set_token_position(line_no, char_no)
|
554
|
+
catch(:eof) do
|
555
|
+
begin
|
556
|
+
begin
|
557
|
+
tk = @OP.match(self)
|
558
|
+
@space_seen = tk.kind_of?(TkSPACE)
|
559
|
+
rescue SyntaxError
|
560
|
+
abort if @exception_on_syntax_error
|
561
|
+
tk = TkError.new(line_no, char_no)
|
562
|
+
end
|
563
|
+
end while @skip_space and tk.kind_of?(TkSPACE)
|
564
|
+
if @read_auto_clean_up
|
565
|
+
get_read
|
566
|
+
end
|
567
|
+
# throw :eof unless tk
|
568
|
+
p tk if $DEBUG
|
569
|
+
tk.lex_state = lex_state if tk
|
570
|
+
tk
|
571
|
+
end
|
572
|
+
end
|
573
|
+
|
574
|
+
ENINDENT_CLAUSE = [
|
575
|
+
"case", "class", "def", "do", "for", "if",
|
576
|
+
"module", "unless", "until", "while", "begin" #, "when"
|
577
|
+
]
|
578
|
+
ACCEPTS_COLON = ["if", "for", "unless", "until", "while"]
|
579
|
+
DEINDENT_CLAUSE = ["end" #, "when"
|
580
|
+
]
|
581
|
+
|
582
|
+
PERCENT_LTYPE = {
|
583
|
+
"q" => "\'",
|
584
|
+
"Q" => "\"",
|
585
|
+
"x" => "\`",
|
586
|
+
"r" => "/",
|
587
|
+
"w" => "]",
|
588
|
+
"W" => "]"
|
589
|
+
}
|
590
|
+
|
591
|
+
PERCENT_PAREN = {
|
592
|
+
"{" => "}",
|
593
|
+
"[" => "]",
|
594
|
+
"<" => ">",
|
595
|
+
"(" => ")"
|
596
|
+
}
|
597
|
+
|
598
|
+
Ltype2Token = {
|
599
|
+
"\'" => TkSTRING,
|
600
|
+
"\"" => TkSTRING,
|
601
|
+
"\`" => TkXSTRING,
|
602
|
+
"/" => TkREGEXP,
|
603
|
+
"]" => TkDSTRING
|
604
|
+
}
|
605
|
+
Ltype2Token.default = TkSTRING
|
606
|
+
|
607
|
+
DLtype2Token = {
|
608
|
+
"\"" => TkDSTRING,
|
609
|
+
"\`" => TkDXSTRING,
|
610
|
+
"/" => TkDREGEXP,
|
611
|
+
}
|
612
|
+
|
613
|
+
def lex_init()
|
614
|
+
@OP = SLex.new
|
615
|
+
@OP.def_rules("\0", "\004", "\032") do |chars, io|
|
616
|
+
Token(TkEND_OF_SCRIPT).set_text(chars)
|
617
|
+
end
|
618
|
+
|
619
|
+
@OP.def_rules(" ", "\t", "\f", "\r", "\13") do |chars, io|
|
620
|
+
@space_seen = TRUE
|
621
|
+
while (ch = getc) =~ /[ \t\f\r\13]/
|
622
|
+
chars << ch
|
623
|
+
end
|
624
|
+
ungetc
|
625
|
+
Token(TkSPACE).set_text(chars)
|
626
|
+
end
|
627
|
+
|
628
|
+
@OP.def_rule("#") do
|
629
|
+
|op, io|
|
630
|
+
identify_comment
|
631
|
+
end
|
632
|
+
|
633
|
+
@OP.def_rule("=begin", proc{@prev_char_no == 0 && peek(0) =~ /\s/}) do
|
634
|
+
|op, io|
|
635
|
+
str = op
|
636
|
+
@ltype = "="
|
637
|
+
|
638
|
+
|
639
|
+
begin
|
640
|
+
line = ""
|
641
|
+
begin
|
642
|
+
ch = getc
|
643
|
+
line << ch
|
644
|
+
end until ch == "\n"
|
645
|
+
str << line
|
646
|
+
end until line =~ /^=end/
|
647
|
+
|
648
|
+
ungetc
|
649
|
+
|
650
|
+
@ltype = nil
|
651
|
+
|
652
|
+
if str =~ /\A=begin\s+rdoc/i
|
653
|
+
str.sub!(/\A=begin.*\n/, '')
|
654
|
+
str.sub!(/^=end.*/m, '')
|
655
|
+
Token(TkCOMMENT).set_text(str)
|
656
|
+
else
|
657
|
+
Token(TkCOMMENT).set_text(str)
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
@OP.def_rule("\n") do
|
662
|
+
print "\\n\n" if RubyLex.debug?
|
663
|
+
@colonblock_seen = false
|
664
|
+
case @lex_state
|
665
|
+
when EXPR_BEG, EXPR_FNAME, EXPR_DOT
|
666
|
+
@continue = TRUE
|
667
|
+
else
|
668
|
+
@continue = FALSE
|
669
|
+
@lex_state = EXPR_BEG
|
670
|
+
end
|
671
|
+
Token(TkNL).set_text("\n")
|
672
|
+
end
|
673
|
+
|
674
|
+
@OP.def_rules("*", "**",
|
675
|
+
"!", "!=", "!~",
|
676
|
+
"=", "==", "===",
|
677
|
+
"=~", "<=>",
|
678
|
+
"<", "<=",
|
679
|
+
">", ">=", ">>") do |op, io|
|
680
|
+
@lex_state = EXPR_BEG
|
681
|
+
Token(op).set_text(op)
|
682
|
+
end
|
683
|
+
|
684
|
+
@OP.def_rules("<<") do |op, io|
|
685
|
+
tk = nil
|
686
|
+
if @lex_state != EXPR_END && @lex_state != EXPR_CLASS &&
|
687
|
+
(@lex_state != EXPR_ARG || @space_seen)
|
688
|
+
c = peek(0)
|
689
|
+
tk = identify_here_document if /[-\w_\"\'\`]/ =~ c
|
690
|
+
end
|
691
|
+
if !tk
|
692
|
+
@lex_state = EXPR_BEG
|
693
|
+
tk = Token(op).set_text(op)
|
694
|
+
end
|
695
|
+
tk
|
696
|
+
end
|
697
|
+
|
698
|
+
@OP.def_rules("'", '"') do |op, io|
|
699
|
+
identify_string(op)
|
700
|
+
end
|
701
|
+
|
702
|
+
@OP.def_rules("`") do |op, io|
|
703
|
+
if @lex_state == EXPR_FNAME
|
704
|
+
Token(op).set_text(op)
|
705
|
+
else
|
706
|
+
identify_string(op)
|
707
|
+
end
|
708
|
+
end
|
709
|
+
|
710
|
+
@OP.def_rules('?') do |op, io|
|
711
|
+
if @lex_state == EXPR_END
|
712
|
+
@lex_state = EXPR_BEG
|
713
|
+
Token(TkQUESTION).set_text(op)
|
714
|
+
else
|
715
|
+
ch = getc
|
716
|
+
if @lex_state == EXPR_ARG && ch !~ /\s/
|
717
|
+
ungetc
|
718
|
+
@lex_state = EXPR_BEG
|
719
|
+
Token(TkQUESTION).set_text(op)
|
720
|
+
else
|
721
|
+
str = op
|
722
|
+
str << ch
|
723
|
+
if (ch == '\\') #'
|
724
|
+
str << read_escape
|
725
|
+
end
|
726
|
+
@lex_state = EXPR_END
|
727
|
+
Token(TkINTEGER).set_text(str)
|
728
|
+
end
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
@OP.def_rules("&", "&&", "|", "||") do |op, io|
|
733
|
+
@lex_state = EXPR_BEG
|
734
|
+
Token(op).set_text(op)
|
735
|
+
end
|
736
|
+
|
737
|
+
@OP.def_rules("+=", "-=", "*=", "**=",
|
738
|
+
"&=", "|=", "^=", "<<=", ">>=", "||=", "&&=") do |op, io|
|
739
|
+
@lex_state = EXPR_BEG
|
740
|
+
op =~ /^(.*)=$/
|
741
|
+
Token(TkOPASGN, $1).set_text(op)
|
742
|
+
end
|
743
|
+
|
744
|
+
@OP.def_rule("+@", proc{@lex_state == EXPR_FNAME}) do |op, io|
|
745
|
+
Token(TkUPLUS).set_text(op)
|
746
|
+
end
|
747
|
+
|
748
|
+
@OP.def_rule("-@", proc{@lex_state == EXPR_FNAME}) do |op, io|
|
749
|
+
Token(TkUMINUS).set_text(op)
|
750
|
+
end
|
751
|
+
|
752
|
+
@OP.def_rules("+", "-") do |op, io|
|
753
|
+
catch(:RET) do
|
754
|
+
if @lex_state == EXPR_ARG
|
755
|
+
if @space_seen and peek(0) =~ /[0-9]/
|
756
|
+
throw :RET, identify_number(op)
|
757
|
+
else
|
758
|
+
@lex_state = EXPR_BEG
|
759
|
+
end
|
760
|
+
elsif @lex_state != EXPR_END and peek(0) =~ /[0-9]/
|
761
|
+
throw :RET, identify_number(op)
|
762
|
+
else
|
763
|
+
@lex_state = EXPR_BEG
|
764
|
+
end
|
765
|
+
Token(op).set_text(op)
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
@OP.def_rule(".") do
|
770
|
+
@lex_state = EXPR_BEG
|
771
|
+
if peek(0) =~ /[0-9]/
|
772
|
+
ungetc
|
773
|
+
identify_number("")
|
774
|
+
else
|
775
|
+
# for obj.if
|
776
|
+
@lex_state = EXPR_DOT
|
777
|
+
Token(TkDOT).set_text(".")
|
778
|
+
end
|
779
|
+
end
|
780
|
+
|
781
|
+
@OP.def_rules("..", "...") do |op, io|
|
782
|
+
@lex_state = EXPR_BEG
|
783
|
+
Token(op).set_text(op)
|
784
|
+
end
|
785
|
+
|
786
|
+
lex_int2
|
787
|
+
end
|
788
|
+
|
789
|
+
def lex_int2
|
790
|
+
@OP.def_rules("]", "}", ")") do
|
791
|
+
|op, io|
|
792
|
+
@lex_state = EXPR_END
|
793
|
+
@indent -= 1
|
794
|
+
Token(op).set_text(op)
|
795
|
+
end
|
796
|
+
|
797
|
+
@OP.def_rule(":") do
|
798
|
+
if (@colonblock_seen && @lex_state != EXPR_BEG) || peek(0) =~ /\s/
|
799
|
+
@lex_state = EXPR_BEG
|
800
|
+
tk = Token(TkCOLON)
|
801
|
+
else
|
802
|
+
@lex_state = EXPR_FNAME
|
803
|
+
tk = Token(TkSYMBEG)
|
804
|
+
end
|
805
|
+
tk.set_text(":")
|
806
|
+
end
|
807
|
+
|
808
|
+
@OP.def_rule("::") do
|
809
|
+
# p @lex_state.id2name, @space_seen
|
810
|
+
if @lex_state == EXPR_BEG or @lex_state == EXPR_ARG && @space_seen
|
811
|
+
@lex_state = EXPR_BEG
|
812
|
+
tk = Token(TkCOLON3)
|
813
|
+
else
|
814
|
+
@lex_state = EXPR_DOT
|
815
|
+
tk = Token(TkCOLON2)
|
816
|
+
end
|
817
|
+
tk.set_text("::")
|
818
|
+
end
|
819
|
+
|
820
|
+
@OP.def_rule("/") do |op, io|
|
821
|
+
if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
|
822
|
+
identify_string(op)
|
823
|
+
elsif peek(0) == '='
|
824
|
+
getc
|
825
|
+
@lex_state = EXPR_BEG
|
826
|
+
Token(TkOPASGN, :/).set_text("/=") #")
|
827
|
+
elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
|
828
|
+
identify_string(op)
|
829
|
+
else
|
830
|
+
@lex_state = EXPR_BEG
|
831
|
+
Token("/").set_text(op)
|
832
|
+
end
|
833
|
+
end
|
834
|
+
|
835
|
+
@OP.def_rules("^") do
|
836
|
+
@lex_state = EXPR_BEG
|
837
|
+
Token("^").set_text("^")
|
838
|
+
end
|
839
|
+
|
840
|
+
# @OP.def_rules("^=") do
|
841
|
+
# @lex_state = EXPR_BEG
|
842
|
+
# Token(TkOPASGN, :^)
|
843
|
+
# end
|
844
|
+
|
845
|
+
@OP.def_rules(",", ";") do |op, io|
|
846
|
+
@colonblock_seen = false
|
847
|
+
@lex_state = EXPR_BEG
|
848
|
+
Token(op).set_text(op)
|
849
|
+
end
|
850
|
+
|
851
|
+
@OP.def_rule("~") do
|
852
|
+
@lex_state = EXPR_BEG
|
853
|
+
Token("~").set_text("~")
|
854
|
+
end
|
855
|
+
|
856
|
+
@OP.def_rule("~@", proc{@lex_state = EXPR_FNAME}) do
|
857
|
+
@lex_state = EXPR_BEG
|
858
|
+
Token("~").set_text("~@")
|
859
|
+
end
|
860
|
+
|
861
|
+
@OP.def_rule("(") do
|
862
|
+
@indent += 1
|
863
|
+
# if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
|
864
|
+
# @lex_state = EXPR_BEG
|
865
|
+
# tk = Token(TkfLPAREN)
|
866
|
+
# else
|
867
|
+
@lex_state = EXPR_BEG
|
868
|
+
tk = Token(TkLPAREN)
|
869
|
+
# end
|
870
|
+
tk.set_text("(")
|
871
|
+
end
|
872
|
+
|
873
|
+
@OP.def_rule("[]", proc{@lex_state == EXPR_FNAME}) do
|
874
|
+
Token("[]").set_text("[]")
|
875
|
+
end
|
876
|
+
|
877
|
+
@OP.def_rule("[]=", proc{@lex_state == EXPR_FNAME}) do
|
878
|
+
Token("[]=").set_text("[]=")
|
879
|
+
end
|
880
|
+
|
881
|
+
@OP.def_rule("[") do
|
882
|
+
@indent += 1
|
883
|
+
# if @lex_state == EXPR_FNAME
|
884
|
+
# t = Token(TkfLBRACK)
|
885
|
+
# else
|
886
|
+
# if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
|
887
|
+
# t = Token(TkLBRACK)
|
888
|
+
# elsif @lex_state == EXPR_ARG && @space_seen
|
889
|
+
# else
|
890
|
+
# t = Token(TkfLBRACK)
|
891
|
+
# end
|
892
|
+
# end
|
893
|
+
t = Token(TkLBRACK)
|
894
|
+
@lex_state = EXPR_BEG
|
895
|
+
t.set_text("[")
|
896
|
+
end
|
897
|
+
|
898
|
+
@OP.def_rule("{") do
|
899
|
+
@indent += 1
|
900
|
+
# if @lex_state != EXPR_END && @lex_state != EXPR_ARG
|
901
|
+
# t = Token(TkLBRACE)
|
902
|
+
# else
|
903
|
+
# t = Token(TkfLBRACE)
|
904
|
+
# end
|
905
|
+
t = Token(TkLBRACE)
|
906
|
+
@lex_state = EXPR_BEG
|
907
|
+
t.set_text("{")
|
908
|
+
end
|
909
|
+
|
910
|
+
@OP.def_rule('\\') do #'
|
911
|
+
if getc == "\n"
|
912
|
+
@space_seen = true
|
913
|
+
@continue = true
|
914
|
+
Token(TkSPACE).set_text("\\\n")
|
915
|
+
else
|
916
|
+
ungetc
|
917
|
+
Token("\\").set_text("\\") #"
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
@OP.def_rule('%') do
|
922
|
+
|op, io|
|
923
|
+
if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
|
924
|
+
identify_quotation('%')
|
925
|
+
elsif peek(0) == '='
|
926
|
+
getc
|
927
|
+
Token(TkOPASGN, "%").set_text("%=")
|
928
|
+
elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
|
929
|
+
identify_quotation('%')
|
930
|
+
else
|
931
|
+
@lex_state = EXPR_BEG
|
932
|
+
Token("%").set_text("%")
|
933
|
+
end
|
934
|
+
end
|
935
|
+
|
936
|
+
@OP.def_rule('$') do #'
|
937
|
+
identify_gvar
|
938
|
+
end
|
939
|
+
|
940
|
+
@OP.def_rule('@') do
|
941
|
+
if peek(0) =~ /[@\w_]/
|
942
|
+
ungetc
|
943
|
+
identify_identifier
|
944
|
+
else
|
945
|
+
Token("@").set_text("@")
|
946
|
+
end
|
947
|
+
end
|
948
|
+
|
949
|
+
# @OP.def_rule("def", proc{|op, io| /\s/ =~ io.peek(0)}) do
|
950
|
+
# |op, io|
|
951
|
+
# @indent += 1
|
952
|
+
# @lex_state = EXPR_FNAME
|
953
|
+
# # @lex_state = EXPR_END
|
954
|
+
# # until @rests[0] == "\n" or @rests[0] == ";"
|
955
|
+
# # rests.shift
|
956
|
+
# # end
|
957
|
+
# end
|
958
|
+
|
959
|
+
@OP.def_rule("__END__", proc{@prev_char_no == 0 && peek(0) =~ /[\r\n]/}) do
|
960
|
+
throw :eof
|
961
|
+
end
|
962
|
+
|
963
|
+
@OP.def_rule("") do |op, io|
|
964
|
+
printf "MATCH: start %s: %s\n", op, io.inspect if RubyLex.debug?
|
965
|
+
if peek(0) =~ /[0-9]/
|
966
|
+
t = identify_number("")
|
967
|
+
elsif peek(0) =~ /[\w_]/
|
968
|
+
t = identify_identifier
|
969
|
+
end
|
970
|
+
printf "MATCH: end %s: %s\n", op, io.inspect if RubyLex.debug?
|
971
|
+
t
|
972
|
+
end
|
973
|
+
|
974
|
+
p @OP if RubyLex.debug?
|
975
|
+
end
|
976
|
+
|
977
|
+
def identify_gvar
|
978
|
+
@lex_state = EXPR_END
|
979
|
+
str = "$"
|
980
|
+
|
981
|
+
tk = case ch = getc
|
982
|
+
when /[~_*$?!@\/\\;,=:<>".]/ #"
|
983
|
+
str << ch
|
984
|
+
Token(TkGVAR, str)
|
985
|
+
|
986
|
+
when "-"
|
987
|
+
str << "-" << getc
|
988
|
+
Token(TkGVAR, str)
|
989
|
+
|
990
|
+
when "&", "`", "'", "+"
|
991
|
+
str << ch
|
992
|
+
Token(TkBACK_REF, str)
|
993
|
+
|
994
|
+
when /[1-9]/
|
995
|
+
str << ch
|
996
|
+
while (ch = getc) =~ /[0-9]/
|
997
|
+
str << ch
|
998
|
+
end
|
999
|
+
ungetc
|
1000
|
+
Token(TkNTH_REF)
|
1001
|
+
when /\w/
|
1002
|
+
ungetc
|
1003
|
+
ungetc
|
1004
|
+
return identify_identifier
|
1005
|
+
else
|
1006
|
+
ungetc
|
1007
|
+
Token("$")
|
1008
|
+
end
|
1009
|
+
tk.set_text(str)
|
1010
|
+
end
|
1011
|
+
|
1012
|
+
def identify_identifier
|
1013
|
+
token = ""
|
1014
|
+
token.concat getc if peek(0) =~ /[$@]/
|
1015
|
+
token.concat getc if peek(0) == "@"
|
1016
|
+
|
1017
|
+
while (ch = getc) =~ /\w|_/
|
1018
|
+
print ":", ch, ":" if RubyLex.debug?
|
1019
|
+
token.concat ch
|
1020
|
+
end
|
1021
|
+
ungetc
|
1022
|
+
|
1023
|
+
if ch == "!" or ch == "?"
|
1024
|
+
token.concat getc
|
1025
|
+
end
|
1026
|
+
# fix token
|
1027
|
+
|
1028
|
+
# $stderr.puts "identifier - #{token}, state = #@lex_state"
|
1029
|
+
|
1030
|
+
case token
|
1031
|
+
when /^\$/
|
1032
|
+
return Token(TkGVAR, token).set_text(token)
|
1033
|
+
when /^\@/
|
1034
|
+
@lex_state = EXPR_END
|
1035
|
+
return Token(TkIVAR, token).set_text(token)
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
if @lex_state != EXPR_DOT
|
1039
|
+
print token, "\n" if RubyLex.debug?
|
1040
|
+
|
1041
|
+
token_c, *trans = TkReading2Token[token]
|
1042
|
+
if token_c
|
1043
|
+
# reserved word?
|
1044
|
+
|
1045
|
+
if (@lex_state != EXPR_BEG &&
|
1046
|
+
@lex_state != EXPR_FNAME &&
|
1047
|
+
trans[1])
|
1048
|
+
# modifiers
|
1049
|
+
token_c = TkSymbol2Token[trans[1]]
|
1050
|
+
@lex_state = trans[0]
|
1051
|
+
else
|
1052
|
+
if @lex_state != EXPR_FNAME
|
1053
|
+
if ENINDENT_CLAUSE.include?(token)
|
1054
|
+
@indent += 1
|
1055
|
+
|
1056
|
+
if ACCEPTS_COLON.include?(token)
|
1057
|
+
@colonblock_seen = true
|
1058
|
+
else
|
1059
|
+
@colonblock_seen = false
|
1060
|
+
end
|
1061
|
+
elsif DEINDENT_CLAUSE.include?(token)
|
1062
|
+
@indent -= 1
|
1063
|
+
@colonblock_seen = false
|
1064
|
+
end
|
1065
|
+
@lex_state = trans[0]
|
1066
|
+
else
|
1067
|
+
@lex_state = EXPR_END
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
return Token(token_c, token).set_text(token)
|
1071
|
+
end
|
1072
|
+
end
|
1073
|
+
|
1074
|
+
if @lex_state == EXPR_FNAME
|
1075
|
+
@lex_state = EXPR_END
|
1076
|
+
if peek(0) == '='
|
1077
|
+
token.concat getc
|
1078
|
+
end
|
1079
|
+
elsif @lex_state == EXPR_BEG || @lex_state == EXPR_DOT
|
1080
|
+
@lex_state = EXPR_ARG
|
1081
|
+
else
|
1082
|
+
@lex_state = EXPR_END
|
1083
|
+
end
|
1084
|
+
|
1085
|
+
if token[0, 1] =~ /[A-Z]/
|
1086
|
+
return Token(TkCONSTANT, token).set_text(token)
|
1087
|
+
elsif token[token.size - 1, 1] =~ /[!?]/
|
1088
|
+
return Token(TkFID, token).set_text(token)
|
1089
|
+
else
|
1090
|
+
return Token(TkIDENTIFIER, token).set_text(token)
|
1091
|
+
end
|
1092
|
+
end
|
1093
|
+
|
1094
|
+
def identify_here_document
|
1095
|
+
ch = getc
|
1096
|
+
if ch == "-"
|
1097
|
+
ch = getc
|
1098
|
+
indent = true
|
1099
|
+
end
|
1100
|
+
if /['"`]/ =~ ch # '
|
1101
|
+
lt = ch
|
1102
|
+
quoted = ""
|
1103
|
+
while (c = getc) && c != lt
|
1104
|
+
quoted.concat c
|
1105
|
+
end
|
1106
|
+
else
|
1107
|
+
lt = '"'
|
1108
|
+
quoted = ch.dup
|
1109
|
+
while (c = getc) && c =~ /\w/
|
1110
|
+
quoted.concat c
|
1111
|
+
end
|
1112
|
+
ungetc
|
1113
|
+
end
|
1114
|
+
|
1115
|
+
ltback, @ltype = @ltype, lt
|
1116
|
+
reserve = ""
|
1117
|
+
|
1118
|
+
while ch = getc
|
1119
|
+
reserve << ch
|
1120
|
+
if ch == "\\" #"
|
1121
|
+
ch = getc
|
1122
|
+
reserve << ch
|
1123
|
+
elsif ch == "\n"
|
1124
|
+
break
|
1125
|
+
end
|
1126
|
+
end
|
1127
|
+
|
1128
|
+
str = ""
|
1129
|
+
while (l = gets)
|
1130
|
+
l.chomp!
|
1131
|
+
l.strip! if indent
|
1132
|
+
break if l == quoted
|
1133
|
+
str << l.chomp << "\n"
|
1134
|
+
end
|
1135
|
+
|
1136
|
+
@reader.divert_read_from(reserve)
|
1137
|
+
|
1138
|
+
@ltype = ltback
|
1139
|
+
@lex_state = EXPR_END
|
1140
|
+
Token(Ltype2Token[lt], str).set_text(str.dump)
|
1141
|
+
end
|
1142
|
+
|
1143
|
+
def identify_quotation(initial_char)
|
1144
|
+
ch = getc
|
1145
|
+
if lt = PERCENT_LTYPE[ch]
|
1146
|
+
initial_char += ch
|
1147
|
+
ch = getc
|
1148
|
+
elsif ch =~ /\W/
|
1149
|
+
lt = "\""
|
1150
|
+
else
|
1151
|
+
# RubyLex.fail SyntaxError, "unknown type of %string ('#{ch}')"
|
1152
|
+
end
|
1153
|
+
# if ch !~ /\W/
|
1154
|
+
# ungetc
|
1155
|
+
# next
|
1156
|
+
# end
|
1157
|
+
# @ltype = lt
|
1158
|
+
@quoted = ch unless @quoted = PERCENT_PAREN[ch]
|
1159
|
+
identify_string(lt, @quoted, ch, initial_char) if lt
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
def identify_number(start)
|
1163
|
+
str = start.dup
|
1164
|
+
|
1165
|
+
if start == "+" or start == "-" or start == ""
|
1166
|
+
start = getc
|
1167
|
+
str << start
|
1168
|
+
end
|
1169
|
+
|
1170
|
+
@lex_state = EXPR_END
|
1171
|
+
|
1172
|
+
if start == "0"
|
1173
|
+
if peek(0) == "x"
|
1174
|
+
ch = getc
|
1175
|
+
str << ch
|
1176
|
+
match = /[0-9a-f_]/
|
1177
|
+
else
|
1178
|
+
match = /[0-7_]/
|
1179
|
+
end
|
1180
|
+
while ch = getc
|
1181
|
+
if ch !~ match
|
1182
|
+
ungetc
|
1183
|
+
break
|
1184
|
+
else
|
1185
|
+
str << ch
|
1186
|
+
end
|
1187
|
+
end
|
1188
|
+
return Token(TkINTEGER).set_text(str)
|
1189
|
+
end
|
1190
|
+
|
1191
|
+
type = TkINTEGER
|
1192
|
+
allow_point = TRUE
|
1193
|
+
allow_e = TRUE
|
1194
|
+
while ch = getc
|
1195
|
+
case ch
|
1196
|
+
when /[0-9_]/
|
1197
|
+
str << ch
|
1198
|
+
|
1199
|
+
when allow_point && "."
|
1200
|
+
type = TkFLOAT
|
1201
|
+
if peek(0) !~ /[0-9]/
|
1202
|
+
ungetc
|
1203
|
+
break
|
1204
|
+
end
|
1205
|
+
str << ch
|
1206
|
+
allow_point = false
|
1207
|
+
|
1208
|
+
when allow_e && "e", allow_e && "E"
|
1209
|
+
str << ch
|
1210
|
+
type = TkFLOAT
|
1211
|
+
if peek(0) =~ /[+-]/
|
1212
|
+
str << getc
|
1213
|
+
end
|
1214
|
+
allow_e = false
|
1215
|
+
allow_point = false
|
1216
|
+
else
|
1217
|
+
ungetc
|
1218
|
+
break
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
Token(type).set_text(str)
|
1222
|
+
end
|
1223
|
+
|
1224
|
+
def identify_string(ltype, quoted = ltype, opener=nil, initial_char = nil)
|
1225
|
+
@ltype = ltype
|
1226
|
+
@quoted = quoted
|
1227
|
+
subtype = nil
|
1228
|
+
|
1229
|
+
str = ""
|
1230
|
+
str << initial_char if initial_char
|
1231
|
+
str << (opener||quoted)
|
1232
|
+
|
1233
|
+
nest = 0
|
1234
|
+
begin
|
1235
|
+
while ch = getc
|
1236
|
+
str << ch
|
1237
|
+
if @quoted == ch
|
1238
|
+
if nest == 0
|
1239
|
+
break
|
1240
|
+
else
|
1241
|
+
nest -= 1
|
1242
|
+
end
|
1243
|
+
elsif opener == ch
|
1244
|
+
nest += 1
|
1245
|
+
elsif @ltype != "'" && @ltype != "]" and ch == "#"
|
1246
|
+
ch = getc
|
1247
|
+
if ch == "{"
|
1248
|
+
subtype = true
|
1249
|
+
str << ch << skip_inner_expression
|
1250
|
+
else
|
1251
|
+
ungetc(ch)
|
1252
|
+
end
|
1253
|
+
elsif ch == '\\' #'
|
1254
|
+
str << read_escape
|
1255
|
+
end
|
1256
|
+
end
|
1257
|
+
if @ltype == "/"
|
1258
|
+
if peek(0) =~ /i|o|n|e|s/
|
1259
|
+
str << getc
|
1260
|
+
end
|
1261
|
+
end
|
1262
|
+
if subtype
|
1263
|
+
Token(DLtype2Token[ltype], str)
|
1264
|
+
else
|
1265
|
+
Token(Ltype2Token[ltype], str)
|
1266
|
+
end.set_text(str)
|
1267
|
+
ensure
|
1268
|
+
@ltype = nil
|
1269
|
+
@quoted = nil
|
1270
|
+
@lex_state = EXPR_END
|
1271
|
+
end
|
1272
|
+
end
|
1273
|
+
|
1274
|
+
def skip_inner_expression
|
1275
|
+
res = ""
|
1276
|
+
nest = 0
|
1277
|
+
while (ch = getc)
|
1278
|
+
res << ch
|
1279
|
+
if ch == '}'
|
1280
|
+
break if nest.zero?
|
1281
|
+
nest -= 1
|
1282
|
+
elsif ch == '{'
|
1283
|
+
nest += 1
|
1284
|
+
end
|
1285
|
+
end
|
1286
|
+
res
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
def identify_comment
|
1290
|
+
@ltype = "#"
|
1291
|
+
comment = "#"
|
1292
|
+
while ch = getc
|
1293
|
+
if ch == "\\"
|
1294
|
+
ch = getc
|
1295
|
+
if ch == "\n"
|
1296
|
+
ch = " "
|
1297
|
+
else
|
1298
|
+
comment << "\\"
|
1299
|
+
end
|
1300
|
+
else
|
1301
|
+
if ch == "\n"
|
1302
|
+
@ltype = nil
|
1303
|
+
ungetc
|
1304
|
+
break
|
1305
|
+
end
|
1306
|
+
end
|
1307
|
+
comment << ch
|
1308
|
+
end
|
1309
|
+
return Token(TkCOMMENT).set_text(comment)
|
1310
|
+
end
|
1311
|
+
|
1312
|
+
def read_escape
|
1313
|
+
res = ""
|
1314
|
+
case ch = getc
|
1315
|
+
when /[0-7]/
|
1316
|
+
ungetc ch
|
1317
|
+
3.times do
|
1318
|
+
case ch = getc
|
1319
|
+
when /[0-7]/
|
1320
|
+
when nil
|
1321
|
+
break
|
1322
|
+
else
|
1323
|
+
ungetc
|
1324
|
+
break
|
1325
|
+
end
|
1326
|
+
res << ch
|
1327
|
+
end
|
1328
|
+
|
1329
|
+
when "x"
|
1330
|
+
res << ch
|
1331
|
+
2.times do
|
1332
|
+
case ch = getc
|
1333
|
+
when /[0-9a-fA-F]/
|
1334
|
+
when nil
|
1335
|
+
break
|
1336
|
+
else
|
1337
|
+
ungetc
|
1338
|
+
break
|
1339
|
+
end
|
1340
|
+
res << ch
|
1341
|
+
end
|
1342
|
+
|
1343
|
+
when "M"
|
1344
|
+
res << ch
|
1345
|
+
if (ch = getc) != '-'
|
1346
|
+
ungetc
|
1347
|
+
else
|
1348
|
+
res << ch
|
1349
|
+
if (ch = getc) == "\\" #"
|
1350
|
+
res << ch
|
1351
|
+
res << read_escape
|
1352
|
+
else
|
1353
|
+
res << ch
|
1354
|
+
end
|
1355
|
+
end
|
1356
|
+
|
1357
|
+
when "C", "c" #, "^"
|
1358
|
+
res << ch
|
1359
|
+
if ch == "C" and (ch = getc) != "-"
|
1360
|
+
ungetc
|
1361
|
+
else
|
1362
|
+
res << ch
|
1363
|
+
if (ch = getc) == "\\" #"
|
1364
|
+
res << ch
|
1365
|
+
res << read_escape
|
1366
|
+
else
|
1367
|
+
res << ch
|
1368
|
+
end
|
1369
|
+
end
|
1370
|
+
else
|
1371
|
+
res << ch
|
1372
|
+
end
|
1373
|
+
res
|
1374
|
+
end
|
1375
|
+
end
|
1376
|
+
end
|
1377
|
+
end
|