asana2flowdock 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +58 -0
- data/README.md +85 -0
- data/Rakefile +394 -0
- data/a.rb +336 -0
- data/a.yml +6 -0
- data/asana2flowdock.gemspec +1878 -0
- data/bin/amalgalite-pack +16 -0
- data/bin/asana2flowdock +274 -0
- data/bin/asana2flowdock-daemon +16 -0
- data/bin/coderay +16 -0
- data/bin/httparty +16 -0
- data/bin/pry +16 -0
- data/bin/sekrets +16 -0
- data/bin/sequel +16 -0
- data/config/asana2flowdock.yml.enc +2 -0
- data/lib/asana2flowdock.rb +98 -0
- data/lib/asana2flowdock/asana.rb +225 -0
- data/vendor/bundle/ruby/1.9.1/bin/amalgalite-pack +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/asana2flowdock +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/asana2flowdock-daemon +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/coderay +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/httparty +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/pry +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/sekrets +23 -0
- data/vendor/bundle/ruby/1.9.1/bin/sequel +23 -0
- data/vendor/bundle/ruby/1.9.1/build_info/amalgalite-1.3.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/arrayfields-4.7.4.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/chronic-0.10.2.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/coderay-1.1.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/coerce-0.0.6.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/daemons-1.1.9.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/fastercsv-1.5.5.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/fattr-2.2.2.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/flowdock-0.5.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/highline-1.6.21.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/httparty-0.13.1.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/json-1.8.1.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/main-6.0.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/main-6.1.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/map-6.5.5.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/method_source-0.8.2.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/multi_json-1.10.1.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/multi_xml-0.5.5.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/pry-0.9.12.6.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/sekrets-1.7.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/sequel-4.15.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/slop-3.5.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/build_info/threadify-1.3.0.info +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/CONTRIBUTING.md +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/HISTORY.md +315 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/LICENSE +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/Manifest.txt +104 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/README.md +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/Rakefile +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/TODO.md +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/bin/amalgalite-pack +147 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/a.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/blob.rb +88 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/bootstrap.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/define_aggregate.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/define_function.rb +104 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/fts3.rb +144 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/gem-db.rb +94 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/require_me.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/requires.rb +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/examples/schema-info.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/Makefile +220 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite.c +329 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite.h +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_blob.c +240 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_blob.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_constants.c +378 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_constants.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_database.c +1177 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_database.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_requires_bootstrap.c +282 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_requires_bootstrap.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_statement.c +649 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/amalgalite_statement.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/extconf.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/gen_constants.rb +193 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/notes.txt +134 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/sqlite3.c +137414 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/sqlite3.h +7160 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/sqlite3.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/sqlite3_options.h +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/ext/amalgalite/c/sqlite3ext.h +447 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/1.9/amalgalite.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/aggregate.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/blob.rb +186 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/boolean.rb +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/busy_timeout.rb +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/column.rb +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/core_ext/kernel/require.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/csv_table_importer.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/database.rb +984 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/function.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/index.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/memory_database.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/packer.rb +231 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/paths.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/profile_tap.rb +131 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/progress_handler.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/requires.rb +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/schema.rb +225 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3/constants.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3/database/function.rb +48 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3/database/status.rb +68 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3/status.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/sqlite3/version.rb +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/statement.rb +418 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/table.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/taps.rb +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/taps/console.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/taps/io.rb +71 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/trace_tap.rb +35 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/type_map.rb +63 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/type_maps/default_map.rb +166 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/type_maps/storage_map.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/type_maps/text_map.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/version.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/lib/amalgalite/view.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/aggregate_spec.rb +150 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/amalgalite_spec.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/blob_spec.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/boolean_spec.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/busy_handler.rb +157 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/data/iso-3166-country.txt +242 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/data/iso-3166-schema.sql +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/data/iso-3166-subcountry.txt +3995 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/data/make-iso-db.sh +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/database_spec.rb +510 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/default_map_spec.rb +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/function_spec.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/integeration_spec.rb +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/iso_3166_database.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/packer_spec.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/paths_spec.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/progress_handler_spec.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/requires_spec.rb +54 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/rtree_spec.rb +66 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/schema_spec.rb +131 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/spec_helper.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3/constants_spec.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3/database_status_spec.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3/status_spec.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3/version_spec.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/sqlite3_spec.rb +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/statement_spec.rb +168 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/storage_map_spec.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/tap_spec.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/text_map_spec.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/type_map_spec.rb +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/spec/version_spec.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/tasks/custom.rake +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/tasks/default.rake +277 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/tasks/extension.rake +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/amalgalite-1.3.0/tasks/this.rb +209 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/README +378 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/arrayfields.gemspec +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/gemspec.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/install.rb +206 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/lib/arrayfields.rb +443 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/readme.rb +248 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/a.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/b.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/c.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/d.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/sample/e.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/test/arrayfields.rb +324 -0
- data/vendor/bundle/ruby/1.9.1/gems/arrayfields-4.7.4/test/memtest.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/HISTORY.md +243 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/LICENSE +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/README.md +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/Rakefile +66 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/chronic.gemspec +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic.rb +150 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/date.rb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/grabber.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/handler.rb +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/handlers.rb +647 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/mini_date.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/numerizer.rb +130 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/ordinal.rb +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/parser.rb +268 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/pointer.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeater.rb +145 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_day.rb +54 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_day_name.rb +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_day_portion.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_fortnight.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_hour.rb +59 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_minute.rb +59 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_month.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_month_name.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_season.rb +111 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_season_name.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_second.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_time.rb +138 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_week.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_weekday.rb +86 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_weekend.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/repeaters/repeater_year.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/scalar.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/season.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/separator.rb +207 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/sign.rb +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/span.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/tag.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/time.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/time_zone.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/lib/chronic/token.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/helper.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_chronic.rb +183 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_daylight_savings.rb +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_handler.rb +128 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_mini_date.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_numerizer.rb +86 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_parsing.rb +1235 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_day_name.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_day_portion.rb +254 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_fortnight.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_hour.rb +68 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_minute.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_month.rb +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_month_name.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_season.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_time.rb +88 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_week.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_weekday.rb +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_weekend.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_repeater_year.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_span.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/chronic-0.10.2/test/test_token.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/README_INDEX.rdoc +123 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/Rakefile +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/bin/coderay +215 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay.rb +284 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/duo.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoder.rb +201 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/_map.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/comment_filter.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/count.rb +39 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/debug.rb +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/debug_lint.rb +63 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/div.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/filter.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/html.rb +332 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/html/css.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/html/numbering.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/html/output.rb +166 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/json.rb +83 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/lines_of_code.rb +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/lint.rb +59 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/null.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/page.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/span.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/statistic.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/terminal.rb +195 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/text.rb +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/token_kind_filter.rb +111 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/xml.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/encoders/yaml.rb +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/for_redcloth.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/helpers/file_type.rb +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/helpers/plugin.rb +274 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/helpers/word_list.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanner.rb +355 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/_map.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/c.rb +189 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/clojure.rb +217 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/cpp.rb +215 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/css.rb +196 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/debug.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/delphi.rb +144 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/diff.rb +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/erb.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/go.rb +208 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/groovy.rb +268 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/haml.rb +168 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/html.rb +275 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/java.rb +174 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/java/builtin_types.rb +421 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/java_script.rb +237 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/json.rb +98 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/lua.rb +280 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/php.rb +527 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/python.rb +287 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/raydebug.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/ruby.rb +470 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/ruby/patterns.rb +178 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/ruby/string_state.rb +71 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/sass.rb +232 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/sql.rb +177 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/taskpaper.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/text.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/xml.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/scanners/yaml.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/style.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/styles/_map.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/styles/alpha.rb +152 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/token_kinds.rb +85 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/tokens.rb +161 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/tokens_proxy.rb +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/lib/coderay/version.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/test/functional/basic.rb +318 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/test/functional/examples.rb +129 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/test/functional/for_redcloth.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/coderay-1.1.0/test/functional/suite.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/coerce-0.0.6/README +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/coerce-0.0.6/Rakefile +392 -0
- data/vendor/bundle/ruby/1.9.1/gems/coerce-0.0.6/coerce.gemspec +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/coerce-0.0.6/lib/coerce.rb +210 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/LICENSE +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/README +214 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/Rakefile +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/Releases +195 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/TODO +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/call/call.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/call/call_monitor.rb +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/daemonize/daemonize.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_crash.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_exec.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_exit.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_hanging.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_keep_pid_files.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_monitor.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_multiple.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_normal.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_ontop.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_optionparser.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_proc.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_proc_multiple.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_proc_rand.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_proc_simple.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/ctrl_slowstop.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/myserver.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/myserver_crashing.rb +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/myserver_exiting.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/myserver_hanging.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/examples/run/myserver_slowstop.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons.rb +315 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/application.rb +477 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/application_group.rb +194 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/change_privilege.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/cmdline.rb +121 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/controller.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/daemonize.rb +169 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/etc_extension.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/exceptions.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/monitor.rb +138 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/pid.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/pidfile.rb +116 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/lib/daemons/pidmem.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/daemons-1.1.9/setup.rb +1360 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/AUTHORS +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/CHANGELOG +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/COPYING +340 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/INSTALL +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/LICENSE +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/README +71 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/Rakefile +94 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/TODO +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/csv_converters.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/csv_filter.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/csv_reading.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/csv_table.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/csv_writing.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/purchase.csv +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/examples/shortcut_interface.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/lib/faster_csv.rb +2025 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/lib/fastercsv.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/line_endings.gz +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_csv_parsing.rb +191 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_csv_writing.rb +96 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_data_converters.rb +260 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_encodings.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_features.rb +212 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_headers.rb +277 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_interface.rb +376 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_row.rb +305 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_serialization.rb +154 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_speed.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/tc_table.rb +408 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/test_data.csv +1000 -0
- data/vendor/bundle/ruby/1.9.1/gems/fastercsv-1.5.5/test/ts_all.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/LICENSE +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/README +347 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/README.erb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/Rakefile +376 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/lib/fattr.rb +206 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/a.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/b.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/c.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/d.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/e.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/f.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/g.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/samples/h.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/fattr-2.2.2/test/fattr_test.rb +173 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/Gemfile +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/LICENSE +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/README.md +145 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/Rakefile +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/VERSION +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/flowdock.gemspec +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/lib/flowdock.rb +181 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/lib/flowdock/capistrano.rb +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/spec/flowdock_spec.rb +435 -0
- data/vendor/bundle/ruby/1.9.1/gems/flowdock-0.5.0/spec/spec_helper.rb +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/AUTHORS +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/CHANGELOG +357 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/COPYING +340 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/INSTALL +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/LICENSE +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/README.rdoc +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/Rakefile +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/TODO +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/ansi_colors.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/asking_for_arrays.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/basic_usage.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/color_scheme.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/get_character.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/limit.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/menus.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/overwrite.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/page_and_wrap.rb +322 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/password.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/repeat_entry.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/trapping_eof.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/examples/using_readline.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/highline.gemspec +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline.rb +1034 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/color_scheme.rb +134 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/compatibility.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/import.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/menu.rb +381 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/question.rb +481 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/simulate.rb +48 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/string_extensions.rb +111 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/style.rb +181 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/lib/highline/system_extensions.rb +242 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/setup.rb +1360 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/site/highline.css +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/site/images/logo.png +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/site/index.html +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/string_methods.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_color_scheme.rb +96 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_highline.rb +1134 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_import.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_menu.rb +439 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_string_extension.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_string_highline.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/tc_style.rb +567 -0
- data/vendor/bundle/ruby/1.9.1/gems/highline-1.6.21/test/ts_all.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/Gemfile +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/Guardfile +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/History +303 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/MIT-LICENSE +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/README.md +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/Rakefile +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/bin/httparty +117 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/cucumber.yml +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/aaws.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/basic.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/crack.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/custom_parsers.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/delicious.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/google.rb +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/headers_and_user_agents.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/nokogiri_html_parser.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/rubyurl.rb +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/stackexchange.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/tripit_sign_in.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/twitter.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/examples/whoismyrep.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/basic_authentication.feature +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/command_line.feature +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/deals_with_http_error_codes.feature +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/digest_authentication.feature +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/handles_compressed_responses.feature +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/handles_multiple_formats.feature +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/env.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/httparty_response_steps.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/httparty_steps.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/mongrel_helper.rb +94 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/steps/remote_service_steps.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/supports_read_timeout_option.feature +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/supports_redirection.feature +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/features/supports_timeout_option.feature +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/httparty.gemspec +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty.rb +600 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/connection_adapter.rb +187 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/cookie_hash.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/core_extensions.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/exceptions.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/hash_conversions.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/logger/apache_logger.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/logger/curl_logger.rb +48 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/logger/logger.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/module_inheritable_attributes.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/net_digest_auth.rb +84 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/parser.rb +141 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/request.rb +331 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/response.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/response/headers.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/lib/httparty/version.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/script/release +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/delicious.xml +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/empty.xml +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/google.html +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generate.sh +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/1fe462c2.0 +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/bogushost.crt +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/ca.crt +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/ca.key +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/selfsigned.crt +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/server.crt +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/generated/server.key +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/ssl/openssl-exts.cnf +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/twitter.csv +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/twitter.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/twitter.xml +403 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/fixtures/undefined_method_add_node_for_nil.xml +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/connection_adapter_spec.rb +354 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/cookie_hash_spec.rb +83 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/exception_spec.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/logger/apache_logger_spec.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/logger/curl_logger_spec.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/logger/logger_spec.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/net_digest_auth_spec.rb +152 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/parser_spec.rb +165 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/request_spec.rb +638 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/response_spec.rb +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty/ssl_spec.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/httparty_spec.rb +764 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/spec.opts +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/spec_helper.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/support/ssl_test_helper.rb +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/support/ssl_test_server.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/spec/support/stub_response.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/website/css/common.css +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/httparty-0.13.1/website/index.html +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/CHANGES +284 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/COPYING +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/COPYING-json-jruby +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/GPL +340 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/Gemfile +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/README-json-jruby.markdown +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/README.rdoc +358 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/Rakefile +412 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/TODO +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/VERSION +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/data/example.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/data/index.html +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/data/prototype.js +4184 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/fbuffer/fbuffer.h +181 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/Makefile +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/depend +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/extconf.rb +14 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/generator.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/generator.c +1435 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/generator.h +148 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/generator/generator.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/Makefile +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/depend +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/extconf.rb +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/parser.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/parser.c +2204 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/parser.h +77 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/parser.o +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/ext/json/ext/parser/parser.rl +927 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/install.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/Generator.java +444 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/GeneratorState.java +543 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/OptionsReader.java +114 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/Parser.java +2644 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/Parser.rl +968 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/ParserService.java +35 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/StringDecoder.java +167 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/java/src/json/ext/Utils.java +89 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/json-java.gemspec +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/json.gemspec +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/json_pure.gemspec +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/bigdecimal.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/complex.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/core.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/date.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/date_time.rb +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/exception.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/ostruct.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/range.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/rational.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/regexp.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/struct.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/symbol.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/add/time.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/common.rb +484 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/ext.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/ext/generator.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/ext/parser.bundle +0 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/generic_object.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/pure.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/pure/generator.rb +522 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/pure/parser.rb +359 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/lib/json/version.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail1.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail10.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail11.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail12.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail13.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail14.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail18.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail19.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail2.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail20.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail21.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail22.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail23.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail24.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail25.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail27.json +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail28.json +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail3.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail4.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail5.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail6.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail7.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail8.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/fail9.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass1.json +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass15.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass16.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass17.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass2.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass26.json +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/fixtures/pass3.json +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/setup_variant.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json.rb +545 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_addition.rb +196 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_encoding.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_fixtures.rb +35 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_generate.rb +322 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_generic_object.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_string_matching.rb +39 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tests/test_json_unicode.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tools/fuzz.rb +139 -0
- data/vendor/bundle/ruby/1.9.1/gems/json-1.8.1/tools/server.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/LICENSE +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/README +1177 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/README.erb +881 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/Rakefile +394 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/TODO +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/a.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main.rb +93 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/cast.rb +163 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/dsl.rb +77 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/factories.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/getoptlong.rb +470 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/logger.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/mode.rb +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/parameter.rb +735 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/program.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/program/class_methods.rb +381 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/program/instance_methods.rb +303 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/softspoken.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/stdext.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/test.rb +89 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/usage.rb +212 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/lib/main/util.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/main.gemspec +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/a.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/b.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/c.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/d.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/e.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/f.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/g.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/h.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/samples/j.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.0.0/test/main_test.rb +954 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/LICENSE +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/README +1177 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/README.erb +881 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/Rakefile +394 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/TODO +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/a.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main.rb +94 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/cast.rb +163 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/daemon.rb +525 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/dsl.rb +77 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/factories.rb +28 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/getoptlong.rb +470 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/logger.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/mode.rb +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/parameter.rb +735 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/program.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/program/class_methods.rb +392 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/program/instance_methods.rb +308 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/softspoken.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/stdext.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/test.rb +89 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/usage.rb +212 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/lib/main/util.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/main.gemspec +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/a.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/b.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/c.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/d.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/e.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/f.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/g.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/h.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/samples/j.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/main-6.1.0/test/main_test.rb +954 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/LICENSE +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/README +145 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/Rakefile +394 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/a.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/lib/map.rb +1190 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/lib/map/integrations/active_record.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/lib/map/options.rb +188 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/lib/map/params.rb +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/lib/map/struct.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/map.gemspec +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/test/leak.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/test/lib/testing.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/map-6.5.5/test/map_test.rb +802 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/Gemfile +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/LICENSE +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/README.markdown +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/Rakefile +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/lib/method_source.rb +141 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/lib/method_source/code_helpers.rb +154 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/lib/method_source/source_location.rb +138 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/lib/method_source/version.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/method_source.gemspec +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/test/test.rb +138 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/test/test_code_helpers.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/method_source-0.8.2/test/test_helper.rb +98 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/CHANGELOG.md +220 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/CONTRIBUTING.md +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/Gemfile +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/LICENSE.md +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/README.md +119 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/Rakefile +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json.rb +158 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapter.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapter_error.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/gson.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/jr_jackson.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/json_common.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/json_gem.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/json_pure.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/nsjsonserialization.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/oj.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/ok_json.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/adapters/yajl.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/convertible_hash_keys.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/options.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/parse_error.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/vendor/okjson.rb +606 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/lib/multi_json/version.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/multi_json.gemspec +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/gson_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/jr_jackson_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/json_gem_adapter_spec.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/json_pure_adapter_spec.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/multi_json_spec.rb +200 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/nsjsonserialization_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/oj_adapter_spec.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/ok_json_adapter_spec.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/shared/adapter.rb +236 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/shared/json_common_adapter.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/shared/options.rb +119 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/spec_helper.rb +77 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_json-1.10.1/spec/yajl_adapter_spec.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/CHANGELOG.md +93 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/CONTRIBUTING.md +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/LICENSE.md +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/README.md +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/Rakefile +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml.rb +296 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/libxml2_parser.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/nokogiri.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/ox.rb +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/parsers/rexml.rb +113 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/lib/multi_xml/version.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/multi_xml.gemspec +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/spec/helper.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/spec/multi_xml_spec.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/spec/parser_shared_example.rb +694 -0
- data/vendor/bundle/ruby/1.9.1/gems/multi_xml-0.5.5/spec/speed.rb +63 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/CHANGELOG +534 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/CONTRIBUTORS +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/Gemfile +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/LICENSE +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/README.markdown +400 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/Rakefile +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/TODO +117 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/bin/pry +16 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry.rb +274 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/cli.rb +202 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/code.rb +385 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/code/code_range.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/code/loc.rb +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/code_object.rb +153 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/command.rb +689 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/command_set.rb +400 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/amend_line.rb +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/bang.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/bang_pry.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cat.rb +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cat/abstract_formatter.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cat/exception_formatter.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cat/file_formatter.rb +84 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cat/input_expression_formatter.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/cd.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/code_collector.rb +165 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/disable_pry.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/disabled_commands.rb +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/easter_eggs.rb +112 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/edit.rb +207 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/edit/exception_patcher.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/edit/file_and_line_locator.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/edit/method_patcher.rb +122 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/exit.rb +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/exit_all.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/exit_program.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/find_method.rb +199 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/fix_indent.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/gem_cd.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/gem_install.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/gem_list.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/gem_open.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/gist.rb +102 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/help.rb +164 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/hist.rb +161 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/import_set.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/install_command.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/jump_to.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/ls.rb +338 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/nesting.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/play.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/pry_backtrace.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/pry_version.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/raise_up.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/reload_code.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/reset.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/ri.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/save_file.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/shell_command.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/shell_mode.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/show_doc.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/show_info.rb +200 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/show_input.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/show_source.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/simple_prompt.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/stat.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/switch_to.rb +23 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/toggle_color.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/whereami.rb +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/commands/wtf.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/completion.rb +321 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/config.rb +258 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/core_extensions.rb +121 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/custom_completions.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/editor.rb +129 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers.rb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/base_helpers.rb +200 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/command_helpers.rb +154 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/documentation_helpers.rb +76 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/options_helpers.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/table.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/helpers/text.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/history.rb +124 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/history_array.rb +116 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/hooks.rb +250 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/indent.rb +406 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/method.rb +551 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/method/disowned.rb +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/method/weird_method_locator.rb +186 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/module_candidate.rb +146 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/pager.rb +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/plugins.rb +103 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/pry_class.rb +456 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/pry_instance.rb +765 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/rbx_method.rb +13 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/rbx_path.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/repl_file_loader.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/rubygem.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/terminal.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/test/helper.rb +185 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/version.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/lib/pry/wrapped_module.rb +387 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/man/pry.1 +195 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/man/pry.1.html +204 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/man/pry.1.ronn +141 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/pry.gemspec +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/Procfile +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/cli_spec.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/code_object_spec.rb +277 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/code_spec.rb +219 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/command_helpers_spec.rb +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/command_integration_spec.rb +644 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/command_set_spec.rb +627 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/command_spec.rb +821 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/amend_line_spec.rb +247 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/bang_spec.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/cat_spec.rb +164 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/cd_spec.rb +250 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/disable_pry_spec.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/edit_spec.rb +727 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/exit_all_spec.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/exit_program_spec.rb +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/exit_spec.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/find_method_spec.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/gem_list_spec.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/gist_spec.rb +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/help_spec.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/hist_spec.rb +181 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/jump_to_spec.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/ls_spec.rb +181 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/play_spec.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/raise_up_spec.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/save_file_spec.rb +177 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/show_doc_spec.rb +510 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/show_input_spec.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/show_source_spec.rb +782 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/commands/whereami_spec.rb +203 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/completion_spec.rb +241 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/control_d_handler_spec.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/documentation_helper_spec.rb +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/editor_spec.rb +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/exception_whitelist_spec.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/candidate_helper1.rb +11 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/candidate_helper2.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/example.erb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/example_nesting.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/show_source_doc_examples.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/testrc +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/testrcbad +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/fixtures/whereami_helper.rb +6 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/helper.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/helpers/bacon.rb +86 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/helpers/mock_pry.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/helpers/table_spec.rb +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/history_array_spec.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/hooks_spec.rb +522 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/indent_spec.rb +301 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/input_stack_spec.rb +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/method_spec.rb +482 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/prompt_spec.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/pry_defaults_spec.rb +419 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/pry_history_spec.rb +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/pry_output_spec.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/pry_spec.rb +515 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/run_command_spec.rb +25 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/sticky_locals_spec.rb +157 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/syntax_checking_spec.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/spec/wrapped_module_spec.rb +261 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/wiki/Customizing-pry.md +397 -0
- data/vendor/bundle/ruby/1.9.1/gems/pry-0.9.12.6/wiki/Home.md +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/README +144 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/Rakefile +390 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/bin/sekrets +372 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/lib/sekrets.rb +511 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/lib/sekrets/capistrano.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/sekrets.gemspec +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/test/lib/testing.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/sekrets-1.7.0/test/sekrets_test.rb +167 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/CHANGELOG +5790 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/MIT-LICENSE +19 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/README.rdoc +815 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/Rakefile +186 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/bin/sequel +244 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/active_record.rdoc +912 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/advanced_associations.rdoc +818 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/association_basics.rdoc +1763 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/bin_sequel.rdoc +144 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/cheat_sheet.rdoc +220 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/code_order.rdoc +96 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/core_extensions.rdoc +364 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/dataset_basics.rdoc +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/dataset_filtering.rdoc +191 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/extensions.rdoc +84 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/mass_assignment.rdoc +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/migration.rdoc +611 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/model_hooks.rdoc +262 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/model_plugins.rdoc +270 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/mssql_stored_procedures.rdoc +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/object_model.rdoc +573 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/opening_databases.rdoc +489 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/postgresql.rdoc +326 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/prepared_statements.rdoc +139 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/querying.rdoc +1017 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/reflection.rdoc +121 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/1.0.txt +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/1.1.txt +143 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/1.3.txt +101 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/1.4.0.txt +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/1.5.0.txt +155 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.0.0.txt +298 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.1.0.txt +271 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.10.0.txt +328 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.11.0.txt +215 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.12.0.txt +534 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.2.0.txt +253 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.3.0.txt +88 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.4.0.txt +106 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.5.0.txt +137 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.6.0.txt +157 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.7.0.txt +166 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.8.0.txt +171 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/2.9.0.txt +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.0.0.txt +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.1.0.txt +406 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.10.0.txt +286 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.11.0.txt +254 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.12.0.txt +304 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.13.0.txt +210 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.14.0.txt +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.15.0.txt +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.16.0.txt +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.17.0.txt +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.18.0.txt +120 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.19.0.txt +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.2.0.txt +268 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.20.0.txt +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.21.0.txt +87 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.22.0.txt +39 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.23.0.txt +172 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.24.0.txt +420 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.25.0.txt +88 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.26.0.txt +88 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.27.0.txt +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.28.0.txt +304 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.29.0.txt +459 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.3.0.txt +192 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.30.0.txt +135 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.31.0.txt +146 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.32.0.txt +202 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.33.0.txt +157 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.34.0.txt +671 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.35.0.txt +144 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.36.0.txt +245 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.37.0.txt +338 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.38.0.txt +234 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.39.0.txt +237 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.4.0.txt +325 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.40.0.txt +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.41.0.txt +155 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.42.0.txt +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.43.0.txt +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.44.0.txt +152 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.45.0.txt +179 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.46.0.txt +122 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.47.0.txt +270 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.48.0.txt +477 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.5.0.txt +510 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.6.0.txt +366 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.7.0.txt +179 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.8.0.txt +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/3.9.0.txt +233 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.0.0.txt +262 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.1.0.txt +85 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.10.0.txt +226 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.11.0.txt +147 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.12.0.txt +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.13.0.txt +169 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.14.0.txt +68 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.15.0.txt +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.2.0.txt +129 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.3.0.txt +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.4.0.txt +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.5.0.txt +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.6.0.txt +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.7.0.txt +103 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.8.0.txt +175 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/release_notes/4.9.0.txt +190 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/schema_modification.rdoc +654 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/security.rdoc +370 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/sharding.rdoc +245 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/sql.rdoc +589 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/testing.rdoc +176 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/thread_safety.rdoc +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/transactions.rdoc +168 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/validations.rdoc +540 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/doc/virtual_rows.rdoc +272 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel.rb +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/ado.rb +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/ado/access.rb +335 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/ado/mssql.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/amalgalite.rb +179 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/cubrid.rb +143 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/db2.rb +229 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/dbi.rb +101 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/do.rb +156 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/do/mysql.rb +64 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/do/postgres.rb +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/do/sqlite3.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/fdbsql.rb +285 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/firebird.rb +104 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/ibmdb.rb +476 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/informix.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc.rb +794 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/as400.rb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/cubrid.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/db2.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/derby.rb +312 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/fdbsql.rb +65 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/firebirdsql.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/h2.rb +227 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/hsqldb.rb +231 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/informix-sqli.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/jdbcprogress.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/jtds.rb +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/mssql.rb +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/mysql.rb +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/oracle.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/postgresql.rb +215 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/sqlanywhere.rb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/sqlite.rb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/sqlserver.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/jdbc/transactions.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/mock.rb +391 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/mysql.rb +372 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/mysql2.rb +200 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/odbc.rb +149 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/odbc/db2.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/odbc/mssql.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/odbc/progress.rb +8 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/openbase.rb +53 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/oracle.rb +459 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/postgres.rb +877 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/access.rb +299 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/cubrid.rb +243 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/db2.rb +403 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/fdbsql.rb +550 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/firebird.rb +245 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/informix.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/mssql.rb +1037 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/mysql.rb +984 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/mysql_prepared_statements.rb +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/oracle.rb +522 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/postgres.rb +1617 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/progress.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/sqlanywhere.rb +470 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/shared/sqlite.rb +729 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/sqlanywhere.rb +177 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/sqlite.rb +413 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/swift.rb +150 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/swift/mysql.rb +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/swift/postgres.rb +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/swift/sqlite.rb +35 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/tinytds.rb +282 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/emulate_offset_with_reverse_and_count.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/emulate_offset_with_row_number.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/pg_types.rb +68 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/replace.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/split_alter_table.rb +44 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/adapters/utils/stored_procedures.rb +74 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/ast_transformer.rb +200 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/connection_pool.rb +110 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/connection_pool/sharded_single.rb +98 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/connection_pool/sharded_threaded.rb +265 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/connection_pool/single.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/connection_pool/threaded.rb +198 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/core.rb +394 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/connecting.rb +318 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/dataset.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/dataset_defaults.rb +175 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/features.rb +134 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/logging.rb +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/misc.rb +534 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/query.rb +329 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/schema_generator.rb +525 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/schema_methods.rb +964 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/database/transactions.rb +353 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/actions.rb +1045 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/features.rb +203 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/graph.rb +272 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/misc.rb +279 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/mutation.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/placeholder_literalizer.rb +179 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/prepared_statements.rb +283 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/query.rb +1136 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/dataset/sql.rb +1555 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/deprecated.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/exceptions.rb +77 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/_pretty_table.rb +84 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/arbitrary_servers.rb +110 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/blank.rb +47 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/columns_introspection.rb +83 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/connection_validator.rb +110 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/constraint_validations.rb +455 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/core_extensions.rb +230 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/core_refinements.rb +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/current_datetime_timestamp.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/dataset_source_alias.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/date_arithmetic.rb +192 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/empty_array_ignore_nulls.rb +34 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/error_sql.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/eval_inspect.rb +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/filter_having.rb +59 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/from_block.rb +32 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/graph_each.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/hash_aliases.rb +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/inflector.rb +246 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/looser_typecasting.rb +44 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/meta_def.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/migration.rb +736 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/mssql_emulate_lateral_with_apply.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/named_timezones.rb +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/null_dataset.rb +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pagination.rb +121 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_array.rb +606 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_array_ops.rb +324 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_enum.rb +136 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_hstore.rb +357 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_hstore_ops.rb +349 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_inet.rb +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_interval.rb +198 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_json.rb +365 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_json_ops.rb +434 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_loose_count.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_range.rb +546 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_range_ops.rb +162 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_row.rb +615 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_row_ops.rb +194 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pg_static_cache_updater.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/pretty_table.rb +36 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/query.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/query_literals.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/round_timestamps.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/ruby18_symbol_extensions.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/schema_caching.rb +75 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/schema_dumper.rb +476 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/select_remove.rb +48 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/sequel_3_dataset_methods.rb +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/server_block.rb +149 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/set_overrides.rb +72 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/split_array_nil.rb +66 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/sql_expr.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/string_date_time.rb +50 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/thread_local_timezones.rb +55 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/extensions/to_dot.rb +154 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model.rb +175 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/associations.rb +3171 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/base.rb +2306 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/dataset_module.rb +30 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/default_inflections.rb +45 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/errors.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/exceptions.rb +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/inflections.rb +162 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/model/plugins.rb +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/no_core_ext.rb +1 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/active_model.rb +99 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/after_initialize.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/association_autoreloading.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/association_dependencies.rb +97 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/association_pks.rb +167 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/association_proxies.rb +105 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/auto_validations.rb +161 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/blacklist_security.rb +93 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/boolean_readers.rb +56 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/caching.rb +153 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/class_table_inheritance.rb +292 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/column_select.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/composition.rb +187 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/constraint_validations.rb +229 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/dataset_associations.rb +107 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/defaults_setter.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/dirty.rb +231 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/eager_each.rb +64 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/error_splitter.rb +54 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/force_encoding.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/hook_class_methods.rb +125 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/input_transformer.rb +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/insert_returning_select.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/instance_filters.rb +131 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/instance_hooks.rb +96 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/json_serializer.rb +352 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/lazy_attributes.rb +117 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/list.rb +189 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/many_through_many.rb +317 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/many_to_one_pk_lookup.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/modification_detection.rb +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/mssql_optimistic_locking.rb +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/nested_attributes.rb +323 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/optimistic_locking.rb +83 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/pg_array_associations.rb +528 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/pg_row.rb +123 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/pg_typecast_on_load.rb +78 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/prepared_statements.rb +205 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/prepared_statements_associations.rb +116 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/prepared_statements_safe.rb +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/prepared_statements_with_pk.rb +59 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/rcte_tree.rb +343 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/schema.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/scissors.rb +33 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/serialization.rb +235 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/serialization_modification_detection.rb +84 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/sharding.rb +117 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/single_table_inheritance.rb +230 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/skip_create_refresh.rb +35 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/split_values.rb +64 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/static_cache.rb +215 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/string_stripper.rb +57 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/subclasses.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/table_select.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/tactical_eager_loading.rb +85 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/timestamps.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/touch.rb +140 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/tree.rb +156 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/typecast_on_load.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/unlimited_update.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/update_or_create.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/update_primary_key.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/validation_class_methods.rb +439 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/validation_helpers.rb +291 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/plugins/xml_serializer.rb +410 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/sql.rb +1865 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/timezones.rb +221 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/lib/sequel/version.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/db2_spec.rb +148 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/fdbsql_spec.rb +429 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/firebird_spec.rb +417 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/informix_spec.rb +100 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/mssql_spec.rb +722 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/mysql_spec.rb +1304 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/oracle_spec.rb +315 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/postgres_spec.rb +3537 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/spec_helper.rb +76 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/sqlanywhere_spec.rb +170 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/adapters/sqlite_spec.rb +650 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/bin_spec.rb +256 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/connection_pool_spec.rb +982 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/database_spec.rb +2487 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/dataset_spec.rb +4970 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/deprecated_spec.rb +70 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/expression_filters_spec.rb +1197 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/mock_adapter_spec.rb +462 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/object_graph_spec.rb +303 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/placeholder_literalizer_spec.rb +163 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/schema_generator_spec.rb +179 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/schema_spec.rb +1610 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/spec_helper.rb +49 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core/version_spec.rb +7 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/core_extensions_spec.rb +695 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/active_model_spec.rb +123 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/after_initialize_spec.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/arbitrary_servers_spec.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/association_dependencies_spec.rb +117 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/association_pks_spec.rb +281 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/association_proxies_spec.rb +86 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/auto_validations_spec.rb +158 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/blacklist_security_spec.rb +87 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/blank_spec.rb +69 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/boolean_readers_spec.rb +93 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/caching_spec.rb +270 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/class_table_inheritance_spec.rb +274 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/column_select_spec.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/columns_introspection_spec.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/composition_spec.rb +242 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/connection_validator_spec.rb +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/constraint_validations_plugin_spec.rb +274 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/constraint_validations_spec.rb +325 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/core_refinements_spec.rb +519 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/current_datetime_timestamp_spec.rb +27 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/dataset_associations_spec.rb +311 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/dataset_source_alias_spec.rb +51 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/date_arithmetic_spec.rb +157 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/defaults_setter_spec.rb +101 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/dirty_spec.rb +180 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/eager_each_spec.rb +42 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/empty_array_ignore_nulls_spec.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/error_splitter_spec.rb +18 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/error_sql_spec.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/eval_inspect_spec.rb +73 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/filter_having_spec.rb +40 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/force_encoding_spec.rb +114 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/from_block_spec.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/graph_each_spec.rb +109 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/hash_aliases_spec.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/hook_class_methods_spec.rb +416 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/inflector_spec.rb +183 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/input_transformer_spec.rb +54 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/insert_returning_select_spec.rb +46 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/instance_filters_spec.rb +79 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/instance_hooks_spec.rb +276 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/json_serializer_spec.rb +267 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/lazy_attributes_spec.rb +170 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/list_spec.rb +265 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/looser_typecasting_spec.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/many_through_many_spec.rb +2159 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/meta_def_spec.rb +21 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/migration_spec.rb +709 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/modification_detection_spec.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/mssql_optimistic_locking_spec.rb +91 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/named_timezones_spec.rb +108 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/nested_attributes_spec.rb +697 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/null_dataset_spec.rb +85 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/optimistic_locking_spec.rb +128 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pagination_spec.rb +118 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_array_associations_spec.rb +736 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_array_ops_spec.rb +143 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_array_spec.rb +390 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_enum_spec.rb +64 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_hstore_ops_spec.rb +236 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_hstore_spec.rb +206 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_inet_spec.rb +52 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_interval_spec.rb +76 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_json_ops_spec.rb +226 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_json_spec.rb +218 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_loose_count_spec.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_range_ops_spec.rb +58 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_range_spec.rb +404 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_row_ops_spec.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_row_plugin_spec.rb +62 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_row_spec.rb +360 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_static_cache_updater_spec.rb +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pg_typecast_on_load_spec.rb +63 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/prepared_statements_associations_spec.rb +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/prepared_statements_safe_spec.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/prepared_statements_spec.rb +103 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/prepared_statements_with_pk_spec.rb +31 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/pretty_table_spec.rb +92 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/query_literals_spec.rb +167 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/query_spec.rb +102 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/rcte_tree_spec.rb +387 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/round_timestamps_spec.rb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/schema_caching_spec.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/schema_dumper_spec.rb +788 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/schema_spec.rb +113 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/scissors_spec.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/select_remove_spec.rb +38 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/sequel_3_dataset_methods_spec.rb +101 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/serialization_modification_detection_spec.rb +98 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/serialization_spec.rb +340 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/server_block_spec.rb +90 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/set_overrides_spec.rb +61 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/sharding_spec.rb +198 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/shared_caching_spec.rb +175 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/single_table_inheritance_spec.rb +276 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/skip_create_refresh_spec.rb +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/spec_helper.rb +96 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/split_array_nil_spec.rb +24 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/split_values_spec.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/sql_expr_spec.rb +60 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/static_cache_spec.rb +355 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/string_date_time_spec.rb +95 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/string_stripper_spec.rb +68 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/subclasses_spec.rb +66 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/table_select_spec.rb +71 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/tactical_eager_loading_spec.rb +82 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/thread_local_timezones_spec.rb +67 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/timestamps_spec.rb +175 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/to_dot_spec.rb +154 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/touch_spec.rb +203 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/tree_spec.rb +270 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/typecast_on_load_spec.rb +80 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/unlimited_update_spec.rb +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/update_or_create_spec.rb +81 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/update_primary_key_spec.rb +100 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/validation_class_methods_spec.rb +1030 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/validation_helpers_spec.rb +520 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/extensions/xml_serializer_spec.rb +207 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_down_migration/001_create_alt_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_down_migration/002_create_alt_advanced.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_timestamped_migrations/1273253853_3_create_users.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_up_migration/001_create_alt_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/bad_up_migration/002_create_alt_advanced.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/convert_to_timestamp_migrations/001_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/convert_to_timestamp_migrations/002_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/convert_to_timestamp_migrations/003_3_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/convert_to_timestamp_migrations/1273253850_create_artists.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/convert_to_timestamp_migrations/1273253852_create_albums.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/duplicate_integer_migrations/001_create_alt_advanced.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/duplicate_integer_migrations/001_create_alt_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/duplicate_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/duplicate_timestamped_migrations/1273253853_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/duplicate_timestamped_migrations/1273253853_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/integer_migrations/001_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/integer_migrations/002_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/integer_migrations/003_3_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/interleaved_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/interleaved_timestamped_migrations/1273253850_create_artists.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/interleaved_timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/interleaved_timestamped_migrations/1273253852_create_albums.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/interleaved_timestamped_migrations/1273253853_3_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/missing_integer_migrations/001_create_alt_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/missing_integer_migrations/003_create_alt_advanced.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/missing_timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/missing_timestamped_migrations/1273253853_3_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/reversible_migrations/001_reversible.rb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/reversible_migrations/002_reversible.rb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/reversible_migrations/003_reversible.rb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/reversible_migrations/004_reversible.rb +5 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/reversible_migrations/005_reversible.rb +10 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/timestamped_migrations/1273253849_create_sessions.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/timestamped_migrations/1273253851_create_nodes.rb +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/timestamped_migrations/1273253853_3_create_users.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/transaction_specified_migrations/001_create_alt_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/transaction_specified_migrations/002_create_basic.rb +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/transaction_unspecified_migrations/001_create_alt_basic.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/transaction_unspecified_migrations/002_create_basic.rb +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/uppercase_timestamped_migrations/1273253849_CREATE_SESSIONS.RB +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/uppercase_timestamped_migrations/1273253851_CREATE_NODES.RB +9 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/files/uppercase_timestamped_migrations/1273253853_3_CREATE_USERS.RB +4 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/associations_test.rb +2453 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/database_test.rb +113 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/dataset_test.rb +1798 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/eager_loader_test.rb +687 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/migrator_test.rb +240 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/model_test.rb +226 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/plugin_test.rb +2162 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/prepared_statement_test.rb +426 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/schema_test.rb +801 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/spec_helper.rb +111 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/timezone_test.rb +86 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/transaction_test.rb +374 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/integration/type_test.rb +133 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/association_reflection_spec.rb +500 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/associations_spec.rb +4316 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/base_spec.rb +746 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/class_dataset_methods_spec.rb +145 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/dataset_methods_spec.rb +149 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/eager_loading_spec.rb +2080 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/hooks_spec.rb +536 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/inflector_spec.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/model_spec.rb +992 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/plugins_spec.rb +299 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/record_spec.rb +2053 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/spec_helper.rb +64 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/model/validations_spec.rb +191 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/rspec_helper.rb +22 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/sequel_coverage.rb +15 -0
- data/vendor/bundle/ruby/1.9.1/gems/sequel-4.15.0/spec/spec_config.rb +2 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/CHANGES.md +303 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/Gemfile +3 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/LICENSE +20 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/README.md +182 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/Rakefile +29 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/lib/slop.rb +687 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/lib/slop/commands.rb +196 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/lib/slop/option.rb +209 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/slop.gemspec +17 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/test/commands_test.rb +26 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/test/helper.rb +12 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/test/option_test.rb +138 -0
- data/vendor/bundle/ruby/1.9.1/gems/slop-3.5.0/test/slop_test.rb +518 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/README +151 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/README.erb +43 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/lib/threadify.rb +176 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/rakefile +222 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/sample/a.rb +37 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/sample/b.rb +41 -0
- data/vendor/bundle/ruby/1.9.1/gems/threadify-1.3.0/threadify.gemspec +26 -0
- data/vendor/bundle/ruby/1.9.1/specifications/amalgalite-1.3.0.gemspec +52 -0
- data/vendor/bundle/ruby/1.9.1/specifications/arrayfields-4.7.4.gemspec +16 -0
- data/vendor/bundle/ruby/1.9.1/specifications/chronic-0.10.2.gemspec +42 -0
- data/vendor/bundle/ruby/1.9.1/specifications/coderay-1.1.0.gemspec +23 -0
- data/vendor/bundle/ruby/1.9.1/specifications/coerce-0.0.6.gemspec +30 -0
- data/vendor/bundle/ruby/1.9.1/specifications/daemons-1.1.9.gemspec +19 -0
- data/vendor/bundle/ruby/1.9.1/specifications/fastercsv-1.5.5.gemspec +20 -0
- data/vendor/bundle/ruby/1.9.1/specifications/fattr-2.2.2.gemspec +18 -0
- data/vendor/bundle/ruby/1.9.1/specifications/flowdock-0.5.0.gemspec +51 -0
- data/vendor/bundle/ruby/1.9.1/specifications/highline-1.6.21.gemspec +21 -0
- data/vendor/bundle/ruby/1.9.1/specifications/httparty-0.13.1.gemspec +35 -0
- data/vendor/bundle/ruby/1.9.1/specifications/json-1.8.1.gemspec +36 -0
- data/vendor/bundle/ruby/1.9.1/specifications/main-6.0.0.gemspec +39 -0
- data/vendor/bundle/ruby/1.9.1/specifications/main-6.1.0.gemspec +39 -0
- data/vendor/bundle/ruby/1.9.1/specifications/map-6.5.5.gemspec +18 -0
- data/vendor/bundle/ruby/1.9.1/specifications/method_source-0.8.2.gemspec +31 -0
- data/vendor/bundle/ruby/1.9.1/specifications/multi_json-1.10.1.gemspec +30 -0
- data/vendor/bundle/ruby/1.9.1/specifications/multi_xml-0.5.5.gemspec +30 -0
- data/vendor/bundle/ruby/1.9.1/specifications/pry-0.9.12.6.gemspec +51 -0
- data/vendor/bundle/ruby/1.9.1/specifications/sekrets-1.7.0.gemspec +43 -0
- data/vendor/bundle/ruby/1.9.1/specifications/sequel-4.15.0.gemspec +22 -0
- data/vendor/bundle/ruby/1.9.1/specifications/slop-3.5.0.gemspec +33 -0
- data/vendor/bundle/ruby/1.9.1/specifications/threadify-1.3.0.gemspec +16 -0
- metadata +1804 -0
@@ -0,0 +1,36 @@
|
|
1
|
+
#!/usr/local/bin/ruby -w
|
2
|
+
|
3
|
+
# shortcut_interface.rb
|
4
|
+
#
|
5
|
+
# Created by James Edward Gray II on 2006-04-01.
|
6
|
+
# Copyright 2012 Gray Productions. All rights reserved.
|
7
|
+
#
|
8
|
+
# Feature implementation and example code by Ara.T.Howard.
|
9
|
+
|
10
|
+
require "faster_csv"
|
11
|
+
|
12
|
+
#
|
13
|
+
# So now it's this easy to write to STDOUT.
|
14
|
+
#
|
15
|
+
FCSV { |f| f << %w( a b c) << %w( d e f ) }
|
16
|
+
|
17
|
+
#
|
18
|
+
# Writing to a String.
|
19
|
+
#
|
20
|
+
FCSV(csv = '') do |f|
|
21
|
+
f << %w( q r s )
|
22
|
+
f << %w( x y z )
|
23
|
+
end
|
24
|
+
puts csv
|
25
|
+
|
26
|
+
#
|
27
|
+
# Writing to STDERR.
|
28
|
+
#
|
29
|
+
FCSV(STDERR) do |f|
|
30
|
+
f << %w( 0 1 2 )
|
31
|
+
f << %w( A B C )
|
32
|
+
end
|
33
|
+
# >> a,b,c
|
34
|
+
# >> d,e,f
|
35
|
+
# >> q,r,s
|
36
|
+
# >> x,y,z
|
@@ -0,0 +1,2025 @@
|
|
1
|
+
#!/usr/local/bin/ruby -w
|
2
|
+
|
3
|
+
# = faster_csv.rb -- Faster CSV Reading and Writing
|
4
|
+
#
|
5
|
+
# Created by James Edward Gray II on 2005-10-31.
|
6
|
+
# Copyright 2005 Gray Productions. All rights reserved.
|
7
|
+
#
|
8
|
+
# See FasterCSV for documentation.
|
9
|
+
|
10
|
+
if RUBY_VERSION >= "1.9"
|
11
|
+
class FasterCSV
|
12
|
+
def self.const_missing(*_)
|
13
|
+
raise NotImplementedError, "Please switch to Ruby 1.9's standard CSV " +
|
14
|
+
"library. It's FasterCSV plus support for " +
|
15
|
+
"Ruby 1.9's m17n encoding engine."
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.method_missing(*_)
|
19
|
+
const_missing
|
20
|
+
end
|
21
|
+
|
22
|
+
def method_missing(*_)
|
23
|
+
self.class.const_missing
|
24
|
+
end
|
25
|
+
end
|
26
|
+
else
|
27
|
+
require "forwardable"
|
28
|
+
require "English"
|
29
|
+
require "enumerator"
|
30
|
+
require "date"
|
31
|
+
require "stringio"
|
32
|
+
|
33
|
+
#
|
34
|
+
# This class provides a complete interface to CSV files and data. It offers
|
35
|
+
# tools to enable you to read and write to and from Strings or IO objects, as
|
36
|
+
# needed.
|
37
|
+
#
|
38
|
+
# == Reading
|
39
|
+
#
|
40
|
+
# === From a File
|
41
|
+
#
|
42
|
+
# ==== A Line at a Time
|
43
|
+
#
|
44
|
+
# FasterCSV.foreach("path/to/file.csv") do |row|
|
45
|
+
# # use row here...
|
46
|
+
# end
|
47
|
+
#
|
48
|
+
# ==== All at Once
|
49
|
+
#
|
50
|
+
# arr_of_arrs = FasterCSV.read("path/to/file.csv")
|
51
|
+
#
|
52
|
+
# === From a String
|
53
|
+
#
|
54
|
+
# ==== A Line at a Time
|
55
|
+
#
|
56
|
+
# FasterCSV.parse("CSV,data,String") do |row|
|
57
|
+
# # use row here...
|
58
|
+
# end
|
59
|
+
#
|
60
|
+
# ==== All at Once
|
61
|
+
#
|
62
|
+
# arr_of_arrs = FasterCSV.parse("CSV,data,String")
|
63
|
+
#
|
64
|
+
# == Writing
|
65
|
+
#
|
66
|
+
# === To a File
|
67
|
+
#
|
68
|
+
# FasterCSV.open("path/to/file.csv", "w") do |csv|
|
69
|
+
# csv << ["row", "of", "CSV", "data"]
|
70
|
+
# csv << ["another", "row"]
|
71
|
+
# # ...
|
72
|
+
# end
|
73
|
+
#
|
74
|
+
# === To a String
|
75
|
+
#
|
76
|
+
# csv_string = FasterCSV.generate do |csv|
|
77
|
+
# csv << ["row", "of", "CSV", "data"]
|
78
|
+
# csv << ["another", "row"]
|
79
|
+
# # ...
|
80
|
+
# end
|
81
|
+
#
|
82
|
+
# == Convert a Single Line
|
83
|
+
#
|
84
|
+
# csv_string = ["CSV", "data"].to_csv # to CSV
|
85
|
+
# csv_array = "CSV,String".parse_csv # from CSV
|
86
|
+
#
|
87
|
+
# == Shortcut Interface
|
88
|
+
#
|
89
|
+
# FCSV { |csv_out| csv_out << %w{my data here} } # to $stdout
|
90
|
+
# FCSV(csv = "") { |csv_str| csv_str << %w{my data here} } # to a String
|
91
|
+
# FCSV($stderr) { |csv_err| csv_err << %w{my data here} } # to $stderr
|
92
|
+
# FCSV($stdin) { |csv_in| csv_in.each { |row| p row } } # from $stdin
|
93
|
+
#
|
94
|
+
# == Advanced Usage
|
95
|
+
#
|
96
|
+
# === Wrap an IO Object
|
97
|
+
#
|
98
|
+
# csv = FCSV.new(io, options)
|
99
|
+
# # ... read (with gets() or each()) from and write (with <<) to csv here ...
|
100
|
+
#
|
101
|
+
class FasterCSV
|
102
|
+
# The version of the installed library.
|
103
|
+
VERSION = "1.5.5".freeze
|
104
|
+
|
105
|
+
#
|
106
|
+
# A FasterCSV::Row is part Array and part Hash. It retains an order for the
|
107
|
+
# fields and allows duplicates just as an Array would, but also allows you to
|
108
|
+
# access fields by name just as you could if they were in a Hash.
|
109
|
+
#
|
110
|
+
# All rows returned by FasterCSV will be constructed from this class, if
|
111
|
+
# header row processing is activated.
|
112
|
+
#
|
113
|
+
class Row
|
114
|
+
#
|
115
|
+
# Construct a new FasterCSV::Row from +headers+ and +fields+, which are
|
116
|
+
# expected to be Arrays. If one Array is shorter than the other, it will be
|
117
|
+
# padded with +nil+ objects.
|
118
|
+
#
|
119
|
+
# The optional +header_row+ parameter can be set to +true+ to indicate, via
|
120
|
+
# FasterCSV::Row.header_row?() and FasterCSV::Row.field_row?(), that this is
|
121
|
+
# a header row. Otherwise, the row is assumes to be a field row.
|
122
|
+
#
|
123
|
+
# A FasterCSV::Row object supports the following Array methods through
|
124
|
+
# delegation:
|
125
|
+
#
|
126
|
+
# * empty?()
|
127
|
+
# * length()
|
128
|
+
# * size()
|
129
|
+
#
|
130
|
+
def initialize(headers, fields, header_row = false)
|
131
|
+
@header_row = header_row
|
132
|
+
|
133
|
+
# handle extra headers or fields
|
134
|
+
@row = if headers.size > fields.size
|
135
|
+
headers.zip(fields)
|
136
|
+
else
|
137
|
+
fields.zip(headers).map { |pair| pair.reverse }
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
# Internal data format used to compare equality.
|
142
|
+
attr_reader :row
|
143
|
+
protected :row
|
144
|
+
|
145
|
+
### Array Delegation ###
|
146
|
+
|
147
|
+
extend Forwardable
|
148
|
+
def_delegators :@row, :empty?, :length, :size
|
149
|
+
|
150
|
+
# Returns +true+ if this is a header row.
|
151
|
+
def header_row?
|
152
|
+
@header_row
|
153
|
+
end
|
154
|
+
|
155
|
+
# Returns +true+ if this is a field row.
|
156
|
+
def field_row?
|
157
|
+
not header_row?
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns the headers of this row.
|
161
|
+
def headers
|
162
|
+
@row.map { |pair| pair.first }
|
163
|
+
end
|
164
|
+
|
165
|
+
#
|
166
|
+
# :call-seq:
|
167
|
+
# field( header )
|
168
|
+
# field( header, offset )
|
169
|
+
# field( index )
|
170
|
+
#
|
171
|
+
# This method will fetch the field value by +header+ or +index+. If a field
|
172
|
+
# is not found, +nil+ is returned.
|
173
|
+
#
|
174
|
+
# When provided, +offset+ ensures that a header match occurrs on or later
|
175
|
+
# than the +offset+ index. You can use this to find duplicate headers,
|
176
|
+
# without resorting to hard-coding exact indices.
|
177
|
+
#
|
178
|
+
def field(header_or_index, minimum_index = 0)
|
179
|
+
# locate the pair
|
180
|
+
finder = header_or_index.is_a?(Integer) ? :[] : :assoc
|
181
|
+
pair = @row[minimum_index..-1].send(finder, header_or_index)
|
182
|
+
|
183
|
+
# return the field if we have a pair
|
184
|
+
pair.nil? ? nil : pair.last
|
185
|
+
end
|
186
|
+
alias_method :[], :field
|
187
|
+
|
188
|
+
#
|
189
|
+
# :call-seq:
|
190
|
+
# []=( header, value )
|
191
|
+
# []=( header, offset, value )
|
192
|
+
# []=( index, value )
|
193
|
+
#
|
194
|
+
# Looks up the field by the semantics described in FasterCSV::Row.field()
|
195
|
+
# and assigns the +value+.
|
196
|
+
#
|
197
|
+
# Assigning past the end of the row with an index will set all pairs between
|
198
|
+
# to <tt>[nil, nil]</tt>. Assigning to an unused header appends the new
|
199
|
+
# pair.
|
200
|
+
#
|
201
|
+
def []=(*args)
|
202
|
+
value = args.pop
|
203
|
+
|
204
|
+
if args.first.is_a? Integer
|
205
|
+
if @row[args.first].nil? # extending past the end with index
|
206
|
+
@row[args.first] = [nil, value]
|
207
|
+
@row.map! { |pair| pair.nil? ? [nil, nil] : pair }
|
208
|
+
else # normal index assignment
|
209
|
+
@row[args.first][1] = value
|
210
|
+
end
|
211
|
+
else
|
212
|
+
index = index(*args)
|
213
|
+
if index.nil? # appending a field
|
214
|
+
self << [args.first, value]
|
215
|
+
else # normal header assignment
|
216
|
+
@row[index][1] = value
|
217
|
+
end
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
#
|
222
|
+
# :call-seq:
|
223
|
+
# <<( field )
|
224
|
+
# <<( header_and_field_array )
|
225
|
+
# <<( header_and_field_hash )
|
226
|
+
#
|
227
|
+
# If a two-element Array is provided, it is assumed to be a header and field
|
228
|
+
# and the pair is appended. A Hash works the same way with the key being
|
229
|
+
# the header and the value being the field. Anything else is assumed to be
|
230
|
+
# a lone field which is appended with a +nil+ header.
|
231
|
+
#
|
232
|
+
# This method returns the row for chaining.
|
233
|
+
#
|
234
|
+
def <<(arg)
|
235
|
+
if arg.is_a?(Array) and arg.size == 2 # appending a header and name
|
236
|
+
@row << arg
|
237
|
+
elsif arg.is_a?(Hash) # append header and name pairs
|
238
|
+
arg.each { |pair| @row << pair }
|
239
|
+
else # append field value
|
240
|
+
@row << [nil, arg]
|
241
|
+
end
|
242
|
+
|
243
|
+
self # for chaining
|
244
|
+
end
|
245
|
+
|
246
|
+
#
|
247
|
+
# A shortcut for appending multiple fields. Equivalent to:
|
248
|
+
#
|
249
|
+
# args.each { |arg| faster_csv_row << arg }
|
250
|
+
#
|
251
|
+
# This method returns the row for chaining.
|
252
|
+
#
|
253
|
+
def push(*args)
|
254
|
+
args.each { |arg| self << arg }
|
255
|
+
|
256
|
+
self # for chaining
|
257
|
+
end
|
258
|
+
|
259
|
+
#
|
260
|
+
# :call-seq:
|
261
|
+
# delete( header )
|
262
|
+
# delete( header, offset )
|
263
|
+
# delete( index )
|
264
|
+
#
|
265
|
+
# Used to remove a pair from the row by +header+ or +index+. The pair is
|
266
|
+
# located as described in FasterCSV::Row.field(). The deleted pair is
|
267
|
+
# returned, or +nil+ if a pair could not be found.
|
268
|
+
#
|
269
|
+
def delete(header_or_index, minimum_index = 0)
|
270
|
+
if header_or_index.is_a? Integer # by index
|
271
|
+
@row.delete_at(header_or_index)
|
272
|
+
elsif i = index(header_or_index, minimum_index) # by header
|
273
|
+
@row.delete_at(i)
|
274
|
+
else
|
275
|
+
[ ]
|
276
|
+
end
|
277
|
+
end
|
278
|
+
|
279
|
+
#
|
280
|
+
# The provided +block+ is passed a header and field for each pair in the row
|
281
|
+
# and expected to return +true+ or +false+, depending on whether the pair
|
282
|
+
# should be deleted.
|
283
|
+
#
|
284
|
+
# This method returns the row for chaining.
|
285
|
+
#
|
286
|
+
def delete_if(&block)
|
287
|
+
@row.delete_if(&block)
|
288
|
+
|
289
|
+
self # for chaining
|
290
|
+
end
|
291
|
+
|
292
|
+
#
|
293
|
+
# This method accepts any number of arguments which can be headers, indices,
|
294
|
+
# Ranges of either, or two-element Arrays containing a header and offset.
|
295
|
+
# Each argument will be replaced with a field lookup as described in
|
296
|
+
# FasterCSV::Row.field().
|
297
|
+
#
|
298
|
+
# If called with no arguments, all fields are returned.
|
299
|
+
#
|
300
|
+
def fields(*headers_and_or_indices)
|
301
|
+
if headers_and_or_indices.empty? # return all fields--no arguments
|
302
|
+
@row.map { |pair| pair.last }
|
303
|
+
else # or work like values_at()
|
304
|
+
headers_and_or_indices.inject(Array.new) do |all, h_or_i|
|
305
|
+
all + if h_or_i.is_a? Range
|
306
|
+
index_begin = h_or_i.begin.is_a?(Integer) ? h_or_i.begin :
|
307
|
+
index(h_or_i.begin)
|
308
|
+
index_end = h_or_i.end.is_a?(Integer) ? h_or_i.end :
|
309
|
+
index(h_or_i.end)
|
310
|
+
new_range = h_or_i.exclude_end? ? (index_begin...index_end) :
|
311
|
+
(index_begin..index_end)
|
312
|
+
fields.values_at(new_range)
|
313
|
+
else
|
314
|
+
[field(*Array(h_or_i))]
|
315
|
+
end
|
316
|
+
end
|
317
|
+
end
|
318
|
+
end
|
319
|
+
alias_method :values_at, :fields
|
320
|
+
|
321
|
+
#
|
322
|
+
# :call-seq:
|
323
|
+
# index( header )
|
324
|
+
# index( header, offset )
|
325
|
+
#
|
326
|
+
# This method will return the index of a field with the provided +header+.
|
327
|
+
# The +offset+ can be used to locate duplicate header names, as described in
|
328
|
+
# FasterCSV::Row.field().
|
329
|
+
#
|
330
|
+
def index(header, minimum_index = 0)
|
331
|
+
# find the pair
|
332
|
+
index = headers[minimum_index..-1].index(header)
|
333
|
+
# return the index at the right offset, if we found one
|
334
|
+
index.nil? ? nil : index + minimum_index
|
335
|
+
end
|
336
|
+
|
337
|
+
# Returns +true+ if +name+ is a header for this row, and +false+ otherwise.
|
338
|
+
def header?(name)
|
339
|
+
headers.include? name
|
340
|
+
end
|
341
|
+
alias_method :include?, :header?
|
342
|
+
|
343
|
+
#
|
344
|
+
# Returns +true+ if +data+ matches a field in this row, and +false+
|
345
|
+
# otherwise.
|
346
|
+
#
|
347
|
+
def field?(data)
|
348
|
+
fields.include? data
|
349
|
+
end
|
350
|
+
|
351
|
+
include Enumerable
|
352
|
+
|
353
|
+
#
|
354
|
+
# Yields each pair of the row as header and field tuples (much like
|
355
|
+
# iterating over a Hash).
|
356
|
+
#
|
357
|
+
# Support for Enumerable.
|
358
|
+
#
|
359
|
+
# This method returns the row for chaining.
|
360
|
+
#
|
361
|
+
def each(&block)
|
362
|
+
@row.each(&block)
|
363
|
+
|
364
|
+
self # for chaining
|
365
|
+
end
|
366
|
+
|
367
|
+
#
|
368
|
+
# Returns +true+ if this row contains the same headers and fields in the
|
369
|
+
# same order as +other+.
|
370
|
+
#
|
371
|
+
def ==(other)
|
372
|
+
@row == other.row
|
373
|
+
end
|
374
|
+
|
375
|
+
#
|
376
|
+
# Collapses the row into a simple Hash. Be warning that this discards field
|
377
|
+
# order and clobbers duplicate fields.
|
378
|
+
#
|
379
|
+
def to_hash
|
380
|
+
# flatten just one level of the internal Array
|
381
|
+
Hash[*@row.inject(Array.new) { |ary, pair| ary.push(*pair) }]
|
382
|
+
end
|
383
|
+
|
384
|
+
#
|
385
|
+
# Returns the row as a CSV String. Headers are not used. Equivalent to:
|
386
|
+
#
|
387
|
+
# faster_csv_row.fields.to_csv( options )
|
388
|
+
#
|
389
|
+
def to_csv(options = Hash.new)
|
390
|
+
fields.to_csv(options)
|
391
|
+
end
|
392
|
+
alias_method :to_s, :to_csv
|
393
|
+
|
394
|
+
# A summary of fields, by header.
|
395
|
+
def inspect
|
396
|
+
str = "#<#{self.class}"
|
397
|
+
each do |header, field|
|
398
|
+
str << " #{header.is_a?(Symbol) ? header.to_s : header.inspect}:" <<
|
399
|
+
field.inspect
|
400
|
+
end
|
401
|
+
str << ">"
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
#
|
406
|
+
# A FasterCSV::Table is a two-dimensional data structure for representing CSV
|
407
|
+
# documents. Tables allow you to work with the data by row or column,
|
408
|
+
# manipulate the data, and even convert the results back to CSV, if needed.
|
409
|
+
#
|
410
|
+
# All tables returned by FasterCSV will be constructed from this class, if
|
411
|
+
# header row processing is activated.
|
412
|
+
#
|
413
|
+
class Table
|
414
|
+
#
|
415
|
+
# Construct a new FasterCSV::Table from +array_of_rows+, which are expected
|
416
|
+
# to be FasterCSV::Row objects. All rows are assumed to have the same
|
417
|
+
# headers.
|
418
|
+
#
|
419
|
+
# A FasterCSV::Table object supports the following Array methods through
|
420
|
+
# delegation:
|
421
|
+
#
|
422
|
+
# * empty?()
|
423
|
+
# * length()
|
424
|
+
# * size()
|
425
|
+
#
|
426
|
+
def initialize(array_of_rows)
|
427
|
+
@table = array_of_rows
|
428
|
+
@mode = :col_or_row
|
429
|
+
end
|
430
|
+
|
431
|
+
# The current access mode for indexing and iteration.
|
432
|
+
attr_reader :mode
|
433
|
+
|
434
|
+
# Internal data format used to compare equality.
|
435
|
+
attr_reader :table
|
436
|
+
protected :table
|
437
|
+
|
438
|
+
### Array Delegation ###
|
439
|
+
|
440
|
+
extend Forwardable
|
441
|
+
def_delegators :@table, :empty?, :length, :size
|
442
|
+
|
443
|
+
#
|
444
|
+
# Returns a duplicate table object, in column mode. This is handy for
|
445
|
+
# chaining in a single call without changing the table mode, but be aware
|
446
|
+
# that this method can consume a fair amount of memory for bigger data sets.
|
447
|
+
#
|
448
|
+
# This method returns the duplicate table for chaining. Don't chain
|
449
|
+
# destructive methods (like []=()) this way though, since you are working
|
450
|
+
# with a duplicate.
|
451
|
+
#
|
452
|
+
def by_col
|
453
|
+
self.class.new(@table.dup).by_col!
|
454
|
+
end
|
455
|
+
|
456
|
+
#
|
457
|
+
# Switches the mode of this table to column mode. All calls to indexing and
|
458
|
+
# iteration methods will work with columns until the mode is changed again.
|
459
|
+
#
|
460
|
+
# This method returns the table and is safe to chain.
|
461
|
+
#
|
462
|
+
def by_col!
|
463
|
+
@mode = :col
|
464
|
+
|
465
|
+
self
|
466
|
+
end
|
467
|
+
|
468
|
+
#
|
469
|
+
# Returns a duplicate table object, in mixed mode. This is handy for
|
470
|
+
# chaining in a single call without changing the table mode, but be aware
|
471
|
+
# that this method can consume a fair amount of memory for bigger data sets.
|
472
|
+
#
|
473
|
+
# This method returns the duplicate table for chaining. Don't chain
|
474
|
+
# destructive methods (like []=()) this way though, since you are working
|
475
|
+
# with a duplicate.
|
476
|
+
#
|
477
|
+
def by_col_or_row
|
478
|
+
self.class.new(@table.dup).by_col_or_row!
|
479
|
+
end
|
480
|
+
|
481
|
+
#
|
482
|
+
# Switches the mode of this table to mixed mode. All calls to indexing and
|
483
|
+
# iteration methods will use the default intelligent indexing system until
|
484
|
+
# the mode is changed again. In mixed mode an index is assumed to be a row
|
485
|
+
# reference while anything else is assumed to be column access by headers.
|
486
|
+
#
|
487
|
+
# This method returns the table and is safe to chain.
|
488
|
+
#
|
489
|
+
def by_col_or_row!
|
490
|
+
@mode = :col_or_row
|
491
|
+
|
492
|
+
self
|
493
|
+
end
|
494
|
+
|
495
|
+
#
|
496
|
+
# Returns a duplicate table object, in row mode. This is handy for chaining
|
497
|
+
# in a single call without changing the table mode, but be aware that this
|
498
|
+
# method can consume a fair amount of memory for bigger data sets.
|
499
|
+
#
|
500
|
+
# This method returns the duplicate table for chaining. Don't chain
|
501
|
+
# destructive methods (like []=()) this way though, since you are working
|
502
|
+
# with a duplicate.
|
503
|
+
#
|
504
|
+
def by_row
|
505
|
+
self.class.new(@table.dup).by_row!
|
506
|
+
end
|
507
|
+
|
508
|
+
#
|
509
|
+
# Switches the mode of this table to row mode. All calls to indexing and
|
510
|
+
# iteration methods will work with rows until the mode is changed again.
|
511
|
+
#
|
512
|
+
# This method returns the table and is safe to chain.
|
513
|
+
#
|
514
|
+
def by_row!
|
515
|
+
@mode = :row
|
516
|
+
|
517
|
+
self
|
518
|
+
end
|
519
|
+
|
520
|
+
#
|
521
|
+
# Returns the headers for the first row of this table (assumed to match all
|
522
|
+
# other rows). An empty Array is returned for empty tables.
|
523
|
+
#
|
524
|
+
def headers
|
525
|
+
if @table.empty?
|
526
|
+
Array.new
|
527
|
+
else
|
528
|
+
@table.first.headers
|
529
|
+
end
|
530
|
+
end
|
531
|
+
|
532
|
+
#
|
533
|
+
# In the default mixed mode, this method returns rows for index access and
|
534
|
+
# columns for header access. You can force the index association by first
|
535
|
+
# calling by_col!() or by_row!().
|
536
|
+
#
|
537
|
+
# Columns are returned as an Array of values. Altering that Array has no
|
538
|
+
# effect on the table.
|
539
|
+
#
|
540
|
+
def [](index_or_header)
|
541
|
+
if @mode == :row or # by index
|
542
|
+
(@mode == :col_or_row and index_or_header.is_a? Integer)
|
543
|
+
@table[index_or_header]
|
544
|
+
else # by header
|
545
|
+
@table.map { |row| row[index_or_header] }
|
546
|
+
end
|
547
|
+
end
|
548
|
+
|
549
|
+
#
|
550
|
+
# In the default mixed mode, this method assigns rows for index access and
|
551
|
+
# columns for header access. You can force the index association by first
|
552
|
+
# calling by_col!() or by_row!().
|
553
|
+
#
|
554
|
+
# Rows may be set to an Array of values (which will inherit the table's
|
555
|
+
# headers()) or a FasterCSV::Row.
|
556
|
+
#
|
557
|
+
# Columns may be set to a single value, which is copied to each row of the
|
558
|
+
# column, or an Array of values. Arrays of values are assigned to rows top
|
559
|
+
# to bottom in row major order. Excess values are ignored and if the Array
|
560
|
+
# does not have a value for each row the extra rows will receive a +nil+.
|
561
|
+
#
|
562
|
+
# Assigning to an existing column or row clobbers the data. Assigning to
|
563
|
+
# new columns creates them at the right end of the table.
|
564
|
+
#
|
565
|
+
def []=(index_or_header, value)
|
566
|
+
if @mode == :row or # by index
|
567
|
+
(@mode == :col_or_row and index_or_header.is_a? Integer)
|
568
|
+
if value.is_a? Array
|
569
|
+
@table[index_or_header] = Row.new(headers, value)
|
570
|
+
else
|
571
|
+
@table[index_or_header] = value
|
572
|
+
end
|
573
|
+
else # set column
|
574
|
+
if value.is_a? Array # multiple values
|
575
|
+
@table.each_with_index do |row, i|
|
576
|
+
if row.header_row?
|
577
|
+
row[index_or_header] = index_or_header
|
578
|
+
else
|
579
|
+
row[index_or_header] = value[i]
|
580
|
+
end
|
581
|
+
end
|
582
|
+
else # repeated value
|
583
|
+
@table.each do |row|
|
584
|
+
if row.header_row?
|
585
|
+
row[index_or_header] = index_or_header
|
586
|
+
else
|
587
|
+
row[index_or_header] = value
|
588
|
+
end
|
589
|
+
end
|
590
|
+
end
|
591
|
+
end
|
592
|
+
end
|
593
|
+
|
594
|
+
#
|
595
|
+
# The mixed mode default is to treat a list of indices as row access,
|
596
|
+
# returning the rows indicated. Anything else is considered columnar
|
597
|
+
# access. For columnar access, the return set has an Array for each row
|
598
|
+
# with the values indicated by the headers in each Array. You can force
|
599
|
+
# column or row mode using by_col!() or by_row!().
|
600
|
+
#
|
601
|
+
# You cannot mix column and row access.
|
602
|
+
#
|
603
|
+
def values_at(*indices_or_headers)
|
604
|
+
if @mode == :row or # by indices
|
605
|
+
( @mode == :col_or_row and indices_or_headers.all? do |index|
|
606
|
+
index.is_a?(Integer) or
|
607
|
+
( index.is_a?(Range) and
|
608
|
+
index.first.is_a?(Integer) and
|
609
|
+
index.last.is_a?(Integer) )
|
610
|
+
end )
|
611
|
+
@table.values_at(*indices_or_headers)
|
612
|
+
else # by headers
|
613
|
+
@table.map { |row| row.values_at(*indices_or_headers) }
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
#
|
618
|
+
# Adds a new row to the bottom end of this table. You can provide an Array,
|
619
|
+
# which will be converted to a FasterCSV::Row (inheriting the table's
|
620
|
+
# headers()), or a FasterCSV::Row.
|
621
|
+
#
|
622
|
+
# This method returns the table for chaining.
|
623
|
+
#
|
624
|
+
def <<(row_or_array)
|
625
|
+
if row_or_array.is_a? Array # append Array
|
626
|
+
@table << Row.new(headers, row_or_array)
|
627
|
+
else # append Row
|
628
|
+
@table << row_or_array
|
629
|
+
end
|
630
|
+
|
631
|
+
self # for chaining
|
632
|
+
end
|
633
|
+
|
634
|
+
#
|
635
|
+
# A shortcut for appending multiple rows. Equivalent to:
|
636
|
+
#
|
637
|
+
# rows.each { |row| self << row }
|
638
|
+
#
|
639
|
+
# This method returns the table for chaining.
|
640
|
+
#
|
641
|
+
def push(*rows)
|
642
|
+
rows.each { |row| self << row }
|
643
|
+
|
644
|
+
self # for chaining
|
645
|
+
end
|
646
|
+
|
647
|
+
#
|
648
|
+
# Removes and returns the indicated column or row. In the default mixed
|
649
|
+
# mode indices refer to rows and everything else is assumed to be a column
|
650
|
+
# header. Use by_col!() or by_row!() to force the lookup.
|
651
|
+
#
|
652
|
+
def delete(index_or_header)
|
653
|
+
if @mode == :row or # by index
|
654
|
+
(@mode == :col_or_row and index_or_header.is_a? Integer)
|
655
|
+
@table.delete_at(index_or_header)
|
656
|
+
else # by header
|
657
|
+
@table.map { |row| row.delete(index_or_header).last }
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
#
|
662
|
+
# Removes any column or row for which the block returns +true+. In the
|
663
|
+
# default mixed mode or row mode, iteration is the standard row major
|
664
|
+
# walking of rows. In column mode, interation will +yield+ two element
|
665
|
+
# tuples containing the column name and an Array of values for that column.
|
666
|
+
#
|
667
|
+
# This method returns the table for chaining.
|
668
|
+
#
|
669
|
+
def delete_if(&block)
|
670
|
+
if @mode == :row or @mode == :col_or_row # by index
|
671
|
+
@table.delete_if(&block)
|
672
|
+
else # by header
|
673
|
+
to_delete = Array.new
|
674
|
+
headers.each_with_index do |header, i|
|
675
|
+
to_delete << header if block[[header, self[header]]]
|
676
|
+
end
|
677
|
+
to_delete.map { |header| delete(header) }
|
678
|
+
end
|
679
|
+
|
680
|
+
self # for chaining
|
681
|
+
end
|
682
|
+
|
683
|
+
include Enumerable
|
684
|
+
|
685
|
+
#
|
686
|
+
# In the default mixed mode or row mode, iteration is the standard row major
|
687
|
+
# walking of rows. In column mode, interation will +yield+ two element
|
688
|
+
# tuples containing the column name and an Array of values for that column.
|
689
|
+
#
|
690
|
+
# This method returns the table for chaining.
|
691
|
+
#
|
692
|
+
def each(&block)
|
693
|
+
if @mode == :col
|
694
|
+
headers.each { |header| block[[header, self[header]]] }
|
695
|
+
else
|
696
|
+
@table.each(&block)
|
697
|
+
end
|
698
|
+
|
699
|
+
self # for chaining
|
700
|
+
end
|
701
|
+
|
702
|
+
# Returns +true+ if all rows of this table ==() +other+'s rows.
|
703
|
+
def ==(other)
|
704
|
+
@table == other.table
|
705
|
+
end
|
706
|
+
|
707
|
+
#
|
708
|
+
# Returns the table as an Array of Arrays. Headers will be the first row,
|
709
|
+
# then all of the field rows will follow.
|
710
|
+
#
|
711
|
+
def to_a
|
712
|
+
@table.inject([headers]) do |array, row|
|
713
|
+
if row.header_row?
|
714
|
+
array
|
715
|
+
else
|
716
|
+
array + [row.fields]
|
717
|
+
end
|
718
|
+
end
|
719
|
+
end
|
720
|
+
|
721
|
+
#
|
722
|
+
# Returns the table as a complete CSV String. Headers will be listed first,
|
723
|
+
# then all of the field rows.
|
724
|
+
#
|
725
|
+
# This method assumes you want the Table.headers(), unless you explicitly
|
726
|
+
# pass <tt>:write_headers => false</tt>.
|
727
|
+
#
|
728
|
+
def to_csv(options = Hash.new)
|
729
|
+
wh = options.fetch(:write_headers, true)
|
730
|
+
@table.inject(wh ? [headers.to_csv(options)] : [ ]) do |rows, row|
|
731
|
+
if row.header_row?
|
732
|
+
rows
|
733
|
+
else
|
734
|
+
rows + [row.fields.to_csv(options)]
|
735
|
+
end
|
736
|
+
end.join
|
737
|
+
end
|
738
|
+
alias_method :to_s, :to_csv
|
739
|
+
|
740
|
+
def inspect
|
741
|
+
"#<#{self.class} mode:#{@mode} row_count:#{to_a.size}>"
|
742
|
+
end
|
743
|
+
end
|
744
|
+
|
745
|
+
# The error thrown when the parser encounters illegal CSV formatting.
|
746
|
+
class MalformedCSVError < RuntimeError; end
|
747
|
+
|
748
|
+
#
|
749
|
+
# A FieldInfo Struct contains details about a field's position in the data
|
750
|
+
# source it was read from. FasterCSV will pass this Struct to some blocks
|
751
|
+
# that make decisions based on field structure. See
|
752
|
+
# FasterCSV.convert_fields() for an example.
|
753
|
+
#
|
754
|
+
# <b><tt>index</tt></b>:: The zero-based index of the field in its row.
|
755
|
+
# <b><tt>line</tt></b>:: The line of the data source this row is from.
|
756
|
+
# <b><tt>header</tt></b>:: The header for the column, when available.
|
757
|
+
#
|
758
|
+
FieldInfo = Struct.new(:index, :line, :header)
|
759
|
+
|
760
|
+
# A Regexp used to find and convert some common Date formats.
|
761
|
+
DateMatcher = / \A(?: (\w+,?\s+)?\w+\s+\d{1,2},?\s+\d{2,4} |
|
762
|
+
\d{4}-\d{2}-\d{2} )\z /x
|
763
|
+
# A Regexp used to find and convert some common DateTime formats.
|
764
|
+
DateTimeMatcher =
|
765
|
+
/ \A(?: (\w+,?\s+)?\w+\s+\d{1,2}\s+\d{1,2}:\d{1,2}:\d{1,2},?\s+\d{2,4} |
|
766
|
+
\d{4}-\d{2}-\d{2}\s\d{2}:\d{2}:\d{2} )\z /x
|
767
|
+
#
|
768
|
+
# This Hash holds the built-in converters of FasterCSV that can be accessed by
|
769
|
+
# name. You can select Converters with FasterCSV.convert() or through the
|
770
|
+
# +options+ Hash passed to FasterCSV::new().
|
771
|
+
#
|
772
|
+
# <b><tt>:integer</tt></b>:: Converts any field Integer() accepts.
|
773
|
+
# <b><tt>:float</tt></b>:: Converts any field Float() accepts.
|
774
|
+
# <b><tt>:numeric</tt></b>:: A combination of <tt>:integer</tt>
|
775
|
+
# and <tt>:float</tt>.
|
776
|
+
# <b><tt>:date</tt></b>:: Converts any field Date::parse() accepts.
|
777
|
+
# <b><tt>:date_time</tt></b>:: Converts any field DateTime::parse() accepts.
|
778
|
+
# <b><tt>:all</tt></b>:: All built-in converters. A combination of
|
779
|
+
# <tt>:date_time</tt> and <tt>:numeric</tt>.
|
780
|
+
#
|
781
|
+
# This Hash is intetionally left unfrozen and users should feel free to add
|
782
|
+
# values to it that can be accessed by all FasterCSV objects.
|
783
|
+
#
|
784
|
+
# To add a combo field, the value should be an Array of names. Combo fields
|
785
|
+
# can be nested with other combo fields.
|
786
|
+
#
|
787
|
+
Converters = { :integer => lambda { |f| Integer(f) rescue f },
|
788
|
+
:float => lambda { |f| Float(f) rescue f },
|
789
|
+
:numeric => [:integer, :float],
|
790
|
+
:date => lambda { |f|
|
791
|
+
f =~ DateMatcher ? (Date.parse(f) rescue f) : f
|
792
|
+
},
|
793
|
+
:date_time => lambda { |f|
|
794
|
+
f =~ DateTimeMatcher ? (DateTime.parse(f) rescue f) : f
|
795
|
+
},
|
796
|
+
:all => [:date_time, :numeric] }
|
797
|
+
|
798
|
+
#
|
799
|
+
# This Hash holds the built-in header converters of FasterCSV that can be
|
800
|
+
# accessed by name. You can select HeaderConverters with
|
801
|
+
# FasterCSV.header_convert() or through the +options+ Hash passed to
|
802
|
+
# FasterCSV::new().
|
803
|
+
#
|
804
|
+
# <b><tt>:downcase</tt></b>:: Calls downcase() on the header String.
|
805
|
+
# <b><tt>:symbol</tt></b>:: The header String is downcased, spaces are
|
806
|
+
# replaced with underscores, non-word characters
|
807
|
+
# are dropped, and finally to_sym() is called.
|
808
|
+
#
|
809
|
+
# This Hash is intetionally left unfrozen and users should feel free to add
|
810
|
+
# values to it that can be accessed by all FasterCSV objects.
|
811
|
+
#
|
812
|
+
# To add a combo field, the value should be an Array of names. Combo fields
|
813
|
+
# can be nested with other combo fields.
|
814
|
+
#
|
815
|
+
HeaderConverters = {
|
816
|
+
:downcase => lambda { |h| h.downcase },
|
817
|
+
:symbol => lambda { |h|
|
818
|
+
h.downcase.tr(" ", "_").delete("^a-z0-9_").to_sym
|
819
|
+
}
|
820
|
+
}
|
821
|
+
|
822
|
+
#
|
823
|
+
# The options used when no overrides are given by calling code. They are:
|
824
|
+
#
|
825
|
+
# <b><tt>:col_sep</tt></b>:: <tt>","</tt>
|
826
|
+
# <b><tt>:row_sep</tt></b>:: <tt>:auto</tt>
|
827
|
+
# <b><tt>:quote_char</tt></b>:: <tt>'"'</tt>
|
828
|
+
# <b><tt>:converters</tt></b>:: +nil+
|
829
|
+
# <b><tt>:unconverted_fields</tt></b>:: +nil+
|
830
|
+
# <b><tt>:headers</tt></b>:: +false+
|
831
|
+
# <b><tt>:return_headers</tt></b>:: +false+
|
832
|
+
# <b><tt>:header_converters</tt></b>:: +nil+
|
833
|
+
# <b><tt>:skip_blanks</tt></b>:: +false+
|
834
|
+
# <b><tt>:force_quotes</tt></b>:: +false+
|
835
|
+
#
|
836
|
+
DEFAULT_OPTIONS = { :col_sep => ",",
|
837
|
+
:row_sep => :auto,
|
838
|
+
:quote_char => '"',
|
839
|
+
:converters => nil,
|
840
|
+
:unconverted_fields => nil,
|
841
|
+
:headers => false,
|
842
|
+
:return_headers => false,
|
843
|
+
:header_converters => nil,
|
844
|
+
:skip_blanks => false,
|
845
|
+
:force_quotes => false }.freeze
|
846
|
+
|
847
|
+
#
|
848
|
+
# This method will build a drop-in replacement for many of the standard CSV
|
849
|
+
# methods. It allows you to write code like:
|
850
|
+
#
|
851
|
+
# begin
|
852
|
+
# require "faster_csv"
|
853
|
+
# FasterCSV.build_csv_interface
|
854
|
+
# rescue LoadError
|
855
|
+
# require "csv"
|
856
|
+
# end
|
857
|
+
# # ... use CSV here ...
|
858
|
+
#
|
859
|
+
# This is not a complete interface with completely identical behavior.
|
860
|
+
# However, it is intended to be close enough that you won't notice the
|
861
|
+
# difference in most cases. CSV methods supported are:
|
862
|
+
#
|
863
|
+
# * foreach()
|
864
|
+
# * generate_line()
|
865
|
+
# * open()
|
866
|
+
# * parse()
|
867
|
+
# * parse_line()
|
868
|
+
# * readlines()
|
869
|
+
#
|
870
|
+
# Be warned that this interface is slower than vanilla FasterCSV due to the
|
871
|
+
# extra layer of method calls. Depending on usage, this can slow it down to
|
872
|
+
# near CSV speeds.
|
873
|
+
#
|
874
|
+
def self.build_csv_interface
|
875
|
+
Object.const_set(:CSV, Class.new).class_eval do
|
876
|
+
def self.foreach(path, rs = :auto, &block) # :nodoc:
|
877
|
+
FasterCSV.foreach(path, :row_sep => rs, &block)
|
878
|
+
end
|
879
|
+
|
880
|
+
def self.generate_line(row, fs = ",", rs = "") # :nodoc:
|
881
|
+
FasterCSV.generate_line(row, :col_sep => fs, :row_sep => rs)
|
882
|
+
end
|
883
|
+
|
884
|
+
def self.open(path, mode, fs = ",", rs = :auto, &block) # :nodoc:
|
885
|
+
if block and mode.include? "r"
|
886
|
+
FasterCSV.open(path, mode, :col_sep => fs, :row_sep => rs) do |csv|
|
887
|
+
csv.each(&block)
|
888
|
+
end
|
889
|
+
else
|
890
|
+
FasterCSV.open(path, mode, :col_sep => fs, :row_sep => rs, &block)
|
891
|
+
end
|
892
|
+
end
|
893
|
+
|
894
|
+
def self.parse(str_or_readable, fs = ",", rs = :auto, &block) # :nodoc:
|
895
|
+
FasterCSV.parse(str_or_readable, :col_sep => fs, :row_sep => rs, &block)
|
896
|
+
end
|
897
|
+
|
898
|
+
def self.parse_line(src, fs = ",", rs = :auto) # :nodoc:
|
899
|
+
FasterCSV.parse_line(src, :col_sep => fs, :row_sep => rs)
|
900
|
+
end
|
901
|
+
|
902
|
+
def self.readlines(path, rs = :auto) # :nodoc:
|
903
|
+
FasterCSV.readlines(path, :row_sep => rs)
|
904
|
+
end
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
#
|
909
|
+
# This method allows you to serialize an Array of Ruby objects to a String or
|
910
|
+
# File of CSV data. This is not as powerful as Marshal or YAML, but perhaps
|
911
|
+
# useful for spreadsheet and database interaction.
|
912
|
+
#
|
913
|
+
# Out of the box, this method is intended to work with simple data objects or
|
914
|
+
# Structs. It will serialize a list of instance variables and/or
|
915
|
+
# Struct.members().
|
916
|
+
#
|
917
|
+
# If you need need more complicated serialization, you can control the process
|
918
|
+
# by adding methods to the class to be serialized.
|
919
|
+
#
|
920
|
+
# A class method csv_meta() is responsible for returning the first row of the
|
921
|
+
# document (as an Array). This row is considered to be a Hash of the form
|
922
|
+
# key_1,value_1,key_2,value_2,... FasterCSV::load() expects to find a class
|
923
|
+
# key with a value of the stringified class name and FasterCSV::dump() will
|
924
|
+
# create this, if you do not define this method. This method is only called
|
925
|
+
# on the first object of the Array.
|
926
|
+
#
|
927
|
+
# The next method you can provide is an instance method called csv_headers().
|
928
|
+
# This method is expected to return the second line of the document (again as
|
929
|
+
# an Array), which is to be used to give each column a header. By default,
|
930
|
+
# FasterCSV::load() will set an instance variable if the field header starts
|
931
|
+
# with an @ character or call send() passing the header as the method name and
|
932
|
+
# the field value as an argument. This method is only called on the first
|
933
|
+
# object of the Array.
|
934
|
+
#
|
935
|
+
# Finally, you can provide an instance method called csv_dump(), which will
|
936
|
+
# be passed the headers. This should return an Array of fields that can be
|
937
|
+
# serialized for this object. This method is called once for every object in
|
938
|
+
# the Array.
|
939
|
+
#
|
940
|
+
# The +io+ parameter can be used to serialize to a File, and +options+ can be
|
941
|
+
# anything FasterCSV::new() accepts.
|
942
|
+
#
|
943
|
+
def self.dump(ary_of_objs, io = "", options = Hash.new)
|
944
|
+
obj_template = ary_of_objs.first
|
945
|
+
|
946
|
+
csv = FasterCSV.new(io, options)
|
947
|
+
|
948
|
+
# write meta information
|
949
|
+
begin
|
950
|
+
csv << obj_template.class.csv_meta
|
951
|
+
rescue NoMethodError
|
952
|
+
csv << [:class, obj_template.class]
|
953
|
+
end
|
954
|
+
|
955
|
+
# write headers
|
956
|
+
begin
|
957
|
+
headers = obj_template.csv_headers
|
958
|
+
rescue NoMethodError
|
959
|
+
headers = obj_template.instance_variables.sort
|
960
|
+
if obj_template.class.ancestors.find { |cls| cls.to_s =~ /\AStruct\b/ }
|
961
|
+
headers += obj_template.members.map { |mem| "#{mem}=" }.sort
|
962
|
+
end
|
963
|
+
end
|
964
|
+
csv << headers
|
965
|
+
|
966
|
+
# serialize each object
|
967
|
+
ary_of_objs.each do |obj|
|
968
|
+
begin
|
969
|
+
csv << obj.csv_dump(headers)
|
970
|
+
rescue NoMethodError
|
971
|
+
csv << headers.map do |var|
|
972
|
+
if var[0] == ?@
|
973
|
+
obj.instance_variable_get(var)
|
974
|
+
else
|
975
|
+
obj[var[0..-2]]
|
976
|
+
end
|
977
|
+
end
|
978
|
+
end
|
979
|
+
end
|
980
|
+
|
981
|
+
if io.is_a? String
|
982
|
+
csv.string
|
983
|
+
else
|
984
|
+
csv.close
|
985
|
+
end
|
986
|
+
end
|
987
|
+
|
988
|
+
#
|
989
|
+
# :call-seq:
|
990
|
+
# filter( options = Hash.new ) { |row| ... }
|
991
|
+
# filter( input, options = Hash.new ) { |row| ... }
|
992
|
+
# filter( input, output, options = Hash.new ) { |row| ... }
|
993
|
+
#
|
994
|
+
# This method is a convenience for building Unix-like filters for CSV data.
|
995
|
+
# Each row is yielded to the provided block which can alter it as needed.
|
996
|
+
# After the block returns, the row is appended to +output+ altered or not.
|
997
|
+
#
|
998
|
+
# The +input+ and +output+ arguments can be anything FasterCSV::new() accepts
|
999
|
+
# (generally String or IO objects). If not given, they default to
|
1000
|
+
# <tt>ARGF</tt> and <tt>$stdout</tt>.
|
1001
|
+
#
|
1002
|
+
# The +options+ parameter is also filtered down to FasterCSV::new() after some
|
1003
|
+
# clever key parsing. Any key beginning with <tt>:in_</tt> or
|
1004
|
+
# <tt>:input_</tt> will have that leading identifier stripped and will only
|
1005
|
+
# be used in the +options+ Hash for the +input+ object. Keys starting with
|
1006
|
+
# <tt>:out_</tt> or <tt>:output_</tt> affect only +output+. All other keys
|
1007
|
+
# are assigned to both objects.
|
1008
|
+
#
|
1009
|
+
# The <tt>:output_row_sep</tt> +option+ defaults to
|
1010
|
+
# <tt>$INPUT_RECORD_SEPARATOR</tt> (<tt>$/</tt>).
|
1011
|
+
#
|
1012
|
+
def self.filter(*args)
|
1013
|
+
# parse options for input, output, or both
|
1014
|
+
in_options, out_options = Hash.new, {:row_sep => $INPUT_RECORD_SEPARATOR}
|
1015
|
+
if args.last.is_a? Hash
|
1016
|
+
args.pop.each do |key, value|
|
1017
|
+
case key.to_s
|
1018
|
+
when /\Ain(?:put)?_(.+)\Z/
|
1019
|
+
in_options[$1.to_sym] = value
|
1020
|
+
when /\Aout(?:put)?_(.+)\Z/
|
1021
|
+
out_options[$1.to_sym] = value
|
1022
|
+
else
|
1023
|
+
in_options[key] = value
|
1024
|
+
out_options[key] = value
|
1025
|
+
end
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
# build input and output wrappers
|
1029
|
+
input = FasterCSV.new(args.shift || ARGF, in_options)
|
1030
|
+
output = FasterCSV.new(args.shift || $stdout, out_options)
|
1031
|
+
|
1032
|
+
# read, yield, write
|
1033
|
+
input.each do |row|
|
1034
|
+
yield row
|
1035
|
+
output << row
|
1036
|
+
end
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
#
|
1040
|
+
# This method is intended as the primary interface for reading CSV files. You
|
1041
|
+
# pass a +path+ and any +options+ you wish to set for the read. Each row of
|
1042
|
+
# file will be passed to the provided +block+ in turn.
|
1043
|
+
#
|
1044
|
+
# The +options+ parameter can be anything FasterCSV::new() understands.
|
1045
|
+
#
|
1046
|
+
def self.foreach(path, options = Hash.new, &block)
|
1047
|
+
open(path, "rb", options) do |csv|
|
1048
|
+
csv.each(&block)
|
1049
|
+
end
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
#
|
1053
|
+
# :call-seq:
|
1054
|
+
# generate( str, options = Hash.new ) { |faster_csv| ... }
|
1055
|
+
# generate( options = Hash.new ) { |faster_csv| ... }
|
1056
|
+
#
|
1057
|
+
# This method wraps a String you provide, or an empty default String, in a
|
1058
|
+
# FasterCSV object which is passed to the provided block. You can use the
|
1059
|
+
# block to append CSV rows to the String and when the block exits, the
|
1060
|
+
# final String will be returned.
|
1061
|
+
#
|
1062
|
+
# Note that a passed String *is* modfied by this method. Call dup() before
|
1063
|
+
# passing if you need a new String.
|
1064
|
+
#
|
1065
|
+
# The +options+ parameter can be anthing FasterCSV::new() understands.
|
1066
|
+
#
|
1067
|
+
def self.generate(*args)
|
1068
|
+
# add a default empty String, if none was given
|
1069
|
+
if args.first.is_a? String
|
1070
|
+
io = StringIO.new(args.shift)
|
1071
|
+
io.seek(0, IO::SEEK_END)
|
1072
|
+
args.unshift(io)
|
1073
|
+
else
|
1074
|
+
args.unshift("")
|
1075
|
+
end
|
1076
|
+
faster_csv = new(*args) # wrap
|
1077
|
+
yield faster_csv # yield for appending
|
1078
|
+
faster_csv.string # return final String
|
1079
|
+
end
|
1080
|
+
|
1081
|
+
#
|
1082
|
+
# This method is a shortcut for converting a single row (Array) into a CSV
|
1083
|
+
# String.
|
1084
|
+
#
|
1085
|
+
# The +options+ parameter can be anthing FasterCSV::new() understands.
|
1086
|
+
#
|
1087
|
+
# The <tt>:row_sep</tt> +option+ defaults to <tt>$INPUT_RECORD_SEPARATOR</tt>
|
1088
|
+
# (<tt>$/</tt>) when calling this method.
|
1089
|
+
#
|
1090
|
+
def self.generate_line(row, options = Hash.new)
|
1091
|
+
options = {:row_sep => $INPUT_RECORD_SEPARATOR}.merge(options)
|
1092
|
+
(new("", options) << row).string
|
1093
|
+
end
|
1094
|
+
|
1095
|
+
#
|
1096
|
+
# This method will return a FasterCSV instance, just like FasterCSV::new(),
|
1097
|
+
# but the instance will be cached and returned for all future calls to this
|
1098
|
+
# method for the same +data+ object (tested by Object#object_id()) with the
|
1099
|
+
# same +options+.
|
1100
|
+
#
|
1101
|
+
# If a block is given, the instance is passed to the block and the return
|
1102
|
+
# value becomes the return value of the block.
|
1103
|
+
#
|
1104
|
+
def self.instance(data = $stdout, options = Hash.new)
|
1105
|
+
# create a _signature_ for this method call, data object and options
|
1106
|
+
sig = [data.object_id] +
|
1107
|
+
options.values_at(*DEFAULT_OPTIONS.keys.sort_by { |sym| sym.to_s })
|
1108
|
+
|
1109
|
+
# fetch or create the instance for this signature
|
1110
|
+
@@instances ||= Hash.new
|
1111
|
+
instance = (@@instances[sig] ||= new(data, options))
|
1112
|
+
|
1113
|
+
if block_given?
|
1114
|
+
yield instance # run block, if given, returning result
|
1115
|
+
else
|
1116
|
+
instance # or return the instance
|
1117
|
+
end
|
1118
|
+
end
|
1119
|
+
|
1120
|
+
#
|
1121
|
+
# This method is the reading counterpart to FasterCSV::dump(). See that
|
1122
|
+
# method for a detailed description of the process.
|
1123
|
+
#
|
1124
|
+
# You can customize loading by adding a class method called csv_load() which
|
1125
|
+
# will be passed a Hash of meta information, an Array of headers, and an Array
|
1126
|
+
# of fields for the object the method is expected to return.
|
1127
|
+
#
|
1128
|
+
# Remember that all fields will be Strings after this load. If you need
|
1129
|
+
# something else, use +options+ to setup converters or provide a custom
|
1130
|
+
# csv_load() implementation.
|
1131
|
+
#
|
1132
|
+
def self.load(io_or_str, options = Hash.new)
|
1133
|
+
csv = FasterCSV.new(io_or_str, options)
|
1134
|
+
|
1135
|
+
# load meta information
|
1136
|
+
meta = Hash[*csv.shift]
|
1137
|
+
cls = meta["class"].split("::").inject(Object) do |c, const|
|
1138
|
+
c.const_get(const)
|
1139
|
+
end
|
1140
|
+
|
1141
|
+
# load headers
|
1142
|
+
headers = csv.shift
|
1143
|
+
|
1144
|
+
# unserialize each object stored in the file
|
1145
|
+
results = csv.inject(Array.new) do |all, row|
|
1146
|
+
begin
|
1147
|
+
obj = cls.csv_load(meta, headers, row)
|
1148
|
+
rescue NoMethodError
|
1149
|
+
obj = cls.allocate
|
1150
|
+
headers.zip(row) do |name, value|
|
1151
|
+
if name[0] == ?@
|
1152
|
+
obj.instance_variable_set(name, value)
|
1153
|
+
else
|
1154
|
+
obj.send(name, value)
|
1155
|
+
end
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
all << obj
|
1159
|
+
end
|
1160
|
+
|
1161
|
+
csv.close unless io_or_str.is_a? String
|
1162
|
+
|
1163
|
+
results
|
1164
|
+
end
|
1165
|
+
|
1166
|
+
#
|
1167
|
+
# :call-seq:
|
1168
|
+
# open( filename, mode="rb", options = Hash.new ) { |faster_csv| ... }
|
1169
|
+
# open( filename, mode="rb", options = Hash.new )
|
1170
|
+
#
|
1171
|
+
# This method opens an IO object, and wraps that with FasterCSV. This is
|
1172
|
+
# intended as the primary interface for writing a CSV file.
|
1173
|
+
#
|
1174
|
+
# You may pass any +args+ Ruby's open() understands followed by an optional
|
1175
|
+
# Hash containing any +options+ FasterCSV::new() understands.
|
1176
|
+
#
|
1177
|
+
# This method works like Ruby's open() call, in that it will pass a FasterCSV
|
1178
|
+
# object to a provided block and close it when the block termminates, or it
|
1179
|
+
# will return the FasterCSV object when no block is provided. (*Note*: This
|
1180
|
+
# is different from the standard CSV library which passes rows to the block.
|
1181
|
+
# Use FasterCSV::foreach() for that behavior.)
|
1182
|
+
#
|
1183
|
+
# An opened FasterCSV object will delegate to many IO methods, for
|
1184
|
+
# convenience. You may call:
|
1185
|
+
#
|
1186
|
+
# * binmode()
|
1187
|
+
# * close()
|
1188
|
+
# * close_read()
|
1189
|
+
# * close_write()
|
1190
|
+
# * closed?()
|
1191
|
+
# * eof()
|
1192
|
+
# * eof?()
|
1193
|
+
# * fcntl()
|
1194
|
+
# * fileno()
|
1195
|
+
# * flush()
|
1196
|
+
# * fsync()
|
1197
|
+
# * ioctl()
|
1198
|
+
# * isatty()
|
1199
|
+
# * pid()
|
1200
|
+
# * pos()
|
1201
|
+
# * reopen()
|
1202
|
+
# * seek()
|
1203
|
+
# * stat()
|
1204
|
+
# * sync()
|
1205
|
+
# * sync=()
|
1206
|
+
# * tell()
|
1207
|
+
# * to_i()
|
1208
|
+
# * to_io()
|
1209
|
+
# * tty?()
|
1210
|
+
#
|
1211
|
+
def self.open(*args)
|
1212
|
+
# find the +options+ Hash
|
1213
|
+
options = if args.last.is_a? Hash then args.pop else Hash.new end
|
1214
|
+
# default to a binary open mode
|
1215
|
+
args << "rb" if args.size == 1
|
1216
|
+
# wrap a File opened with the remaining +args+
|
1217
|
+
csv = new(File.open(*args), options)
|
1218
|
+
|
1219
|
+
# handle blocks like Ruby's open(), not like the CSV library
|
1220
|
+
if block_given?
|
1221
|
+
begin
|
1222
|
+
yield csv
|
1223
|
+
ensure
|
1224
|
+
csv.close
|
1225
|
+
end
|
1226
|
+
else
|
1227
|
+
csv
|
1228
|
+
end
|
1229
|
+
end
|
1230
|
+
|
1231
|
+
#
|
1232
|
+
# :call-seq:
|
1233
|
+
# parse( str, options = Hash.new ) { |row| ... }
|
1234
|
+
# parse( str, options = Hash.new )
|
1235
|
+
#
|
1236
|
+
# This method can be used to easily parse CSV out of a String. You may either
|
1237
|
+
# provide a +block+ which will be called with each row of the String in turn,
|
1238
|
+
# or just use the returned Array of Arrays (when no +block+ is given).
|
1239
|
+
#
|
1240
|
+
# You pass your +str+ to read from, and an optional +options+ Hash containing
|
1241
|
+
# anything FasterCSV::new() understands.
|
1242
|
+
#
|
1243
|
+
def self.parse(*args, &block)
|
1244
|
+
csv = new(*args)
|
1245
|
+
if block.nil? # slurp contents, if no block is given
|
1246
|
+
begin
|
1247
|
+
csv.read
|
1248
|
+
ensure
|
1249
|
+
csv.close
|
1250
|
+
end
|
1251
|
+
else # or pass each row to a provided block
|
1252
|
+
csv.each(&block)
|
1253
|
+
end
|
1254
|
+
end
|
1255
|
+
|
1256
|
+
#
|
1257
|
+
# This method is a shortcut for converting a single line of a CSV String into
|
1258
|
+
# a into an Array. Note that if +line+ contains multiple rows, anything
|
1259
|
+
# beyond the first row is ignored.
|
1260
|
+
#
|
1261
|
+
# The +options+ parameter can be anything FasterCSV::new() understands.
|
1262
|
+
#
|
1263
|
+
def self.parse_line(line, options = Hash.new)
|
1264
|
+
new(line, options).shift
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
#
|
1268
|
+
# Use to slurp a CSV file into an Array of Arrays. Pass the +path+ to the
|
1269
|
+
# file and any +options+ FasterCSV::new() understands.
|
1270
|
+
#
|
1271
|
+
def self.read(path, options = Hash.new)
|
1272
|
+
open(path, "rb", options) { |csv| csv.read }
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
# Alias for FasterCSV::read().
|
1276
|
+
def self.readlines(*args)
|
1277
|
+
read(*args)
|
1278
|
+
end
|
1279
|
+
|
1280
|
+
#
|
1281
|
+
# A shortcut for:
|
1282
|
+
#
|
1283
|
+
# FasterCSV.read( path, { :headers => true,
|
1284
|
+
# :converters => :numeric,
|
1285
|
+
# :header_converters => :symbol }.merge(options) )
|
1286
|
+
#
|
1287
|
+
def self.table(path, options = Hash.new)
|
1288
|
+
read( path, { :headers => true,
|
1289
|
+
:converters => :numeric,
|
1290
|
+
:header_converters => :symbol }.merge(options) )
|
1291
|
+
end
|
1292
|
+
|
1293
|
+
#
|
1294
|
+
# This constructor will wrap either a String or IO object passed in +data+ for
|
1295
|
+
# reading and/or writing. In addition to the FasterCSV instance methods,
|
1296
|
+
# several IO methods are delegated. (See FasterCSV::open() for a complete
|
1297
|
+
# list.) If you pass a String for +data+, you can later retrieve it (after
|
1298
|
+
# writing to it, for example) with FasterCSV.string().
|
1299
|
+
#
|
1300
|
+
# Note that a wrapped String will be positioned at the beginning (for
|
1301
|
+
# reading). If you want it at the end (for writing), use
|
1302
|
+
# FasterCSV::generate(). If you want any other positioning, pass a preset
|
1303
|
+
# StringIO object instead.
|
1304
|
+
#
|
1305
|
+
# You may set any reading and/or writing preferences in the +options+ Hash.
|
1306
|
+
# Available options are:
|
1307
|
+
#
|
1308
|
+
# <b><tt>:col_sep</tt></b>:: The String placed between each field.
|
1309
|
+
# <b><tt>:row_sep</tt></b>:: The String appended to the end of each
|
1310
|
+
# row. This can be set to the special
|
1311
|
+
# <tt>:auto</tt> setting, which requests
|
1312
|
+
# that FasterCSV automatically discover
|
1313
|
+
# this from the data. Auto-discovery
|
1314
|
+
# reads ahead in the data looking for
|
1315
|
+
# the next <tt>"\r\n"</tt>,
|
1316
|
+
# <tt>"\n"</tt>, or <tt>"\r"</tt>
|
1317
|
+
# sequence. A sequence will be selected
|
1318
|
+
# even if it occurs in a quoted field,
|
1319
|
+
# assuming that you would have the same
|
1320
|
+
# line endings there. If none of those
|
1321
|
+
# sequences is found,
|
1322
|
+
# or the stream is only available for
|
1323
|
+
# output, the default
|
1324
|
+
# <tt>$INPUT_RECORD_SEPARATOR</tt>
|
1325
|
+
# (<tt>$/</tt>) is used. Obviously,
|
1326
|
+
# discovery takes a little time. Set
|
1327
|
+
# manually if speed is important. Also
|
1328
|
+
# note that IO objects should be opened
|
1329
|
+
# in binary mode on Windows if this
|
1330
|
+
# feature will be used as the
|
1331
|
+
# line-ending translation can cause
|
1332
|
+
# problems with resetting the document
|
1333
|
+
# position to where it was before the
|
1334
|
+
# read ahead.
|
1335
|
+
# <b><tt>:quote_char</tt></b>:: The character used to quote fields.
|
1336
|
+
# This has to be a single character
|
1337
|
+
# String. This is useful for
|
1338
|
+
# application that incorrectly use
|
1339
|
+
# <tt>'</tt> as the quote character
|
1340
|
+
# instead of the correct <tt>"</tt>.
|
1341
|
+
# FasterCSV will always consider a
|
1342
|
+
# double sequence this character to be
|
1343
|
+
# an escaped quote.
|
1344
|
+
# <b><tt>:encoding</tt></b>:: The encoding to use when parsing the
|
1345
|
+
# file. Defaults to your <tt>$KCODE</tt>
|
1346
|
+
# setting. Valid values: <tt>`n’</tt> or
|
1347
|
+
# <tt>`N’</tt> for none, <tt>`e’</tt> or
|
1348
|
+
# <tt>`E’</tt> for EUC, <tt>`s’</tt> or
|
1349
|
+
# <tt>`S’</tt> for SJIS, and
|
1350
|
+
# <tt>`u’</tt> or <tt>`U’</tt> for UTF-8
|
1351
|
+
# (see Regexp.new()).
|
1352
|
+
# <b><tt>:field_size_limit</tt></b>:: This is a maximum size FasterCSV will
|
1353
|
+
# read ahead looking for the closing
|
1354
|
+
# quote for a field. (In truth, it
|
1355
|
+
# reads to the first line ending beyond
|
1356
|
+
# this size.) If a quote cannot be
|
1357
|
+
# found within the limit FasterCSV will
|
1358
|
+
# raise a MalformedCSVError, assuming
|
1359
|
+
# the data is faulty. You can use this
|
1360
|
+
# limit to prevent what are effectively
|
1361
|
+
# DoS attacks on the parser. However,
|
1362
|
+
# this limit can cause a legitimate
|
1363
|
+
# parse to fail and thus is set to
|
1364
|
+
# +nil+, or off, by default.
|
1365
|
+
# <b><tt>:converters</tt></b>:: An Array of names from the Converters
|
1366
|
+
# Hash and/or lambdas that handle custom
|
1367
|
+
# conversion. A single converter
|
1368
|
+
# doesn't have to be in an Array.
|
1369
|
+
# <b><tt>:unconverted_fields</tt></b>:: If set to +true+, an
|
1370
|
+
# unconverted_fields() method will be
|
1371
|
+
# added to all returned rows (Array or
|
1372
|
+
# FasterCSV::Row) that will return the
|
1373
|
+
# fields as they were before convertion.
|
1374
|
+
# Note that <tt>:headers</tt> supplied
|
1375
|
+
# by Array or String were not fields of
|
1376
|
+
# the document and thus will have an
|
1377
|
+
# empty Array attached.
|
1378
|
+
# <b><tt>:headers</tt></b>:: If set to <tt>:first_row</tt> or
|
1379
|
+
# +true+, the initial row of the CSV
|
1380
|
+
# file will be treated as a row of
|
1381
|
+
# headers. If set to an Array, the
|
1382
|
+
# contents will be used as the headers.
|
1383
|
+
# If set to a String, the String is run
|
1384
|
+
# through a call of
|
1385
|
+
# FasterCSV::parse_line() with the same
|
1386
|
+
# <tt>:col_sep</tt>, <tt>:row_sep</tt>,
|
1387
|
+
# and <tt>:quote_char</tt> as this
|
1388
|
+
# instance to produce an Array of
|
1389
|
+
# headers. This setting causes
|
1390
|
+
# FasterCSV.shift() to return rows as
|
1391
|
+
# FasterCSV::Row objects instead of
|
1392
|
+
# Arrays and FasterCSV.read() to return
|
1393
|
+
# FasterCSV::Table objects instead of
|
1394
|
+
# an Array of Arrays.
|
1395
|
+
# <b><tt>:return_headers</tt></b>:: When +false+, header rows are silently
|
1396
|
+
# swallowed. If set to +true+, header
|
1397
|
+
# rows are returned in a FasterCSV::Row
|
1398
|
+
# object with identical headers and
|
1399
|
+
# fields (save that the fields do not go
|
1400
|
+
# through the converters).
|
1401
|
+
# <b><tt>:write_headers</tt></b>:: When +true+ and <tt>:headers</tt> is
|
1402
|
+
# set, a header row will be added to the
|
1403
|
+
# output. Note that if the table only
|
1404
|
+
# contains header rows,
|
1405
|
+
# <tt>:return_headers</tt> must also be
|
1406
|
+
# set in order for a header row to be
|
1407
|
+
# output.
|
1408
|
+
# <b><tt>:header_converters</tt></b>:: Identical in functionality to
|
1409
|
+
# <tt>:converters</tt> save that the
|
1410
|
+
# conversions are only made to header
|
1411
|
+
# rows.
|
1412
|
+
# <b><tt>:skip_blanks</tt></b>:: When set to a +true+ value, FasterCSV
|
1413
|
+
# will skip over any rows with no
|
1414
|
+
# content.
|
1415
|
+
# <b><tt>:force_quotes</tt></b>:: When set to a +true+ value, FasterCSV
|
1416
|
+
# will quote all CSV fields it creates.
|
1417
|
+
#
|
1418
|
+
# See FasterCSV::DEFAULT_OPTIONS for the default settings.
|
1419
|
+
#
|
1420
|
+
# Options cannot be overriden in the instance methods for performance reasons,
|
1421
|
+
# so be sure to set what you want here.
|
1422
|
+
#
|
1423
|
+
def initialize(data, options = Hash.new)
|
1424
|
+
# build the options for this read/write
|
1425
|
+
options = DEFAULT_OPTIONS.merge(options)
|
1426
|
+
|
1427
|
+
# create the IO object we will read from
|
1428
|
+
@io = if data.is_a? String then StringIO.new(data) else data end
|
1429
|
+
|
1430
|
+
init_separators(options)
|
1431
|
+
init_parsers(options)
|
1432
|
+
init_converters(options)
|
1433
|
+
init_headers(options)
|
1434
|
+
|
1435
|
+
unless options.empty?
|
1436
|
+
raise ArgumentError, "Unknown options: #{options.keys.join(', ')}."
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
# track our own lineno since IO gets confused about line-ends is CSV fields
|
1440
|
+
@lineno = 0
|
1441
|
+
end
|
1442
|
+
|
1443
|
+
#
|
1444
|
+
# The line number of the last row read from this file. Fields with nested
|
1445
|
+
# line-end characters will not affect this count.
|
1446
|
+
#
|
1447
|
+
attr_reader :lineno
|
1448
|
+
|
1449
|
+
### IO and StringIO Delegation ###
|
1450
|
+
|
1451
|
+
extend Forwardable
|
1452
|
+
def_delegators :@io, :binmode, :close, :close_read, :close_write, :closed?,
|
1453
|
+
:eof, :eof?, :fcntl, :fileno, :flush, :fsync, :ioctl,
|
1454
|
+
:isatty, :pid, :pos, :reopen, :seek, :stat, :string,
|
1455
|
+
:sync, :sync=, :tell, :to_i, :to_io, :tty?
|
1456
|
+
|
1457
|
+
# Rewinds the underlying IO object and resets FasterCSV's lineno() counter.
|
1458
|
+
def rewind
|
1459
|
+
@headers = nil
|
1460
|
+
@lineno = 0
|
1461
|
+
|
1462
|
+
@io.rewind
|
1463
|
+
end
|
1464
|
+
|
1465
|
+
### End Delegation ###
|
1466
|
+
|
1467
|
+
#
|
1468
|
+
# The primary write method for wrapped Strings and IOs, +row+ (an Array or
|
1469
|
+
# FasterCSV::Row) is converted to CSV and appended to the data source. When a
|
1470
|
+
# FasterCSV::Row is passed, only the row's fields() are appended to the
|
1471
|
+
# output.
|
1472
|
+
#
|
1473
|
+
# The data source must be open for writing.
|
1474
|
+
#
|
1475
|
+
def <<(row)
|
1476
|
+
# make sure headers have been assigned
|
1477
|
+
if header_row? and [Array, String].include? @use_headers.class
|
1478
|
+
parse_headers # won't read data for Array or String
|
1479
|
+
self << @headers if @write_headers
|
1480
|
+
end
|
1481
|
+
|
1482
|
+
# Handle FasterCSV::Row objects and Hashes
|
1483
|
+
row = case row
|
1484
|
+
when self.class::Row then row.fields
|
1485
|
+
when Hash then @headers.map { |header| row[header] }
|
1486
|
+
else row
|
1487
|
+
end
|
1488
|
+
|
1489
|
+
@headers = row if header_row?
|
1490
|
+
@lineno += 1
|
1491
|
+
|
1492
|
+
@io << row.map(&@quote).join(@col_sep) + @row_sep # quote and separate
|
1493
|
+
|
1494
|
+
self # for chaining
|
1495
|
+
end
|
1496
|
+
alias_method :add_row, :<<
|
1497
|
+
alias_method :puts, :<<
|
1498
|
+
|
1499
|
+
#
|
1500
|
+
# :call-seq:
|
1501
|
+
# convert( name )
|
1502
|
+
# convert { |field| ... }
|
1503
|
+
# convert { |field, field_info| ... }
|
1504
|
+
#
|
1505
|
+
# You can use this method to install a FasterCSV::Converters built-in, or
|
1506
|
+
# provide a block that handles a custom conversion.
|
1507
|
+
#
|
1508
|
+
# If you provide a block that takes one argument, it will be passed the field
|
1509
|
+
# and is expected to return the converted value or the field itself. If your
|
1510
|
+
# block takes two arguments, it will also be passed a FieldInfo Struct,
|
1511
|
+
# containing details about the field. Again, the block should return a
|
1512
|
+
# converted field or the field itself.
|
1513
|
+
#
|
1514
|
+
def convert(name = nil, &converter)
|
1515
|
+
add_converter(:converters, self.class::Converters, name, &converter)
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
#
|
1519
|
+
# :call-seq:
|
1520
|
+
# header_convert( name )
|
1521
|
+
# header_convert { |field| ... }
|
1522
|
+
# header_convert { |field, field_info| ... }
|
1523
|
+
#
|
1524
|
+
# Identical to FasterCSV.convert(), but for header rows.
|
1525
|
+
#
|
1526
|
+
# Note that this method must be called before header rows are read to have any
|
1527
|
+
# effect.
|
1528
|
+
#
|
1529
|
+
def header_convert(name = nil, &converter)
|
1530
|
+
add_converter( :header_converters,
|
1531
|
+
self.class::HeaderConverters,
|
1532
|
+
name,
|
1533
|
+
&converter )
|
1534
|
+
end
|
1535
|
+
|
1536
|
+
include Enumerable
|
1537
|
+
|
1538
|
+
#
|
1539
|
+
# Yields each row of the data source in turn.
|
1540
|
+
#
|
1541
|
+
# Support for Enumerable.
|
1542
|
+
#
|
1543
|
+
# The data source must be open for reading.
|
1544
|
+
#
|
1545
|
+
def each
|
1546
|
+
while row = shift
|
1547
|
+
yield row
|
1548
|
+
end
|
1549
|
+
end
|
1550
|
+
|
1551
|
+
#
|
1552
|
+
# Slurps the remaining rows and returns an Array of Arrays.
|
1553
|
+
#
|
1554
|
+
# The data source must be open for reading.
|
1555
|
+
#
|
1556
|
+
def read
|
1557
|
+
rows = to_a
|
1558
|
+
if @use_headers
|
1559
|
+
Table.new(rows)
|
1560
|
+
else
|
1561
|
+
rows
|
1562
|
+
end
|
1563
|
+
end
|
1564
|
+
alias_method :readlines, :read
|
1565
|
+
|
1566
|
+
# Returns +true+ if the next row read will be a header row.
|
1567
|
+
def header_row?
|
1568
|
+
@use_headers and @headers.nil?
|
1569
|
+
end
|
1570
|
+
|
1571
|
+
#
|
1572
|
+
# The primary read method for wrapped Strings and IOs, a single row is pulled
|
1573
|
+
# from the data source, parsed and returned as an Array of fields (if header
|
1574
|
+
# rows are not used) or a FasterCSV::Row (when header rows are used).
|
1575
|
+
#
|
1576
|
+
# The data source must be open for reading.
|
1577
|
+
#
|
1578
|
+
def shift
|
1579
|
+
#########################################################################
|
1580
|
+
### This method is purposefully kept a bit long as simple conditional ###
|
1581
|
+
### checks are faster than numerous (expensive) method calls. ###
|
1582
|
+
#########################################################################
|
1583
|
+
|
1584
|
+
# handle headers not based on document content
|
1585
|
+
if header_row? and @return_headers and
|
1586
|
+
[Array, String].include? @use_headers.class
|
1587
|
+
if @unconverted_fields
|
1588
|
+
return add_unconverted_fields(parse_headers, Array.new)
|
1589
|
+
else
|
1590
|
+
return parse_headers
|
1591
|
+
end
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
# begin with a blank line, so we can always add to it
|
1595
|
+
line = String.new
|
1596
|
+
|
1597
|
+
#
|
1598
|
+
# it can take multiple calls to <tt>@io.gets()</tt> to get a full line,
|
1599
|
+
# because of \r and/or \n characters embedded in quoted fields
|
1600
|
+
#
|
1601
|
+
loop do
|
1602
|
+
# add another read to the line
|
1603
|
+
if read_line = @io.gets(@row_sep)
|
1604
|
+
line += read_line
|
1605
|
+
else
|
1606
|
+
return nil
|
1607
|
+
end
|
1608
|
+
# copy the line so we can chop it up in parsing
|
1609
|
+
parse = line.dup
|
1610
|
+
parse.sub!(@parsers[:line_end], "")
|
1611
|
+
|
1612
|
+
#
|
1613
|
+
# I believe a blank line should be an <tt>Array.new</tt>, not
|
1614
|
+
# CSV's <tt>[nil]</tt>
|
1615
|
+
#
|
1616
|
+
if parse.empty?
|
1617
|
+
@lineno += 1
|
1618
|
+
if @skip_blanks
|
1619
|
+
line = ""
|
1620
|
+
next
|
1621
|
+
elsif @unconverted_fields
|
1622
|
+
return add_unconverted_fields(Array.new, Array.new)
|
1623
|
+
elsif @use_headers
|
1624
|
+
return FasterCSV::Row.new(Array.new, Array.new)
|
1625
|
+
else
|
1626
|
+
return Array.new
|
1627
|
+
end
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
# parse the fields with a mix of String#split and regular expressions
|
1631
|
+
csv = Array.new
|
1632
|
+
current_field = String.new
|
1633
|
+
field_quotes = 0
|
1634
|
+
parse.split(@col_sep, -1).each do |match|
|
1635
|
+
if current_field.empty? && match.count(@quote_and_newlines).zero?
|
1636
|
+
csv << (match.empty? ? nil : match)
|
1637
|
+
elsif (current_field.empty? ? match[0] : current_field[0]) ==
|
1638
|
+
@quote_char[0]
|
1639
|
+
current_field << match
|
1640
|
+
field_quotes += match.count(@quote_char)
|
1641
|
+
if field_quotes % 2 == 0
|
1642
|
+
in_quotes = current_field[@parsers[:quoted_field], 1]
|
1643
|
+
if !in_quotes || in_quotes[@parsers[:stray_quote]]
|
1644
|
+
raise MalformedCSVError,
|
1645
|
+
"Missing or stray quote in line #{lineno + 1}"
|
1646
|
+
end
|
1647
|
+
current_field = in_quotes
|
1648
|
+
current_field.gsub!(@quote_char * 2, @quote_char) # unescape contents
|
1649
|
+
csv << current_field
|
1650
|
+
current_field = String.new
|
1651
|
+
field_quotes = 0
|
1652
|
+
else # we found a quoted field that spans multiple lines
|
1653
|
+
current_field << @col_sep
|
1654
|
+
end
|
1655
|
+
elsif match.count("\r\n").zero?
|
1656
|
+
raise MalformedCSVError, "Illegal quoting in line #{lineno + 1}."
|
1657
|
+
else
|
1658
|
+
raise MalformedCSVError, "Unquoted fields do not allow " +
|
1659
|
+
"\\r or \\n (line #{lineno + 1})."
|
1660
|
+
end
|
1661
|
+
end
|
1662
|
+
|
1663
|
+
# if parse is empty?(), we found all the fields on the line...
|
1664
|
+
if field_quotes % 2 == 0
|
1665
|
+
@lineno += 1
|
1666
|
+
|
1667
|
+
# save fields unconverted fields, if needed...
|
1668
|
+
unconverted = csv.dup if @unconverted_fields
|
1669
|
+
|
1670
|
+
# convert fields, if needed...
|
1671
|
+
csv = convert_fields(csv) unless @use_headers or @converters.empty?
|
1672
|
+
# parse out header rows and handle FasterCSV::Row conversions...
|
1673
|
+
csv = parse_headers(csv) if @use_headers
|
1674
|
+
|
1675
|
+
# inject unconverted fields and accessor, if requested...
|
1676
|
+
if @unconverted_fields and not csv.respond_to? :unconverted_fields
|
1677
|
+
add_unconverted_fields(csv, unconverted)
|
1678
|
+
end
|
1679
|
+
|
1680
|
+
# return the results
|
1681
|
+
break csv
|
1682
|
+
end
|
1683
|
+
# if we're not empty?() but at eof?(), a quoted field wasn't closed...
|
1684
|
+
if @io.eof?
|
1685
|
+
raise MalformedCSVError, "Unclosed quoted field on line #{lineno + 1}."
|
1686
|
+
elsif @field_size_limit and current_field.size >= @field_size_limit
|
1687
|
+
raise MalformedCSVError, "Field size exceeded on line #{lineno + 1}."
|
1688
|
+
end
|
1689
|
+
# otherwise, we need to loop and pull some more data to complete the row
|
1690
|
+
end
|
1691
|
+
end
|
1692
|
+
alias_method :gets, :shift
|
1693
|
+
alias_method :readline, :shift
|
1694
|
+
|
1695
|
+
# Returns a simplified description of the key FasterCSV attributes.
|
1696
|
+
def inspect
|
1697
|
+
str = "<##{self.class} io_type:"
|
1698
|
+
# show type of wrapped IO
|
1699
|
+
if @io == $stdout then str << "$stdout"
|
1700
|
+
elsif @io == $stdin then str << "$stdin"
|
1701
|
+
elsif @io == $stderr then str << "$stderr"
|
1702
|
+
else str << @io.class.to_s
|
1703
|
+
end
|
1704
|
+
# show IO.path(), if available
|
1705
|
+
if @io.respond_to?(:path) and (p = @io.path)
|
1706
|
+
str << " io_path:#{p.inspect}"
|
1707
|
+
end
|
1708
|
+
# show other attributes
|
1709
|
+
%w[ lineno col_sep row_sep
|
1710
|
+
quote_char skip_blanks encoding ].each do |attr_name|
|
1711
|
+
if a = instance_variable_get("@#{attr_name}")
|
1712
|
+
str << " #{attr_name}:#{a.inspect}"
|
1713
|
+
end
|
1714
|
+
end
|
1715
|
+
if @use_headers
|
1716
|
+
str << " headers:#{(@headers || true).inspect}"
|
1717
|
+
end
|
1718
|
+
str << ">"
|
1719
|
+
end
|
1720
|
+
|
1721
|
+
private
|
1722
|
+
|
1723
|
+
#
|
1724
|
+
# Stores the indicated separators for later use.
|
1725
|
+
#
|
1726
|
+
# If auto-discovery was requested for <tt>@row_sep</tt>, this method will read
|
1727
|
+
# ahead in the <tt>@io</tt> and try to find one. +ARGF+, +STDIN+, +STDOUT+,
|
1728
|
+
# +STDERR+ and any stream open for output only with a default
|
1729
|
+
# <tt>@row_sep</tt> of <tt>$INPUT_RECORD_SEPARATOR</tt> (<tt>$/</tt>).
|
1730
|
+
#
|
1731
|
+
# This method also establishes the quoting rules used for CSV output.
|
1732
|
+
#
|
1733
|
+
def init_separators(options)
|
1734
|
+
# store the selected separators
|
1735
|
+
@col_sep = options.delete(:col_sep)
|
1736
|
+
@row_sep = options.delete(:row_sep)
|
1737
|
+
@quote_char = options.delete(:quote_char)
|
1738
|
+
@quote_and_newlines = "\r\n#{@quote_char}"
|
1739
|
+
|
1740
|
+
if @quote_char.length != 1
|
1741
|
+
raise ArgumentError, ":quote_char has to be a single character String"
|
1742
|
+
end
|
1743
|
+
|
1744
|
+
# automatically discover row separator when requested
|
1745
|
+
if @row_sep == :auto
|
1746
|
+
begin
|
1747
|
+
#
|
1748
|
+
# remember where we were (pos() will raise an axception if @io is pipe
|
1749
|
+
# or not opened for reading)
|
1750
|
+
#
|
1751
|
+
saved_pos = @io.pos
|
1752
|
+
while @row_sep == :auto
|
1753
|
+
#
|
1754
|
+
# if we run out of data, it's probably a single line
|
1755
|
+
# (ensure will set default value)
|
1756
|
+
#
|
1757
|
+
break if @io.eof?
|
1758
|
+
|
1759
|
+
# read ahead a bit
|
1760
|
+
sample = @io.read(1024)
|
1761
|
+
sample += @io.read(1) if sample[-1..-1] == "\r" and not @io.eof?
|
1762
|
+
|
1763
|
+
# try to find a standard separator
|
1764
|
+
if sample =~ /\r\n?|\n/
|
1765
|
+
@row_sep = $&
|
1766
|
+
break
|
1767
|
+
end
|
1768
|
+
end
|
1769
|
+
|
1770
|
+
# tricky seek() clone to work around GzipReader's lack of seek()
|
1771
|
+
@io.rewind
|
1772
|
+
# reset back to the remembered position
|
1773
|
+
while saved_pos > 1024 # avoid loading a lot of data into memory
|
1774
|
+
@io.read(1024)
|
1775
|
+
saved_pos -= 1024
|
1776
|
+
end
|
1777
|
+
@io.read(saved_pos) if saved_pos.nonzero?
|
1778
|
+
rescue IOError # not opened for reading
|
1779
|
+
# do nothing: ensure will set default
|
1780
|
+
rescue NoMethodError # Zlib::GzipWriter doesn't have eof?
|
1781
|
+
# do nothing: ensure will set default
|
1782
|
+
rescue SystemCallError # pipe
|
1783
|
+
# do nothing: ensure will set default
|
1784
|
+
ensure
|
1785
|
+
#
|
1786
|
+
# set default if we failed to detect
|
1787
|
+
# (stream not opened for reading, a pipe, or a single line of data)
|
1788
|
+
#
|
1789
|
+
@row_sep = $INPUT_RECORD_SEPARATOR if @row_sep == :auto
|
1790
|
+
end
|
1791
|
+
end
|
1792
|
+
|
1793
|
+
# establish quoting rules
|
1794
|
+
do_quote = lambda do |field|
|
1795
|
+
@quote_char +
|
1796
|
+
String(field).gsub(@quote_char, @quote_char * 2) +
|
1797
|
+
@quote_char
|
1798
|
+
end
|
1799
|
+
@quote = if options.delete(:force_quotes)
|
1800
|
+
do_quote
|
1801
|
+
else
|
1802
|
+
lambda do |field|
|
1803
|
+
if field.nil? # represent +nil+ fields as empty unquoted fields
|
1804
|
+
""
|
1805
|
+
else
|
1806
|
+
field = String(field) # Stringify fields
|
1807
|
+
# represent empty fields as empty quoted fields
|
1808
|
+
if field.empty? or
|
1809
|
+
field.count("\r\n#{@col_sep}#{@quote_char}").nonzero?
|
1810
|
+
do_quote.call(field)
|
1811
|
+
else
|
1812
|
+
field # unquoted field
|
1813
|
+
end
|
1814
|
+
end
|
1815
|
+
end
|
1816
|
+
end
|
1817
|
+
end
|
1818
|
+
|
1819
|
+
# Pre-compiles parsers and stores them by name for access during reads.
|
1820
|
+
def init_parsers(options)
|
1821
|
+
# store the parser behaviors
|
1822
|
+
@skip_blanks = options.delete(:skip_blanks)
|
1823
|
+
@encoding = options.delete(:encoding) # nil will use $KCODE
|
1824
|
+
@field_size_limit = options.delete(:field_size_limit)
|
1825
|
+
|
1826
|
+
# prebuild Regexps for faster parsing
|
1827
|
+
esc_col_sep = Regexp.escape(@col_sep)
|
1828
|
+
esc_row_sep = Regexp.escape(@row_sep)
|
1829
|
+
esc_quote = Regexp.escape(@quote_char)
|
1830
|
+
@parsers = {
|
1831
|
+
:any_field => Regexp.new( "[^#{esc_col_sep}]+",
|
1832
|
+
Regexp::MULTILINE,
|
1833
|
+
@encoding ),
|
1834
|
+
:quoted_field => Regexp.new( "^#{esc_quote}(.*)#{esc_quote}$",
|
1835
|
+
Regexp::MULTILINE,
|
1836
|
+
@encoding ),
|
1837
|
+
:stray_quote => Regexp.new( "[^#{esc_quote}]#{esc_quote}[^#{esc_quote}]",
|
1838
|
+
Regexp::MULTILINE,
|
1839
|
+
@encoding ),
|
1840
|
+
# safer than chomp!()
|
1841
|
+
:line_end => Regexp.new("#{esc_row_sep}\\z", nil, @encoding)
|
1842
|
+
}
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
#
|
1846
|
+
# Loads any converters requested during construction.
|
1847
|
+
#
|
1848
|
+
# If +field_name+ is set <tt>:converters</tt> (the default) field converters
|
1849
|
+
# are set. When +field_name+ is <tt>:header_converters</tt> header converters
|
1850
|
+
# are added instead.
|
1851
|
+
#
|
1852
|
+
# The <tt>:unconverted_fields</tt> option is also actived for
|
1853
|
+
# <tt>:converters</tt> calls, if requested.
|
1854
|
+
#
|
1855
|
+
def init_converters(options, field_name = :converters)
|
1856
|
+
if field_name == :converters
|
1857
|
+
@unconverted_fields = options.delete(:unconverted_fields)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
instance_variable_set("@#{field_name}", Array.new)
|
1861
|
+
|
1862
|
+
# find the correct method to add the coverters
|
1863
|
+
convert = method(field_name.to_s.sub(/ers\Z/, ""))
|
1864
|
+
|
1865
|
+
# load converters
|
1866
|
+
unless options[field_name].nil?
|
1867
|
+
# allow a single converter not wrapped in an Array
|
1868
|
+
unless options[field_name].is_a? Array
|
1869
|
+
options[field_name] = [options[field_name]]
|
1870
|
+
end
|
1871
|
+
# load each converter...
|
1872
|
+
options[field_name].each do |converter|
|
1873
|
+
if converter.is_a? Proc # custom code block
|
1874
|
+
convert.call(&converter)
|
1875
|
+
else # by name
|
1876
|
+
convert.call(converter)
|
1877
|
+
end
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1881
|
+
options.delete(field_name)
|
1882
|
+
end
|
1883
|
+
|
1884
|
+
# Stores header row settings and loads header converters, if needed.
|
1885
|
+
def init_headers(options)
|
1886
|
+
@use_headers = options.delete(:headers)
|
1887
|
+
@return_headers = options.delete(:return_headers)
|
1888
|
+
@write_headers = options.delete(:write_headers)
|
1889
|
+
|
1890
|
+
# headers must be delayed until shift(), in case they need a row of content
|
1891
|
+
@headers = nil
|
1892
|
+
|
1893
|
+
init_converters(options, :header_converters)
|
1894
|
+
end
|
1895
|
+
|
1896
|
+
#
|
1897
|
+
# The actual work method for adding converters, used by both
|
1898
|
+
# FasterCSV.convert() and FasterCSV.header_convert().
|
1899
|
+
#
|
1900
|
+
# This method requires the +var_name+ of the instance variable to place the
|
1901
|
+
# converters in, the +const+ Hash to lookup named converters in, and the
|
1902
|
+
# normal parameters of the FasterCSV.convert() and FasterCSV.header_convert()
|
1903
|
+
# methods.
|
1904
|
+
#
|
1905
|
+
def add_converter(var_name, const, name = nil, &converter)
|
1906
|
+
if name.nil? # custom converter
|
1907
|
+
instance_variable_get("@#{var_name}") << converter
|
1908
|
+
else # named converter
|
1909
|
+
combo = const[name]
|
1910
|
+
case combo
|
1911
|
+
when Array # combo converter
|
1912
|
+
combo.each do |converter_name|
|
1913
|
+
add_converter(var_name, const, converter_name)
|
1914
|
+
end
|
1915
|
+
else # individual named converter
|
1916
|
+
instance_variable_get("@#{var_name}") << combo
|
1917
|
+
end
|
1918
|
+
end
|
1919
|
+
end
|
1920
|
+
|
1921
|
+
#
|
1922
|
+
# Processes +fields+ with <tt>@converters</tt>, or <tt>@header_converters</tt>
|
1923
|
+
# if +headers+ is passed as +true+, returning the converted field set. Any
|
1924
|
+
# converter that changes the field into something other than a String halts
|
1925
|
+
# the pipeline of conversion for that field. This is primarily an efficiency
|
1926
|
+
# shortcut.
|
1927
|
+
#
|
1928
|
+
def convert_fields(fields, headers = false)
|
1929
|
+
# see if we are converting headers or fields
|
1930
|
+
converters = headers ? @header_converters : @converters
|
1931
|
+
|
1932
|
+
fields.enum_for(:each_with_index).map do |field, index| # map_with_index
|
1933
|
+
converters.each do |converter|
|
1934
|
+
field = if converter.arity == 1 # straight field converter
|
1935
|
+
converter[field]
|
1936
|
+
else # FieldInfo converter
|
1937
|
+
header = @use_headers && !headers ? @headers[index] : nil
|
1938
|
+
converter[field, FieldInfo.new(index, lineno, header)]
|
1939
|
+
end
|
1940
|
+
break unless field.is_a? String # short-curcuit pipeline for speed
|
1941
|
+
end
|
1942
|
+
field # return final state of each field, converted or original
|
1943
|
+
end
|
1944
|
+
end
|
1945
|
+
|
1946
|
+
#
|
1947
|
+
# This methods is used to turn a finished +row+ into a FasterCSV::Row. Header
|
1948
|
+
# rows are also dealt with here, either by returning a FasterCSV::Row with
|
1949
|
+
# identical headers and fields (save that the fields do not go through the
|
1950
|
+
# converters) or by reading past them to return a field row. Headers are also
|
1951
|
+
# saved in <tt>@headers</tt> for use in future rows.
|
1952
|
+
#
|
1953
|
+
# When +nil+, +row+ is assumed to be a header row not based on an actual row
|
1954
|
+
# of the stream.
|
1955
|
+
#
|
1956
|
+
def parse_headers(row = nil)
|
1957
|
+
if @headers.nil? # header row
|
1958
|
+
@headers = case @use_headers # save headers
|
1959
|
+
# Array of headers
|
1960
|
+
when Array then @use_headers
|
1961
|
+
# CSV header String
|
1962
|
+
when String
|
1963
|
+
self.class.parse_line( @use_headers,
|
1964
|
+
:col_sep => @col_sep,
|
1965
|
+
:row_sep => @row_sep,
|
1966
|
+
:quote_char => @quote_char )
|
1967
|
+
# first row is headers
|
1968
|
+
else row
|
1969
|
+
end
|
1970
|
+
|
1971
|
+
# prepare converted and unconverted copies
|
1972
|
+
row = @headers if row.nil?
|
1973
|
+
@headers = convert_fields(@headers, true)
|
1974
|
+
|
1975
|
+
if @return_headers # return headers
|
1976
|
+
return FasterCSV::Row.new(@headers, row, true)
|
1977
|
+
elsif not [Array, String].include? @use_headers.class # skip to field row
|
1978
|
+
return shift
|
1979
|
+
end
|
1980
|
+
end
|
1981
|
+
|
1982
|
+
FasterCSV::Row.new(@headers, convert_fields(row)) # field row
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
#
|
1986
|
+
# Thiw methods injects an instance variable <tt>unconverted_fields</tt> into
|
1987
|
+
# +row+ and an accessor method for it called unconverted_fields(). The
|
1988
|
+
# variable is set to the contents of +fields+.
|
1989
|
+
#
|
1990
|
+
def add_unconverted_fields(row, fields)
|
1991
|
+
class << row
|
1992
|
+
attr_reader :unconverted_fields
|
1993
|
+
end
|
1994
|
+
row.instance_eval { @unconverted_fields = fields }
|
1995
|
+
row
|
1996
|
+
end
|
1997
|
+
end
|
1998
|
+
end
|
1999
|
+
|
2000
|
+
# Another name for FasterCSV.
|
2001
|
+
FCSV = FasterCSV
|
2002
|
+
|
2003
|
+
# Another name for FasterCSV::instance().
|
2004
|
+
def FasterCSV(*args, &block)
|
2005
|
+
FasterCSV.instance(*args, &block)
|
2006
|
+
end
|
2007
|
+
|
2008
|
+
# Another name for FCSV::instance().
|
2009
|
+
def FCSV(*args, &block)
|
2010
|
+
FCSV.instance(*args, &block)
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
class Array
|
2014
|
+
# Equivalent to <tt>FasterCSV::generate_line(self, options)</tt>.
|
2015
|
+
def to_csv(options = Hash.new)
|
2016
|
+
FasterCSV.generate_line(self, options)
|
2017
|
+
end
|
2018
|
+
end
|
2019
|
+
|
2020
|
+
class String
|
2021
|
+
# Equivalent to <tt>FasterCSV::parse_line(self, options)</tt>.
|
2022
|
+
def parse_csv(options = Hash.new)
|
2023
|
+
FasterCSV.parse_line(self, options)
|
2024
|
+
end
|
2025
|
+
end
|