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,2162 @@
|
|
1
|
+
require File.join(File.dirname(File.expand_path(__FILE__)), 'spec_helper.rb')
|
2
|
+
|
3
|
+
describe "Class Table Inheritance Plugin" do
|
4
|
+
before(:all) do
|
5
|
+
@db = DB
|
6
|
+
@db.instance_variable_set(:@schemas, {})
|
7
|
+
@db.drop_table?(:staff, :executives, :managers, :employees)
|
8
|
+
@db.create_table(:employees) do
|
9
|
+
primary_key :id
|
10
|
+
String :name
|
11
|
+
String :kind
|
12
|
+
end
|
13
|
+
@db.create_table(:managers) do
|
14
|
+
foreign_key :id, :employees, :primary_key=>true
|
15
|
+
Integer :num_staff
|
16
|
+
end
|
17
|
+
@db.create_table(:executives) do
|
18
|
+
foreign_key :id, :managers, :primary_key=>true
|
19
|
+
Integer :num_managers
|
20
|
+
end
|
21
|
+
@db.create_table(:staff) do
|
22
|
+
foreign_key :id, :employees, :primary_key=>true
|
23
|
+
foreign_key :manager_id, :managers
|
24
|
+
end
|
25
|
+
end
|
26
|
+
before do
|
27
|
+
[:staff, :executives, :managers, :employees].each{|t| @db[t].delete}
|
28
|
+
class ::Employee < Sequel::Model(@db)
|
29
|
+
plugin :class_table_inheritance, :key=>:kind, :table_map=>{:Staff=>:staff}
|
30
|
+
end
|
31
|
+
class ::Manager < Employee
|
32
|
+
one_to_many :staff_members, :class=>:Staff
|
33
|
+
end
|
34
|
+
class ::Executive < Manager
|
35
|
+
end
|
36
|
+
class ::Staff < Employee
|
37
|
+
many_to_one :manager
|
38
|
+
end
|
39
|
+
|
40
|
+
@i1 =@db[:employees].insert(:name=>'E', :kind=>'Employee')
|
41
|
+
@i2 = @db[:employees].insert(:name=>'S', :kind=>'Staff')
|
42
|
+
@i3 = @db[:employees].insert(:name=>'M', :kind=>'Manager')
|
43
|
+
@i4 = @db[:employees].insert(:name=>'Ex', :kind=>'Executive')
|
44
|
+
@db[:managers].insert(:id=>@i3, :num_staff=>7)
|
45
|
+
@db[:managers].insert(:id=>@i4, :num_staff=>5)
|
46
|
+
@db[:executives].insert(:id=>@i4, :num_managers=>6)
|
47
|
+
@db[:staff].insert(:id=>@i2, :manager_id=>@i4)
|
48
|
+
end
|
49
|
+
after do
|
50
|
+
[:Executive, :Manager, :Staff, :Employee].each{|s| Object.send(:remove_const, s)}
|
51
|
+
end
|
52
|
+
after(:all) do
|
53
|
+
@db.drop_table? :staff, :executives, :managers, :employees
|
54
|
+
end
|
55
|
+
|
56
|
+
specify "should return rows as subclass instances" do
|
57
|
+
Employee.order(:id).all.should == [
|
58
|
+
Employee.load(:id=>@i1, :name=>'E', :kind=>'Employee'),
|
59
|
+
Staff.load(:id=>@i2, :name=>'S', :kind=>'Staff'),
|
60
|
+
Manager.load(:id=>@i3, :name=>'M', :kind=>'Manager'),
|
61
|
+
Executive.load(:id=>@i4, :name=>'Ex', :kind=>'Executive')
|
62
|
+
]
|
63
|
+
end
|
64
|
+
|
65
|
+
specify "should lazily load columns in subclass tables" do
|
66
|
+
Employee[@i2][:manager_id].should == nil
|
67
|
+
Employee[@i2].manager_id.should == @i4
|
68
|
+
Employee[@i3][:num_staff].should == nil
|
69
|
+
Employee[@i3].num_staff.should == 7
|
70
|
+
Employee[@i4][:num_staff].should == nil
|
71
|
+
Employee[@i4].num_staff.should == 5
|
72
|
+
Employee[@i4][:num_managers].should == nil
|
73
|
+
Employee[@i4].num_managers.should == 6
|
74
|
+
end
|
75
|
+
|
76
|
+
specify "should eagerly load columns in subclass tables when retrieving multiple objects" do
|
77
|
+
a = Employee.order(:id).all
|
78
|
+
a[1][:manager_id].should == nil
|
79
|
+
a[1].manager_id.should == @i4
|
80
|
+
a[2][:num_staff].should == nil
|
81
|
+
a[2].num_staff.should == 7
|
82
|
+
a[3][:num_staff].should == 5 # eagerly loaded by previous call
|
83
|
+
a[3].num_staff.should == 5
|
84
|
+
a[3][:num_managers].should == nil
|
85
|
+
a[3].num_managers.should == 6
|
86
|
+
end
|
87
|
+
|
88
|
+
specify "should include schema for columns for tables for ancestor classes" do
|
89
|
+
Employee.db_schema.keys.sort_by{|x| x.to_s}.should == [:id, :kind, :name]
|
90
|
+
Staff.db_schema.keys.sort_by{|x| x.to_s}.should == [:id, :kind, :manager_id, :name]
|
91
|
+
Manager.db_schema.keys.sort_by{|x| x.to_s}.should == [:id, :kind, :name, :num_staff]
|
92
|
+
Executive.db_schema.keys.sort_by{|x| x.to_s}.should == [:id, :kind, :name, :num_managers, :num_staff]
|
93
|
+
end
|
94
|
+
|
95
|
+
specify "should include columns for tables for ancestor classes" do
|
96
|
+
Employee.columns.should == [:id, :name, :kind]
|
97
|
+
Staff.columns.should == [:id, :name, :kind, :manager_id]
|
98
|
+
Manager.columns.should == [:id, :name, :kind, :num_staff]
|
99
|
+
Executive.columns.should == [:id, :name, :kind, :num_staff, :num_managers]
|
100
|
+
end
|
101
|
+
|
102
|
+
specify "should delete rows from all tables" do
|
103
|
+
e = Executive.first
|
104
|
+
i = e.id
|
105
|
+
e.staff_members_dataset.destroy
|
106
|
+
e.destroy
|
107
|
+
@db[:executives][:id=>i].should == nil
|
108
|
+
@db[:managers][:id=>i].should == nil
|
109
|
+
@db[:employees][:id=>i].should == nil
|
110
|
+
end
|
111
|
+
|
112
|
+
specify "should handle associations only defined in subclasses" do
|
113
|
+
Employee.filter(:employees__id=>@i2).all.first.manager.id.should == @i4
|
114
|
+
end
|
115
|
+
|
116
|
+
specify "should insert rows into all tables" do
|
117
|
+
e = Executive.create(:name=>'Ex2', :num_managers=>8, :num_staff=>9)
|
118
|
+
i = e.id
|
119
|
+
@db[:employees][:id=>i].should == {:id=>i, :name=>'Ex2', :kind=>'Executive'}
|
120
|
+
@db[:managers][:id=>i].should == {:id=>i, :num_staff=>9}
|
121
|
+
@db[:executives][:id=>i].should == {:id=>i, :num_managers=>8}
|
122
|
+
end
|
123
|
+
|
124
|
+
specify "should update rows in all tables" do
|
125
|
+
Executive.first.update(:name=>'Ex2', :num_managers=>8, :num_staff=>9)
|
126
|
+
@db[:employees][:id=>@i4].should == {:id=>@i4, :name=>'Ex2', :kind=>'Executive'}
|
127
|
+
@db[:managers][:id=>@i4].should == {:id=>@i4, :num_staff=>9}
|
128
|
+
@db[:executives][:id=>@i4].should == {:id=>@i4, :num_managers=>8}
|
129
|
+
end
|
130
|
+
|
131
|
+
specify "should handle many_to_one relationships" do
|
132
|
+
m = Staff.first.manager
|
133
|
+
m.should == Manager[@i4]
|
134
|
+
m.should be_a_kind_of(Executive)
|
135
|
+
end
|
136
|
+
|
137
|
+
specify "should handle eagerly loading many_to_one relationships" do
|
138
|
+
Staff.limit(1).eager(:manager).all.map{|x| x.manager}.should == [Manager[@i4]]
|
139
|
+
end
|
140
|
+
|
141
|
+
specify "should handle eagerly graphing many_to_one relationships" do
|
142
|
+
ss = Staff.eager_graph(:manager).all
|
143
|
+
ss.should == [Staff[@i2]]
|
144
|
+
ss.map{|x| x.manager}.should == [Manager[@i4]]
|
145
|
+
end
|
146
|
+
|
147
|
+
specify "should handle one_to_many relationships" do
|
148
|
+
Executive.first.staff_members.should == [Staff[@i2]]
|
149
|
+
end
|
150
|
+
|
151
|
+
specify "should handle eagerly loading one_to_many relationships" do
|
152
|
+
Executive.limit(1).eager(:staff_members).first.staff_members.should == [Staff[@i2]]
|
153
|
+
end
|
154
|
+
|
155
|
+
specify "should handle eagerly graphing one_to_many relationships" do
|
156
|
+
es = Executive.limit(1).eager_graph(:staff_members).all
|
157
|
+
es.should == [Executive[@i4]]
|
158
|
+
es.map{|x| x.staff_members}.should == [[Staff[@i2]]]
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
162
|
+
describe "Many Through Many Plugin" do
|
163
|
+
before(:all) do
|
164
|
+
@db = DB
|
165
|
+
@db.instance_variable_set(:@schemas, {})
|
166
|
+
@db.drop_table?(:albums_artists, :albums, :artists)
|
167
|
+
@db.create_table(:albums) do
|
168
|
+
primary_key :id
|
169
|
+
String :name
|
170
|
+
end
|
171
|
+
@db.create_table(:artists) do
|
172
|
+
primary_key :id
|
173
|
+
String :name
|
174
|
+
end
|
175
|
+
@db.create_table(:albums_artists) do
|
176
|
+
foreign_key :album_id, :albums
|
177
|
+
foreign_key :artist_id, :artists
|
178
|
+
end
|
179
|
+
end
|
180
|
+
before do
|
181
|
+
[:albums_artists, :albums, :artists].each{|t| @db[t].delete}
|
182
|
+
class ::Album < Sequel::Model(@db)
|
183
|
+
many_to_many :artists
|
184
|
+
end
|
185
|
+
class ::Artist < Sequel::Model(@db)
|
186
|
+
plugin :many_through_many
|
187
|
+
end
|
188
|
+
|
189
|
+
@artist1 = Artist.create(:name=>'1')
|
190
|
+
@artist2 = Artist.create(:name=>'2')
|
191
|
+
@artist3 = Artist.create(:name=>'3')
|
192
|
+
@artist4 = Artist.create(:name=>'4')
|
193
|
+
@album1 = Album.create(:name=>'A')
|
194
|
+
@album1.add_artist(@artist1)
|
195
|
+
@album1.add_artist(@artist2)
|
196
|
+
@album2 = Album.create(:name=>'B')
|
197
|
+
@album2.add_artist(@artist3)
|
198
|
+
@album2.add_artist(@artist4)
|
199
|
+
@album3 = Album.create(:name=>'C')
|
200
|
+
@album3.add_artist(@artist2)
|
201
|
+
@album3.add_artist(@artist3)
|
202
|
+
@album4 = Album.create(:name=>'D')
|
203
|
+
@album4.add_artist(@artist1)
|
204
|
+
@album4.add_artist(@artist4)
|
205
|
+
end
|
206
|
+
after do
|
207
|
+
[:Album, :Artist].each{|s| Object.send(:remove_const, s)}
|
208
|
+
end
|
209
|
+
after(:all) do
|
210
|
+
@db.drop_table? :albums_artists, :albums, :artists
|
211
|
+
end
|
212
|
+
|
213
|
+
def self_join(c)
|
214
|
+
c.join(Sequel.as(c.table_name, :b), Array(c.primary_key).zip(Array(c.primary_key))).select_all(c.table_name)
|
215
|
+
end
|
216
|
+
|
217
|
+
specify "should handle super simple case with 1 join table" do
|
218
|
+
Artist.many_through_many :albums, [[:albums_artists, :artist_id, :album_id]]
|
219
|
+
Artist[@artist1.id].albums.map{|x| x.name}.sort.should == %w'A D'
|
220
|
+
Artist[@artist2.id].albums.map{|x| x.name}.sort.should == %w'A C'
|
221
|
+
Artist[@artist3.id].albums.map{|x| x.name}.sort.should == %w'B C'
|
222
|
+
Artist[@artist4.id].albums.map{|x| x.name}.sort.should == %w'B D'
|
223
|
+
|
224
|
+
Artist.plugin :prepared_statements_associations
|
225
|
+
Artist[@artist1.id].albums.map{|x| x.name}.sort.should == %w'A D'
|
226
|
+
Artist[@artist2.id].albums.map{|x| x.name}.sort.should == %w'A C'
|
227
|
+
Artist[@artist3.id].albums.map{|x| x.name}.sort.should == %w'B C'
|
228
|
+
Artist[@artist4.id].albums.map{|x| x.name}.sort.should == %w'B D'
|
229
|
+
|
230
|
+
Artist.filter(:id=>1).eager(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'A D'
|
231
|
+
Artist.filter(:id=>2).eager(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'A C'
|
232
|
+
Artist.filter(:id=>3).eager(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'B C'
|
233
|
+
Artist.filter(:id=>4).eager(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'B D'
|
234
|
+
|
235
|
+
Artist.filter(:artists__id=>1).eager_graph(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'A D'
|
236
|
+
Artist.filter(:artists__id=>2).eager_graph(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'A C'
|
237
|
+
Artist.filter(:artists__id=>3).eager_graph(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'B C'
|
238
|
+
Artist.filter(:artists__id=>4).eager_graph(:albums).all.map{|x| x.albums.map{|a| a.name}}.flatten.sort.should == %w'B D'
|
239
|
+
|
240
|
+
Artist.filter(:albums=>@album1).all.map{|a| a.name}.sort.should == %w'1 2'
|
241
|
+
Artist.filter(:albums=>@album2).all.map{|a| a.name}.sort.should == %w'3 4'
|
242
|
+
Artist.filter(:albums=>@album3).all.map{|a| a.name}.sort.should == %w'2 3'
|
243
|
+
Artist.filter(:albums=>@album4).all.map{|a| a.name}.sort.should == %w'1 4'
|
244
|
+
|
245
|
+
Artist.exclude(:albums=>@album1).all.map{|a| a.name}.sort.should == %w'3 4'
|
246
|
+
Artist.exclude(:albums=>@album2).all.map{|a| a.name}.sort.should == %w'1 2'
|
247
|
+
Artist.exclude(:albums=>@album3).all.map{|a| a.name}.sort.should == %w'1 4'
|
248
|
+
Artist.exclude(:albums=>@album4).all.map{|a| a.name}.sort.should == %w'2 3'
|
249
|
+
|
250
|
+
Artist.filter(:albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
251
|
+
Artist.filter(:albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w'1 3 4'
|
252
|
+
|
253
|
+
Artist.exclude(:albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'4'
|
254
|
+
Artist.exclude(:albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w'2'
|
255
|
+
|
256
|
+
Artist.filter(:albums=>Album.filter(:id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
257
|
+
Artist.exclude(:albums=>Album.filter(:id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'4'
|
258
|
+
|
259
|
+
c = self_join(Artist)
|
260
|
+
c.filter(:albums=>@album1).all.map{|a| a.name}.sort.should == %w'1 2'
|
261
|
+
c.filter(:albums=>@album2).all.map{|a| a.name}.sort.should == %w'3 4'
|
262
|
+
c.filter(:albums=>@album3).all.map{|a| a.name}.sort.should == %w'2 3'
|
263
|
+
c.filter(:albums=>@album4).all.map{|a| a.name}.sort.should == %w'1 4'
|
264
|
+
|
265
|
+
c.exclude(:albums=>@album1).all.map{|a| a.name}.sort.should == %w'3 4'
|
266
|
+
c.exclude(:albums=>@album2).all.map{|a| a.name}.sort.should == %w'1 2'
|
267
|
+
c.exclude(:albums=>@album3).all.map{|a| a.name}.sort.should == %w'1 4'
|
268
|
+
c.exclude(:albums=>@album4).all.map{|a| a.name}.sort.should == %w'2 3'
|
269
|
+
|
270
|
+
c.filter(:albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
271
|
+
c.filter(:albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w'1 3 4'
|
272
|
+
|
273
|
+
c.exclude(:albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'4'
|
274
|
+
c.exclude(:albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w'2'
|
275
|
+
|
276
|
+
c.filter(:albums=>self_join(Album).filter(:albums__id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
277
|
+
c.exclude(:albums=>self_join(Album).filter(:albums__id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'4'
|
278
|
+
end
|
279
|
+
|
280
|
+
specify "should handle typical case with 3 join tables" do
|
281
|
+
Artist.many_through_many :related_artists, [[:albums_artists, :artist_id, :album_id], [:albums, :id, :id], [:albums_artists, :album_id, :artist_id]], :class=>Artist, :distinct=>true
|
282
|
+
Artist[@artist1.id].related_artists.map{|x| x.name}.sort.should == %w'1 2 4'
|
283
|
+
Artist[@artist2.id].related_artists.map{|x| x.name}.sort.should == %w'1 2 3'
|
284
|
+
Artist[@artist3.id].related_artists.map{|x| x.name}.sort.should == %w'2 3 4'
|
285
|
+
Artist[@artist4.id].related_artists.map{|x| x.name}.sort.should == %w'1 3 4'
|
286
|
+
|
287
|
+
Artist.plugin :prepared_statements_associations
|
288
|
+
Artist[@artist1.id].related_artists.map{|x| x.name}.sort.should == %w'1 2 4'
|
289
|
+
Artist[@artist2.id].related_artists.map{|x| x.name}.sort.should == %w'1 2 3'
|
290
|
+
Artist[@artist3.id].related_artists.map{|x| x.name}.sort.should == %w'2 3 4'
|
291
|
+
Artist[@artist4.id].related_artists.map{|x| x.name}.sort.should == %w'1 3 4'
|
292
|
+
|
293
|
+
Artist.filter(:id=>@artist1.id).eager(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 2 4'
|
294
|
+
Artist.filter(:id=>@artist2.id).eager(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 2 3'
|
295
|
+
Artist.filter(:id=>@artist3.id).eager(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'2 3 4'
|
296
|
+
Artist.filter(:id=>@artist4.id).eager(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 3 4'
|
297
|
+
|
298
|
+
Artist.filter(:artists__id=>@artist1.id).eager_graph(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 2 4'
|
299
|
+
Artist.filter(:artists__id=>@artist2.id).eager_graph(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 2 3'
|
300
|
+
Artist.filter(:artists__id=>@artist3.id).eager_graph(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'2 3 4'
|
301
|
+
Artist.filter(:artists__id=>@artist4.id).eager_graph(:related_artists).all.map{|x| x.related_artists.map{|a| a.name}}.flatten.sort.should == %w'1 3 4'
|
302
|
+
|
303
|
+
Artist.filter(:related_artists=>@artist1).all.map{|a| a.name}.sort.should == %w'1 2 4'
|
304
|
+
Artist.filter(:related_artists=>@artist2).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
305
|
+
Artist.filter(:related_artists=>@artist3).all.map{|a| a.name}.sort.should == %w'2 3 4'
|
306
|
+
Artist.filter(:related_artists=>@artist4).all.map{|a| a.name}.sort.should == %w'1 3 4'
|
307
|
+
|
308
|
+
Artist.exclude(:related_artists=>@artist1).all.map{|a| a.name}.sort.should == %w'3'
|
309
|
+
Artist.exclude(:related_artists=>@artist2).all.map{|a| a.name}.sort.should == %w'4'
|
310
|
+
Artist.exclude(:related_artists=>@artist3).all.map{|a| a.name}.sort.should == %w'1'
|
311
|
+
Artist.exclude(:related_artists=>@artist4).all.map{|a| a.name}.sort.should == %w'2'
|
312
|
+
|
313
|
+
Artist.filter(:related_artists=>[@artist1, @artist4]).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
314
|
+
Artist.exclude(:related_artists=>[@artist1, @artist4]).all.map{|a| a.name}.sort.should == %w''
|
315
|
+
|
316
|
+
Artist.filter(:related_artists=>Artist.filter(:id=>@artist1.id)).all.map{|a| a.name}.sort.should == %w'1 2 4'
|
317
|
+
Artist.exclude(:related_artists=>Artist.filter(:id=>@artist1.id)).all.map{|a| a.name}.sort.should == %w'3'
|
318
|
+
|
319
|
+
c = self_join(Artist)
|
320
|
+
c.filter(:related_artists=>@artist1).all.map{|a| a.name}.sort.should == %w'1 2 4'
|
321
|
+
c.filter(:related_artists=>@artist2).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
322
|
+
c.filter(:related_artists=>@artist3).all.map{|a| a.name}.sort.should == %w'2 3 4'
|
323
|
+
c.filter(:related_artists=>@artist4).all.map{|a| a.name}.sort.should == %w'1 3 4'
|
324
|
+
|
325
|
+
c.exclude(:related_artists=>@artist1).all.map{|a| a.name}.sort.should == %w'3'
|
326
|
+
c.exclude(:related_artists=>@artist2).all.map{|a| a.name}.sort.should == %w'4'
|
327
|
+
c.exclude(:related_artists=>@artist3).all.map{|a| a.name}.sort.should == %w'1'
|
328
|
+
c.exclude(:related_artists=>@artist4).all.map{|a| a.name}.sort.should == %w'2'
|
329
|
+
|
330
|
+
c.filter(:related_artists=>[@artist1, @artist4]).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
331
|
+
c.exclude(:related_artists=>[@artist1, @artist4]).all.map{|a| a.name}.sort.should == %w''
|
332
|
+
|
333
|
+
c.filter(:related_artists=>c.filter(:artists__id=>@artist1.id)).all.map{|a| a.name}.sort.should == %w'1 2 4'
|
334
|
+
c.exclude(:related_artists=>c.filter(:artists__id=>@artist1.id)).all.map{|a| a.name}.sort.should == %w'3'
|
335
|
+
end
|
336
|
+
|
337
|
+
cspecify "should handle extreme case with 5 join tables", :fdbsql do
|
338
|
+
Artist.many_through_many :related_albums, [[:albums_artists, :artist_id, :album_id], [:albums, :id, :id], [:albums_artists, :album_id, :artist_id], [:artists, :id, :id], [:albums_artists, :artist_id, :album_id]], :class=>Album, :distinct=>true
|
339
|
+
@db[:albums_artists].delete
|
340
|
+
@album1.add_artist(@artist1)
|
341
|
+
@album1.add_artist(@artist2)
|
342
|
+
@album2.add_artist(@artist2)
|
343
|
+
@album2.add_artist(@artist3)
|
344
|
+
@album3.add_artist(@artist1)
|
345
|
+
@album4.add_artist(@artist3)
|
346
|
+
@album4.add_artist(@artist4)
|
347
|
+
|
348
|
+
Artist[@artist1.id].related_albums.map{|x| x.name}.sort.should == %w'A B C'
|
349
|
+
Artist[@artist2.id].related_albums.map{|x| x.name}.sort.should == %w'A B C D'
|
350
|
+
Artist[@artist3.id].related_albums.map{|x| x.name}.sort.should == %w'A B D'
|
351
|
+
Artist[@artist4.id].related_albums.map{|x| x.name}.sort.should == %w'B D'
|
352
|
+
|
353
|
+
Artist.plugin :prepared_statements_associations
|
354
|
+
Artist[@artist1.id].related_albums.map{|x| x.name}.sort.should == %w'A B C'
|
355
|
+
Artist[@artist2.id].related_albums.map{|x| x.name}.sort.should == %w'A B C D'
|
356
|
+
Artist[@artist3.id].related_albums.map{|x| x.name}.sort.should == %w'A B D'
|
357
|
+
Artist[@artist4.id].related_albums.map{|x| x.name}.sort.should == %w'B D'
|
358
|
+
|
359
|
+
Artist.filter(:id=>@artist1.id).eager(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B C'
|
360
|
+
Artist.filter(:id=>@artist2.id).eager(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B C D'
|
361
|
+
Artist.filter(:id=>@artist3.id).eager(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B D'
|
362
|
+
Artist.filter(:id=>@artist4.id).eager(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'B D'
|
363
|
+
|
364
|
+
Artist.filter(:artists__id=>@artist1.id).eager_graph(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B C'
|
365
|
+
Artist.filter(:artists__id=>@artist2.id).eager_graph(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B C D'
|
366
|
+
Artist.filter(:artists__id=>@artist3.id).eager_graph(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'A B D'
|
367
|
+
Artist.filter(:artists__id=>@artist4.id).eager_graph(:related_albums).all.map{|x| x.related_albums.map{|a| a.name}}.flatten.sort.should == %w'B D'
|
368
|
+
|
369
|
+
Artist.filter(:related_albums=>@album1).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
370
|
+
Artist.filter(:related_albums=>@album2).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
371
|
+
Artist.filter(:related_albums=>@album3).all.map{|a| a.name}.sort.should == %w'1 2'
|
372
|
+
Artist.filter(:related_albums=>@album4).all.map{|a| a.name}.sort.should == %w'2 3 4'
|
373
|
+
|
374
|
+
Artist.exclude(:related_albums=>@album1).all.map{|a| a.name}.sort.should == %w'4'
|
375
|
+
Artist.exclude(:related_albums=>@album2).all.map{|a| a.name}.sort.should == %w''
|
376
|
+
Artist.exclude(:related_albums=>@album3).all.map{|a| a.name}.sort.should == %w'3 4'
|
377
|
+
Artist.exclude(:related_albums=>@album4).all.map{|a| a.name}.sort.should == %w'1'
|
378
|
+
|
379
|
+
Artist.filter(:related_albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
380
|
+
Artist.filter(:related_albums=>[@album3, @album4]).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
381
|
+
|
382
|
+
Artist.exclude(:related_albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'4'
|
383
|
+
Artist.exclude(:related_albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w''
|
384
|
+
|
385
|
+
Artist.filter(:related_albums=>Album.filter(:id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
386
|
+
Artist.exclude(:related_albums=>Album.filter(:id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'4'
|
387
|
+
|
388
|
+
c = self_join(Artist)
|
389
|
+
c.filter(:related_albums=>@album1).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
390
|
+
c.filter(:related_albums=>@album2).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
391
|
+
c.filter(:related_albums=>@album3).all.map{|a| a.name}.sort.should == %w'1 2'
|
392
|
+
c.filter(:related_albums=>@album4).all.map{|a| a.name}.sort.should == %w'2 3 4'
|
393
|
+
|
394
|
+
c.exclude(:related_albums=>@album1).all.map{|a| a.name}.sort.should == %w'4'
|
395
|
+
c.exclude(:related_albums=>@album2).all.map{|a| a.name}.sort.should == %w''
|
396
|
+
c.exclude(:related_albums=>@album3).all.map{|a| a.name}.sort.should == %w'3 4'
|
397
|
+
c.exclude(:related_albums=>@album4).all.map{|a| a.name}.sort.should == %w'1'
|
398
|
+
|
399
|
+
c.filter(:related_albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
400
|
+
c.filter(:related_albums=>[@album3, @album4]).all.map{|a| a.name}.sort.should == %w'1 2 3 4'
|
401
|
+
|
402
|
+
c.exclude(:related_albums=>[@album1, @album3]).all.map{|a| a.name}.sort.should == %w'4'
|
403
|
+
c.exclude(:related_albums=>[@album2, @album4]).all.map{|a| a.name}.sort.should == %w''
|
404
|
+
|
405
|
+
c.filter(:related_albums=>self_join(Album).filter(:albums__id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'1 2 3'
|
406
|
+
c.exclude(:related_albums=>self_join(Album).filter(:albums__id=>[@album1.id, @album3.id])).all.map{|a| a.name}.sort.should == %w'4'
|
407
|
+
end
|
408
|
+
end
|
409
|
+
|
410
|
+
describe "Lazy Attributes plugin" do
|
411
|
+
before(:all) do
|
412
|
+
@db = DB
|
413
|
+
@db.create_table!(:items) do
|
414
|
+
primary_key :id
|
415
|
+
String :name
|
416
|
+
Integer :num
|
417
|
+
end
|
418
|
+
@db[:items].delete
|
419
|
+
class ::Item < Sequel::Model(@db)
|
420
|
+
plugin :lazy_attributes, :num
|
421
|
+
end
|
422
|
+
Item.create(:name=>'J', :num=>1)
|
423
|
+
end
|
424
|
+
after(:all) do
|
425
|
+
@db.drop_table?(:items)
|
426
|
+
Object.send(:remove_const, :Item)
|
427
|
+
end
|
428
|
+
|
429
|
+
specify "should not include lazy attribute columns by default" do
|
430
|
+
Item.first.should == Item.load(:id=>1, :name=>'J')
|
431
|
+
end
|
432
|
+
|
433
|
+
specify "should load lazy attribute on access" do
|
434
|
+
Item.first.num.should == 1
|
435
|
+
end
|
436
|
+
|
437
|
+
specify "should typecast lazy attribute in setter" do
|
438
|
+
i = Item.new
|
439
|
+
i.num = '1'
|
440
|
+
i.num.should == 1
|
441
|
+
end
|
442
|
+
|
443
|
+
specify "should load lazy attribute for all items returned when accessing any item if using identity map " do
|
444
|
+
Item.create(:name=>'K', :num=>2)
|
445
|
+
a = Item.order(:name).all
|
446
|
+
a.should == [Item.load(:id=>1, :name=>'J'), Item.load(:id=>2, :name=>'K')]
|
447
|
+
a.map{|x| x[:num]}.should == [nil, nil]
|
448
|
+
a.first.num.should == 1
|
449
|
+
a.map{|x| x[:num]}.should == [1, 2]
|
450
|
+
a.last.num.should == 2
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
describe "Tactical Eager Loading Plugin" do
|
455
|
+
before(:all) do
|
456
|
+
@db = DB
|
457
|
+
@db.instance_variable_set(:@schemas, {})
|
458
|
+
@db.drop_table?(:albums_artists) # work around fdbsql disconnect bug
|
459
|
+
@db.create_table!(:artists) do
|
460
|
+
primary_key :id
|
461
|
+
String :name
|
462
|
+
end
|
463
|
+
@db.create_table!(:albums) do
|
464
|
+
primary_key :id
|
465
|
+
String :name
|
466
|
+
foreign_key :artist_id, :artists
|
467
|
+
end
|
468
|
+
end
|
469
|
+
before do
|
470
|
+
@db[:albums].delete
|
471
|
+
@db[:artists].delete
|
472
|
+
class ::Album < Sequel::Model(@db)
|
473
|
+
plugin :tactical_eager_loading
|
474
|
+
many_to_one :artist
|
475
|
+
end
|
476
|
+
class ::Artist < Sequel::Model(@db)
|
477
|
+
plugin :tactical_eager_loading
|
478
|
+
one_to_many :albums, :order=>:name
|
479
|
+
end
|
480
|
+
|
481
|
+
@artist1 = Artist.create(:name=>'1')
|
482
|
+
@artist2 = Artist.create(:name=>'2')
|
483
|
+
@artist3 = Artist.create(:name=>'3')
|
484
|
+
@artist4 = Artist.create(:name=>'4')
|
485
|
+
@album1 = Album.create(:name=>'A', :artist=>@artist1)
|
486
|
+
@album2 = Album.create(:name=>'B', :artist=>@artist1)
|
487
|
+
@album3 = Album.create(:name=>'C', :artist=>@artist2)
|
488
|
+
@album4 = Album.create(:name=>'D', :artist=>@artist3)
|
489
|
+
end
|
490
|
+
after do
|
491
|
+
[:Album, :Artist].each{|s| Object.send(:remove_const, s)}
|
492
|
+
end
|
493
|
+
after(:all) do
|
494
|
+
@db.drop_table? :albums, :artists
|
495
|
+
end
|
496
|
+
|
497
|
+
specify "should eagerly load associations for all items when accessing any item" do
|
498
|
+
a = Artist.order(:name).all
|
499
|
+
a.map{|x| x.associations}.should == [{}, {}, {}, {}]
|
500
|
+
a.first.albums.should == [@album1, @album2]
|
501
|
+
a.map{|x| x.associations}.should == [{:albums=>[@album1, @album2]}, {:albums=>[@album3]}, {:albums=>[@album4]}, {:albums=>[]}]
|
502
|
+
|
503
|
+
a = Album.order(:name).all
|
504
|
+
a.map{|x| x.associations}.should == [{}, {}, {}, {}]
|
505
|
+
a.first.artist.should == @artist1
|
506
|
+
a.map{|x| x.associations}.should == [{:artist=>@artist1}, {:artist=>@artist1}, {:artist=>@artist2}, {:artist=>@artist3}]
|
507
|
+
end
|
508
|
+
end
|
509
|
+
|
510
|
+
describe "Touch plugin" do
|
511
|
+
before(:all) do
|
512
|
+
@db = DB
|
513
|
+
@db.drop_table? :albums_artists, :albums, :artists
|
514
|
+
@db.create_table(:artists) do
|
515
|
+
primary_key :id
|
516
|
+
String :name
|
517
|
+
DateTime :updated_at
|
518
|
+
end
|
519
|
+
@db.create_table(:albums) do
|
520
|
+
primary_key :id
|
521
|
+
String :name
|
522
|
+
foreign_key :artist_id, :artists
|
523
|
+
DateTime :updated_at
|
524
|
+
end
|
525
|
+
@db.create_join_table({:album_id=>:albums, :artist_id=>:artists}, :no_index=>true)
|
526
|
+
end
|
527
|
+
before do
|
528
|
+
@db[:albums].delete
|
529
|
+
@db[:artists].delete
|
530
|
+
class ::Album < Sequel::Model(@db)
|
531
|
+
end
|
532
|
+
class ::Artist < Sequel::Model(@db)
|
533
|
+
end
|
534
|
+
|
535
|
+
@artist = Artist.create(:name=>'1')
|
536
|
+
@album = Album.create(:name=>'A', :artist_id=>@artist.id)
|
537
|
+
end
|
538
|
+
after do
|
539
|
+
[:Album, :Artist].each{|s| Object.send(:remove_const, s)}
|
540
|
+
end
|
541
|
+
after(:all) do
|
542
|
+
@db.drop_table? :albums_artists, :albums, :artists
|
543
|
+
end
|
544
|
+
|
545
|
+
specify "should update the timestamp column when touching the record" do
|
546
|
+
Album.plugin :touch
|
547
|
+
@album.updated_at.should == nil
|
548
|
+
@album.touch
|
549
|
+
@album.updated_at.to_i.should be_within(2).of(Time.now.to_i)
|
550
|
+
end
|
551
|
+
|
552
|
+
cspecify "should update the timestamp column for many_to_one associated records when the record is updated or destroyed", [:do, :sqlite], [:jdbc, :sqlite], [:swift] do
|
553
|
+
Album.many_to_one :artist
|
554
|
+
Album.plugin :touch, :associations=>:artist
|
555
|
+
@artist.updated_at.should == nil
|
556
|
+
@album.update(:name=>'B')
|
557
|
+
ua = @artist.reload.updated_at
|
558
|
+
if ua.is_a?(Time)
|
559
|
+
ua.to_i.should be_within(60).of(Time.now.to_i)
|
560
|
+
else
|
561
|
+
(DateTime.now - ua).should be_within(60.0/86400).of(0)
|
562
|
+
end
|
563
|
+
@artist.update(:updated_at=>nil)
|
564
|
+
@album.destroy
|
565
|
+
if ua.is_a?(Time)
|
566
|
+
ua.to_i.should be_within(60).of(Time.now.to_i)
|
567
|
+
else
|
568
|
+
(DateTime.now - ua).should be_within(60.0/86400).of(0)
|
569
|
+
end
|
570
|
+
end
|
571
|
+
|
572
|
+
cspecify "should update the timestamp column for one_to_many associated records when the record is updated", [:do, :sqlite], [:jdbc, :sqlite], [:swift] do
|
573
|
+
Artist.one_to_many :albums
|
574
|
+
Artist.plugin :touch, :associations=>:albums
|
575
|
+
@album.updated_at.should == nil
|
576
|
+
@artist.update(:name=>'B')
|
577
|
+
ua = @album.reload.updated_at
|
578
|
+
if ua.is_a?(Time)
|
579
|
+
ua.to_i.should be_within(60).of(Time.now.to_i)
|
580
|
+
else
|
581
|
+
(DateTime.now - ua).should be_within(60.0/86400).of(0)
|
582
|
+
end
|
583
|
+
end
|
584
|
+
|
585
|
+
cspecify "should update the timestamp column for many_to_many associated records when the record is updated", [:do, :sqlite], [:jdbc, :sqlite], [:swift] do
|
586
|
+
Artist.many_to_many :albums
|
587
|
+
Artist.plugin :touch, :associations=>:albums
|
588
|
+
@artist.add_album(@album)
|
589
|
+
@album.updated_at.should == nil
|
590
|
+
@artist.update(:name=>'B')
|
591
|
+
ua = @album.reload.updated_at
|
592
|
+
if ua.is_a?(Time)
|
593
|
+
ua.to_i.should be_within(60).of(Time.now.to_i)
|
594
|
+
else
|
595
|
+
(DateTime.now - ua).should be_within(60.0/86400).of(0)
|
596
|
+
end
|
597
|
+
end
|
598
|
+
end
|
599
|
+
|
600
|
+
describe "Serialization plugin" do
|
601
|
+
before do
|
602
|
+
@db = DB
|
603
|
+
@db.create_table!(:items) do
|
604
|
+
primary_key :id
|
605
|
+
String :stuff
|
606
|
+
end
|
607
|
+
class ::Item < Sequel::Model(@db)
|
608
|
+
plugin :serialization, :marshal, :stuff
|
609
|
+
end
|
610
|
+
end
|
611
|
+
after do
|
612
|
+
@db.drop_table?(:items)
|
613
|
+
Object.send(:remove_const, :Item)
|
614
|
+
end
|
615
|
+
|
616
|
+
specify "should serialize and deserialize items as needed" do
|
617
|
+
i = Item.create(:stuff=>{:a=>1})
|
618
|
+
i.stuff.should == {:a=>1}
|
619
|
+
i.stuff = [1, 2, 3]
|
620
|
+
i.save
|
621
|
+
Item.first.stuff.should == [1, 2, 3]
|
622
|
+
i.update(:stuff=>Item.new)
|
623
|
+
Item.first.stuff.should == Item.new
|
624
|
+
end
|
625
|
+
end
|
626
|
+
|
627
|
+
describe "OptimisticLocking plugin" do
|
628
|
+
before(:all) do
|
629
|
+
@db = DB
|
630
|
+
@db.create_table!(:people) do
|
631
|
+
primary_key :id
|
632
|
+
String :name
|
633
|
+
Integer :lock_version, :default=>0, :null=>false
|
634
|
+
end
|
635
|
+
class ::Person < Sequel::Model(@db)
|
636
|
+
plugin :optimistic_locking
|
637
|
+
end
|
638
|
+
end
|
639
|
+
before do
|
640
|
+
@db[:people].delete
|
641
|
+
@p = Person.create(:name=>'John')
|
642
|
+
end
|
643
|
+
after(:all) do
|
644
|
+
@db.drop_table?(:people)
|
645
|
+
Object.send(:remove_const, :Person)
|
646
|
+
end
|
647
|
+
|
648
|
+
specify "should raise an error when updating a stale record" do
|
649
|
+
p1 = Person[@p.id]
|
650
|
+
p2 = Person[@p.id]
|
651
|
+
p1.update(:name=>'Jim')
|
652
|
+
proc{p2.update(:name=>'Bob')}.should raise_error(Sequel::Plugins::OptimisticLocking::Error)
|
653
|
+
end
|
654
|
+
|
655
|
+
specify "should raise an error when destroying a stale record" do
|
656
|
+
p1 = Person[@p.id]
|
657
|
+
p2 = Person[@p.id]
|
658
|
+
p1.update(:name=>'Jim')
|
659
|
+
proc{p2.destroy}.should raise_error(Sequel::Plugins::OptimisticLocking::Error)
|
660
|
+
end
|
661
|
+
|
662
|
+
specify "should not raise an error when updating the same record twice" do
|
663
|
+
p1 = Person[@p.id]
|
664
|
+
p1.update(:name=>'Jim')
|
665
|
+
proc{p1.update(:name=>'Bob')}.should_not raise_error
|
666
|
+
end
|
667
|
+
end
|
668
|
+
|
669
|
+
describe "Composition plugin" do
|
670
|
+
before do
|
671
|
+
@db = DB
|
672
|
+
@db.create_table!(:events) do
|
673
|
+
primary_key :id
|
674
|
+
Integer :year
|
675
|
+
Integer :month
|
676
|
+
Integer :day
|
677
|
+
end
|
678
|
+
class ::Event < Sequel::Model(@db)
|
679
|
+
plugin :composition
|
680
|
+
composition :date, :composer=>proc{Date.new(year, month, day) if year && month && day}, :decomposer=>(proc do
|
681
|
+
if date
|
682
|
+
self.year = date.year
|
683
|
+
self.month = date.month
|
684
|
+
self.day = date.day
|
685
|
+
else
|
686
|
+
self.year, self.month, self.day = nil
|
687
|
+
end
|
688
|
+
end)
|
689
|
+
composition :date, :mapping=>[:year, :month, :day]
|
690
|
+
end
|
691
|
+
@e1 = Event.create(:year=>2010, :month=>2, :day=>15)
|
692
|
+
@e2 = Event.create(:year=>nil)
|
693
|
+
end
|
694
|
+
after do
|
695
|
+
@db.drop_table?(:events)
|
696
|
+
Object.send(:remove_const, :Event)
|
697
|
+
end
|
698
|
+
|
699
|
+
specify "should return a composed object if the underlying columns have a value" do
|
700
|
+
@e1.date.should == Date.civil(2010, 2, 15)
|
701
|
+
@e2.date.should == nil
|
702
|
+
end
|
703
|
+
|
704
|
+
specify "should decompose the object when saving the record" do
|
705
|
+
@e1.date = Date.civil(2009, 1, 2)
|
706
|
+
@e1.save
|
707
|
+
@e1.year.should == 2009
|
708
|
+
@e1.month.should == 1
|
709
|
+
@e1.day.should == 2
|
710
|
+
end
|
711
|
+
|
712
|
+
specify "should save all columns when saving changes" do
|
713
|
+
@e2.date = Date.civil(2009, 10, 2)
|
714
|
+
@e2.save_changes
|
715
|
+
@e2.reload
|
716
|
+
@e2.year.should == 2009
|
717
|
+
@e2.month.should == 10
|
718
|
+
@e2.day.should == 2
|
719
|
+
end
|
720
|
+
end
|
721
|
+
|
722
|
+
describe "RcteTree Plugin" do
|
723
|
+
shared_examples_for "rcte tree plugin" do
|
724
|
+
specify "should load all standard (not-CTE) methods correctly" do
|
725
|
+
@a.children.should == [@aa, @ab]
|
726
|
+
@b.children.should == [@ba, @bb]
|
727
|
+
@aa.children.should == [@aaa, @aab]
|
728
|
+
@ab.children.should == [@aba, @abb]
|
729
|
+
@ba.children.should == []
|
730
|
+
@bb.children.should == []
|
731
|
+
@aaa.children.should == [@aaaa, @aaab]
|
732
|
+
@aab.children.should == []
|
733
|
+
@aba.children.should == []
|
734
|
+
@abb.children.should == []
|
735
|
+
@aaaa.children.should == [@aaaaa]
|
736
|
+
@aaab.children.should == []
|
737
|
+
@aaaaa.children.should == []
|
738
|
+
|
739
|
+
@a.parent.should == nil
|
740
|
+
@b.parent.should == nil
|
741
|
+
@aa.parent.should == @a
|
742
|
+
@ab.parent.should == @a
|
743
|
+
@ba.parent.should == @b
|
744
|
+
@bb.parent.should == @b
|
745
|
+
@aaa.parent.should == @aa
|
746
|
+
@aab.parent.should == @aa
|
747
|
+
@aba.parent.should == @ab
|
748
|
+
@abb.parent.should == @ab
|
749
|
+
@aaaa.parent.should == @aaa
|
750
|
+
@aaab.parent.should == @aaa
|
751
|
+
@aaaaa.parent.should == @aaaa
|
752
|
+
end
|
753
|
+
|
754
|
+
specify "should load all ancestors and descendants lazily for a given instance" do
|
755
|
+
@a.descendants.should == [@aa, @aaa, @aaaa, @aaaaa, @aaab, @aab, @ab, @aba, @abb]
|
756
|
+
@b.descendants.should == [@ba, @bb]
|
757
|
+
@aa.descendants.should == [@aaa, @aaaa, @aaaaa, @aaab, @aab]
|
758
|
+
@ab.descendants.should == [@aba, @abb]
|
759
|
+
@ba.descendants.should == []
|
760
|
+
@bb.descendants.should == []
|
761
|
+
@aaa.descendants.should == [@aaaa, @aaaaa, @aaab]
|
762
|
+
@aab.descendants.should == []
|
763
|
+
@aba.descendants.should == []
|
764
|
+
@abb.descendants.should == []
|
765
|
+
@aaaa.descendants.should == [@aaaaa]
|
766
|
+
@aaab.descendants.should == []
|
767
|
+
@aaaaa.descendants.should == []
|
768
|
+
|
769
|
+
@a.ancestors.should == []
|
770
|
+
@b.ancestors.should == []
|
771
|
+
@aa.ancestors.should == [@a]
|
772
|
+
@ab.ancestors.should == [@a]
|
773
|
+
@ba.ancestors.should == [@b]
|
774
|
+
@bb.ancestors.should == [@b]
|
775
|
+
@aaa.ancestors.should == [@a, @aa]
|
776
|
+
@aab.ancestors.should == [@a, @aa]
|
777
|
+
@aba.ancestors.should == [@a, @ab]
|
778
|
+
@abb.ancestors.should == [@a, @ab]
|
779
|
+
@aaaa.ancestors.should == [@a, @aa, @aaa]
|
780
|
+
@aaab.ancestors.should == [@a, @aa, @aaa]
|
781
|
+
@aaaaa.ancestors.should == [@a, @aa, @aaa, @aaaa]
|
782
|
+
end
|
783
|
+
|
784
|
+
specify "should eagerly load all ancestors and descendants for a dataset" do
|
785
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:ancestors, :descendants).all
|
786
|
+
nodes.should == [@a, @aaa, @b]
|
787
|
+
nodes[0].descendants.should == [@aa, @aaa, @aaaa, @aaaaa, @aaab, @aab, @ab, @aba, @abb]
|
788
|
+
nodes[1].descendants.should == [@aaaa, @aaaaa, @aaab]
|
789
|
+
nodes[2].descendants.should == [@ba, @bb]
|
790
|
+
nodes[0].ancestors.should == []
|
791
|
+
nodes[1].ancestors.should == [@a, @aa]
|
792
|
+
nodes[2].ancestors.should == []
|
793
|
+
end
|
794
|
+
|
795
|
+
specify "should eagerly load descendants to a given level" do
|
796
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:descendants=>1).all
|
797
|
+
nodes.should == [@a, @aaa, @b]
|
798
|
+
nodes[0].descendants.should == [@aa, @ab]
|
799
|
+
nodes[1].descendants.should == [@aaaa, @aaab]
|
800
|
+
nodes[2].descendants.should == [@ba, @bb]
|
801
|
+
|
802
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:descendants=>2).all
|
803
|
+
nodes.should == [@a, @aaa, @b]
|
804
|
+
nodes[0].descendants.should == [@aa, @aaa, @aab, @ab, @aba, @abb]
|
805
|
+
nodes[1].descendants.should == [@aaaa, @aaaaa, @aaab]
|
806
|
+
nodes[2].descendants.should == [@ba, @bb]
|
807
|
+
end
|
808
|
+
|
809
|
+
specify "should populate all :children associations when eagerly loading descendants for a dataset" do
|
810
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:descendants).all
|
811
|
+
nodes[0].associations[:children].should == [@aa, @ab]
|
812
|
+
nodes[1].associations[:children].should == [@aaaa, @aaab]
|
813
|
+
nodes[2].associations[:children].should == [@ba, @bb]
|
814
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaa, @aab], [@aba, @abb]]
|
815
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaaaa], []]
|
816
|
+
nodes[2].associations[:children].map{|c1| c1.associations[:children]}.should == [[], []]
|
817
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[[@aaaa, @aaab], []], [[], []]]
|
818
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[[]], []]
|
819
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children].map{|c3| c3.associations[:children]}}}.should == [[[[@aaaaa], []], []], [[], []]]
|
820
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children].map{|c3| c3.associations[:children].map{|c4| c4.associations[:children]}}}}.should == [[[[[]], []], []], [[], []]]
|
821
|
+
end
|
822
|
+
|
823
|
+
specify "should not populate :children associations for final level when loading descendants to a given level" do
|
824
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:descendants=>1).all
|
825
|
+
nodes[0].associations[:children].should == [@aa, @ab]
|
826
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children]}.should == [nil, nil]
|
827
|
+
nodes[1].associations[:children].should == [@aaaa, @aaab]
|
828
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children]}.should == [nil, nil]
|
829
|
+
nodes[2].associations[:children].should == [@ba, @bb]
|
830
|
+
nodes[2].associations[:children].map{|c1| c1.associations[:children]}.should == [nil, nil]
|
831
|
+
|
832
|
+
nodes[0].associations[:children].map{|c1| c1.children}.should == [[@aaa, @aab], [@aba, @abb]]
|
833
|
+
nodes[1].associations[:children].map{|c1| c1.children}.should == [[@aaaaa], []]
|
834
|
+
nodes[2].associations[:children].map{|c1| c1.children}.should == [[], []]
|
835
|
+
|
836
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @b.pk, @aaa.pk]).order(:name).eager(:descendants=>2).all
|
837
|
+
nodes[0].associations[:children].should == [@aa, @ab]
|
838
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaa, @aab], [@aba, @abb]]
|
839
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[[@aaaa, @aaab], nil], [nil, nil]]
|
840
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| (cc2 = c2.associations[:children]) ? cc2.map{|c3| c3.associations[:children]} : nil}}.should == [[[[@aaaaa], []], nil], [nil, nil]]
|
841
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| (cc2 = c2.associations[:children]) ? cc2.map{|c3| (cc3 = c3.associations[:children]) ? cc3.map{|c4| c4.associations[:children]} : nil} : nil}}.should == [[[[nil], []], nil], [nil, nil]]
|
842
|
+
|
843
|
+
nodes[1].associations[:children].should == [@aaaa, @aaab]
|
844
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaaaa], []]
|
845
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[nil], []]
|
846
|
+
|
847
|
+
nodes[2].associations[:children].should == [@ba, @bb]
|
848
|
+
nodes[2].associations[:children].map{|c1| c1.associations[:children]}.should == [[], []]
|
849
|
+
|
850
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.children}}.should == [[[@aaaa, @aaab], []], [[], []]]
|
851
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.children.map{|c3| c3.children}}}.should == [[[[@aaaaa], []], []], [[], []]]
|
852
|
+
nodes[0].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.children.map{|c3| c3.children.map{|c4| c4.children}}}}.should == [[[[[]], []], []], [[], []]]
|
853
|
+
nodes[1].associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.children}}.should == [[[]], []]
|
854
|
+
end
|
855
|
+
|
856
|
+
specify "should populate all :children associations when lazily loading descendants" do
|
857
|
+
@a.descendants
|
858
|
+
@a.associations[:children].should == [@aa, @ab]
|
859
|
+
@a.associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaa, @aab], [@aba, @abb]]
|
860
|
+
@a.associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[[@aaaa, @aaab], []], [[], []]]
|
861
|
+
@a.associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children].map{|c3| c3.associations[:children]}}}.should == [[[[@aaaaa], []], []], [[], []]]
|
862
|
+
@a.associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children].map{|c3| c3.associations[:children].map{|c4| c4.associations[:children]}}}}.should == [[[[[]], []], []], [[], []]]
|
863
|
+
|
864
|
+
@b.descendants
|
865
|
+
@b.associations[:children].should == [@ba, @bb]
|
866
|
+
@b.associations[:children].map{|c1| c1.associations[:children]}.should == [[], []]
|
867
|
+
|
868
|
+
@aaa.descendants
|
869
|
+
@aaa.associations[:children].map{|c1| c1.associations[:children]}.should == [[@aaaaa], []]
|
870
|
+
@aaa.associations[:children].map{|c1| c1.associations[:children].map{|c2| c2.associations[:children]}}.should == [[[]], []]
|
871
|
+
end
|
872
|
+
|
873
|
+
specify "should populate all :parent associations when eagerly loading ancestors for a dataset" do
|
874
|
+
nodes = @Node.filter(@Node.primary_key=>[@a.pk, @ba.pk, @aaa.pk, @aaaaa.pk]).order(:name).eager(:ancestors).all
|
875
|
+
nodes[0].associations.fetch(:parent, 1).should == nil
|
876
|
+
nodes[1].associations[:parent].should == @aa
|
877
|
+
nodes[1].associations[:parent].associations[:parent].should == @a
|
878
|
+
nodes[1].associations[:parent].associations[:parent].associations.fetch(:parent, 1).should == nil
|
879
|
+
nodes[2].associations[:parent].should == @aaaa
|
880
|
+
nodes[2].associations[:parent].associations[:parent].should == @aaa
|
881
|
+
nodes[2].associations[:parent].associations[:parent].associations[:parent].should == @aa
|
882
|
+
nodes[2].associations[:parent].associations[:parent].associations[:parent].associations[:parent].should == @a
|
883
|
+
nodes[2].associations[:parent].associations[:parent].associations[:parent].associations[:parent].associations.fetch(:parent, 1).should == nil
|
884
|
+
nodes[3].associations[:parent].should == @b
|
885
|
+
nodes[3].associations[:parent].associations.fetch(:parent, 1).should == nil
|
886
|
+
end
|
887
|
+
|
888
|
+
specify "should populate all :parent associations when lazily loading ancestors" do
|
889
|
+
@a.reload
|
890
|
+
@a.ancestors
|
891
|
+
@a.associations[:parent].should == nil
|
892
|
+
|
893
|
+
@ba.reload
|
894
|
+
@ba.ancestors
|
895
|
+
@ba.associations[:parent].should == @b
|
896
|
+
@ba.associations[:parent].associations.fetch(:parent, 1).should == nil
|
897
|
+
|
898
|
+
@ba.reload
|
899
|
+
@aaaaa.ancestors
|
900
|
+
@aaaaa.associations[:parent].should == @aaaa
|
901
|
+
@aaaaa.associations[:parent].associations[:parent].should == @aaa
|
902
|
+
@aaaaa.associations[:parent].associations[:parent].associations[:parent].should == @aa
|
903
|
+
@aaaaa.associations[:parent].associations[:parent].associations[:parent].associations[:parent].should == @a
|
904
|
+
@aaaaa.associations[:parent].associations[:parent].associations[:parent].associations[:parent].associations.fetch(:parent, 1).should == nil
|
905
|
+
end
|
906
|
+
end
|
907
|
+
|
908
|
+
before do
|
909
|
+
@nodes.each{|n| n.associations.clear}
|
910
|
+
end
|
911
|
+
|
912
|
+
describe "with single key" do
|
913
|
+
before(:all) do
|
914
|
+
@db = DB
|
915
|
+
@db.create_table!(:nodes) do
|
916
|
+
primary_key :id
|
917
|
+
Integer :parent_id
|
918
|
+
String :name
|
919
|
+
end
|
920
|
+
@Node = Class.new(Sequel::Model(@db[:nodes]))
|
921
|
+
@Node.plugin :rcte_tree, :order=>:name
|
922
|
+
@nodes = []
|
923
|
+
@nodes << @a = @Node.create(:name=>'a')
|
924
|
+
@nodes << @b = @Node.create(:name=>'b')
|
925
|
+
@nodes << @aa = @Node.create(:name=>'aa', :parent=>@a)
|
926
|
+
@nodes << @ab = @Node.create(:name=>'ab', :parent=>@a)
|
927
|
+
@nodes << @ba = @Node.create(:name=>'ba', :parent=>@b)
|
928
|
+
@nodes << @bb = @Node.create(:name=>'bb', :parent=>@b)
|
929
|
+
@nodes << @aaa = @Node.create(:name=>'aaa', :parent=>@aa)
|
930
|
+
@nodes << @aab = @Node.create(:name=>'aab', :parent=>@aa)
|
931
|
+
@nodes << @aba = @Node.create(:name=>'aba', :parent=>@ab)
|
932
|
+
@nodes << @abb = @Node.create(:name=>'abb', :parent=>@ab)
|
933
|
+
@nodes << @aaaa = @Node.create(:name=>'aaaa', :parent=>@aaa)
|
934
|
+
@nodes << @aaab = @Node.create(:name=>'aaab', :parent=>@aaa)
|
935
|
+
@nodes << @aaaaa = @Node.create(:name=>'aaaaa', :parent=>@aaaa)
|
936
|
+
end
|
937
|
+
after(:all) do
|
938
|
+
@db.drop_table? :nodes
|
939
|
+
end
|
940
|
+
|
941
|
+
it_should_behave_like "rcte tree plugin"
|
942
|
+
|
943
|
+
specify "should work correctly if not all columns are selected" do
|
944
|
+
c = Class.new(Sequel::Model(@db[:nodes]))
|
945
|
+
c.plugin :rcte_tree, :order=>:name
|
946
|
+
c.plugin :lazy_attributes, :name
|
947
|
+
c[:name=>'aaaa'].descendants.should == [c.load(:parent_id=>11, :id=>13)]
|
948
|
+
c[:name=>'aa'].ancestors.should == [c.load(:parent_id=>nil, :id=>1)]
|
949
|
+
nodes = c.filter(:id=>[@a.id, @b.id, @aaa.id]).order(:name).eager(:ancestors, :descendants).all
|
950
|
+
nodes.should == [{:parent_id=>nil, :id=>1}, {:parent_id=>3, :id=>7}, {:parent_id=>nil, :id=>2}].map{|x| c.load(x)}
|
951
|
+
nodes[2].descendants.should == [{:parent_id=>2, :id=>5}, {:parent_id=>2, :id=>6}].map{|x| c.load(x)}
|
952
|
+
nodes[1].ancestors.should == [{:parent_id=>nil, :id=>1}, {:parent_id=>1, :id=>3}].map{|x| c.load(x)}
|
953
|
+
end
|
954
|
+
end
|
955
|
+
|
956
|
+
describe "with composite keys" do
|
957
|
+
before(:all) do
|
958
|
+
@db = DB
|
959
|
+
@db.create_table!(:nodes) do
|
960
|
+
Integer :id
|
961
|
+
Integer :id2
|
962
|
+
Integer :parent_id
|
963
|
+
Integer :parent_id2
|
964
|
+
String :name
|
965
|
+
primary_key [:id, :id2]
|
966
|
+
end
|
967
|
+
@Node = Class.new(Sequel::Model(@db[:nodes]))
|
968
|
+
@Node.plugin :rcte_tree, :order=>:name, :key=>[:parent_id, :parent_id2]
|
969
|
+
@Node.unrestrict_primary_key
|
970
|
+
@nodes = []
|
971
|
+
@nodes << @a = @Node.create(:id=>1, :id2=>1, :name=>'a')
|
972
|
+
@nodes << @b = @Node.create(:id=>1, :id2=>2, :name=>'b')
|
973
|
+
@nodes << @aa = @Node.create(:id=>2, :id2=>1, :name=>'aa', :parent=>@a)
|
974
|
+
@nodes << @ab = @Node.create(:id=>2, :id2=>2, :name=>'ab', :parent=>@a)
|
975
|
+
@nodes << @ba = @Node.create(:id=>3, :id2=>1, :name=>'ba', :parent=>@b)
|
976
|
+
@nodes << @bb = @Node.create(:id=>3, :id2=>2, :name=>'bb', :parent=>@b)
|
977
|
+
@nodes << @aaa = @Node.create(:id=>3, :id2=>3, :name=>'aaa', :parent=>@aa)
|
978
|
+
@nodes << @aab = @Node.create(:id=>1, :id2=>3, :name=>'aab', :parent=>@aa)
|
979
|
+
@nodes << @aba = @Node.create(:id=>2, :id2=>3, :name=>'aba', :parent=>@ab)
|
980
|
+
@nodes << @abb = @Node.create(:id=>4, :id2=>1, :name=>'abb', :parent=>@ab)
|
981
|
+
@nodes << @aaaa = @Node.create(:id=>1, :id2=>4, :name=>'aaaa', :parent=>@aaa)
|
982
|
+
@nodes << @aaab = @Node.create(:id=>2, :id2=>4, :name=>'aaab', :parent=>@aaa)
|
983
|
+
@nodes << @aaaaa = @Node.create(:id=>3, :id2=>4, :name=>'aaaaa', :parent=>@aaaa)
|
984
|
+
end
|
985
|
+
after(:all) do
|
986
|
+
@db.drop_table? :nodes
|
987
|
+
end
|
988
|
+
|
989
|
+
it_should_behave_like "rcte tree plugin"
|
990
|
+
end
|
991
|
+
end if DB.dataset.supports_cte? and !Sequel.guarded?(:db2)
|
992
|
+
|
993
|
+
describe "Instance Filters plugin" do
|
994
|
+
before(:all) do
|
995
|
+
@db = DB
|
996
|
+
@db.create_table!(:items) do
|
997
|
+
primary_key :id
|
998
|
+
String :name
|
999
|
+
Integer :cost
|
1000
|
+
Integer :number
|
1001
|
+
end
|
1002
|
+
class ::Item < Sequel::Model(@db)
|
1003
|
+
plugin :instance_filters
|
1004
|
+
end
|
1005
|
+
end
|
1006
|
+
before do
|
1007
|
+
@db[:items].delete
|
1008
|
+
@i = Item.create(:name=>'J', :number=>1, :cost=>2)
|
1009
|
+
@i.instance_filter(:number=>1)
|
1010
|
+
@i.set(:name=>'K')
|
1011
|
+
end
|
1012
|
+
after(:all) do
|
1013
|
+
@db.drop_table?(:items)
|
1014
|
+
Object.send(:remove_const, :Item)
|
1015
|
+
end
|
1016
|
+
|
1017
|
+
specify "should not raise an error if saving only updates one row" do
|
1018
|
+
@i.save
|
1019
|
+
@i.refresh.name.should == 'K'
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
specify "should raise error if saving doesn't update a row" do
|
1023
|
+
@i.this.update(:number=>2)
|
1024
|
+
proc{@i.save}.should raise_error(Sequel::Error)
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
specify "should apply all instance filters" do
|
1028
|
+
@i.instance_filter{cost <= 2}
|
1029
|
+
@i.this.update(:number=>2)
|
1030
|
+
proc{@i.save}.should raise_error(Sequel::Error)
|
1031
|
+
@i.this.update(:number=>1, :cost=>3)
|
1032
|
+
proc{@i.save}.should raise_error(Sequel::Error)
|
1033
|
+
@i.this.update(:cost=>2)
|
1034
|
+
@i.save
|
1035
|
+
@i.refresh.name.should == 'K'
|
1036
|
+
end
|
1037
|
+
|
1038
|
+
specify "should clear instance filters after successful save" do
|
1039
|
+
@i.save
|
1040
|
+
@i.this.update(:number=>2)
|
1041
|
+
@i.update(:name=>'L')
|
1042
|
+
@i.refresh.name.should == 'L'
|
1043
|
+
end
|
1044
|
+
|
1045
|
+
specify "should not raise an error if deleting only deletes one row" do
|
1046
|
+
@i.destroy
|
1047
|
+
proc{@i.refresh}.should raise_error(Sequel::Error, 'Record not found')
|
1048
|
+
end
|
1049
|
+
|
1050
|
+
specify "should raise error if destroying doesn't delete a row" do
|
1051
|
+
@i.this.update(:number=>2)
|
1052
|
+
proc{@i.destroy}.should raise_error(Sequel::Error)
|
1053
|
+
end
|
1054
|
+
end
|
1055
|
+
|
1056
|
+
describe "UpdatePrimaryKey plugin" do
|
1057
|
+
before(:all) do
|
1058
|
+
@db = DB
|
1059
|
+
@db.create_table!(:t) do
|
1060
|
+
Integer :a, :primary_key=>true
|
1061
|
+
Integer :b
|
1062
|
+
end
|
1063
|
+
@ds = @db[:t]
|
1064
|
+
@c = Class.new(Sequel::Model(@ds))
|
1065
|
+
@c.set_primary_key(:a)
|
1066
|
+
@c.unrestrict_primary_key
|
1067
|
+
@c.plugin :update_primary_key
|
1068
|
+
end
|
1069
|
+
before do
|
1070
|
+
@ds.delete
|
1071
|
+
@ds.insert(:a=>1, :b=>3)
|
1072
|
+
end
|
1073
|
+
after(:all) do
|
1074
|
+
@db.drop_table?(:t)
|
1075
|
+
end
|
1076
|
+
|
1077
|
+
specify "should handle regular updates" do
|
1078
|
+
@c.first.update(:b=>4)
|
1079
|
+
@db[:t].all.should == [{:a=>1, :b=>4}]
|
1080
|
+
@c.first.set(:b=>5).save
|
1081
|
+
@db[:t].all.should == [{:a=>1, :b=>5}]
|
1082
|
+
@c.first.set(:b=>6).save(:columns=>:b)
|
1083
|
+
@db[:t].all.should == [{:a=>1, :b=>6}]
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
specify "should handle updating the primary key field with another field" do
|
1087
|
+
@c.first.update(:a=>2, :b=>4)
|
1088
|
+
@db[:t].all.should == [{:a=>2, :b=>4}]
|
1089
|
+
end
|
1090
|
+
|
1091
|
+
specify "should handle updating just the primary key field when saving changes" do
|
1092
|
+
@c.first.update(:a=>2)
|
1093
|
+
@db[:t].all.should == [{:a=>2, :b=>3}]
|
1094
|
+
@c.first.set(:a=>3).save(:columns=>:a)
|
1095
|
+
@db[:t].all.should == [{:a=>3, :b=>3}]
|
1096
|
+
end
|
1097
|
+
|
1098
|
+
specify "should handle saving after modifying the primary key field with another field" do
|
1099
|
+
@c.first.set(:a=>2, :b=>4).save
|
1100
|
+
@db[:t].all.should == [{:a=>2, :b=>4}]
|
1101
|
+
end
|
1102
|
+
|
1103
|
+
specify "should handle saving after modifying just the primary key field" do
|
1104
|
+
@c.first.set(:a=>2).save
|
1105
|
+
@db[:t].all.should == [{:a=>2, :b=>3}]
|
1106
|
+
end
|
1107
|
+
|
1108
|
+
specify "should handle saving after updating the primary key" do
|
1109
|
+
@c.first.update(:a=>2).update(:b=>4).set(:b=>5).save
|
1110
|
+
@db[:t].all.should == [{:a=>2, :b=>5}]
|
1111
|
+
end
|
1112
|
+
end
|
1113
|
+
|
1114
|
+
describe "AssociationPks plugin" do
|
1115
|
+
before(:all) do
|
1116
|
+
@db = DB
|
1117
|
+
@db.drop_table?(:albums_tags, :albums_vocalists, :vocalists_instruments, :vocalists_hits, :hits, :instruments, :vocalists, :tags, :albums, :artists)
|
1118
|
+
@db.create_table(:artists) do
|
1119
|
+
primary_key :id
|
1120
|
+
String :name
|
1121
|
+
end
|
1122
|
+
@db.create_table(:albums) do
|
1123
|
+
primary_key :id
|
1124
|
+
String :name
|
1125
|
+
foreign_key :artist_id, :artists
|
1126
|
+
end
|
1127
|
+
@db.create_table(:tags) do
|
1128
|
+
primary_key :id
|
1129
|
+
String :name
|
1130
|
+
end
|
1131
|
+
@db.create_table(:albums_tags) do
|
1132
|
+
foreign_key :album_id, :albums
|
1133
|
+
foreign_key :tag_id, :tags
|
1134
|
+
end
|
1135
|
+
@db.create_table(:vocalists) do
|
1136
|
+
String :first
|
1137
|
+
String :last
|
1138
|
+
primary_key [:first, :last]
|
1139
|
+
foreign_key :album_id, :albums
|
1140
|
+
end
|
1141
|
+
@db.create_table(:albums_vocalists) do
|
1142
|
+
foreign_key :album_id, :albums
|
1143
|
+
String :first
|
1144
|
+
String :last
|
1145
|
+
foreign_key [:first, :last], :vocalists
|
1146
|
+
end
|
1147
|
+
@db.create_table(:instruments) do
|
1148
|
+
primary_key :id
|
1149
|
+
String :first
|
1150
|
+
String :last
|
1151
|
+
foreign_key [:first, :last], :vocalists
|
1152
|
+
end
|
1153
|
+
@db.create_table(:vocalists_instruments) do
|
1154
|
+
String :first
|
1155
|
+
String :last
|
1156
|
+
foreign_key [:first, :last], :vocalists
|
1157
|
+
foreign_key :instrument_id, :instruments
|
1158
|
+
end
|
1159
|
+
@db.create_table(:hits) do
|
1160
|
+
Integer :year
|
1161
|
+
Integer :week
|
1162
|
+
primary_key [:year, :week]
|
1163
|
+
String :first
|
1164
|
+
String :last
|
1165
|
+
foreign_key [:first, :last], :vocalists
|
1166
|
+
end
|
1167
|
+
@db.create_table(:vocalists_hits) do
|
1168
|
+
String :first
|
1169
|
+
String :last
|
1170
|
+
foreign_key [:first, :last], :vocalists
|
1171
|
+
Integer :year
|
1172
|
+
Integer :week
|
1173
|
+
foreign_key [:year, :week], :hits
|
1174
|
+
end
|
1175
|
+
class ::Artist < Sequel::Model
|
1176
|
+
plugin :association_pks
|
1177
|
+
one_to_many :albums, :order=>:id
|
1178
|
+
end
|
1179
|
+
class ::Album < Sequel::Model
|
1180
|
+
plugin :association_pks
|
1181
|
+
many_to_many :tags, :order=>:id
|
1182
|
+
end
|
1183
|
+
class ::Tag < Sequel::Model
|
1184
|
+
end
|
1185
|
+
class ::Vocalist < Sequel::Model
|
1186
|
+
set_primary_key [:first, :last]
|
1187
|
+
plugin :association_pks
|
1188
|
+
end
|
1189
|
+
class ::Instrument < Sequel::Model
|
1190
|
+
plugin :association_pks
|
1191
|
+
end
|
1192
|
+
class ::Hit < Sequel::Model
|
1193
|
+
set_primary_key [:year, :week]
|
1194
|
+
end
|
1195
|
+
end
|
1196
|
+
before do
|
1197
|
+
[:albums_tags, :albums_vocalists, :vocalists_instruments, :vocalists_hits, :hits, :instruments, :vocalists, :tags, :albums, :artists].each{|t| @db[t].delete}
|
1198
|
+
@ar1 =@db[:artists].insert(:name=>'YJM')
|
1199
|
+
@ar2 =@db[:artists].insert(:name=>'AS')
|
1200
|
+
@al1 =@db[:albums].insert(:name=>'RF', :artist_id=>@ar1)
|
1201
|
+
@al2 =@db[:albums].insert(:name=>'MO', :artist_id=>@ar1)
|
1202
|
+
@al3 =@db[:albums].insert(:name=>'T', :artist_id=>@ar1)
|
1203
|
+
@t1 = @db[:tags].insert(:name=>'A')
|
1204
|
+
@t2 = @db[:tags].insert(:name=>'B')
|
1205
|
+
@t3 = @db[:tags].insert(:name=>'C')
|
1206
|
+
{@al1=>[@t1, @t2, @t3], @al2=>[@t2]}.each do |aid, tids|
|
1207
|
+
tids.each{|tid| @db[:albums_tags].insert([aid, tid])}
|
1208
|
+
end
|
1209
|
+
@v1 = ['F1', 'L1']
|
1210
|
+
@v2 = ['F2', 'L2']
|
1211
|
+
@v3 = ['F3', 'L3']
|
1212
|
+
@db[:vocalists].insert(@v1 + [@al1])
|
1213
|
+
@db[:vocalists].insert(@v2 + [@al1])
|
1214
|
+
@db[:vocalists].insert(@v3 + [@al1])
|
1215
|
+
@i1 = @db[:instruments].insert([:first, :last], @v1)
|
1216
|
+
@i2 = @db[:instruments].insert([:first, :last], @v1)
|
1217
|
+
@i3 = @db[:instruments].insert([:first, :last], @v1)
|
1218
|
+
@h1 = [1997, 1]
|
1219
|
+
@h2 = [1997, 2]
|
1220
|
+
@h3 = [1997, 3]
|
1221
|
+
@db[:hits].insert(@h1 + @v1)
|
1222
|
+
@db[:hits].insert(@h2 + @v1)
|
1223
|
+
@db[:hits].insert(@h3 + @v1)
|
1224
|
+
{@al1=>[@v1, @v2, @v3], @al2=>[@v2]}.each do |aid, vids|
|
1225
|
+
vids.each{|vid| @db[:albums_vocalists].insert([aid] + vid)}
|
1226
|
+
end
|
1227
|
+
{@v1=>[@i1, @i2, @i3], @v2=>[@i2]}.each do |vid, iids|
|
1228
|
+
iids.each{|iid| @db[:vocalists_instruments].insert(vid + [iid])}
|
1229
|
+
end
|
1230
|
+
{@v1=>[@h1, @h2, @h3], @v2=>[@h2]}.each do |vid, hids|
|
1231
|
+
hids.each{|hid| @db[:vocalists_hits].insert(vid + hid)}
|
1232
|
+
end
|
1233
|
+
end
|
1234
|
+
after(:all) do
|
1235
|
+
@db.drop_table? :albums_tags, :albums_vocalists, :vocalists_instruments, :vocalists_hits, :hits, :instruments, :vocalists, :tags, :albums, :artists
|
1236
|
+
[:Artist, :Album, :Tag, :Vocalist, :Instrument, :Hit].each{|s| Object.send(:remove_const, s)}
|
1237
|
+
end
|
1238
|
+
|
1239
|
+
specify "should return correct associated pks for one_to_many associations" do
|
1240
|
+
Artist.order(:id).all.map{|a| a.album_pks}.should == [[@al1, @al2, @al3], []]
|
1241
|
+
end
|
1242
|
+
|
1243
|
+
specify "should return correct associated pks for many_to_many associations" do
|
1244
|
+
Album.order(:id).all.map{|a| a.tag_pks.sort}.should == [[@t1, @t2, @t3], [@t2], []]
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
specify "should return correct associated right-side cpks for one_to_many associations" do
|
1248
|
+
Album.one_to_many :vocalists, :order=>:first
|
1249
|
+
Album.order(:id).all.map{|a| a.vocalist_pks.sort}.should == [[@v1, @v2, @v3], [], []]
|
1250
|
+
end
|
1251
|
+
|
1252
|
+
specify "should return correct associated right-side cpks for many_to_many associations" do
|
1253
|
+
Album.many_to_many :vocalists, :join_table=>:albums_vocalists, :right_key=>[:first, :last], :order=>:first
|
1254
|
+
Album.order(:id).all.map{|a| a.vocalist_pks.sort}.should == [[@v1, @v2, @v3], [@v2], []]
|
1255
|
+
end
|
1256
|
+
|
1257
|
+
specify "should return correct associated pks for left-side cpks for one_to_many associations" do
|
1258
|
+
Vocalist.one_to_many :instruments, :key=>[:first, :last], :order=>:id
|
1259
|
+
Vocalist.order(:first, :last).all.map{|a| a.instrument_pks.sort}.should == [[@i1, @i2, @i3], [], []]
|
1260
|
+
end
|
1261
|
+
|
1262
|
+
specify "should return correct associated pks for left-side cpks for many_to_many associations" do
|
1263
|
+
Vocalist.many_to_many :instruments, :join_table=>:vocalists_instruments, :left_key=>[:first, :last], :order=>:id
|
1264
|
+
Vocalist.order(:first, :last).all.map{|a| a.instrument_pks.sort}.should == [[@i1, @i2, @i3], [@i2], []]
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
specify "should return correct associated right-side cpks for left-side cpks for one_to_many associations" do
|
1268
|
+
Vocalist.one_to_many :hits, :key=>[:first, :last], :order=>:week
|
1269
|
+
Vocalist.order(:first, :last).all.map{|a| a.hit_pks.sort}.should == [[@h1, @h2, @h3], [], []]
|
1270
|
+
end
|
1271
|
+
|
1272
|
+
specify "should return correct associated right-side cpks for left-side cpks for many_to_many associations" do
|
1273
|
+
Vocalist.many_to_many :hits, :join_table=>:vocalists_hits, :left_key=>[:first, :last], :right_key=>[:year, :week], :order=>:week
|
1274
|
+
Vocalist.order(:first, :last).all.map{|a| a.hit_pks.sort}.should == [[@h1, @h2, @h3], [@h2], []]
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
specify "should set associated pks correctly for a one_to_many association" do
|
1278
|
+
Artist.use_transactions = true
|
1279
|
+
Album.order(:id).select_map(:artist_id).should == [@ar1, @ar1, @ar1]
|
1280
|
+
|
1281
|
+
Artist[@ar2].album_pks = [@t1, @t3]
|
1282
|
+
Artist[@ar1].album_pks.should == [@t2]
|
1283
|
+
Album.order(:id).select_map(:artist_id).should == [@ar2, @ar1, @ar2]
|
1284
|
+
|
1285
|
+
Artist[@ar1].album_pks = [@t1]
|
1286
|
+
Artist[@ar2].album_pks.should == [@t3]
|
1287
|
+
Album.order(:id).select_map(:artist_id).should == [@ar1, nil, @ar2]
|
1288
|
+
|
1289
|
+
Artist[@ar1].album_pks = [@t1, @t2]
|
1290
|
+
Artist[@ar2].album_pks.should == [@t3]
|
1291
|
+
Album.order(:id).select_map(:artist_id).should == [@ar1, @ar1, @ar2]
|
1292
|
+
end
|
1293
|
+
|
1294
|
+
specify "should set associated pks correctly for a many_to_many association" do
|
1295
|
+
Artist.use_transactions = true
|
1296
|
+
@db[:albums_tags].filter(:album_id=>@al1).select_order_map(:tag_id).should == [@t1, @t2, @t3]
|
1297
|
+
Album[@al1].tag_pks = [@t1, @t3]
|
1298
|
+
@db[:albums_tags].filter(:album_id=>@al1).select_order_map(:tag_id).should == [@t1, @t3]
|
1299
|
+
Album[@al1].tag_pks = []
|
1300
|
+
@db[:albums_tags].filter(:album_id=>@al1).select_order_map(:tag_id).should == []
|
1301
|
+
|
1302
|
+
@db[:albums_tags].filter(:album_id=>@al2).select_order_map(:tag_id).should == [@t2]
|
1303
|
+
Album[@al2].tag_pks = [@t1, @t2]
|
1304
|
+
@db[:albums_tags].filter(:album_id=>@al2).select_order_map(:tag_id).should == [@t1, @t2]
|
1305
|
+
Album[@al2].tag_pks = []
|
1306
|
+
@db[:albums_tags].filter(:album_id=>@al1).select_order_map(:tag_id).should == []
|
1307
|
+
|
1308
|
+
@db[:albums_tags].filter(:album_id=>@al3).select_order_map(:tag_id).should == []
|
1309
|
+
Album[@al3].tag_pks = [@t1, @t3]
|
1310
|
+
@db[:albums_tags].filter(:album_id=>@al3).select_order_map(:tag_id).should == [@t1, @t3]
|
1311
|
+
Album[@al3].tag_pks = []
|
1312
|
+
@db[:albums_tags].filter(:album_id=>@al1).select_order_map(:tag_id).should == []
|
1313
|
+
end
|
1314
|
+
|
1315
|
+
specify "should set associated right-side cpks correctly for a one_to_many association" do
|
1316
|
+
Album.use_transactions = true
|
1317
|
+
Album.one_to_many :vocalists, :order=>:first
|
1318
|
+
Album.order(:id).all.map{|a| a.vocalist_pks.sort}.should == [[@v1, @v2, @v3], [], []]
|
1319
|
+
|
1320
|
+
Album[@al2].vocalist_pks = [@v1, @v3]
|
1321
|
+
Album[@al1].vocalist_pks.should == [@v2]
|
1322
|
+
Vocalist.order(:first, :last).select_map(:album_id).should == [@al2, @al1, @al2]
|
1323
|
+
|
1324
|
+
Album[@al1].vocalist_pks = [@v1]
|
1325
|
+
Album[@al2].vocalist_pks.should == [@v3]
|
1326
|
+
Vocalist.order(:first, :last).select_map(:album_id).should == [@al1, nil, @al2]
|
1327
|
+
|
1328
|
+
Album[@al1].vocalist_pks = [@v1, @v2]
|
1329
|
+
Album[@al2].vocalist_pks.should == [@v3]
|
1330
|
+
Vocalist.order(:first, :last).select_map(:album_id).should == [@al1, @al1, @al2]
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
specify "should set associated right-side cpks correctly for a many_to_many association" do
|
1334
|
+
Album.use_transactions = true
|
1335
|
+
Album.many_to_many :vocalists, :join_table=>:albums_vocalists, :right_key=>[:first, :last], :order=>:first
|
1336
|
+
|
1337
|
+
@db[:albums_vocalists].filter(:album_id=>@al1).select_order_map([:first, :last]).should == [@v1, @v2, @v3]
|
1338
|
+
Album[@al1].vocalist_pks = [@v1, @v3]
|
1339
|
+
@db[:albums_vocalists].filter(:album_id=>@al1).select_order_map([:first, :last]).should == [@v1, @v3]
|
1340
|
+
Album[@al1].vocalist_pks = []
|
1341
|
+
@db[:albums_vocalists].filter(:album_id=>@al1).select_order_map([:first, :last]).should == []
|
1342
|
+
|
1343
|
+
@db[:albums_vocalists].filter(:album_id=>@al2).select_order_map([:first, :last]).should == [@v2]
|
1344
|
+
Album[@al2].vocalist_pks = [@v1, @v2]
|
1345
|
+
@db[:albums_vocalists].filter(:album_id=>@al2).select_order_map([:first, :last]).should == [@v1, @v2]
|
1346
|
+
Album[@al2].vocalist_pks = []
|
1347
|
+
@db[:albums_vocalists].filter(:album_id=>@al1).select_order_map([:first, :last]).should == []
|
1348
|
+
|
1349
|
+
@db[:albums_vocalists].filter(:album_id=>@al3).select_order_map([:first, :last]).should == []
|
1350
|
+
Album[@al3].vocalist_pks = [@v1, @v3]
|
1351
|
+
@db[:albums_vocalists].filter(:album_id=>@al3).select_order_map([:first, :last]).should == [@v1, @v3]
|
1352
|
+
Album[@al3].vocalist_pks = []
|
1353
|
+
@db[:albums_vocalists].filter(:album_id=>@al1).select_order_map([:first, :last]).should == []
|
1354
|
+
end
|
1355
|
+
|
1356
|
+
specify "should set associated pks correctly with left-side cpks for a one_to_many association" do
|
1357
|
+
Vocalist.use_transactions = true
|
1358
|
+
Vocalist.one_to_many :instruments, :key=>[:first, :last], :order=>:id
|
1359
|
+
Vocalist.order(:first, :last).all.map{|a| a.instrument_pks.sort}.should == [[@i1, @i2, @i3], [], []]
|
1360
|
+
|
1361
|
+
Vocalist[@v2].instrument_pks = [@i1, @i3]
|
1362
|
+
Vocalist[@v1].instrument_pks.should == [@i2]
|
1363
|
+
Instrument.order(:id).select_map([:first, :last]).should == [@v2, @v1, @v2]
|
1364
|
+
|
1365
|
+
Vocalist[@v1].instrument_pks = [@i1]
|
1366
|
+
Vocalist[@v2].instrument_pks.should == [@i3]
|
1367
|
+
Instrument.order(:id).select_map([:first, :last]).should == [@v1, [nil, nil], @v2]
|
1368
|
+
|
1369
|
+
Vocalist[@v1].instrument_pks = [@i1, @i2]
|
1370
|
+
Vocalist[@v2].instrument_pks.should == [@i3]
|
1371
|
+
Instrument.order(:id).select_map([:first, :last]).should == [@v1, @v1, @v2]
|
1372
|
+
end
|
1373
|
+
|
1374
|
+
specify "should set associated pks correctly with left-side cpks for a many_to_many association" do
|
1375
|
+
Vocalist.use_transactions = true
|
1376
|
+
Vocalist.many_to_many :instruments, :join_table=>:vocalists_instruments, :left_key=>[:first, :last], :order=>:id
|
1377
|
+
|
1378
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v1]).select_order_map(:instrument_id).should == [@i1, @i2, @i3]
|
1379
|
+
Vocalist[@v1].instrument_pks = [@i1, @i3]
|
1380
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v1]).select_order_map(:instrument_id).should == [@i1, @i3]
|
1381
|
+
Vocalist[@v1].instrument_pks = []
|
1382
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v1]).select_order_map(:instrument_id).should == []
|
1383
|
+
|
1384
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v2]).select_order_map(:instrument_id).should == [@i2]
|
1385
|
+
Vocalist[@v2].instrument_pks = [@i1, @i2]
|
1386
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v2]).select_order_map(:instrument_id).should == [@i1, @i2]
|
1387
|
+
Vocalist[@v2].instrument_pks = []
|
1388
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v1]).select_order_map(:instrument_id).should == []
|
1389
|
+
|
1390
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v3]).select_order_map(:instrument_id).should == []
|
1391
|
+
Vocalist[@v3].instrument_pks = [@i1, @i3]
|
1392
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v3]).select_order_map(:instrument_id).should == [@i1, @i3]
|
1393
|
+
Vocalist[@v3].instrument_pks = []
|
1394
|
+
@db[:vocalists_instruments].filter([:first, :last]=>[@v1]).select_order_map(:instrument_id).should == []
|
1395
|
+
end
|
1396
|
+
|
1397
|
+
specify "should set associated right-side cpks correctly with left-side cpks for a one_to_many association" do
|
1398
|
+
Vocalist.use_transactions = true
|
1399
|
+
Vocalist.one_to_many :hits, :key=>[:first, :last], :order=>:week
|
1400
|
+
Vocalist.order(:first, :last).all.map{|a| a.hit_pks.sort}.should == [[@h1, @h2, @h3], [], []]
|
1401
|
+
|
1402
|
+
Vocalist[@v2].hit_pks = [@h1, @h3]
|
1403
|
+
Vocalist[@v1].hit_pks.should == [@h2]
|
1404
|
+
Hit.order(:year, :week).select_map([:first, :last]).should == [@v2, @v1, @v2]
|
1405
|
+
|
1406
|
+
Vocalist[@v1].hit_pks = [@h1]
|
1407
|
+
Vocalist[@v2].hit_pks.should == [@h3]
|
1408
|
+
Hit.order(:year, :week).select_map([:first, :last]).should == [@v1, [nil, nil], @v2]
|
1409
|
+
|
1410
|
+
Vocalist[@v1].hit_pks = [@h1, @h2]
|
1411
|
+
Vocalist[@v2].hit_pks.should == [@h3]
|
1412
|
+
Hit.order(:year, :week).select_map([:first, :last]).should == [@v1, @v1, @v2]
|
1413
|
+
end
|
1414
|
+
|
1415
|
+
specify "should set associated right-side cpks correctly with left-side cpks for a many_to_many association" do
|
1416
|
+
Vocalist.use_transactions = true
|
1417
|
+
Vocalist.many_to_many :hits, :join_table=>:vocalists_hits, :left_key=>[:first, :last], :right_key=>[:year, :week], :order=>:week
|
1418
|
+
|
1419
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v1]).select_order_map([:year, :week]).should == [@h1, @h2, @h3]
|
1420
|
+
Vocalist[@v1].hit_pks = [@h1, @h3]
|
1421
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v1]).select_order_map([:year, :week]).should == [@h1, @h3]
|
1422
|
+
Vocalist[@v1].hit_pks = []
|
1423
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v1]).select_order_map([:year, :week]).should == []
|
1424
|
+
|
1425
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v2]).select_order_map([:year, :week]).should == [@h2]
|
1426
|
+
Vocalist[@v2].hit_pks = [@h1, @h2]
|
1427
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v2]).select_order_map([:year, :week]).should == [@h1, @h2]
|
1428
|
+
Vocalist[@v2].hit_pks = []
|
1429
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v1]).select_order_map([:year, :week]).should == []
|
1430
|
+
|
1431
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v3]).select_order_map([:year, :week]).should == []
|
1432
|
+
Vocalist[@v3].hit_pks = [@h1, @h3]
|
1433
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v3]).select_order_map([:year, :week]).should == [@h1, @h3]
|
1434
|
+
Vocalist[@v3].hit_pks = []
|
1435
|
+
@db[:vocalists_hits].filter([:first, :last]=>[@v1]).select_order_map([:year, :week]).should == []
|
1436
|
+
end
|
1437
|
+
end
|
1438
|
+
|
1439
|
+
describe "List plugin without a scope" do
|
1440
|
+
before(:all) do
|
1441
|
+
@db = DB
|
1442
|
+
@db.create_table!(:sites) do
|
1443
|
+
primary_key :id
|
1444
|
+
String :name
|
1445
|
+
Integer :position
|
1446
|
+
end
|
1447
|
+
|
1448
|
+
@c = Class.new(Sequel::Model(@db[:sites]))
|
1449
|
+
@c.plugin :list
|
1450
|
+
end
|
1451
|
+
before do
|
1452
|
+
@c.dataset.delete
|
1453
|
+
@c.create :name => "abc"
|
1454
|
+
@c.create :name => "def"
|
1455
|
+
@c.create :name => "hig"
|
1456
|
+
end
|
1457
|
+
after(:all) do
|
1458
|
+
@db.drop_table?(:sites)
|
1459
|
+
end
|
1460
|
+
|
1461
|
+
it "should return rows in order of position" do
|
1462
|
+
@c.map(:position).should == [1,2,3]
|
1463
|
+
@c.map(:name).should == %w[ abc def hig ]
|
1464
|
+
end
|
1465
|
+
|
1466
|
+
it "should define prev and next" do
|
1467
|
+
i = @c[:name => "abc"]
|
1468
|
+
i.prev.should == nil
|
1469
|
+
i = @c[:name => "def"]
|
1470
|
+
i.prev.should == @c[:name => "abc"]
|
1471
|
+
i.next.should == @c[:name => "hig"]
|
1472
|
+
i = @c[:name => "hig"]
|
1473
|
+
i.next.should == nil
|
1474
|
+
end
|
1475
|
+
|
1476
|
+
it "should define move_to" do
|
1477
|
+
@c[:name => "def"].move_to(1)
|
1478
|
+
@c.map(:name).should == %w[ def abc hig ]
|
1479
|
+
|
1480
|
+
@c[:name => "abc"].move_to(3)
|
1481
|
+
@c.map(:name).should == %w[ def hig abc ]
|
1482
|
+
|
1483
|
+
proc { @c[:name => "abc"].move_to(-1) }.should raise_error(Sequel::Error)
|
1484
|
+
proc { @c[:name => "abc"].move_to(10) }.should raise_error(Sequel::Error)
|
1485
|
+
end
|
1486
|
+
|
1487
|
+
it "should define move_to_top and move_to_bottom" do
|
1488
|
+
@c[:name => "def"].move_to_top
|
1489
|
+
@c.map(:name).should == %w[ def abc hig ]
|
1490
|
+
|
1491
|
+
@c[:name => "def"].move_to_bottom
|
1492
|
+
@c.map(:name).should == %w[ abc hig def ]
|
1493
|
+
end
|
1494
|
+
|
1495
|
+
it "should define move_up and move_down" do
|
1496
|
+
@c[:name => "def"].move_up
|
1497
|
+
@c.map(:name).should == %w[ def abc hig ]
|
1498
|
+
|
1499
|
+
@c[:name => "abc"].move_down
|
1500
|
+
@c.map(:name).should == %w[ def hig abc ]
|
1501
|
+
|
1502
|
+
@c[:name => "abc"].move_up(2)
|
1503
|
+
@c.map(:name).should == %w[ abc def hig ]
|
1504
|
+
|
1505
|
+
@c[:name => "abc"].move_down(2)
|
1506
|
+
@c.map(:name).should == %w[ def hig abc ]
|
1507
|
+
|
1508
|
+
proc { @c[:name => "def"].move_up(10) }.should raise_error(Sequel::Error)
|
1509
|
+
proc { @c[:name => "def"].move_down(10) }.should raise_error(Sequel::Error)
|
1510
|
+
end
|
1511
|
+
|
1512
|
+
it "should update positions on destroy" do
|
1513
|
+
@c[:name => "def"].destroy
|
1514
|
+
@c.select_map([:position, :name]).should == [[1, 'abc'], [2, 'hig']]
|
1515
|
+
end
|
1516
|
+
end
|
1517
|
+
|
1518
|
+
describe "List plugin with a scope" do
|
1519
|
+
before(:all) do
|
1520
|
+
@db = DB
|
1521
|
+
@db.create_table!(:pages) do
|
1522
|
+
primary_key :id
|
1523
|
+
String :name
|
1524
|
+
Integer :pos
|
1525
|
+
Integer :parent_id
|
1526
|
+
end
|
1527
|
+
|
1528
|
+
@c = Class.new(Sequel::Model(@db[:pages]))
|
1529
|
+
@c.plugin :list, :field => :pos, :scope => :parent_id
|
1530
|
+
end
|
1531
|
+
before do
|
1532
|
+
@c.dataset.delete
|
1533
|
+
p1 = @c.create :name => "Hm", :parent_id => 0
|
1534
|
+
p2 = @c.create :name => "Ps", :parent_id => p1.id
|
1535
|
+
@c.create :name => "P1", :parent_id => p2.id
|
1536
|
+
@c.create :name => "P2", :parent_id => p2.id
|
1537
|
+
@c.create :name => "P3", :parent_id => p2.id
|
1538
|
+
@c.create :name => "Au", :parent_id => p1.id
|
1539
|
+
end
|
1540
|
+
after(:all) do
|
1541
|
+
@db.drop_table?(:pages)
|
1542
|
+
end
|
1543
|
+
|
1544
|
+
specify "should return rows in order of position" do
|
1545
|
+
@c.map(:name).should == %w[ Hm Ps Au P1 P2 P3 ]
|
1546
|
+
end
|
1547
|
+
|
1548
|
+
it "should define prev and next" do
|
1549
|
+
@c[:name => "Ps"].next.name.should == 'Au'
|
1550
|
+
@c[:name => "Au"].prev.name.should == 'Ps'
|
1551
|
+
@c[:name => "P1"].next.name.should == 'P2'
|
1552
|
+
@c[:name => "P2"].prev.name.should == 'P1'
|
1553
|
+
|
1554
|
+
@c[:name => "P1"].next(2).name.should == 'P3'
|
1555
|
+
@c[:name => "P2"].next(-1).name.should == 'P1'
|
1556
|
+
@c[:name => "P3"].prev(2).name.should == 'P1'
|
1557
|
+
@c[:name => "P2"].prev(-1).name.should == 'P3'
|
1558
|
+
|
1559
|
+
@c[:name => "Ps"].prev.should == nil
|
1560
|
+
@c[:name => "Au"].next.should == nil
|
1561
|
+
@c[:name => "P1"].prev.should == nil
|
1562
|
+
@c[:name => "P3"].next.should == nil
|
1563
|
+
end
|
1564
|
+
|
1565
|
+
specify "should define move_to" do
|
1566
|
+
@c[:name => "P2"].move_to(1)
|
1567
|
+
@c.map(:name).should == %w[ Hm Ps Au P2 P1 P3 ]
|
1568
|
+
|
1569
|
+
@c[:name => "P2"].move_to(3)
|
1570
|
+
@c.map(:name).should == %w[ Hm Ps Au P1 P3 P2 ]
|
1571
|
+
|
1572
|
+
proc { @c[:name => "P2"].move_to(-1) }.should raise_error(Sequel::Error)
|
1573
|
+
proc { @c[:name => "P2"].move_to(10) }.should raise_error(Sequel::Error)
|
1574
|
+
end
|
1575
|
+
|
1576
|
+
specify "should define move_to_top and move_to_bottom" do
|
1577
|
+
@c[:name => "Au"].move_to_top
|
1578
|
+
@c.map(:name).should == %w[ Hm Au Ps P1 P2 P3 ]
|
1579
|
+
|
1580
|
+
@c[:name => "Au"].move_to_bottom
|
1581
|
+
@c.map(:name).should == %w[ Hm Ps Au P1 P2 P3 ]
|
1582
|
+
end
|
1583
|
+
|
1584
|
+
specify "should define move_up and move_down" do
|
1585
|
+
@c[:name => "P2"].move_up
|
1586
|
+
@c.map(:name).should == %w[ Hm Ps Au P2 P1 P3 ]
|
1587
|
+
|
1588
|
+
@c[:name => "P1"].move_down
|
1589
|
+
@c.map(:name).should == %w[ Hm Ps Au P2 P3 P1 ]
|
1590
|
+
|
1591
|
+
proc { @c[:name => "P1"].move_up(10) }.should raise_error(Sequel::Error)
|
1592
|
+
proc { @c[:name => "P1"].move_down(10) }.should raise_error(Sequel::Error)
|
1593
|
+
end
|
1594
|
+
|
1595
|
+
it "should update positions on destroy" do
|
1596
|
+
@c[:name => "P2"].destroy
|
1597
|
+
@c.select_order_map([:pos, :name]).should == [[1, "Hm"], [1, "P1"], [1, "Ps"], [2, "Au"], [2, "P3"]]
|
1598
|
+
end
|
1599
|
+
end
|
1600
|
+
|
1601
|
+
describe "Sequel::Plugins::Tree" do
|
1602
|
+
shared_examples_for "tree plugin" do
|
1603
|
+
it "should instantiate" do
|
1604
|
+
@Node.all.size.should == 12
|
1605
|
+
end
|
1606
|
+
|
1607
|
+
it "should find all descendants of a node" do
|
1608
|
+
@Node.find(:name => 'two').descendants.map{|m| m.name}.should == %w'two.one two.two two.three two.two.one'
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
it "should find all ancestors of a node" do
|
1612
|
+
@Node.find(:name => "two.two.one").ancestors.map{|m| m.name}.should == %w'two.two two'
|
1613
|
+
end
|
1614
|
+
|
1615
|
+
it "should find all siblings of a node, excepting self" do
|
1616
|
+
@Node.find(:name=>"two.one").siblings.map{|m| m.name}.should == %w'two.two two.three'
|
1617
|
+
end
|
1618
|
+
|
1619
|
+
it "should find all siblings of a node, including self" do
|
1620
|
+
@Node.find(:name=>"two.one").self_and_siblings.map{|m| m.name}.should == %w'two.one two.two two.three'
|
1621
|
+
end
|
1622
|
+
|
1623
|
+
it "should find siblings for root nodes" do
|
1624
|
+
@Node.find(:name=>'three').self_and_siblings.map{|m| m.name}.should == %w'one two three four five'
|
1625
|
+
end
|
1626
|
+
|
1627
|
+
it "should find correct root for a node" do
|
1628
|
+
@Node.find(:name=>"two.two.one").root.name.should == 'two'
|
1629
|
+
@Node.find(:name=>"three").root.name.should == 'three'
|
1630
|
+
@Node.find(:name=>"five.one").root.name.should == 'five'
|
1631
|
+
end
|
1632
|
+
|
1633
|
+
it "iterate top-level nodes in order" do
|
1634
|
+
@Node.roots_dataset.count.should == 5
|
1635
|
+
@Node.roots.map{|p| p.name}.should == %w'one two three four five'
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
it "should have children" do
|
1639
|
+
@Node.find(:name=>'one').children.map{|m| m.name}.should == %w'one.one one.two'
|
1640
|
+
end
|
1641
|
+
end
|
1642
|
+
|
1643
|
+
describe "with simple key" do
|
1644
|
+
before(:all) do
|
1645
|
+
@db = DB
|
1646
|
+
@db.create_table!(:nodes) do
|
1647
|
+
Integer :id, :primary_key=>true
|
1648
|
+
String :name
|
1649
|
+
Integer :parent_id
|
1650
|
+
Integer :position
|
1651
|
+
end
|
1652
|
+
|
1653
|
+
@nodes = [{:id => 1, :name => 'one', :parent_id => nil, :position => 1},
|
1654
|
+
{:id => 2, :name => 'two', :parent_id => nil, :position => 2},
|
1655
|
+
{:id => 3, :name => 'three', :parent_id => nil, :position => 3},
|
1656
|
+
{:id => 4, :name => "two.one", :parent_id => 2, :position => 1},
|
1657
|
+
{:id => 5, :name => "two.two", :parent_id => 2, :position => 2},
|
1658
|
+
{:id => 6, :name => "two.two.one", :parent_id => 5, :position => 1},
|
1659
|
+
{:id => 7, :name => "one.two", :parent_id => 1, :position => 2},
|
1660
|
+
{:id => 8, :name => "one.one", :parent_id => 1, :position => 1},
|
1661
|
+
{:id => 9, :name => "five", :parent_id => nil, :position => 5},
|
1662
|
+
{:id => 10, :name => "four", :parent_id => nil, :position => 4},
|
1663
|
+
{:id => 11, :name => "five.one", :parent_id => 9, :position => 1},
|
1664
|
+
{:id => 12, :name => "two.three", :parent_id => 2, :position => 3}]
|
1665
|
+
@nodes.each{|node| @db[:nodes].insert(node)}
|
1666
|
+
|
1667
|
+
@Node = Class.new(Sequel::Model(:nodes))
|
1668
|
+
@Node.plugin :tree, :order=>:position
|
1669
|
+
end
|
1670
|
+
after(:all) do
|
1671
|
+
@db.drop_table?(:nodes)
|
1672
|
+
end
|
1673
|
+
|
1674
|
+
it_should_behave_like "tree plugin"
|
1675
|
+
end
|
1676
|
+
|
1677
|
+
describe "with composite key" do
|
1678
|
+
before(:all) do
|
1679
|
+
@db = DB
|
1680
|
+
@db.create_table!(:nodes) do
|
1681
|
+
Integer :id
|
1682
|
+
Integer :id2
|
1683
|
+
String :name
|
1684
|
+
Integer :parent_id
|
1685
|
+
Integer :parent_id2
|
1686
|
+
Integer :position
|
1687
|
+
primary_key [:id, :id2]
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
@nodes = [{:id => 1, :id2=> 1, :name => 'one', :parent_id => nil, :parent_id2 => nil, :position => 1},
|
1691
|
+
{:id => 2, :id2=> 1, :name => 'two', :parent_id => nil, :parent_id2 => nil, :position => 2},
|
1692
|
+
{:id => 1, :id2=> 2, :name => 'three', :parent_id => nil, :parent_id2 => nil, :position => 3},
|
1693
|
+
{:id => 2, :id2=> 2, :name => "two.one", :parent_id => 2, :parent_id2 => 1, :position => 1},
|
1694
|
+
{:id => 3, :id2=> 1, :name => "two.two", :parent_id => 2, :parent_id2 => 1, :position => 2},
|
1695
|
+
{:id => 3, :id2=> 2, :name => "two.two.one", :parent_id => 3, :parent_id2 => 1, :position => 1},
|
1696
|
+
{:id => 3, :id2=> 3, :name => "one.two", :parent_id => 1, :parent_id2 => 1, :position => 2},
|
1697
|
+
{:id => 1, :id2=> 3, :name => "one.one", :parent_id => 1, :parent_id2 => 1, :position => 1},
|
1698
|
+
{:id => 2, :id2=> 3, :name => "five", :parent_id => nil, :parent_id2 => nil, :position => 5},
|
1699
|
+
{:id => 4, :id2=> 1, :name => "four", :parent_id => nil, :parent_id2 => nil, :position => 4},
|
1700
|
+
{:id => 1, :id2=> 4, :name => "five.one", :parent_id => 2, :parent_id2 => 3, :position => 1},
|
1701
|
+
{:id => 2, :id2=> 4, :name => "two.three", :parent_id => 2, :parent_id2 => 1, :position => 3}]
|
1702
|
+
@nodes.each{|node| @db[:nodes].insert(node)}
|
1703
|
+
|
1704
|
+
@Node = Class.new(Sequel::Model(:nodes))
|
1705
|
+
@Node.plugin :tree, :order=>:position, :key=>[:parent_id, :parent_id2]
|
1706
|
+
end
|
1707
|
+
after(:all) do
|
1708
|
+
@db.drop_table?(:nodes)
|
1709
|
+
end
|
1710
|
+
|
1711
|
+
it_should_behave_like "tree plugin"
|
1712
|
+
end
|
1713
|
+
end
|
1714
|
+
|
1715
|
+
describe "Sequel::Plugins::PreparedStatements" do
|
1716
|
+
before(:all) do
|
1717
|
+
@db = DB
|
1718
|
+
@db.create_table!(:ps_test) do
|
1719
|
+
primary_key :id
|
1720
|
+
String :name
|
1721
|
+
Integer :i
|
1722
|
+
end
|
1723
|
+
@c = Class.new(Sequel::Model(@db[:ps_test]))
|
1724
|
+
@c.plugin :prepared_statements_with_pk
|
1725
|
+
end
|
1726
|
+
before do
|
1727
|
+
@c.dataset.delete
|
1728
|
+
@foo = @c.create(:name=>'foo', :i=>10)
|
1729
|
+
@bar = @c.create(:name=>'bar', :i=>20)
|
1730
|
+
end
|
1731
|
+
after(:all) do
|
1732
|
+
@db.drop_table?(:ps_test)
|
1733
|
+
end
|
1734
|
+
|
1735
|
+
it "should work with looking up using Model.[]" do
|
1736
|
+
@c[@foo.id].should == @foo
|
1737
|
+
@c[@bar.id].should == @bar
|
1738
|
+
@c[0].should == nil
|
1739
|
+
@c[nil].should == nil
|
1740
|
+
end
|
1741
|
+
|
1742
|
+
it "should work with looking up using Dataset#with_pk" do
|
1743
|
+
@c.dataset.with_pk(@foo.id).should == @foo
|
1744
|
+
@c.dataset.with_pk(@bar.id).should == @bar
|
1745
|
+
@c.dataset.with_pk(0).should == nil
|
1746
|
+
@c.dataset.with_pk(nil).should == nil
|
1747
|
+
|
1748
|
+
@c.dataset.filter(:i=>0).with_pk(@foo.id).should == nil
|
1749
|
+
@c.dataset.filter(:i=>10).with_pk(@foo.id).should == @foo
|
1750
|
+
@c.dataset.filter(:i=>20).with_pk(@bar.id).should == @bar
|
1751
|
+
@c.dataset.filter(:i=>10).with_pk(nil).should == nil
|
1752
|
+
@c.dataset.filter(:name=>'foo').with_pk(@foo.id).should == @foo
|
1753
|
+
@c.dataset.filter(:name=>'bar').with_pk(@bar.id).should == @bar
|
1754
|
+
@c.dataset.filter(:name=>'baz').with_pk(@bar.id).should == nil
|
1755
|
+
@c.dataset.filter(:name=>'bar').with_pk(nil).should == nil
|
1756
|
+
end
|
1757
|
+
|
1758
|
+
it "should work with Model#destroy" do
|
1759
|
+
@foo.destroy
|
1760
|
+
@bar.destroy
|
1761
|
+
@c[@foo.id].should == nil
|
1762
|
+
@c[@bar.id].should == nil
|
1763
|
+
end
|
1764
|
+
|
1765
|
+
it "should work with Model#update" do
|
1766
|
+
@foo.update(:name=>'foo2', :i=>30)
|
1767
|
+
@c[@foo.id].should == @c.load(:id=>@foo.id, :name=>'foo2', :i=>30)
|
1768
|
+
@foo.update(:name=>'foo3')
|
1769
|
+
@c[@foo.id].should == @c.load(:id=>@foo.id, :name=>'foo3', :i=>30)
|
1770
|
+
@foo.update(:i=>40)
|
1771
|
+
@c[@foo.id].should == @c.load(:id=>@foo.id, :name=>'foo3', :i=>40)
|
1772
|
+
@foo.update(:i=>nil)
|
1773
|
+
@c[@foo.id].should == @c.load(:id=>@foo.id, :name=>'foo3', :i=>nil)
|
1774
|
+
end
|
1775
|
+
|
1776
|
+
it "should work with Model#create" do
|
1777
|
+
o = @c.create(:name=>'foo2', :i=>30)
|
1778
|
+
@c[o.id].should == @c.load(:id=>o.id, :name=>'foo2', :i=>30)
|
1779
|
+
o = @c.create(:name=>'foo2')
|
1780
|
+
@c[o.id].should == @c.load(:id=>o.id, :name=>'foo2', :i=>nil)
|
1781
|
+
o = @c.create(:i=>30)
|
1782
|
+
@c[o.id].should == @c.load(:id=>o.id, :name=>nil, :i=>30)
|
1783
|
+
o = @c.create(:name=>nil, :i=>40)
|
1784
|
+
@c[o.id].should == @c.load(:id=>o.id, :name=>nil, :i=>40)
|
1785
|
+
end
|
1786
|
+
end
|
1787
|
+
|
1788
|
+
describe "Sequel::Plugins::PreparedStatements with schema changes" do
|
1789
|
+
before do
|
1790
|
+
@db = DB
|
1791
|
+
@db.create_table!(:ps_test) do
|
1792
|
+
primary_key :id
|
1793
|
+
String :name
|
1794
|
+
end
|
1795
|
+
@c = Class.new(Sequel::Model(@db[:ps_test]))
|
1796
|
+
@c.many_to_one :ps_test, :key=>:id, :class=>@c
|
1797
|
+
@c.one_to_many :ps_tests, :key=>:id, :class=>@c
|
1798
|
+
@c.many_to_many :mps_tests, :left_key=>:id, :right_key=>:id, :class=>@c, :join_table=>:ps_test___x
|
1799
|
+
@c.plugin :prepared_statements
|
1800
|
+
@c.plugin :prepared_statements_associations
|
1801
|
+
end
|
1802
|
+
after do
|
1803
|
+
@db.drop_table?(:ps_test)
|
1804
|
+
end
|
1805
|
+
|
1806
|
+
it "should handle added columns" do
|
1807
|
+
foo = @c.create(:name=>'foo')
|
1808
|
+
@c[foo.id].name.should == 'foo'
|
1809
|
+
foo.ps_test.name.should == 'foo'
|
1810
|
+
foo.ps_tests.map{|x| x.name}.should == %w'foo'
|
1811
|
+
foo.mps_tests.map{|x| x.name}.should == %w'foo'
|
1812
|
+
foo.update(:name=>'foo2')
|
1813
|
+
@c[foo.id].name.should == 'foo2'
|
1814
|
+
foo.delete
|
1815
|
+
foo.exists?.should == false
|
1816
|
+
|
1817
|
+
@db.alter_table(:ps_test){add_column :i, Integer}
|
1818
|
+
|
1819
|
+
foo = @c.create(:name=>'foo')
|
1820
|
+
@c[foo.id].name.should == 'foo'
|
1821
|
+
foo.ps_test.name.should == 'foo'
|
1822
|
+
foo.ps_tests.map{|x| x.name}.should == %w'foo'
|
1823
|
+
foo.mps_tests.map{|x| x.name}.should == %w'foo'
|
1824
|
+
foo.update(:name=>'foo2')
|
1825
|
+
@c[foo.id].name.should == 'foo2'
|
1826
|
+
foo.delete
|
1827
|
+
foo.exists?.should == false
|
1828
|
+
end
|
1829
|
+
end
|
1830
|
+
|
1831
|
+
describe "Caching plugins" do
|
1832
|
+
before(:all) do
|
1833
|
+
@db = DB
|
1834
|
+
@db.drop_table?(:albums, :artists)
|
1835
|
+
@db.create_table(:artists) do
|
1836
|
+
primary_key :id
|
1837
|
+
end
|
1838
|
+
@db.create_table(:albums) do
|
1839
|
+
primary_key :id
|
1840
|
+
foreign_key :artist_id, :artists
|
1841
|
+
end
|
1842
|
+
@db[:artists].insert
|
1843
|
+
@db[:albums].insert(:artist_id=>1)
|
1844
|
+
end
|
1845
|
+
before do
|
1846
|
+
@Album = Class.new(Sequel::Model(@db[:albums]))
|
1847
|
+
@Album.plugin :many_to_one_pk_lookup
|
1848
|
+
end
|
1849
|
+
after(:all) do
|
1850
|
+
@db.drop_table?(:albums, :artists)
|
1851
|
+
end
|
1852
|
+
|
1853
|
+
shared_examples_for "a caching plugin" do
|
1854
|
+
it "should work with looking up using Model.[]" do
|
1855
|
+
@Artist[1].should equal(@Artist[1])
|
1856
|
+
@Artist[:id=>1].should == @Artist[1]
|
1857
|
+
@Artist[0].should == nil
|
1858
|
+
@Artist[nil].should == nil
|
1859
|
+
end
|
1860
|
+
|
1861
|
+
it "should work with lookup up many_to_one associated objects" do
|
1862
|
+
a = @Artist[1]
|
1863
|
+
@Album.first.artist.should equal(a)
|
1864
|
+
end
|
1865
|
+
end
|
1866
|
+
|
1867
|
+
describe "caching plugin" do
|
1868
|
+
before do
|
1869
|
+
@cache_class = Class.new(Hash) do
|
1870
|
+
def set(k, v, ttl) self[k] = v end
|
1871
|
+
alias get []
|
1872
|
+
end
|
1873
|
+
@cache = @cache_class.new
|
1874
|
+
|
1875
|
+
@Artist = Class.new(Sequel::Model(@db[:artists]))
|
1876
|
+
@Artist.plugin :caching, @cache
|
1877
|
+
@Album.many_to_one :artist, :class=>@Artist
|
1878
|
+
end
|
1879
|
+
|
1880
|
+
it_should_behave_like "a caching plugin"
|
1881
|
+
end
|
1882
|
+
|
1883
|
+
describe "static_cache plugin" do
|
1884
|
+
before do
|
1885
|
+
@Artist = Class.new(Sequel::Model(@db[:artists]))
|
1886
|
+
@Artist.plugin :static_cache
|
1887
|
+
@Album.many_to_one :artist, :class=>@Artist
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
it_should_behave_like "a caching plugin"
|
1891
|
+
end
|
1892
|
+
end
|
1893
|
+
|
1894
|
+
describe "Sequel::Plugins::ConstraintValidations" do
|
1895
|
+
before(:all) do
|
1896
|
+
@db = DB
|
1897
|
+
@db.extension(:constraint_validations)
|
1898
|
+
@db.create_constraint_validations_table
|
1899
|
+
@ds = @db[:cv_test]
|
1900
|
+
@regexp = regexp = @db.dataset.supports_regexp?
|
1901
|
+
@validation_opts = {}
|
1902
|
+
opts_proc = proc{@validation_opts}
|
1903
|
+
@validate_block = proc do |opts|
|
1904
|
+
opts = opts_proc.call
|
1905
|
+
presence :pre, opts.merge(:name=>:p)
|
1906
|
+
exact_length 5, :exactlen, opts.merge(:name=>:el)
|
1907
|
+
min_length 5, :minlen, opts.merge(:name=>:minl)
|
1908
|
+
max_length 5, :maxlen, opts.merge(:name=>:maxl)
|
1909
|
+
length_range 3..5, :lenrange, opts.merge(:name=>:lr)
|
1910
|
+
if regexp
|
1911
|
+
format(/^foo\d+/, :form, opts.merge(:name=>:f))
|
1912
|
+
end
|
1913
|
+
like 'foo%', :lik, opts.merge(:name=>:l)
|
1914
|
+
ilike 'foo%', :ilik, opts.merge(:name=>:il)
|
1915
|
+
includes %w'abc def', :inc, opts.merge(:name=>:i)
|
1916
|
+
unique :uniq, opts.merge(:name=>:u)
|
1917
|
+
max_length 6, :minlen, opts.merge(:name=>:maxl2)
|
1918
|
+
end
|
1919
|
+
@valid_row = {:pre=>'a', :exactlen=>'12345', :minlen=>'12345', :maxlen=>'12345', :lenrange=>'1234', :lik=>'fooabc', :ilik=>'FooABC', :inc=>'abc', :uniq=>'u'}
|
1920
|
+
@violations = [
|
1921
|
+
[:pre, [nil, '', ' ']],
|
1922
|
+
[:exactlen, [nil, '', '1234', '123456']],
|
1923
|
+
[:minlen, [nil, '', '1234']],
|
1924
|
+
[:maxlen, [nil, '123456']],
|
1925
|
+
[:lenrange, [nil, '', '12', '123456']],
|
1926
|
+
[:lik, [nil, '', 'fo', 'fotabc', 'FOOABC']],
|
1927
|
+
[:ilik, [nil, '', 'fo', 'fotabc']],
|
1928
|
+
[:inc, [nil, '', 'ab', 'abcd']],
|
1929
|
+
]
|
1930
|
+
|
1931
|
+
if @regexp
|
1932
|
+
@valid_row[:form] = 'foo1'
|
1933
|
+
@violations << [:form, [nil, '', 'foo', 'fooa']]
|
1934
|
+
end
|
1935
|
+
end
|
1936
|
+
after(:all) do
|
1937
|
+
@db.drop_constraint_validations_table
|
1938
|
+
end
|
1939
|
+
|
1940
|
+
shared_examples_for "constraint validations" do
|
1941
|
+
cspecify "should set up constraints that work even outside the model", :mysql do
|
1942
|
+
proc{@ds.insert(@valid_row)}.should_not raise_error
|
1943
|
+
|
1944
|
+
# Test for unique constraint
|
1945
|
+
proc{@ds.insert(@valid_row)}.should raise_error(Sequel::DatabaseError)
|
1946
|
+
|
1947
|
+
@ds.delete
|
1948
|
+
@violations.each do |col, vals|
|
1949
|
+
try = @valid_row.dup
|
1950
|
+
vals += ['1234567'] if col == :minlen
|
1951
|
+
vals.each do |val|
|
1952
|
+
next if val.nil? && @validation_opts[:allow_nil]
|
1953
|
+
try[col] = val
|
1954
|
+
proc{@ds.insert(try)}.should raise_error(Sequel::DatabaseError)
|
1955
|
+
end
|
1956
|
+
end
|
1957
|
+
|
1958
|
+
# Test for dropping of constraint
|
1959
|
+
@db.alter_table(:cv_test){validate{drop :maxl2}}
|
1960
|
+
proc{@ds.insert(@valid_row.merge(:minlen=>'1234567'))}.should_not raise_error
|
1961
|
+
end
|
1962
|
+
|
1963
|
+
it "should set up automatic validations inside the model" do
|
1964
|
+
c = Class.new(Sequel::Model(@ds))
|
1965
|
+
c.plugin :constraint_validations
|
1966
|
+
c.dataset.delete
|
1967
|
+
proc{c.create(@valid_row)}.should_not raise_error
|
1968
|
+
|
1969
|
+
# Test for unique validation
|
1970
|
+
c.new(@valid_row).should_not be_valid
|
1971
|
+
|
1972
|
+
c.dataset.delete
|
1973
|
+
@violations.each do |col, vals|
|
1974
|
+
try = @valid_row.dup
|
1975
|
+
vals.each do |val|
|
1976
|
+
next if val.nil? && @validation_opts[:allow_nil]
|
1977
|
+
try[col] = val
|
1978
|
+
c.new(try).should_not be_valid
|
1979
|
+
end
|
1980
|
+
end
|
1981
|
+
c.db.constraint_validations = nil
|
1982
|
+
end
|
1983
|
+
end
|
1984
|
+
|
1985
|
+
describe "via create_table" do
|
1986
|
+
before(:all) do
|
1987
|
+
@table_block = proc do
|
1988
|
+
regexp = @regexp
|
1989
|
+
validate_block = @validate_block
|
1990
|
+
@db.create_table!(:cv_test) do
|
1991
|
+
primary_key :id
|
1992
|
+
String :pre
|
1993
|
+
String :exactlen
|
1994
|
+
String :minlen
|
1995
|
+
String :maxlen
|
1996
|
+
String :lenrange
|
1997
|
+
if regexp
|
1998
|
+
String :form
|
1999
|
+
end
|
2000
|
+
String :lik
|
2001
|
+
String :ilik
|
2002
|
+
String :inc
|
2003
|
+
String :uniq, :null=>false
|
2004
|
+
validate(&validate_block)
|
2005
|
+
end
|
2006
|
+
end
|
2007
|
+
end
|
2008
|
+
after(:all) do
|
2009
|
+
@db.drop_table?(:cv_test)
|
2010
|
+
@db.drop_constraint_validations_for(:table=>:cv_test)
|
2011
|
+
end
|
2012
|
+
|
2013
|
+
describe "with :allow_nil=>true" do
|
2014
|
+
before(:all) do
|
2015
|
+
@validation_opts = {:allow_nil=>true}
|
2016
|
+
@table_block.call
|
2017
|
+
end
|
2018
|
+
it_should_behave_like "constraint validations"
|
2019
|
+
end
|
2020
|
+
describe "with :allow_nil=>false" do
|
2021
|
+
before(:all) do
|
2022
|
+
@table_block.call
|
2023
|
+
end
|
2024
|
+
it_should_behave_like "constraint validations"
|
2025
|
+
end
|
2026
|
+
end
|
2027
|
+
|
2028
|
+
describe "via alter_table" do
|
2029
|
+
before(:all) do
|
2030
|
+
@table_block = proc do
|
2031
|
+
regexp = @regexp
|
2032
|
+
validate_block = @validate_block
|
2033
|
+
@db.create_table!(:cv_test) do
|
2034
|
+
primary_key :id
|
2035
|
+
String :lik
|
2036
|
+
String :ilik
|
2037
|
+
String :inc
|
2038
|
+
String :uniq, :null=>false
|
2039
|
+
end
|
2040
|
+
@db.alter_table(:cv_test) do
|
2041
|
+
add_column :pre, String
|
2042
|
+
add_column :exactlen, String
|
2043
|
+
add_column :minlen, String
|
2044
|
+
add_column :maxlen, String
|
2045
|
+
add_column :lenrange, String
|
2046
|
+
if regexp
|
2047
|
+
add_column :form, String
|
2048
|
+
end
|
2049
|
+
validate(&validate_block)
|
2050
|
+
end
|
2051
|
+
end
|
2052
|
+
end
|
2053
|
+
after(:all) do
|
2054
|
+
@db.drop_table?(:cv_test)
|
2055
|
+
@db.drop_constraint_validations_for(:table=>:cv_test)
|
2056
|
+
end
|
2057
|
+
|
2058
|
+
describe "with :allow_nil=>true" do
|
2059
|
+
before(:all) do
|
2060
|
+
@validation_opts = {:allow_nil=>true}
|
2061
|
+
@table_block.call
|
2062
|
+
end
|
2063
|
+
it_should_behave_like "constraint validations"
|
2064
|
+
end
|
2065
|
+
describe "with :allow_nil=>false" do
|
2066
|
+
before(:all) do
|
2067
|
+
@table_block.call
|
2068
|
+
end
|
2069
|
+
it_should_behave_like "constraint validations"
|
2070
|
+
end
|
2071
|
+
end
|
2072
|
+
end unless DB.database_type == :fdbsql # doesn't handle check constraints
|
2073
|
+
|
2074
|
+
describe "date_arithmetic extension" do
|
2075
|
+
asd = begin
|
2076
|
+
require 'active_support/duration'
|
2077
|
+
require 'active_support/inflector'
|
2078
|
+
require 'active_support/core_ext/string/inflections'
|
2079
|
+
true
|
2080
|
+
rescue LoadError
|
2081
|
+
false
|
2082
|
+
end
|
2083
|
+
|
2084
|
+
before(:all) do
|
2085
|
+
@db = DB
|
2086
|
+
@db.extension(:date_arithmetic)
|
2087
|
+
if @db.database_type == :sqlite
|
2088
|
+
@db.use_timestamp_timezones = false
|
2089
|
+
end
|
2090
|
+
@date = Date.civil(2010, 7, 12)
|
2091
|
+
@dt = Time.local(2010, 7, 12)
|
2092
|
+
if asd
|
2093
|
+
@d0 = ActiveSupport::Duration.new(0, [[:days, 0]])
|
2094
|
+
@d1 = ActiveSupport::Duration.new(1, [[:days, 1]])
|
2095
|
+
@d2 = ActiveSupport::Duration.new(1, [[:years, 1], [:months, 1], [:days, 1], [:minutes, 61], [:seconds, 1]])
|
2096
|
+
end
|
2097
|
+
@h0 = {:days=>0}
|
2098
|
+
@h1 = {:days=>1, :years=>nil, :hours=>0}
|
2099
|
+
@h2 = {:years=>1, :months=>1, :days=>1, :hours=>1, :minutes=>1, :seconds=>1}
|
2100
|
+
@a1 = Time.local(2010, 7, 13)
|
2101
|
+
@a2 = Time.local(2011, 8, 13, 1, 1, 1)
|
2102
|
+
@s1 = Time.local(2010, 7, 11)
|
2103
|
+
@s2 = Time.local(2009, 6, 10, 22, 58, 59)
|
2104
|
+
@check = lambda do |meth, in_date, in_interval, should|
|
2105
|
+
output = @db.get(Sequel.send(meth, in_date, in_interval))
|
2106
|
+
output = Time.parse(output.to_s) unless output.is_a?(Time) || output.is_a?(DateTime)
|
2107
|
+
output.year.should == should.year
|
2108
|
+
output.month.should == should.month
|
2109
|
+
output.day.should == should.day
|
2110
|
+
output.hour.should == should.hour
|
2111
|
+
output.min.should == should.min
|
2112
|
+
output.sec.should == should.sec
|
2113
|
+
end
|
2114
|
+
end
|
2115
|
+
after(:all) do
|
2116
|
+
if @db.database_type == :sqlite
|
2117
|
+
@db.use_timestamp_timezones = true
|
2118
|
+
end
|
2119
|
+
end
|
2120
|
+
|
2121
|
+
if asd
|
2122
|
+
specify "be able to use Sequel.date_add to add ActiveSupport::Duration objects to dates and datetimes" do
|
2123
|
+
@check.call(:date_add, @date, @d0, @dt)
|
2124
|
+
@check.call(:date_add, @date, @d1, @a1)
|
2125
|
+
@check.call(:date_add, @date, @d2, @a2)
|
2126
|
+
|
2127
|
+
@check.call(:date_add, @dt, @d0, @dt)
|
2128
|
+
@check.call(:date_add, @dt, @d1, @a1)
|
2129
|
+
@check.call(:date_add, @dt, @d2, @a2)
|
2130
|
+
end
|
2131
|
+
|
2132
|
+
specify "be able to use Sequel.date_sub to subtract ActiveSupport::Duration objects from dates and datetimes" do
|
2133
|
+
@check.call(:date_sub, @date, @d0, @dt)
|
2134
|
+
@check.call(:date_sub, @date, @d1, @s1)
|
2135
|
+
@check.call(:date_sub, @date, @d2, @s2)
|
2136
|
+
|
2137
|
+
@check.call(:date_sub, @dt, @d0, @dt)
|
2138
|
+
@check.call(:date_sub, @dt, @d1, @s1)
|
2139
|
+
@check.call(:date_sub, @dt, @d2, @s2)
|
2140
|
+
end
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
specify "be able to use Sequel.date_add to add interval hashes to dates and datetimes" do
|
2144
|
+
@check.call(:date_add, @date, @h0, @dt)
|
2145
|
+
@check.call(:date_add, @date, @h1, @a1)
|
2146
|
+
@check.call(:date_add, @date, @h2, @a2)
|
2147
|
+
|
2148
|
+
@check.call(:date_add, @dt, @h0, @dt)
|
2149
|
+
@check.call(:date_add, @dt, @h1, @a1)
|
2150
|
+
@check.call(:date_add, @dt, @h2, @a2)
|
2151
|
+
end
|
2152
|
+
|
2153
|
+
specify "be able to use Sequel.date_sub to subtract interval hashes from dates and datetimes" do
|
2154
|
+
@check.call(:date_sub, @date, @h0, @dt)
|
2155
|
+
@check.call(:date_sub, @date, @h1, @s1)
|
2156
|
+
@check.call(:date_sub, @date, @h2, @s2)
|
2157
|
+
|
2158
|
+
@check.call(:date_sub, @dt, @h0, @dt)
|
2159
|
+
@check.call(:date_sub, @dt, @h1, @s1)
|
2160
|
+
@check.call(:date_sub, @dt, @h2, @s2)
|
2161
|
+
end
|
2162
|
+
end
|