recliner 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.gitignore +1 -0
- data/LICENSE +22 -0
- data/README +37 -0
- data/Rakefile +63 -0
- data/VERSION +1 -0
- data/features/associations/has.feature +36 -0
- data/features/document/deleting.feature +39 -0
- data/features/document/destroying.feature +39 -0
- data/features/document/instantiation.feature +32 -0
- data/features/document/loading.feature +86 -0
- data/features/document/saving.feature +88 -0
- data/features/restful_api.feature +82 -0
- data/features/step_definitions/association_steps.rb +8 -0
- data/features/step_definitions/database_steps.rb +8 -0
- data/features/step_definitions/document_steps.rb +200 -0
- data/features/step_definitions/restful_steps.rb +56 -0
- data/features/step_definitions/view_steps.rb +57 -0
- data/features/support/env.rb +36 -0
- data/features/validation/acceptance.feature +41 -0
- data/features/validation/common.feature +152 -0
- data/features/validation/confirmation.feature +44 -0
- data/features/validation/exclusion.feature +38 -0
- data/features/validation/format.feature +108 -0
- data/features/validation/inclusion.feature +68 -0
- data/features/validation/length.feature +82 -0
- data/features/validation/numericality.feature +60 -0
- data/features/validation/presence.feature +25 -0
- data/features/validation/uniqueness.feature +84 -0
- data/features/views/map.feature +63 -0
- data/lib/recliner.rb +139 -0
- data/lib/recliner/associations.rb +6 -0
- data/lib/recliner/associations/has.rb +29 -0
- data/lib/recliner/associations/reference.rb +51 -0
- data/lib/recliner/attribute_methods.rb +110 -0
- data/lib/recliner/attribute_methods/before_type_cast.rb +42 -0
- data/lib/recliner/attribute_methods/defaults.rb +30 -0
- data/lib/recliner/attribute_methods/dirty.rb +51 -0
- data/lib/recliner/attribute_methods/protected.rb +127 -0
- data/lib/recliner/attribute_methods/query.rb +22 -0
- data/lib/recliner/attribute_methods/read.rb +33 -0
- data/lib/recliner/attribute_methods/write.rb +35 -0
- data/lib/recliner/callbacks.rb +296 -0
- data/lib/recliner/configuration.rb +21 -0
- data/lib/recliner/conversions.rb +64 -0
- data/lib/recliner/conversions/boolean.rb +17 -0
- data/lib/recliner/conversions/couch.rb +46 -0
- data/lib/recliner/conversions/date.rb +8 -0
- data/lib/recliner/conversions/number.rb +22 -0
- data/lib/recliner/conversions/string.rb +1 -0
- data/lib/recliner/conversions/time.rb +7 -0
- data/lib/recliner/core_extensions.rb +13 -0
- data/lib/recliner/database.rb +117 -0
- data/lib/recliner/document.rb +363 -0
- data/lib/recliner/exceptions.rb +37 -0
- data/lib/recliner/locale/en.yml +54 -0
- data/lib/recliner/pretty_inspect.rb +30 -0
- data/lib/recliner/properties.rb +74 -0
- data/lib/recliner/properties/map.rb +152 -0
- data/lib/recliner/properties/property.rb +18 -0
- data/lib/recliner/properties/set.rb +127 -0
- data/lib/recliner/timestamps.rb +43 -0
- data/lib/recliner/validations.rb +146 -0
- data/lib/recliner/validations/uniqueness.rb +70 -0
- data/lib/recliner/views.rb +148 -0
- data/lib/recliner/views/document.rb +20 -0
- data/lib/recliner/views/function.rb +31 -0
- data/lib/recliner/views/generator.rb +71 -0
- data/lib/recliner/views/view.rb +73 -0
- data/play.rb +29 -0
- data/spec/recliner/conversions_spec.rb +233 -0
- data/spec/recliner/database_spec.rb +146 -0
- data/spec/recliner/document/active_model_spec.rb +25 -0
- data/spec/recliner/document/associations/has_spec.rb +47 -0
- data/spec/recliner/document/associations/reference_spec.rb +132 -0
- data/spec/recliner/document/attribute_methods/before_type_cast_spec.rb +87 -0
- data/spec/recliner/document/attribute_methods/defaults_spec.rb +24 -0
- data/spec/recliner/document/attribute_methods/dirty_spec.rb +136 -0
- data/spec/recliner/document/attribute_methods/protected_spec.rb +86 -0
- data/spec/recliner/document/attribute_methods/query_spec.rb +93 -0
- data/spec/recliner/document/attribute_methods/read_spec.rb +55 -0
- data/spec/recliner/document/attribute_methods/write_spec.rb +87 -0
- data/spec/recliner/document/attribute_methods_spec.rb +190 -0
- data/spec/recliner/document/callbacks_spec.rb +278 -0
- data/spec/recliner/document/database_spec.rb +56 -0
- data/spec/recliner/document/document_spec.rb +923 -0
- data/spec/recliner/document/pretty_inspect_spec.rb +55 -0
- data/spec/recliner/document/properties/map_spec.rb +394 -0
- data/spec/recliner/document/properties/property_spec.rb +274 -0
- data/spec/recliner/document/properties/set_spec.rb +251 -0
- data/spec/recliner/document/properties_spec.rb +102 -0
- data/spec/recliner/document/timestamps_spec.rb +152 -0
- data/spec/recliner/document/validations/uniqueness_spec.rb +87 -0
- data/spec/recliner/document/validations_spec.rb +107 -0
- data/spec/recliner/document/views/document_spec.rb +132 -0
- data/spec/recliner/document/views/function_spec.rb +63 -0
- data/spec/recliner/document/views/generator_spec.rb +115 -0
- data/spec/recliner/document/views/view_spec.rb +255 -0
- data/spec/recliner/document/views_spec.rb +308 -0
- data/spec/recliner/recliner_spec.rb +228 -0
- data/spec/spec.opts +6 -0
- data/spec/spec_helper.rb +13 -0
- data/spec/support/helpers/recliner_helpers.rb +15 -0
- data/spec/support/helpers/recliner_macros.rb +12 -0
- data/spec/support/matchers/be_equivalent_to.rb +17 -0
- data/vendor/activemodel/CHANGELOG +11 -0
- data/vendor/activemodel/CHANGES +12 -0
- data/vendor/activemodel/MIT-LICENSE +21 -0
- data/vendor/activemodel/README +21 -0
- data/vendor/activemodel/Rakefile +76 -0
- data/vendor/activemodel/activemodel.gemspec +31 -0
- data/vendor/activemodel/examples/validations.rb +29 -0
- data/vendor/activemodel/lib/active_model.rb +52 -0
- data/vendor/activemodel/lib/active_model/attribute_methods.rb +291 -0
- data/vendor/activemodel/lib/active_model/conversion.rb +8 -0
- data/vendor/activemodel/lib/active_model/deprecated_error_methods.rb +33 -0
- data/vendor/activemodel/lib/active_model/dirty.rb +126 -0
- data/vendor/activemodel/lib/active_model/errors.rb +162 -0
- data/vendor/activemodel/lib/active_model/lint.rb +96 -0
- data/vendor/activemodel/lib/active_model/locale/en.yml +24 -0
- data/vendor/activemodel/lib/active_model/naming.rb +26 -0
- data/vendor/activemodel/lib/active_model/observing.rb +191 -0
- data/vendor/activemodel/lib/active_model/serialization.rb +30 -0
- data/vendor/activemodel/lib/active_model/serializer.rb +60 -0
- data/vendor/activemodel/lib/active_model/serializers/json.rb +98 -0
- data/vendor/activemodel/lib/active_model/serializers/xml.rb +204 -0
- data/vendor/activemodel/lib/active_model/state_machine.rb +70 -0
- data/vendor/activemodel/lib/active_model/state_machine/event.rb +62 -0
- data/vendor/activemodel/lib/active_model/state_machine/machine.rb +75 -0
- data/vendor/activemodel/lib/active_model/state_machine/state.rb +47 -0
- data/vendor/activemodel/lib/active_model/state_machine/state_transition.rb +40 -0
- data/vendor/activemodel/lib/active_model/test_case.rb +18 -0
- data/vendor/activemodel/lib/active_model/validations.rb +130 -0
- data/vendor/activemodel/lib/active_model/validations/acceptance.rb +48 -0
- data/vendor/activemodel/lib/active_model/validations/confirmation.rb +45 -0
- data/vendor/activemodel/lib/active_model/validations/exclusion.rb +38 -0
- data/vendor/activemodel/lib/active_model/validations/format.rb +62 -0
- data/vendor/activemodel/lib/active_model/validations/inclusion.rb +38 -0
- data/vendor/activemodel/lib/active_model/validations/length.rb +102 -0
- data/vendor/activemodel/lib/active_model/validations/numericality.rb +107 -0
- data/vendor/activemodel/lib/active_model/validations/presence.rb +41 -0
- data/vendor/activemodel/lib/active_model/validations/with.rb +64 -0
- data/vendor/activemodel/lib/active_model/validations_repair_helper.rb +35 -0
- data/vendor/activemodel/lib/active_model/version.rb +9 -0
- data/vendor/activemodel/lib/activemodel.rb +1 -0
- data/vendor/activemodel/test/cases/attribute_methods_test.rb +46 -0
- data/vendor/activemodel/test/cases/helper.rb +18 -0
- data/vendor/activemodel/test/cases/lint_test.rb +50 -0
- data/vendor/activemodel/test/cases/naming_test.rb +27 -0
- data/vendor/activemodel/test/cases/observing_test.rb +133 -0
- data/vendor/activemodel/test/cases/serializeration/json_serialization_test.rb +83 -0
- data/vendor/activemodel/test/cases/serializeration/xml_serialization_test.rb +110 -0
- data/vendor/activemodel/test/cases/state_machine/event_test.rb +49 -0
- data/vendor/activemodel/test/cases/state_machine/machine_test.rb +43 -0
- data/vendor/activemodel/test/cases/state_machine/state_test.rb +72 -0
- data/vendor/activemodel/test/cases/state_machine/state_transition_test.rb +84 -0
- data/vendor/activemodel/test/cases/state_machine_test.rb +312 -0
- data/vendor/activemodel/test/cases/tests_database.rb +36 -0
- data/vendor/activemodel/test/cases/validations/acceptance_validation_test.rb +80 -0
- data/vendor/activemodel/test/cases/validations/conditional_validation_test.rb +140 -0
- data/vendor/activemodel/test/cases/validations/confirmation_validation_test.rb +68 -0
- data/vendor/activemodel/test/cases/validations/exclusion_validation_test.rb +46 -0
- data/vendor/activemodel/test/cases/validations/format_validation_test.rb +127 -0
- data/vendor/activemodel/test/cases/validations/i18n_generate_message_validation_test.rb +176 -0
- data/vendor/activemodel/test/cases/validations/i18n_validation_test.rb +528 -0
- data/vendor/activemodel/test/cases/validations/inclusion_validation_test.rb +80 -0
- data/vendor/activemodel/test/cases/validations/length_validation_test.rb +466 -0
- data/vendor/activemodel/test/cases/validations/numericality_validation_test.rb +197 -0
- data/vendor/activemodel/test/cases/validations/presence_validation_test.rb +72 -0
- data/vendor/activemodel/test/cases/validations/with_validation_test.rb +118 -0
- data/vendor/activemodel/test/cases/validations_test.rb +208 -0
- data/vendor/activemodel/test/config.rb +3 -0
- data/vendor/activemodel/test/fixtures/topics.yml +41 -0
- data/vendor/activemodel/test/models/contact.rb +7 -0
- data/vendor/activemodel/test/models/custom_reader.rb +17 -0
- data/vendor/activemodel/test/models/developer.rb +6 -0
- data/vendor/activemodel/test/models/person.rb +5 -0
- data/vendor/activemodel/test/models/reply.rb +34 -0
- data/vendor/activemodel/test/models/topic.rb +9 -0
- data/vendor/activemodel/test/schema.rb +14 -0
- data/vendor/activesupport/CHANGELOG +1345 -0
- data/vendor/activesupport/MIT-LICENSE +20 -0
- data/vendor/activesupport/README +43 -0
- data/vendor/activesupport/Rakefile +199 -0
- data/vendor/activesupport/activesupport.gemspec +28 -0
- data/vendor/activesupport/bin/generate_tables +147 -0
- data/vendor/activesupport/install.rb +30 -0
- data/vendor/activesupport/lib/active_support.rb +41 -0
- data/vendor/activesupport/lib/active_support/all.rb +3 -0
- data/vendor/activesupport/lib/active_support/autoload.rb +26 -0
- data/vendor/activesupport/lib/active_support/backtrace_cleaner.rb +72 -0
- data/vendor/activesupport/lib/active_support/base64.rb +42 -0
- data/vendor/activesupport/lib/active_support/basic_object.rb +21 -0
- data/vendor/activesupport/lib/active_support/buffered_logger.rb +133 -0
- data/vendor/activesupport/lib/active_support/cache.rb +261 -0
- data/vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb +20 -0
- data/vendor/activesupport/lib/active_support/cache/file_store.rb +86 -0
- data/vendor/activesupport/lib/active_support/cache/mem_cache_store.rb +138 -0
- data/vendor/activesupport/lib/active_support/cache/memory_store.rb +52 -0
- data/vendor/activesupport/lib/active_support/cache/strategy/local_cache.rb +111 -0
- data/vendor/activesupport/lib/active_support/cache/synchronized_memory_store.rb +47 -0
- data/vendor/activesupport/lib/active_support/callbacks.rb +281 -0
- data/vendor/activesupport/lib/active_support/concern.rb +25 -0
- data/vendor/activesupport/lib/active_support/concurrent_hash.rb +27 -0
- data/vendor/activesupport/lib/active_support/core_ext.rb +3 -0
- data/vendor/activesupport/lib/active_support/core_ext/array.rb +6 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/access.rb +46 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/conversions.rb +189 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/extract_options.rb +14 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/grouping.rb +100 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/random_access.rb +6 -0
- data/vendor/activesupport/lib/active_support/core_ext/array/wrap.rb +18 -0
- data/vendor/activesupport/lib/active_support/core_ext/benchmark.rb +19 -0
- data/vendor/activesupport/lib/active_support/core_ext/big_decimal.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb +27 -0
- data/vendor/activesupport/lib/active_support/core_ext/boolean.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/boolean/conversions.rb +11 -0
- data/vendor/activesupport/lib/active_support/core_ext/cgi.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +17 -0
- data/vendor/activesupport/lib/active_support/core_ext/class.rb +4 -0
- data/vendor/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +57 -0
- data/vendor/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb +50 -0
- data/vendor/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +223 -0
- data/vendor/activesupport/lib/active_support/core_ext/class/removal.rb +53 -0
- data/vendor/activesupport/lib/active_support/core_ext/date.rb +7 -0
- data/vendor/activesupport/lib/active_support/core_ext/date/acts_like.rb +8 -0
- data/vendor/activesupport/lib/active_support/core_ext/date/calculations.rb +218 -0
- data/vendor/activesupport/lib/active_support/core_ext/date/conversions.rb +99 -0
- data/vendor/activesupport/lib/active_support/core_ext/date/freeze.rb +31 -0
- data/vendor/activesupport/lib/active_support/core_ext/date_time.rb +5 -0
- data/vendor/activesupport/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
- data/vendor/activesupport/lib/active_support/core_ext/date_time/calculations.rb +112 -0
- data/vendor/activesupport/lib/active_support/core_ext/date_time/conversions.rb +84 -0
- data/vendor/activesupport/lib/active_support/core_ext/date_time/zones.rb +17 -0
- data/vendor/activesupport/lib/active_support/core_ext/enumerable.rb +123 -0
- data/vendor/activesupport/lib/active_support/core_ext/exception.rb +50 -0
- data/vendor/activesupport/lib/active_support/core_ext/file.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/file/atomic.rb +40 -0
- data/vendor/activesupport/lib/active_support/core_ext/float.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/float/rounding.rb +18 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash.rb +8 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/conversions.rb +230 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/deep_merge.rb +17 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/diff.rb +13 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/except.rb +16 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +9 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/keys.rb +46 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +28 -0
- data/vendor/activesupport/lib/active_support/core_ext/hash/slice.rb +32 -0
- data/vendor/activesupport/lib/active_support/core_ext/integer.rb +3 -0
- data/vendor/activesupport/lib/active_support/core_ext/integer/even_odd.rb +16 -0
- data/vendor/activesupport/lib/active_support/core_ext/integer/inflections.rb +14 -0
- data/vendor/activesupport/lib/active_support/core_ext/integer/time.rb +39 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel.rb +5 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +7 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel/debugger.rb +15 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel/reporting.rb +61 -0
- data/vendor/activesupport/lib/active_support/core_ext/kernel/requires.rb +26 -0
- data/vendor/activesupport/lib/active_support/core_ext/load_error.rb +36 -0
- data/vendor/activesupport/lib/active_support/core_ext/logger.rb +146 -0
- data/vendor/activesupport/lib/active_support/core_ext/module.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/aliasing.rb +70 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/attr_internal.rb +32 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +62 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/delegation.rb +135 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/deprecation.rb +9 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/inclusion.rb +30 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/introspection.rb +88 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/loading.rb +23 -0
- data/vendor/activesupport/lib/active_support/core_ext/module/synchronization.rb +41 -0
- data/vendor/activesupport/lib/active_support/core_ext/name_error.rb +16 -0
- data/vendor/activesupport/lib/active_support/core_ext/nil.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/nil/conversions.rb +5 -0
- data/vendor/activesupport/lib/active_support/core_ext/numeric.rb +2 -0
- data/vendor/activesupport/lib/active_support/core_ext/numeric/bytes.rb +44 -0
- data/vendor/activesupport/lib/active_support/core_ext/numeric/time.rb +77 -0
- data/vendor/activesupport/lib/active_support/core_ext/object.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/acts_like.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/blank.rb +58 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/conversions.rb +18 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/duplicable.rb +43 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/extending.rb +80 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/instance_variables.rb +74 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/metaclass.rb +13 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/misc.rb +3 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/returning.rb +42 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/tap.rb +16 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/try.rb +36 -0
- data/vendor/activesupport/lib/active_support/core_ext/object/with_options.rb +24 -0
- data/vendor/activesupport/lib/active_support/core_ext/proc.rb +14 -0
- data/vendor/activesupport/lib/active_support/core_ext/process.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/process/daemon.rb +23 -0
- data/vendor/activesupport/lib/active_support/core_ext/range.rb +4 -0
- data/vendor/activesupport/lib/active_support/core_ext/range/blockless_step.rb +29 -0
- data/vendor/activesupport/lib/active_support/core_ext/range/conversions.rb +21 -0
- data/vendor/activesupport/lib/active_support/core_ext/range/include_range.rb +21 -0
- data/vendor/activesupport/lib/active_support/core_ext/range/overlaps.rb +8 -0
- data/vendor/activesupport/lib/active_support/core_ext/regexp.rb +27 -0
- data/vendor/activesupport/lib/active_support/core_ext/rexml.rb +43 -0
- data/vendor/activesupport/lib/active_support/core_ext/string.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/access.rb +97 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/behavior.rb +7 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/bytesize.rb +5 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/conversions.rb +26 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/filters.rb +20 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/inflections.rb +160 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/interpolation.rb +92 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/iterators.rb +13 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/multibyte.rb +75 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +18 -0
- data/vendor/activesupport/lib/active_support/core_ext/string/xchar.rb +18 -0
- data/vendor/activesupport/lib/active_support/core_ext/symbol.rb +1 -0
- data/vendor/activesupport/lib/active_support/core_ext/symbol/to_proc.rb +14 -0
- data/vendor/activesupport/lib/active_support/core_ext/time.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/acts_like.rb +8 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/calculations.rb +280 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/conversions.rb +84 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/marshal_with_utc_flag.rb +22 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
- data/vendor/activesupport/lib/active_support/core_ext/time/zones.rb +78 -0
- data/vendor/activesupport/lib/active_support/core_ext/uri.rb +16 -0
- data/vendor/activesupport/lib/active_support/dependencies.rb +641 -0
- data/vendor/activesupport/lib/active_support/dependency_module.rb +17 -0
- data/vendor/activesupport/lib/active_support/deprecation.rb +18 -0
- data/vendor/activesupport/lib/active_support/deprecation/behaviors.rb +32 -0
- data/vendor/activesupport/lib/active_support/deprecation/method_wrappers.rb +28 -0
- data/vendor/activesupport/lib/active_support/deprecation/proxy_wrappers.rb +74 -0
- data/vendor/activesupport/lib/active_support/deprecation/reporting.rb +55 -0
- data/vendor/activesupport/lib/active_support/duration.rb +101 -0
- data/vendor/activesupport/lib/active_support/gzip.rb +25 -0
- data/vendor/activesupport/lib/active_support/hash_with_indifferent_access.rb +137 -0
- data/vendor/activesupport/lib/active_support/inflections.rb +56 -0
- data/vendor/activesupport/lib/active_support/inflector.rb +410 -0
- data/vendor/activesupport/lib/active_support/json.rb +2 -0
- data/vendor/activesupport/lib/active_support/json/backends/jsongem.rb +40 -0
- data/vendor/activesupport/lib/active_support/json/backends/yaml.rb +90 -0
- data/vendor/activesupport/lib/active_support/json/decoding.rb +36 -0
- data/vendor/activesupport/lib/active_support/json/encoding.rb +224 -0
- data/vendor/activesupport/lib/active_support/json/variable.rb +11 -0
- data/vendor/activesupport/lib/active_support/locale/en.yml +33 -0
- data/vendor/activesupport/lib/active_support/memoizable.rb +116 -0
- data/vendor/activesupport/lib/active_support/message_encryptor.rb +70 -0
- data/vendor/activesupport/lib/active_support/message_verifier.rb +57 -0
- data/vendor/activesupport/lib/active_support/mini.rb +9 -0
- data/vendor/activesupport/lib/active_support/multibyte.rb +59 -0
- data/vendor/activesupport/lib/active_support/multibyte/chars.rb +708 -0
- data/vendor/activesupport/lib/active_support/multibyte/exceptions.rb +8 -0
- data/vendor/activesupport/lib/active_support/multibyte/unicode_database.rb +71 -0
- data/vendor/activesupport/lib/active_support/multibyte/utils.rb +61 -0
- data/vendor/activesupport/lib/active_support/new_callbacks.rb +500 -0
- data/vendor/activesupport/lib/active_support/option_merger.rb +25 -0
- data/vendor/activesupport/lib/active_support/ordered_hash.rb +134 -0
- data/vendor/activesupport/lib/active_support/ordered_options.rb +21 -0
- data/vendor/activesupport/lib/active_support/rescuable.rb +111 -0
- data/vendor/activesupport/lib/active_support/ruby/shim.rb +24 -0
- data/vendor/activesupport/lib/active_support/secure_random.rb +199 -0
- data/vendor/activesupport/lib/active_support/string_inquirer.rb +21 -0
- data/vendor/activesupport/lib/active_support/test_case.rb +47 -0
- data/vendor/activesupport/lib/active_support/testing/assertions.rb +67 -0
- data/vendor/activesupport/lib/active_support/testing/declarative.rb +40 -0
- data/vendor/activesupport/lib/active_support/testing/default.rb +9 -0
- data/vendor/activesupport/lib/active_support/testing/deprecation.rb +55 -0
- data/vendor/activesupport/lib/active_support/testing/isolation.rb +105 -0
- data/vendor/activesupport/lib/active_support/testing/pending.rb +48 -0
- data/vendor/activesupport/lib/active_support/testing/performance.rb +450 -0
- data/vendor/activesupport/lib/active_support/testing/setup_and_teardown.rb +91 -0
- data/vendor/activesupport/lib/active_support/time.rb +14 -0
- data/vendor/activesupport/lib/active_support/time/autoload.rb +5 -0
- data/vendor/activesupport/lib/active_support/time_with_zone.rb +346 -0
- data/vendor/activesupport/lib/active_support/values/time_zone.rb +421 -0
- data/vendor/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
- data/vendor/activesupport/lib/active_support/vendor.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb +113 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb +250 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +115 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +139 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +63 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +328 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/blankslate.rb +113 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/blankslate.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/css.rb +250 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xchar.rb +115 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlbase.rb +139 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlevents.rb +63 -0
- data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlmarkup.rb +328 -0
- data/vendor/activesupport/lib/active_support/vendor/builder.rb +6 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +20 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/README.textile +20 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/Rakefile +5 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +27 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb +204 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb +215 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb +53 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/all.rb +5 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +99 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +124 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +1 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +3 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +567 -0
- data/vendor/activesupport/lib/active_support/vendor/i18n.rb +6 -0
- data/vendor/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb +935 -0
- data/vendor/activesupport/lib/active_support/vendor/memcache-client-1.7.5/lib/memcache.rb +1133 -0
- data/vendor/activesupport/lib/active_support/vendor/memcache.rb +6 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/data_timezone.rb +47 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/data_timezone_info.rb +228 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Algiers.rb +55 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Cairo.rb +219 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Casablanca.rb +42 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Harare.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Monrovia.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Nairobi.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Bogota.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Caracas.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Chicago.rb +283 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Chihuahua.rb +136 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Denver.rb +204 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Godthab.rb +161 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Guatemala.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Halifax.rb +274 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Juneau.rb +194 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/La_Paz.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Lima.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Los_Angeles.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Mazatlan.rb +139 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Mexico_City.rb +144 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Monterrey.rb +131 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/New_York.rb +282 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Phoenix.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Regina.rb +74 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Santiago.rb +205 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/St_Johns.rb +288 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Tijuana.rb +196 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Almaty.rb +67 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Baghdad.rb +73 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Baku.rb +161 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Bangkok.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Chongqing.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Colombo.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Dhaka.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Jakarta.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kabul.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Karachi.rb +32 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kathmandu.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kolkata.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kuwait.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Magadan.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Muscat.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Rangoon.rb +24 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Riyadh.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Seoul.rb +34 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Shanghai.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Singapore.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Taipei.rb +59 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tashkent.rb +47 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tehran.rb +121 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tokyo.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Urumqi.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yerevan.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/Azores.rb +270 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Adelaide.rb +187 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Brisbane.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Darwin.rb +29 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Hobart.rb +193 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Melbourne.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Perth.rb +37 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Sydney.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Etc/UTC.rb +16 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Athens.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Belgrade.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Berlin.rb +188 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Bratislava.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Brussels.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Bucharest.rb +181 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Budapest.rb +197 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Dublin.rb +276 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Helsinki.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Istanbul.rb +218 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Kiev.rb +168 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Lisbon.rb +268 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/London.rb +288 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Madrid.rb +211 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Minsk.rb +170 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Moscow.rb +181 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Paris.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Prague.rb +187 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Riga.rb +176 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Rome.rb +215 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Skopje.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Sofia.rb +173 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Stockholm.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Tallinn.rb +172 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Vienna.rb +183 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Vilnius.rb +170 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Warsaw.rb +212 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Zagreb.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Auckland.rb +202 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Fiji.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Guam.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Majuro.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Midway.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Noumea.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/info_timezone.rb +52 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/linked_timezone.rb +51 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/linked_timezone_info.rb +44 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/offset_rationals.rb +98 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/ruby_core_support.rb +56 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/time_or_datetime.rb +292 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone.rb +508 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_definition.rb +56 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_info.rb +40 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_offset_info.rb +94 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_period.rb +198 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_transition_info.rb +129 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/data_timezone.rb +47 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/data_timezone_info.rb +228 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Algiers.rb +55 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Cairo.rb +219 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Casablanca.rb +42 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Harare.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Monrovia.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Nairobi.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Bogota.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Caracas.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Chicago.rb +283 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Chihuahua.rb +136 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Denver.rb +204 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Godthab.rb +161 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Guatemala.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Halifax.rb +274 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Juneau.rb +194 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/La_Paz.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Lima.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Los_Angeles.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Mazatlan.rb +139 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Mexico_City.rb +144 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Monterrey.rb +131 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/New_York.rb +282 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Phoenix.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Regina.rb +74 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Santiago.rb +205 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/St_Johns.rb +288 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Tijuana.rb +196 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Almaty.rb +67 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Baghdad.rb +73 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Baku.rb +161 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Bangkok.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Chongqing.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Colombo.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Dhaka.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Jakarta.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kabul.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Karachi.rb +32 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kolkata.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kuwait.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Magadan.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Muscat.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Rangoon.rb +24 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Riyadh.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Seoul.rb +34 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Shanghai.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Singapore.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Taipei.rb +59 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tashkent.rb +47 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tehran.rb +121 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tokyo.rb +30 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Urumqi.rb +33 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yerevan.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/Azores.rb +270 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Adelaide.rb +187 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Brisbane.rb +35 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Darwin.rb +29 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Hobart.rb +193 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Melbourne.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Perth.rb +37 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Sydney.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Etc/UTC.rb +16 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Athens.rb +185 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Belgrade.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Berlin.rb +188 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Bratislava.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Brussels.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Bucharest.rb +181 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Budapest.rb +197 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Dublin.rb +276 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Helsinki.rb +163 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Istanbul.rb +218 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Kiev.rb +168 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Lisbon.rb +268 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/London.rb +288 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Madrid.rb +211 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Minsk.rb +170 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Moscow.rb +181 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Paris.rb +232 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Prague.rb +187 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Riga.rb +176 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Rome.rb +215 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Skopje.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Sofia.rb +173 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Stockholm.rb +165 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Tallinn.rb +172 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Vienna.rb +183 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Vilnius.rb +170 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Warsaw.rb +212 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Zagreb.rb +13 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Auckland.rb +202 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Fiji.rb +23 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Guam.rb +22 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Majuro.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Midway.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Noumea.rb +25 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/info_timezone.rb +52 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/linked_timezone.rb +51 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/linked_timezone_info.rb +44 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/offset_rationals.rb +98 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/ruby_core_support.rb +56 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/time_or_datetime.rb +292 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone.rb +508 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_definition.rb +56 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_info.rb +40 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_offset_info.rb +94 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_period.rb +198 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_transition_info.rb +129 -0
- data/vendor/activesupport/lib/active_support/vendor/tzinfo.rb +6 -0
- data/vendor/activesupport/lib/active_support/version.rb +9 -0
- data/vendor/activesupport/lib/active_support/whiny_nil.rb +58 -0
- data/vendor/activesupport/lib/active_support/xml_mini.rb +33 -0
- data/vendor/activesupport/lib/active_support/xml_mini/jdom.rb +166 -0
- data/vendor/activesupport/lib/active_support/xml_mini/libxml.rb +139 -0
- data/vendor/activesupport/lib/active_support/xml_mini/nokogiri.rb +83 -0
- data/vendor/activesupport/lib/active_support/xml_mini/rexml.rb +123 -0
- data/vendor/activesupport/lib/activesupport.rb +1 -0
- data/vendor/activesupport/test/abstract_unit.rb +49 -0
- data/vendor/activesupport/test/autoloading_fixtures/a/b.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/a/c/d.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/a/c/e/f.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/application.rb +1 -0
- data/vendor/activesupport/test/autoloading_fixtures/class_folder.rb +3 -0
- data/vendor/activesupport/test/autoloading_fixtures/class_folder/class_folder_subclass.rb +3 -0
- data/vendor/activesupport/test/autoloading_fixtures/class_folder/inline_class.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/class_folder/nested_class.rb +7 -0
- data/vendor/activesupport/test/autoloading_fixtures/conflict.rb +1 -0
- data/vendor/activesupport/test/autoloading_fixtures/counting_loader.rb +5 -0
- data/vendor/activesupport/test/autoloading_fixtures/cross_site_dependency.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/e.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/module_folder/inline_class.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/module_folder/nested_class.rb +4 -0
- data/vendor/activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb +1 -0
- data/vendor/activesupport/test/autoloading_fixtures/multiple_constant_file.rb +2 -0
- data/vendor/activesupport/test/autoloading_fixtures/raises_name_error.rb +3 -0
- data/vendor/activesupport/test/autoloading_fixtures/raises_no_method_error.rb +3 -0
- data/vendor/activesupport/test/buffered_logger_test.rb +149 -0
- data/vendor/activesupport/test/caching_test.rb +344 -0
- data/vendor/activesupport/test/callbacks_test.rb +188 -0
- data/vendor/activesupport/test/clean_backtrace_test.rb +47 -0
- data/vendor/activesupport/test/clean_logger_test.rb +58 -0
- data/vendor/activesupport/test/concern_test.rb +97 -0
- data/vendor/activesupport/test/core_ext/array_ext_test.rb +367 -0
- data/vendor/activesupport/test/core_ext/base64_ext_test.rb +8 -0
- data/vendor/activesupport/test/core_ext/bigdecimal.rb +10 -0
- data/vendor/activesupport/test/core_ext/blank_test.rb +25 -0
- data/vendor/activesupport/test/core_ext/boolean_ext_test.rb +12 -0
- data/vendor/activesupport/test/core_ext/cgi_ext_test.rb +15 -0
- data/vendor/activesupport/test/core_ext/class/attribute_accessor_test.rb +32 -0
- data/vendor/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb +225 -0
- data/vendor/activesupport/test/core_ext/class/delegating_attributes_test.rb +116 -0
- data/vendor/activesupport/test/core_ext/class_test.rb +47 -0
- data/vendor/activesupport/test/core_ext/date_ext_test.rb +279 -0
- data/vendor/activesupport/test/core_ext/date_time_ext_test.rb +360 -0
- data/vendor/activesupport/test/core_ext/duplicable_test.rb +24 -0
- data/vendor/activesupport/test/core_ext/duration_test.rb +114 -0
- data/vendor/activesupport/test/core_ext/enumerable_test.rb +104 -0
- data/vendor/activesupport/test/core_ext/exception_test.rb +69 -0
- data/vendor/activesupport/test/core_ext/file_test.rb +68 -0
- data/vendor/activesupport/test/core_ext/float_ext_test.rb +26 -0
- data/vendor/activesupport/test/core_ext/hash_ext_test.rb +970 -0
- data/vendor/activesupport/test/core_ext/integer_ext_test.rb +38 -0
- data/vendor/activesupport/test/core_ext/kernel_test.rb +59 -0
- data/vendor/activesupport/test/core_ext/load_error_test.rb +17 -0
- data/vendor/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb +31 -0
- data/vendor/activesupport/test/core_ext/module/attr_internal_test.rb +53 -0
- data/vendor/activesupport/test/core_ext/module/attribute_accessor_test.rb +34 -0
- data/vendor/activesupport/test/core_ext/module/attribute_aliasing_test.rb +59 -0
- data/vendor/activesupport/test/core_ext/module/synchronization_test.rb +88 -0
- data/vendor/activesupport/test/core_ext/module_test.rb +364 -0
- data/vendor/activesupport/test/core_ext/name_error_test.rb +25 -0
- data/vendor/activesupport/test/core_ext/nil_ext_test.rb +8 -0
- data/vendor/activesupport/test/core_ext/numeric_ext_test.rb +150 -0
- data/vendor/activesupport/test/core_ext/object_and_class_ext_test.rb +275 -0
- data/vendor/activesupport/test/core_ext/object_ext_test.rb +16 -0
- data/vendor/activesupport/test/core_ext/proc_test.rb +12 -0
- data/vendor/activesupport/test/core_ext/range_ext_test.rb +65 -0
- data/vendor/activesupport/test/core_ext/regexp_ext_test.rb +29 -0
- data/vendor/activesupport/test/core_ext/string_ext_test.rb +358 -0
- data/vendor/activesupport/test/core_ext/symbol_test.rb +9 -0
- data/vendor/activesupport/test/core_ext/time_ext_test.rb +786 -0
- data/vendor/activesupport/test/core_ext/time_with_zone_test.rb +851 -0
- data/vendor/activesupport/test/core_ext/uri_ext_test.rb +13 -0
- data/vendor/activesupport/test/dependencies/check_warnings.rb +2 -0
- data/vendor/activesupport/test/dependencies/conflict.rb +1 -0
- data/vendor/activesupport/test/dependencies/cross_site_depender.rb +3 -0
- data/vendor/activesupport/test/dependencies/mutual_one.rb +4 -0
- data/vendor/activesupport/test/dependencies/mutual_two.rb +4 -0
- data/vendor/activesupport/test/dependencies/raises_exception.rb +3 -0
- data/vendor/activesupport/test/dependencies/requires_nonexistent0.rb +1 -0
- data/vendor/activesupport/test/dependencies/requires_nonexistent1.rb +1 -0
- data/vendor/activesupport/test/dependencies/service_one.rb +5 -0
- data/vendor/activesupport/test/dependencies/service_two.rb +2 -0
- data/vendor/activesupport/test/dependencies_test.rb +786 -0
- data/vendor/activesupport/test/deprecation_test.rb +167 -0
- data/vendor/activesupport/test/fixtures/omgomg.rb +2 -0
- data/vendor/activesupport/test/flush_cache_on_private_memoization_test.rb +43 -0
- data/vendor/activesupport/test/gzip_test.rb +7 -0
- data/vendor/activesupport/test/i18n_test.rb +100 -0
- data/vendor/activesupport/test/inflector_test.rb +316 -0
- data/vendor/activesupport/test/inflector_test_cases.rb +259 -0
- data/vendor/activesupport/test/isolation_test.rb +162 -0
- data/vendor/activesupport/test/json/decoding_test.rb +81 -0
- data/vendor/activesupport/test/json/encoding_test.rb +149 -0
- data/vendor/activesupport/test/memoizable_test.rb +242 -0
- data/vendor/activesupport/test/message_encryptor_test.rb +46 -0
- data/vendor/activesupport/test/message_verifier_test.rb +25 -0
- data/vendor/activesupport/test/multibyte_chars_test.rb +588 -0
- data/vendor/activesupport/test/multibyte_conformance.rb +129 -0
- data/vendor/activesupport/test/multibyte_test_helpers.rb +19 -0
- data/vendor/activesupport/test/multibyte_unicode_database_test.rb +22 -0
- data/vendor/activesupport/test/multibyte_utils_test.rb +137 -0
- data/vendor/activesupport/test/new_callback_inheritance_test.rb +115 -0
- data/vendor/activesupport/test/new_callbacks_test.rb +528 -0
- data/vendor/activesupport/test/option_merger_test.rb +86 -0
- data/vendor/activesupport/test/ordered_hash_test.rb +194 -0
- data/vendor/activesupport/test/ordered_options_test.rb +53 -0
- data/vendor/activesupport/test/rescuable_test.rb +75 -0
- data/vendor/activesupport/test/secure_random_test.rb +19 -0
- data/vendor/activesupport/test/string_inquirer_test.rb +15 -0
- data/vendor/activesupport/test/test_test.rb +149 -0
- data/vendor/activesupport/test/time_zone_test.rb +279 -0
- data/vendor/activesupport/test/whiny_nil_test.rb +38 -0
- data/vendor/activesupport/test/xml_mini/jdom_engine_test.rb +153 -0
- data/vendor/activesupport/test/xml_mini/nokogiri_engine_test.rb +169 -0
- data/vendor/activesupport/test/xml_mini/rexml_engine_test.rb +29 -0
- data/vendor/code_statistics.rb +107 -0
- metadata +891 -0
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.yardoc
|
data/LICENSE
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(The MIT License)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2009 Sam Pohlenz
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
6
|
+
a copy of this software and associated documentation files (the
|
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
11
|
+
the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be
|
|
14
|
+
included in all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
19
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
20
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
21
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
22
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Recliner is a Ruby ORM for interfacing with CouchDB (http://couchdb.apache.org/) databases.
|
|
2
|
+
|
|
3
|
+
It is designed to be familiar to users of ActiveRecord, but diverges where necessary to fit with the CouchDB document/view paradigm.
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
Example
|
|
7
|
+
=======
|
|
8
|
+
|
|
9
|
+
class Article < Recliner::Document
|
|
10
|
+
property :title, String, :default => 'Untitled'
|
|
11
|
+
property :body, String
|
|
12
|
+
property :published_at, DateTime
|
|
13
|
+
property :approved, Boolean, :default => false
|
|
14
|
+
timestamps!
|
|
15
|
+
|
|
16
|
+
attr_protected :published_at, :approved
|
|
17
|
+
|
|
18
|
+
belongs_to :author, :class_name => 'User'
|
|
19
|
+
|
|
20
|
+
default_order :published_at
|
|
21
|
+
|
|
22
|
+
view :by_title, :order => :title
|
|
23
|
+
view :approved, :conditions => { :approved => true }
|
|
24
|
+
|
|
25
|
+
validates_presence_of :title, :body
|
|
26
|
+
|
|
27
|
+
before_save :set_published_at
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
article1 = Article.create(:title => "Recliner wins multiple awards!",
|
|
32
|
+
:body => "Actually, it hasn't happened yet",
|
|
33
|
+
:approved => true)
|
|
34
|
+
article2 = Article.create(:title => "Recliner 1.0 released",
|
|
35
|
+
:body => "Yes, it's true!",
|
|
36
|
+
:approved => false)
|
|
37
|
+
|
data/Rakefile
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
require 'spec/rake/spectask'
|
|
2
|
+
require 'cucumber/rake/task'
|
|
3
|
+
require 'rake/rdoctask'
|
|
4
|
+
|
|
5
|
+
task :default => :spec
|
|
6
|
+
|
|
7
|
+
Spec::Rake::SpecTask.new(:spec) do |t|
|
|
8
|
+
t.libs << 'lib'
|
|
9
|
+
t.spec_opts = ['--options', "#{File.expand_path(File.dirname(__FILE__))}/spec/spec.opts"]
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
namespace :spec do
|
|
13
|
+
desc "Run specs in nested documenting format"
|
|
14
|
+
Spec::Rake::SpecTask.new(:doc) do |t|
|
|
15
|
+
t.libs << 'lib'
|
|
16
|
+
t.spec_opts = ["--format", "nested", '--colour']
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
Cucumber::Rake::Task.new(:features, "Run Cucumber features (except @completed and @pending)") do |t|
|
|
21
|
+
t.fork = true
|
|
22
|
+
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty'), '-r features', '--tags ~@completed,~@pending']
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
namespace :features do
|
|
26
|
+
Cucumber::Rake::Task.new(:all, "Run all Cucumber features (except @pending)") do |t|
|
|
27
|
+
t.fork = true
|
|
28
|
+
t.cucumber_opts = ['--format', (ENV['CUCUMBER_FORMAT'] || 'pretty'), '-r features', '--tags ~@pending']
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
desc "Generate documentation"
|
|
33
|
+
Rake::RDocTask.new(:doc) do |rdoc|
|
|
34
|
+
rdoc.rdoc_dir = 'doc'
|
|
35
|
+
rdoc.options << '--line-numbers' << '--inline-source'
|
|
36
|
+
rdoc.rdoc_files.include('lib')
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
desc "Report code statistics (KLOCs, etc)"
|
|
40
|
+
task :stats do
|
|
41
|
+
require 'vendor/code_statistics'
|
|
42
|
+
CodeStatistics::TEST_TYPES.replace ['Specs']
|
|
43
|
+
CodeStatistics.new(['Recliner Library', 'lib'], ['Specs', 'spec']).to_s
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
begin
|
|
47
|
+
require 'jeweler'
|
|
48
|
+
|
|
49
|
+
Jeweler::Tasks.new do |gem|
|
|
50
|
+
gem.name = "recliner"
|
|
51
|
+
gem.summary = "CouchDB ORM for Ruby/Rails"
|
|
52
|
+
gem.description = "Recliner is a CouchDB ORM for Ruby/Rails similar to ActiveRecord and DataMapper."
|
|
53
|
+
gem.email = "sam@sampohlenz.com"
|
|
54
|
+
gem.homepage = "http://github.com/spohlenz/recliner"
|
|
55
|
+
gem.authors = ["Sam Pohlenz"]
|
|
56
|
+
|
|
57
|
+
gem.add_dependency('rest-client', '>= 1.0.3')
|
|
58
|
+
gem.add_dependency('json', '>= 1.1.9')
|
|
59
|
+
gem.add_dependency('uuid', '>= 2.0.2')
|
|
60
|
+
end
|
|
61
|
+
rescue LoadError
|
|
62
|
+
puts "Jeweler not available. Install it with: sudo gem install technicalpickles-jeweler -s http://gems.github.com"
|
|
63
|
+
end
|
data/VERSION
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.0.1
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
Feature: has association
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Background:
|
|
5
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
6
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
7
|
+
And the following document definitions:
|
|
8
|
+
"""
|
|
9
|
+
class User < Recliner::Document
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
class Article < Recliner::Document
|
|
13
|
+
has :author
|
|
14
|
+
end
|
|
15
|
+
"""
|
|
16
|
+
|
|
17
|
+
Scenario: assigning instance to association
|
|
18
|
+
Given I have a saved instance of "User" with id "user-1"
|
|
19
|
+
And I have a saved instance of "Article" with id "article-1"
|
|
20
|
+
When I set its author to the "User" with id "user-1"
|
|
21
|
+
Then its "author" should be the "User" with id "user-1"
|
|
22
|
+
|
|
23
|
+
Scenario: assigning id to association
|
|
24
|
+
Given I have a saved instance of "User" with id "user-1"
|
|
25
|
+
And I have a saved instance of "Article" with id "article-1"
|
|
26
|
+
When I set its author_id to "user-1"
|
|
27
|
+
Then its "author" should be the "User" with id "user-1"
|
|
28
|
+
|
|
29
|
+
Scenario: loading association
|
|
30
|
+
Given I have a saved instance of "User" with id "user-1"
|
|
31
|
+
And I have a saved instance of "Article" with attributes:
|
|
32
|
+
| id | article-1 |
|
|
33
|
+
| author_id | user-1 |
|
|
34
|
+
When I load the "Article" instance with id "article-1"
|
|
35
|
+
Then its "author" should be the "User" with id "user-1"
|
|
36
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@completed
|
|
2
|
+
Feature: Deleting documents
|
|
3
|
+
Deleting a Recliner::Document removes it from the database
|
|
4
|
+
It does not run any callbacks
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
8
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
9
|
+
And the following document definition:
|
|
10
|
+
"""
|
|
11
|
+
class Article < Recliner::Document
|
|
12
|
+
end
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
Scenario: Delete a new document
|
|
16
|
+
When I create an instance of "Article"
|
|
17
|
+
And I delete the instance
|
|
18
|
+
Then the instance should be read only
|
|
19
|
+
|
|
20
|
+
Scenario: Deleting an existing document
|
|
21
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
22
|
+
When I delete the instance
|
|
23
|
+
Then the instance should be read only
|
|
24
|
+
And there should be no document at "http://localhost:5984/recliner-features/article-1"
|
|
25
|
+
|
|
26
|
+
Scenario: Deleting a document with an out-of-date revision
|
|
27
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
28
|
+
And the "Article" with id "article-1" is updated elsewhere
|
|
29
|
+
When I delete the instance
|
|
30
|
+
Then a "Recliner::StaleRevisionError" exception should be raised
|
|
31
|
+
|
|
32
|
+
Scenario: Deleting an already deleted document
|
|
33
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
34
|
+
And no document exists at "http://localhost:5984/recliner-features/article-1"
|
|
35
|
+
When I delete the instance
|
|
36
|
+
Then no exception should be raised
|
|
37
|
+
And the instance should be read only
|
|
38
|
+
And there should be no document at "http://localhost:5984/recliner-features/article-1"
|
|
39
|
+
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
@completed
|
|
2
|
+
Feature: Destroying documents
|
|
3
|
+
Destroying a Recliner::Document removes it from the database
|
|
4
|
+
It also runs any before/after_destroy callbacks that are defined
|
|
5
|
+
|
|
6
|
+
Background:
|
|
7
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
8
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
9
|
+
And the following document definition:
|
|
10
|
+
"""
|
|
11
|
+
class Article < Recliner::Document
|
|
12
|
+
end
|
|
13
|
+
"""
|
|
14
|
+
|
|
15
|
+
Scenario: Destroy a new document
|
|
16
|
+
When I create an instance of "Article"
|
|
17
|
+
And I destroy the instance
|
|
18
|
+
Then the instance should be read only
|
|
19
|
+
|
|
20
|
+
Scenario: Destroying an existing document
|
|
21
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
22
|
+
When I destroy the instance
|
|
23
|
+
Then the instance should be read only
|
|
24
|
+
And there should be no document at "http://localhost:5984/recliner-features/article-1"
|
|
25
|
+
|
|
26
|
+
Scenario: Destroying a document with an out-of-date revision
|
|
27
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
28
|
+
And the "Article" with id "article-1" is updated elsewhere
|
|
29
|
+
When I destroy the instance
|
|
30
|
+
Then a "Recliner::StaleRevisionError" exception should be raised
|
|
31
|
+
|
|
32
|
+
Scenario: Destroying an already deleted document
|
|
33
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
34
|
+
But no document exists at "http://localhost:5984/recliner-features/article-1"
|
|
35
|
+
When I destroy the instance
|
|
36
|
+
Then no exception should be raised
|
|
37
|
+
And the instance should be read only
|
|
38
|
+
And there should be no document at "http://localhost:5984/recliner-features/article-1"
|
|
39
|
+
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@completed
|
|
2
|
+
Feature: New document instantiation
|
|
3
|
+
Recliner::Document models can be instantiated with or without attributes
|
|
4
|
+
|
|
5
|
+
Background:
|
|
6
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
7
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
8
|
+
And the following document definition:
|
|
9
|
+
"""
|
|
10
|
+
class Article < Recliner::Document
|
|
11
|
+
property :title, String
|
|
12
|
+
property :content, String
|
|
13
|
+
end
|
|
14
|
+
"""
|
|
15
|
+
|
|
16
|
+
Scenario: New document instance
|
|
17
|
+
When I create an instance of "Article"
|
|
18
|
+
Then the instance should be a new record
|
|
19
|
+
And the instance should autogenerate an id
|
|
20
|
+
And the instance should not have a revision
|
|
21
|
+
|
|
22
|
+
Scenario: New document instance with attributes
|
|
23
|
+
When I create an instance of "Article" with:
|
|
24
|
+
| id | article-id |
|
|
25
|
+
| title | Article Title |
|
|
26
|
+
| content | Content for article... |
|
|
27
|
+
Then the instance should be a new record
|
|
28
|
+
And the instance should have id "article-id"
|
|
29
|
+
And the instance should have title "Article Title"
|
|
30
|
+
And the instance should have content "Content for article..."
|
|
31
|
+
And the instance should not have a revision
|
|
32
|
+
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
@completed
|
|
2
|
+
Feature: Document loading
|
|
3
|
+
Recliner offers two ways of loading documents:
|
|
4
|
+
load => does not raise exceptions for missing documents
|
|
5
|
+
load! => does raise exceptions for missing documents
|
|
6
|
+
|
|
7
|
+
Either individual or multiple documents can be loaded at once
|
|
8
|
+
|
|
9
|
+
Background:
|
|
10
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
11
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
12
|
+
And the following document definition:
|
|
13
|
+
"""
|
|
14
|
+
class User < Recliner::Document
|
|
15
|
+
property :name, String
|
|
16
|
+
end
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
Scenario: Loading a document
|
|
20
|
+
Given a document exists at "http://localhost:5984/recliner-features/existing-user" with:
|
|
21
|
+
"""
|
|
22
|
+
{
|
|
23
|
+
:class => 'User',
|
|
24
|
+
:name => 'Test User'
|
|
25
|
+
}
|
|
26
|
+
"""
|
|
27
|
+
When I load the "User" instance with id "existing-user"
|
|
28
|
+
Then the instance should not be a new record
|
|
29
|
+
And the instance should have id "existing-user"
|
|
30
|
+
And the instance should have name "Test User"
|
|
31
|
+
|
|
32
|
+
Scenario: Loading a missing document
|
|
33
|
+
Given no document exists at "http://localhost:5984/recliner-features/missing-user"
|
|
34
|
+
When I load the "User" instance with id "missing-user"
|
|
35
|
+
Then the instance should be nil
|
|
36
|
+
|
|
37
|
+
Scenario: Loading a document with load!
|
|
38
|
+
Given a document exists at "http://localhost:5984/recliner-features/existing-user" with:
|
|
39
|
+
"""
|
|
40
|
+
{
|
|
41
|
+
:class => 'User',
|
|
42
|
+
:name => 'Test User'
|
|
43
|
+
}
|
|
44
|
+
"""
|
|
45
|
+
When I load! the "User" instance with id "existing-user"
|
|
46
|
+
Then the instance should not be a new record
|
|
47
|
+
And the instance should have id "existing-user"
|
|
48
|
+
And the instance should have name "Test User"
|
|
49
|
+
|
|
50
|
+
Scenario: Loading a missing document with load!
|
|
51
|
+
Given no document exists at "http://localhost:5984/recliner-features/missing-user"
|
|
52
|
+
When I load! the "User" instance with id "missing-user"
|
|
53
|
+
Then a "Recliner::DocumentNotFound" exception should be raised
|
|
54
|
+
|
|
55
|
+
Scenario: Loading multiple documents
|
|
56
|
+
Given a "User" document exists at "http://localhost:5984/recliner-features/user-1"
|
|
57
|
+
And a "User" document exists at "http://localhost:5984/recliner-features/user-2"
|
|
58
|
+
When I load the "User" instances with ids "user-1, user-2"
|
|
59
|
+
Then instance 1 should not be a new record
|
|
60
|
+
And instance 1 should have id "user-1"
|
|
61
|
+
And instance 2 should not be a new record
|
|
62
|
+
And instance 2 should have id "user-2"
|
|
63
|
+
|
|
64
|
+
Scenario: Loading multiple documents (some missing)
|
|
65
|
+
Given a "User" document exists at "http://localhost:5984/recliner-features/user-1"
|
|
66
|
+
And no document exists at "http://localhost:5984/recliner-features/missing-user"
|
|
67
|
+
When I load the "User" instances with ids "user-1, missing-user"
|
|
68
|
+
Then instance 1 should not be a new record
|
|
69
|
+
And instance 1 should have id "user-1"
|
|
70
|
+
And instance 2 should be nil
|
|
71
|
+
|
|
72
|
+
Scenario: Loading multiple documents with load!
|
|
73
|
+
Given a "User" document exists at "http://localhost:5984/recliner-features/user-1"
|
|
74
|
+
And a "User" document exists at "http://localhost:5984/recliner-features/user-2"
|
|
75
|
+
When I load! the "User" instances with ids "user-1, user-2"
|
|
76
|
+
Then instance 1 should not be a new record
|
|
77
|
+
And instance 1 should have id "user-1"
|
|
78
|
+
And instance 2 should not be a new record
|
|
79
|
+
And instance 2 should have id "user-2"
|
|
80
|
+
|
|
81
|
+
Scenario: Loading multiple documents with load! (some missing)
|
|
82
|
+
Given a "User" document exists at "http://localhost:5984/recliner-features/user-1"
|
|
83
|
+
And no document exists at "http://localhost:5984/recliner-features/missing-document"
|
|
84
|
+
When I load! the "User" instances with ids "user-1, missing-document"
|
|
85
|
+
Then a "Recliner::DocumentNotFound" exception should be raised
|
|
86
|
+
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
@completed
|
|
2
|
+
Feature: Saving documents
|
|
3
|
+
Recliner offers two ways of saving documents:
|
|
4
|
+
save => does not raise exception if document cannot be saved
|
|
5
|
+
save! => raises exception if document cannot be saved
|
|
6
|
+
|
|
7
|
+
Background:
|
|
8
|
+
Given the default Recliner::Document database is set to "http://localhost:5984/recliner-features"
|
|
9
|
+
And the database "http://localhost:5984/recliner-features" exists
|
|
10
|
+
And the following document definition:
|
|
11
|
+
"""
|
|
12
|
+
class Article < Recliner::Document
|
|
13
|
+
property :title, String
|
|
14
|
+
property :content, String
|
|
15
|
+
end
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
Scenario: Saving a new document
|
|
19
|
+
Given I have an unsaved instance of "Article"
|
|
20
|
+
When I set its id to "article-1"
|
|
21
|
+
And I set its title to "Article title"
|
|
22
|
+
And I save the instance
|
|
23
|
+
Then the instance should not be a new record
|
|
24
|
+
And the instance should have a revision matching "^1-"
|
|
25
|
+
And there should be a document at "http://localhost:5984/recliner-features/article-1" with:
|
|
26
|
+
"""
|
|
27
|
+
{
|
|
28
|
+
'_id' => 'article-1',
|
|
29
|
+
'class' => 'Article',
|
|
30
|
+
'title' => 'Article title'
|
|
31
|
+
}
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
Scenario: Saving a new document with save!
|
|
35
|
+
Given I have an unsaved instance of "Article"
|
|
36
|
+
And I set its id to "article-1"
|
|
37
|
+
And I set its title to "Article title"
|
|
38
|
+
And I save! the instance
|
|
39
|
+
Then the instance should not be a new record
|
|
40
|
+
And the instance should have a revision matching "^1-"
|
|
41
|
+
And there should be a document at "http://localhost:5984/recliner-features/article-1" with:
|
|
42
|
+
"""
|
|
43
|
+
{
|
|
44
|
+
'_id' => 'article-1',
|
|
45
|
+
'class' => 'Article',
|
|
46
|
+
'title' => 'Article title'
|
|
47
|
+
}
|
|
48
|
+
"""
|
|
49
|
+
|
|
50
|
+
Scenario: Saving an existing document
|
|
51
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
52
|
+
When I save the instance
|
|
53
|
+
Then the instance should have a revision matching "^2-"
|
|
54
|
+
|
|
55
|
+
Scenario: Saving an existing document with save!
|
|
56
|
+
Given I have a saved instance of "Article" with id "article-1"
|
|
57
|
+
When I save! the instance
|
|
58
|
+
Then the instance should have a revision matching "^2-"
|
|
59
|
+
|
|
60
|
+
Scenario: Saving an existing document with an outdated revision
|
|
61
|
+
Given I have a saved instance of "Article" with:
|
|
62
|
+
| id | article-1 |
|
|
63
|
+
| title | Article title |
|
|
64
|
+
And I set its revision to "4-123456"
|
|
65
|
+
And I set its title to "New title"
|
|
66
|
+
When I save the instance
|
|
67
|
+
Then there should be a document at "http://localhost:5984/recliner-features/article-1" with:
|
|
68
|
+
"""
|
|
69
|
+
{
|
|
70
|
+
'title' => 'Article title'
|
|
71
|
+
}
|
|
72
|
+
"""
|
|
73
|
+
|
|
74
|
+
Scenario: Saving an existing document with save! with an outdated revision
|
|
75
|
+
Given I have a saved instance of "Article" with:
|
|
76
|
+
| id | article-1 |
|
|
77
|
+
| title | Article title |
|
|
78
|
+
And I set its revision to "4-123456"
|
|
79
|
+
And I set its title to "New title"
|
|
80
|
+
When I save! the instance
|
|
81
|
+
Then a "Recliner::StaleRevisionError" exception should be raised
|
|
82
|
+
And there should be a document at "http://localhost:5984/recliner-features/article-1" with:
|
|
83
|
+
"""
|
|
84
|
+
{
|
|
85
|
+
'title' => 'Article title'
|
|
86
|
+
}
|
|
87
|
+
"""
|
|
88
|
+
|