recliner 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (804) hide show
  1. data/.gitignore +1 -0
  2. data/LICENSE +22 -0
  3. data/README +37 -0
  4. data/Rakefile +63 -0
  5. data/VERSION +1 -0
  6. data/features/associations/has.feature +36 -0
  7. data/features/document/deleting.feature +39 -0
  8. data/features/document/destroying.feature +39 -0
  9. data/features/document/instantiation.feature +32 -0
  10. data/features/document/loading.feature +86 -0
  11. data/features/document/saving.feature +88 -0
  12. data/features/restful_api.feature +82 -0
  13. data/features/step_definitions/association_steps.rb +8 -0
  14. data/features/step_definitions/database_steps.rb +8 -0
  15. data/features/step_definitions/document_steps.rb +200 -0
  16. data/features/step_definitions/restful_steps.rb +56 -0
  17. data/features/step_definitions/view_steps.rb +57 -0
  18. data/features/support/env.rb +36 -0
  19. data/features/validation/acceptance.feature +41 -0
  20. data/features/validation/common.feature +152 -0
  21. data/features/validation/confirmation.feature +44 -0
  22. data/features/validation/exclusion.feature +38 -0
  23. data/features/validation/format.feature +108 -0
  24. data/features/validation/inclusion.feature +68 -0
  25. data/features/validation/length.feature +82 -0
  26. data/features/validation/numericality.feature +60 -0
  27. data/features/validation/presence.feature +25 -0
  28. data/features/validation/uniqueness.feature +84 -0
  29. data/features/views/map.feature +63 -0
  30. data/lib/recliner.rb +139 -0
  31. data/lib/recliner/associations.rb +6 -0
  32. data/lib/recliner/associations/has.rb +29 -0
  33. data/lib/recliner/associations/reference.rb +51 -0
  34. data/lib/recliner/attribute_methods.rb +110 -0
  35. data/lib/recliner/attribute_methods/before_type_cast.rb +42 -0
  36. data/lib/recliner/attribute_methods/defaults.rb +30 -0
  37. data/lib/recliner/attribute_methods/dirty.rb +51 -0
  38. data/lib/recliner/attribute_methods/protected.rb +127 -0
  39. data/lib/recliner/attribute_methods/query.rb +22 -0
  40. data/lib/recliner/attribute_methods/read.rb +33 -0
  41. data/lib/recliner/attribute_methods/write.rb +35 -0
  42. data/lib/recliner/callbacks.rb +296 -0
  43. data/lib/recliner/configuration.rb +21 -0
  44. data/lib/recliner/conversions.rb +64 -0
  45. data/lib/recliner/conversions/boolean.rb +17 -0
  46. data/lib/recliner/conversions/couch.rb +46 -0
  47. data/lib/recliner/conversions/date.rb +8 -0
  48. data/lib/recliner/conversions/number.rb +22 -0
  49. data/lib/recliner/conversions/string.rb +1 -0
  50. data/lib/recliner/conversions/time.rb +7 -0
  51. data/lib/recliner/core_extensions.rb +13 -0
  52. data/lib/recliner/database.rb +117 -0
  53. data/lib/recliner/document.rb +363 -0
  54. data/lib/recliner/exceptions.rb +37 -0
  55. data/lib/recliner/locale/en.yml +54 -0
  56. data/lib/recliner/pretty_inspect.rb +30 -0
  57. data/lib/recliner/properties.rb +74 -0
  58. data/lib/recliner/properties/map.rb +152 -0
  59. data/lib/recliner/properties/property.rb +18 -0
  60. data/lib/recliner/properties/set.rb +127 -0
  61. data/lib/recliner/timestamps.rb +43 -0
  62. data/lib/recliner/validations.rb +146 -0
  63. data/lib/recliner/validations/uniqueness.rb +70 -0
  64. data/lib/recliner/views.rb +148 -0
  65. data/lib/recliner/views/document.rb +20 -0
  66. data/lib/recliner/views/function.rb +31 -0
  67. data/lib/recliner/views/generator.rb +71 -0
  68. data/lib/recliner/views/view.rb +73 -0
  69. data/play.rb +29 -0
  70. data/spec/recliner/conversions_spec.rb +233 -0
  71. data/spec/recliner/database_spec.rb +146 -0
  72. data/spec/recliner/document/active_model_spec.rb +25 -0
  73. data/spec/recliner/document/associations/has_spec.rb +47 -0
  74. data/spec/recliner/document/associations/reference_spec.rb +132 -0
  75. data/spec/recliner/document/attribute_methods/before_type_cast_spec.rb +87 -0
  76. data/spec/recliner/document/attribute_methods/defaults_spec.rb +24 -0
  77. data/spec/recliner/document/attribute_methods/dirty_spec.rb +136 -0
  78. data/spec/recliner/document/attribute_methods/protected_spec.rb +86 -0
  79. data/spec/recliner/document/attribute_methods/query_spec.rb +93 -0
  80. data/spec/recliner/document/attribute_methods/read_spec.rb +55 -0
  81. data/spec/recliner/document/attribute_methods/write_spec.rb +87 -0
  82. data/spec/recliner/document/attribute_methods_spec.rb +190 -0
  83. data/spec/recliner/document/callbacks_spec.rb +278 -0
  84. data/spec/recliner/document/database_spec.rb +56 -0
  85. data/spec/recliner/document/document_spec.rb +923 -0
  86. data/spec/recliner/document/pretty_inspect_spec.rb +55 -0
  87. data/spec/recliner/document/properties/map_spec.rb +394 -0
  88. data/spec/recliner/document/properties/property_spec.rb +274 -0
  89. data/spec/recliner/document/properties/set_spec.rb +251 -0
  90. data/spec/recliner/document/properties_spec.rb +102 -0
  91. data/spec/recliner/document/timestamps_spec.rb +152 -0
  92. data/spec/recliner/document/validations/uniqueness_spec.rb +87 -0
  93. data/spec/recliner/document/validations_spec.rb +107 -0
  94. data/spec/recliner/document/views/document_spec.rb +132 -0
  95. data/spec/recliner/document/views/function_spec.rb +63 -0
  96. data/spec/recliner/document/views/generator_spec.rb +115 -0
  97. data/spec/recliner/document/views/view_spec.rb +255 -0
  98. data/spec/recliner/document/views_spec.rb +308 -0
  99. data/spec/recliner/recliner_spec.rb +228 -0
  100. data/spec/spec.opts +6 -0
  101. data/spec/spec_helper.rb +13 -0
  102. data/spec/support/helpers/recliner_helpers.rb +15 -0
  103. data/spec/support/helpers/recliner_macros.rb +12 -0
  104. data/spec/support/matchers/be_equivalent_to.rb +17 -0
  105. data/vendor/activemodel/CHANGELOG +11 -0
  106. data/vendor/activemodel/CHANGES +12 -0
  107. data/vendor/activemodel/MIT-LICENSE +21 -0
  108. data/vendor/activemodel/README +21 -0
  109. data/vendor/activemodel/Rakefile +76 -0
  110. data/vendor/activemodel/activemodel.gemspec +31 -0
  111. data/vendor/activemodel/examples/validations.rb +29 -0
  112. data/vendor/activemodel/lib/active_model.rb +52 -0
  113. data/vendor/activemodel/lib/active_model/attribute_methods.rb +291 -0
  114. data/vendor/activemodel/lib/active_model/conversion.rb +8 -0
  115. data/vendor/activemodel/lib/active_model/deprecated_error_methods.rb +33 -0
  116. data/vendor/activemodel/lib/active_model/dirty.rb +126 -0
  117. data/vendor/activemodel/lib/active_model/errors.rb +162 -0
  118. data/vendor/activemodel/lib/active_model/lint.rb +96 -0
  119. data/vendor/activemodel/lib/active_model/locale/en.yml +24 -0
  120. data/vendor/activemodel/lib/active_model/naming.rb +26 -0
  121. data/vendor/activemodel/lib/active_model/observing.rb +191 -0
  122. data/vendor/activemodel/lib/active_model/serialization.rb +30 -0
  123. data/vendor/activemodel/lib/active_model/serializer.rb +60 -0
  124. data/vendor/activemodel/lib/active_model/serializers/json.rb +98 -0
  125. data/vendor/activemodel/lib/active_model/serializers/xml.rb +204 -0
  126. data/vendor/activemodel/lib/active_model/state_machine.rb +70 -0
  127. data/vendor/activemodel/lib/active_model/state_machine/event.rb +62 -0
  128. data/vendor/activemodel/lib/active_model/state_machine/machine.rb +75 -0
  129. data/vendor/activemodel/lib/active_model/state_machine/state.rb +47 -0
  130. data/vendor/activemodel/lib/active_model/state_machine/state_transition.rb +40 -0
  131. data/vendor/activemodel/lib/active_model/test_case.rb +18 -0
  132. data/vendor/activemodel/lib/active_model/validations.rb +130 -0
  133. data/vendor/activemodel/lib/active_model/validations/acceptance.rb +48 -0
  134. data/vendor/activemodel/lib/active_model/validations/confirmation.rb +45 -0
  135. data/vendor/activemodel/lib/active_model/validations/exclusion.rb +38 -0
  136. data/vendor/activemodel/lib/active_model/validations/format.rb +62 -0
  137. data/vendor/activemodel/lib/active_model/validations/inclusion.rb +38 -0
  138. data/vendor/activemodel/lib/active_model/validations/length.rb +102 -0
  139. data/vendor/activemodel/lib/active_model/validations/numericality.rb +107 -0
  140. data/vendor/activemodel/lib/active_model/validations/presence.rb +41 -0
  141. data/vendor/activemodel/lib/active_model/validations/with.rb +64 -0
  142. data/vendor/activemodel/lib/active_model/validations_repair_helper.rb +35 -0
  143. data/vendor/activemodel/lib/active_model/version.rb +9 -0
  144. data/vendor/activemodel/lib/activemodel.rb +1 -0
  145. data/vendor/activemodel/test/cases/attribute_methods_test.rb +46 -0
  146. data/vendor/activemodel/test/cases/helper.rb +18 -0
  147. data/vendor/activemodel/test/cases/lint_test.rb +50 -0
  148. data/vendor/activemodel/test/cases/naming_test.rb +27 -0
  149. data/vendor/activemodel/test/cases/observing_test.rb +133 -0
  150. data/vendor/activemodel/test/cases/serializeration/json_serialization_test.rb +83 -0
  151. data/vendor/activemodel/test/cases/serializeration/xml_serialization_test.rb +110 -0
  152. data/vendor/activemodel/test/cases/state_machine/event_test.rb +49 -0
  153. data/vendor/activemodel/test/cases/state_machine/machine_test.rb +43 -0
  154. data/vendor/activemodel/test/cases/state_machine/state_test.rb +72 -0
  155. data/vendor/activemodel/test/cases/state_machine/state_transition_test.rb +84 -0
  156. data/vendor/activemodel/test/cases/state_machine_test.rb +312 -0
  157. data/vendor/activemodel/test/cases/tests_database.rb +36 -0
  158. data/vendor/activemodel/test/cases/validations/acceptance_validation_test.rb +80 -0
  159. data/vendor/activemodel/test/cases/validations/conditional_validation_test.rb +140 -0
  160. data/vendor/activemodel/test/cases/validations/confirmation_validation_test.rb +68 -0
  161. data/vendor/activemodel/test/cases/validations/exclusion_validation_test.rb +46 -0
  162. data/vendor/activemodel/test/cases/validations/format_validation_test.rb +127 -0
  163. data/vendor/activemodel/test/cases/validations/i18n_generate_message_validation_test.rb +176 -0
  164. data/vendor/activemodel/test/cases/validations/i18n_validation_test.rb +528 -0
  165. data/vendor/activemodel/test/cases/validations/inclusion_validation_test.rb +80 -0
  166. data/vendor/activemodel/test/cases/validations/length_validation_test.rb +466 -0
  167. data/vendor/activemodel/test/cases/validations/numericality_validation_test.rb +197 -0
  168. data/vendor/activemodel/test/cases/validations/presence_validation_test.rb +72 -0
  169. data/vendor/activemodel/test/cases/validations/with_validation_test.rb +118 -0
  170. data/vendor/activemodel/test/cases/validations_test.rb +208 -0
  171. data/vendor/activemodel/test/config.rb +3 -0
  172. data/vendor/activemodel/test/fixtures/topics.yml +41 -0
  173. data/vendor/activemodel/test/models/contact.rb +7 -0
  174. data/vendor/activemodel/test/models/custom_reader.rb +17 -0
  175. data/vendor/activemodel/test/models/developer.rb +6 -0
  176. data/vendor/activemodel/test/models/person.rb +5 -0
  177. data/vendor/activemodel/test/models/reply.rb +34 -0
  178. data/vendor/activemodel/test/models/topic.rb +9 -0
  179. data/vendor/activemodel/test/schema.rb +14 -0
  180. data/vendor/activesupport/CHANGELOG +1345 -0
  181. data/vendor/activesupport/MIT-LICENSE +20 -0
  182. data/vendor/activesupport/README +43 -0
  183. data/vendor/activesupport/Rakefile +199 -0
  184. data/vendor/activesupport/activesupport.gemspec +28 -0
  185. data/vendor/activesupport/bin/generate_tables +147 -0
  186. data/vendor/activesupport/install.rb +30 -0
  187. data/vendor/activesupport/lib/active_support.rb +41 -0
  188. data/vendor/activesupport/lib/active_support/all.rb +3 -0
  189. data/vendor/activesupport/lib/active_support/autoload.rb +26 -0
  190. data/vendor/activesupport/lib/active_support/backtrace_cleaner.rb +72 -0
  191. data/vendor/activesupport/lib/active_support/base64.rb +42 -0
  192. data/vendor/activesupport/lib/active_support/basic_object.rb +21 -0
  193. data/vendor/activesupport/lib/active_support/buffered_logger.rb +133 -0
  194. data/vendor/activesupport/lib/active_support/cache.rb +261 -0
  195. data/vendor/activesupport/lib/active_support/cache/compressed_mem_cache_store.rb +20 -0
  196. data/vendor/activesupport/lib/active_support/cache/file_store.rb +86 -0
  197. data/vendor/activesupport/lib/active_support/cache/mem_cache_store.rb +138 -0
  198. data/vendor/activesupport/lib/active_support/cache/memory_store.rb +52 -0
  199. data/vendor/activesupport/lib/active_support/cache/strategy/local_cache.rb +111 -0
  200. data/vendor/activesupport/lib/active_support/cache/synchronized_memory_store.rb +47 -0
  201. data/vendor/activesupport/lib/active_support/callbacks.rb +281 -0
  202. data/vendor/activesupport/lib/active_support/concern.rb +25 -0
  203. data/vendor/activesupport/lib/active_support/concurrent_hash.rb +27 -0
  204. data/vendor/activesupport/lib/active_support/core_ext.rb +3 -0
  205. data/vendor/activesupport/lib/active_support/core_ext/array.rb +6 -0
  206. data/vendor/activesupport/lib/active_support/core_ext/array/access.rb +46 -0
  207. data/vendor/activesupport/lib/active_support/core_ext/array/conversions.rb +189 -0
  208. data/vendor/activesupport/lib/active_support/core_ext/array/extract_options.rb +14 -0
  209. data/vendor/activesupport/lib/active_support/core_ext/array/grouping.rb +100 -0
  210. data/vendor/activesupport/lib/active_support/core_ext/array/random_access.rb +6 -0
  211. data/vendor/activesupport/lib/active_support/core_ext/array/wrap.rb +18 -0
  212. data/vendor/activesupport/lib/active_support/core_ext/benchmark.rb +19 -0
  213. data/vendor/activesupport/lib/active_support/core_ext/big_decimal.rb +1 -0
  214. data/vendor/activesupport/lib/active_support/core_ext/big_decimal/conversions.rb +27 -0
  215. data/vendor/activesupport/lib/active_support/core_ext/boolean.rb +1 -0
  216. data/vendor/activesupport/lib/active_support/core_ext/boolean/conversions.rb +11 -0
  217. data/vendor/activesupport/lib/active_support/core_ext/cgi.rb +1 -0
  218. data/vendor/activesupport/lib/active_support/core_ext/cgi/escape_skipping_slashes.rb +17 -0
  219. data/vendor/activesupport/lib/active_support/core_ext/class.rb +4 -0
  220. data/vendor/activesupport/lib/active_support/core_ext/class/attribute_accessors.rb +57 -0
  221. data/vendor/activesupport/lib/active_support/core_ext/class/delegating_attributes.rb +50 -0
  222. data/vendor/activesupport/lib/active_support/core_ext/class/inheritable_attributes.rb +223 -0
  223. data/vendor/activesupport/lib/active_support/core_ext/class/removal.rb +53 -0
  224. data/vendor/activesupport/lib/active_support/core_ext/date.rb +7 -0
  225. data/vendor/activesupport/lib/active_support/core_ext/date/acts_like.rb +8 -0
  226. data/vendor/activesupport/lib/active_support/core_ext/date/calculations.rb +218 -0
  227. data/vendor/activesupport/lib/active_support/core_ext/date/conversions.rb +99 -0
  228. data/vendor/activesupport/lib/active_support/core_ext/date/freeze.rb +31 -0
  229. data/vendor/activesupport/lib/active_support/core_ext/date_time.rb +5 -0
  230. data/vendor/activesupport/lib/active_support/core_ext/date_time/acts_like.rb +13 -0
  231. data/vendor/activesupport/lib/active_support/core_ext/date_time/calculations.rb +112 -0
  232. data/vendor/activesupport/lib/active_support/core_ext/date_time/conversions.rb +84 -0
  233. data/vendor/activesupport/lib/active_support/core_ext/date_time/zones.rb +17 -0
  234. data/vendor/activesupport/lib/active_support/core_ext/enumerable.rb +123 -0
  235. data/vendor/activesupport/lib/active_support/core_ext/exception.rb +50 -0
  236. data/vendor/activesupport/lib/active_support/core_ext/file.rb +1 -0
  237. data/vendor/activesupport/lib/active_support/core_ext/file/atomic.rb +40 -0
  238. data/vendor/activesupport/lib/active_support/core_ext/float.rb +1 -0
  239. data/vendor/activesupport/lib/active_support/core_ext/float/rounding.rb +18 -0
  240. data/vendor/activesupport/lib/active_support/core_ext/hash.rb +8 -0
  241. data/vendor/activesupport/lib/active_support/core_ext/hash/conversions.rb +230 -0
  242. data/vendor/activesupport/lib/active_support/core_ext/hash/deep_merge.rb +17 -0
  243. data/vendor/activesupport/lib/active_support/core_ext/hash/diff.rb +13 -0
  244. data/vendor/activesupport/lib/active_support/core_ext/hash/except.rb +16 -0
  245. data/vendor/activesupport/lib/active_support/core_ext/hash/indifferent_access.rb +9 -0
  246. data/vendor/activesupport/lib/active_support/core_ext/hash/keys.rb +46 -0
  247. data/vendor/activesupport/lib/active_support/core_ext/hash/reverse_merge.rb +28 -0
  248. data/vendor/activesupport/lib/active_support/core_ext/hash/slice.rb +32 -0
  249. data/vendor/activesupport/lib/active_support/core_ext/integer.rb +3 -0
  250. data/vendor/activesupport/lib/active_support/core_ext/integer/even_odd.rb +16 -0
  251. data/vendor/activesupport/lib/active_support/core_ext/integer/inflections.rb +14 -0
  252. data/vendor/activesupport/lib/active_support/core_ext/integer/time.rb +39 -0
  253. data/vendor/activesupport/lib/active_support/core_ext/kernel.rb +5 -0
  254. data/vendor/activesupport/lib/active_support/core_ext/kernel/agnostics.rb +11 -0
  255. data/vendor/activesupport/lib/active_support/core_ext/kernel/daemonizing.rb +7 -0
  256. data/vendor/activesupport/lib/active_support/core_ext/kernel/debugger.rb +15 -0
  257. data/vendor/activesupport/lib/active_support/core_ext/kernel/reporting.rb +61 -0
  258. data/vendor/activesupport/lib/active_support/core_ext/kernel/requires.rb +26 -0
  259. data/vendor/activesupport/lib/active_support/core_ext/load_error.rb +36 -0
  260. data/vendor/activesupport/lib/active_support/core_ext/logger.rb +146 -0
  261. data/vendor/activesupport/lib/active_support/core_ext/module.rb +10 -0
  262. data/vendor/activesupport/lib/active_support/core_ext/module/aliasing.rb +70 -0
  263. data/vendor/activesupport/lib/active_support/core_ext/module/attr_accessor_with_default.rb +31 -0
  264. data/vendor/activesupport/lib/active_support/core_ext/module/attr_internal.rb +32 -0
  265. data/vendor/activesupport/lib/active_support/core_ext/module/attribute_accessors.rb +62 -0
  266. data/vendor/activesupport/lib/active_support/core_ext/module/delegation.rb +135 -0
  267. data/vendor/activesupport/lib/active_support/core_ext/module/deprecation.rb +9 -0
  268. data/vendor/activesupport/lib/active_support/core_ext/module/inclusion.rb +30 -0
  269. data/vendor/activesupport/lib/active_support/core_ext/module/introspection.rb +88 -0
  270. data/vendor/activesupport/lib/active_support/core_ext/module/loading.rb +23 -0
  271. data/vendor/activesupport/lib/active_support/core_ext/module/synchronization.rb +41 -0
  272. data/vendor/activesupport/lib/active_support/core_ext/name_error.rb +16 -0
  273. data/vendor/activesupport/lib/active_support/core_ext/nil.rb +1 -0
  274. data/vendor/activesupport/lib/active_support/core_ext/nil/conversions.rb +5 -0
  275. data/vendor/activesupport/lib/active_support/core_ext/numeric.rb +2 -0
  276. data/vendor/activesupport/lib/active_support/core_ext/numeric/bytes.rb +44 -0
  277. data/vendor/activesupport/lib/active_support/core_ext/numeric/time.rb +77 -0
  278. data/vendor/activesupport/lib/active_support/core_ext/object.rb +10 -0
  279. data/vendor/activesupport/lib/active_support/core_ext/object/acts_like.rb +10 -0
  280. data/vendor/activesupport/lib/active_support/core_ext/object/blank.rb +58 -0
  281. data/vendor/activesupport/lib/active_support/core_ext/object/conversions.rb +18 -0
  282. data/vendor/activesupport/lib/active_support/core_ext/object/duplicable.rb +43 -0
  283. data/vendor/activesupport/lib/active_support/core_ext/object/extending.rb +80 -0
  284. data/vendor/activesupport/lib/active_support/core_ext/object/instance_variables.rb +74 -0
  285. data/vendor/activesupport/lib/active_support/core_ext/object/metaclass.rb +13 -0
  286. data/vendor/activesupport/lib/active_support/core_ext/object/misc.rb +3 -0
  287. data/vendor/activesupport/lib/active_support/core_ext/object/returning.rb +42 -0
  288. data/vendor/activesupport/lib/active_support/core_ext/object/tap.rb +16 -0
  289. data/vendor/activesupport/lib/active_support/core_ext/object/try.rb +36 -0
  290. data/vendor/activesupport/lib/active_support/core_ext/object/with_options.rb +24 -0
  291. data/vendor/activesupport/lib/active_support/core_ext/proc.rb +14 -0
  292. data/vendor/activesupport/lib/active_support/core_ext/process.rb +1 -0
  293. data/vendor/activesupport/lib/active_support/core_ext/process/daemon.rb +23 -0
  294. data/vendor/activesupport/lib/active_support/core_ext/range.rb +4 -0
  295. data/vendor/activesupport/lib/active_support/core_ext/range/blockless_step.rb +29 -0
  296. data/vendor/activesupport/lib/active_support/core_ext/range/conversions.rb +21 -0
  297. data/vendor/activesupport/lib/active_support/core_ext/range/include_range.rb +21 -0
  298. data/vendor/activesupport/lib/active_support/core_ext/range/overlaps.rb +8 -0
  299. data/vendor/activesupport/lib/active_support/core_ext/regexp.rb +27 -0
  300. data/vendor/activesupport/lib/active_support/core_ext/rexml.rb +43 -0
  301. data/vendor/activesupport/lib/active_support/core_ext/string.rb +10 -0
  302. data/vendor/activesupport/lib/active_support/core_ext/string/access.rb +97 -0
  303. data/vendor/activesupport/lib/active_support/core_ext/string/behavior.rb +7 -0
  304. data/vendor/activesupport/lib/active_support/core_ext/string/bytesize.rb +5 -0
  305. data/vendor/activesupport/lib/active_support/core_ext/string/conversions.rb +26 -0
  306. data/vendor/activesupport/lib/active_support/core_ext/string/filters.rb +20 -0
  307. data/vendor/activesupport/lib/active_support/core_ext/string/inflections.rb +160 -0
  308. data/vendor/activesupport/lib/active_support/core_ext/string/interpolation.rb +92 -0
  309. data/vendor/activesupport/lib/active_support/core_ext/string/iterators.rb +13 -0
  310. data/vendor/activesupport/lib/active_support/core_ext/string/multibyte.rb +75 -0
  311. data/vendor/activesupport/lib/active_support/core_ext/string/starts_ends_with.rb +18 -0
  312. data/vendor/activesupport/lib/active_support/core_ext/string/xchar.rb +18 -0
  313. data/vendor/activesupport/lib/active_support/core_ext/symbol.rb +1 -0
  314. data/vendor/activesupport/lib/active_support/core_ext/symbol/to_proc.rb +14 -0
  315. data/vendor/activesupport/lib/active_support/core_ext/time.rb +10 -0
  316. data/vendor/activesupport/lib/active_support/core_ext/time/acts_like.rb +8 -0
  317. data/vendor/activesupport/lib/active_support/core_ext/time/calculations.rb +280 -0
  318. data/vendor/activesupport/lib/active_support/core_ext/time/conversions.rb +84 -0
  319. data/vendor/activesupport/lib/active_support/core_ext/time/marshal_with_utc_flag.rb +22 -0
  320. data/vendor/activesupport/lib/active_support/core_ext/time/publicize_conversion_methods.rb +10 -0
  321. data/vendor/activesupport/lib/active_support/core_ext/time/zones.rb +78 -0
  322. data/vendor/activesupport/lib/active_support/core_ext/uri.rb +16 -0
  323. data/vendor/activesupport/lib/active_support/dependencies.rb +641 -0
  324. data/vendor/activesupport/lib/active_support/dependency_module.rb +17 -0
  325. data/vendor/activesupport/lib/active_support/deprecation.rb +18 -0
  326. data/vendor/activesupport/lib/active_support/deprecation/behaviors.rb +32 -0
  327. data/vendor/activesupport/lib/active_support/deprecation/method_wrappers.rb +28 -0
  328. data/vendor/activesupport/lib/active_support/deprecation/proxy_wrappers.rb +74 -0
  329. data/vendor/activesupport/lib/active_support/deprecation/reporting.rb +55 -0
  330. data/vendor/activesupport/lib/active_support/duration.rb +101 -0
  331. data/vendor/activesupport/lib/active_support/gzip.rb +25 -0
  332. data/vendor/activesupport/lib/active_support/hash_with_indifferent_access.rb +137 -0
  333. data/vendor/activesupport/lib/active_support/inflections.rb +56 -0
  334. data/vendor/activesupport/lib/active_support/inflector.rb +410 -0
  335. data/vendor/activesupport/lib/active_support/json.rb +2 -0
  336. data/vendor/activesupport/lib/active_support/json/backends/jsongem.rb +40 -0
  337. data/vendor/activesupport/lib/active_support/json/backends/yaml.rb +90 -0
  338. data/vendor/activesupport/lib/active_support/json/decoding.rb +36 -0
  339. data/vendor/activesupport/lib/active_support/json/encoding.rb +224 -0
  340. data/vendor/activesupport/lib/active_support/json/variable.rb +11 -0
  341. data/vendor/activesupport/lib/active_support/locale/en.yml +33 -0
  342. data/vendor/activesupport/lib/active_support/memoizable.rb +116 -0
  343. data/vendor/activesupport/lib/active_support/message_encryptor.rb +70 -0
  344. data/vendor/activesupport/lib/active_support/message_verifier.rb +57 -0
  345. data/vendor/activesupport/lib/active_support/mini.rb +9 -0
  346. data/vendor/activesupport/lib/active_support/multibyte.rb +59 -0
  347. data/vendor/activesupport/lib/active_support/multibyte/chars.rb +708 -0
  348. data/vendor/activesupport/lib/active_support/multibyte/exceptions.rb +8 -0
  349. data/vendor/activesupport/lib/active_support/multibyte/unicode_database.rb +71 -0
  350. data/vendor/activesupport/lib/active_support/multibyte/utils.rb +61 -0
  351. data/vendor/activesupport/lib/active_support/new_callbacks.rb +500 -0
  352. data/vendor/activesupport/lib/active_support/option_merger.rb +25 -0
  353. data/vendor/activesupport/lib/active_support/ordered_hash.rb +134 -0
  354. data/vendor/activesupport/lib/active_support/ordered_options.rb +21 -0
  355. data/vendor/activesupport/lib/active_support/rescuable.rb +111 -0
  356. data/vendor/activesupport/lib/active_support/ruby/shim.rb +24 -0
  357. data/vendor/activesupport/lib/active_support/secure_random.rb +199 -0
  358. data/vendor/activesupport/lib/active_support/string_inquirer.rb +21 -0
  359. data/vendor/activesupport/lib/active_support/test_case.rb +47 -0
  360. data/vendor/activesupport/lib/active_support/testing/assertions.rb +67 -0
  361. data/vendor/activesupport/lib/active_support/testing/declarative.rb +40 -0
  362. data/vendor/activesupport/lib/active_support/testing/default.rb +9 -0
  363. data/vendor/activesupport/lib/active_support/testing/deprecation.rb +55 -0
  364. data/vendor/activesupport/lib/active_support/testing/isolation.rb +105 -0
  365. data/vendor/activesupport/lib/active_support/testing/pending.rb +48 -0
  366. data/vendor/activesupport/lib/active_support/testing/performance.rb +450 -0
  367. data/vendor/activesupport/lib/active_support/testing/setup_and_teardown.rb +91 -0
  368. data/vendor/activesupport/lib/active_support/time.rb +14 -0
  369. data/vendor/activesupport/lib/active_support/time/autoload.rb +5 -0
  370. data/vendor/activesupport/lib/active_support/time_with_zone.rb +346 -0
  371. data/vendor/activesupport/lib/active_support/values/time_zone.rb +421 -0
  372. data/vendor/activesupport/lib/active_support/values/unicode_tables.dat +0 -0
  373. data/vendor/activesupport/lib/active_support/vendor.rb +23 -0
  374. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/blankslate.rb +113 -0
  375. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder.rb +13 -0
  376. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/blankslate.rb +20 -0
  377. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/css.rb +250 -0
  378. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xchar.rb +115 -0
  379. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlbase.rb +139 -0
  380. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlevents.rb +63 -0
  381. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/builder/xmlmarkup.rb +328 -0
  382. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/blankslate.rb +113 -0
  383. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder.rb +13 -0
  384. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/blankslate.rb +20 -0
  385. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/css.rb +250 -0
  386. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xchar.rb +115 -0
  387. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlbase.rb +139 -0
  388. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlevents.rb +63 -0
  389. data/vendor/activesupport/lib/active_support/vendor/builder-2.1.2/lib/builder/xmlmarkup.rb +328 -0
  390. data/vendor/activesupport/lib/active_support/vendor/builder.rb +6 -0
  391. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/MIT-LICENSE +20 -0
  392. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/README.textile +20 -0
  393. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/Rakefile +5 -0
  394. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/i18n.gemspec +27 -0
  395. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n.rb +204 -0
  396. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/backend/simple.rb +215 -0
  397. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/lib/i18n/exceptions.rb +53 -0
  398. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/all.rb +5 -0
  399. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_exceptions_test.rb +99 -0
  400. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/i18n_test.rb +124 -0
  401. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.rb +1 -0
  402. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/locale/en.yml +3 -0
  403. data/vendor/activesupport/lib/active_support/vendor/i18n-0.1.3/test/simple_backend_test.rb +567 -0
  404. data/vendor/activesupport/lib/active_support/vendor/i18n.rb +6 -0
  405. data/vendor/activesupport/lib/active_support/vendor/memcache-client-1.6.5/memcache.rb +935 -0
  406. data/vendor/activesupport/lib/active_support/vendor/memcache-client-1.7.5/lib/memcache.rb +1133 -0
  407. data/vendor/activesupport/lib/active_support/vendor/memcache.rb +6 -0
  408. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo.rb +33 -0
  409. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/data_timezone.rb +47 -0
  410. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/data_timezone_info.rb +228 -0
  411. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Algiers.rb +55 -0
  412. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Cairo.rb +219 -0
  413. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Casablanca.rb +42 -0
  414. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Harare.rb +18 -0
  415. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
  416. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Monrovia.rb +22 -0
  417. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Africa/Nairobi.rb +23 -0
  418. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
  419. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
  420. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Bogota.rb +23 -0
  421. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Caracas.rb +23 -0
  422. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Chicago.rb +283 -0
  423. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Chihuahua.rb +136 -0
  424. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Denver.rb +204 -0
  425. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Godthab.rb +161 -0
  426. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Guatemala.rb +27 -0
  427. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Halifax.rb +274 -0
  428. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
  429. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Juneau.rb +194 -0
  430. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/La_Paz.rb +22 -0
  431. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Lima.rb +35 -0
  432. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Los_Angeles.rb +232 -0
  433. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Mazatlan.rb +139 -0
  434. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Mexico_City.rb +144 -0
  435. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Monterrey.rb +131 -0
  436. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/New_York.rb +282 -0
  437. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Phoenix.rb +30 -0
  438. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Regina.rb +74 -0
  439. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Santiago.rb +205 -0
  440. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
  441. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/St_Johns.rb +288 -0
  442. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/America/Tijuana.rb +196 -0
  443. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Almaty.rb +67 -0
  444. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Baghdad.rb +73 -0
  445. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Baku.rb +161 -0
  446. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Bangkok.rb +20 -0
  447. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Chongqing.rb +33 -0
  448. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Colombo.rb +30 -0
  449. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Dhaka.rb +27 -0
  450. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
  451. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
  452. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Jakarta.rb +30 -0
  453. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
  454. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kabul.rb +20 -0
  455. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
  456. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Karachi.rb +32 -0
  457. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kathmandu.rb +20 -0
  458. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kolkata.rb +25 -0
  459. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
  460. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
  461. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Kuwait.rb +18 -0
  462. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Magadan.rb +163 -0
  463. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Muscat.rb +18 -0
  464. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
  465. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Rangoon.rb +24 -0
  466. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Riyadh.rb +18 -0
  467. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Seoul.rb +34 -0
  468. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Shanghai.rb +35 -0
  469. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Singapore.rb +33 -0
  470. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Taipei.rb +59 -0
  471. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tashkent.rb +47 -0
  472. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
  473. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tehran.rb +121 -0
  474. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Tokyo.rb +30 -0
  475. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
  476. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Urumqi.rb +33 -0
  477. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
  478. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
  479. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
  480. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Asia/Yerevan.rb +165 -0
  481. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/Azores.rb +270 -0
  482. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
  483. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
  484. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Adelaide.rb +187 -0
  485. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Brisbane.rb +35 -0
  486. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Darwin.rb +29 -0
  487. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Hobart.rb +193 -0
  488. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Melbourne.rb +185 -0
  489. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Perth.rb +37 -0
  490. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Australia/Sydney.rb +185 -0
  491. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Etc/UTC.rb +16 -0
  492. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
  493. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Athens.rb +185 -0
  494. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Belgrade.rb +163 -0
  495. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Berlin.rb +188 -0
  496. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Bratislava.rb +13 -0
  497. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Brussels.rb +232 -0
  498. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Bucharest.rb +181 -0
  499. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Budapest.rb +197 -0
  500. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
  501. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Dublin.rb +276 -0
  502. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Helsinki.rb +163 -0
  503. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Istanbul.rb +218 -0
  504. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Kiev.rb +168 -0
  505. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Lisbon.rb +268 -0
  506. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
  507. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/London.rb +288 -0
  508. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Madrid.rb +211 -0
  509. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Minsk.rb +170 -0
  510. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Moscow.rb +181 -0
  511. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Paris.rb +232 -0
  512. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Prague.rb +187 -0
  513. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Riga.rb +176 -0
  514. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Rome.rb +215 -0
  515. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
  516. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Skopje.rb +13 -0
  517. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Sofia.rb +173 -0
  518. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Stockholm.rb +165 -0
  519. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Tallinn.rb +172 -0
  520. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Vienna.rb +183 -0
  521. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Vilnius.rb +170 -0
  522. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Warsaw.rb +212 -0
  523. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Europe/Zagreb.rb +13 -0
  524. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Auckland.rb +202 -0
  525. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Fiji.rb +23 -0
  526. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Guam.rb +22 -0
  527. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
  528. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Majuro.rb +20 -0
  529. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Midway.rb +25 -0
  530. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Noumea.rb +25 -0
  531. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
  532. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
  533. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
  534. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/info_timezone.rb +52 -0
  535. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/linked_timezone.rb +51 -0
  536. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/linked_timezone_info.rb +44 -0
  537. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/offset_rationals.rb +98 -0
  538. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/ruby_core_support.rb +56 -0
  539. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/time_or_datetime.rb +292 -0
  540. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone.rb +508 -0
  541. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_definition.rb +56 -0
  542. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_info.rb +40 -0
  543. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_offset_info.rb +94 -0
  544. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_period.rb +198 -0
  545. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/lib/tzinfo/timezone_transition_info.rb +129 -0
  546. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo.rb +33 -0
  547. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/data_timezone.rb +47 -0
  548. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/data_timezone_info.rb +228 -0
  549. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Algiers.rb +55 -0
  550. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Cairo.rb +219 -0
  551. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Casablanca.rb +42 -0
  552. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Harare.rb +18 -0
  553. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Johannesburg.rb +25 -0
  554. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Monrovia.rb +22 -0
  555. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Africa/Nairobi.rb +23 -0
  556. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Argentina/Buenos_Aires.rb +166 -0
  557. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Argentina/San_Juan.rb +86 -0
  558. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Bogota.rb +23 -0
  559. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Caracas.rb +23 -0
  560. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Chicago.rb +283 -0
  561. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Chihuahua.rb +136 -0
  562. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Denver.rb +204 -0
  563. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Godthab.rb +161 -0
  564. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Guatemala.rb +27 -0
  565. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Halifax.rb +274 -0
  566. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Indiana/Indianapolis.rb +149 -0
  567. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Juneau.rb +194 -0
  568. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/La_Paz.rb +22 -0
  569. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Lima.rb +35 -0
  570. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Los_Angeles.rb +232 -0
  571. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Mazatlan.rb +139 -0
  572. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Mexico_City.rb +144 -0
  573. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Monterrey.rb +131 -0
  574. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/New_York.rb +282 -0
  575. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Phoenix.rb +30 -0
  576. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Regina.rb +74 -0
  577. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Santiago.rb +205 -0
  578. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Sao_Paulo.rb +171 -0
  579. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/St_Johns.rb +288 -0
  580. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/America/Tijuana.rb +196 -0
  581. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Almaty.rb +67 -0
  582. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Baghdad.rb +73 -0
  583. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Baku.rb +161 -0
  584. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Bangkok.rb +20 -0
  585. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Chongqing.rb +33 -0
  586. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Colombo.rb +30 -0
  587. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Dhaka.rb +27 -0
  588. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Hong_Kong.rb +87 -0
  589. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Irkutsk.rb +165 -0
  590. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Jakarta.rb +30 -0
  591. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Jerusalem.rb +163 -0
  592. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kabul.rb +20 -0
  593. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kamchatka.rb +163 -0
  594. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Karachi.rb +32 -0
  595. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kathmandu.rb +20 -0
  596. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kolkata.rb +25 -0
  597. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Krasnoyarsk.rb +163 -0
  598. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kuala_Lumpur.rb +31 -0
  599. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Kuwait.rb +18 -0
  600. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Magadan.rb +163 -0
  601. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Muscat.rb +18 -0
  602. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Novosibirsk.rb +164 -0
  603. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Rangoon.rb +24 -0
  604. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Riyadh.rb +18 -0
  605. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Seoul.rb +34 -0
  606. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Shanghai.rb +35 -0
  607. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Singapore.rb +33 -0
  608. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Taipei.rb +59 -0
  609. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tashkent.rb +47 -0
  610. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tbilisi.rb +78 -0
  611. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tehran.rb +121 -0
  612. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Tokyo.rb +30 -0
  613. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Ulaanbaatar.rb +65 -0
  614. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Urumqi.rb +33 -0
  615. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Vladivostok.rb +164 -0
  616. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yakutsk.rb +163 -0
  617. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yekaterinburg.rb +165 -0
  618. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Asia/Yerevan.rb +165 -0
  619. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/Azores.rb +270 -0
  620. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/Cape_Verde.rb +23 -0
  621. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Atlantic/South_Georgia.rb +18 -0
  622. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Adelaide.rb +187 -0
  623. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Brisbane.rb +35 -0
  624. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Darwin.rb +29 -0
  625. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Hobart.rb +193 -0
  626. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Melbourne.rb +185 -0
  627. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Perth.rb +37 -0
  628. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Australia/Sydney.rb +185 -0
  629. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Etc/UTC.rb +16 -0
  630. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Amsterdam.rb +228 -0
  631. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Athens.rb +185 -0
  632. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Belgrade.rb +163 -0
  633. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Berlin.rb +188 -0
  634. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Bratislava.rb +13 -0
  635. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Brussels.rb +232 -0
  636. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Bucharest.rb +181 -0
  637. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Budapest.rb +197 -0
  638. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Copenhagen.rb +179 -0
  639. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Dublin.rb +276 -0
  640. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Helsinki.rb +163 -0
  641. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Istanbul.rb +218 -0
  642. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Kiev.rb +168 -0
  643. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Lisbon.rb +268 -0
  644. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Ljubljana.rb +13 -0
  645. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/London.rb +288 -0
  646. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Madrid.rb +211 -0
  647. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Minsk.rb +170 -0
  648. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Moscow.rb +181 -0
  649. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Paris.rb +232 -0
  650. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Prague.rb +187 -0
  651. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Riga.rb +176 -0
  652. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Rome.rb +215 -0
  653. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Sarajevo.rb +13 -0
  654. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Skopje.rb +13 -0
  655. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Sofia.rb +173 -0
  656. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Stockholm.rb +165 -0
  657. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Tallinn.rb +172 -0
  658. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Vienna.rb +183 -0
  659. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Vilnius.rb +170 -0
  660. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Warsaw.rb +212 -0
  661. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Europe/Zagreb.rb +13 -0
  662. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Auckland.rb +202 -0
  663. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Fiji.rb +23 -0
  664. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Guam.rb +22 -0
  665. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Honolulu.rb +28 -0
  666. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Majuro.rb +20 -0
  667. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Midway.rb +25 -0
  668. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Noumea.rb +25 -0
  669. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Pago_Pago.rb +26 -0
  670. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Port_Moresby.rb +20 -0
  671. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/definitions/Pacific/Tongatapu.rb +27 -0
  672. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/info_timezone.rb +52 -0
  673. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/linked_timezone.rb +51 -0
  674. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/linked_timezone_info.rb +44 -0
  675. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/offset_rationals.rb +98 -0
  676. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/ruby_core_support.rb +56 -0
  677. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/time_or_datetime.rb +292 -0
  678. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone.rb +508 -0
  679. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_definition.rb +56 -0
  680. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_info.rb +40 -0
  681. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_offset_info.rb +94 -0
  682. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_period.rb +198 -0
  683. data/vendor/activesupport/lib/active_support/vendor/tzinfo-0.3.13/tzinfo/timezone_transition_info.rb +129 -0
  684. data/vendor/activesupport/lib/active_support/vendor/tzinfo.rb +6 -0
  685. data/vendor/activesupport/lib/active_support/version.rb +9 -0
  686. data/vendor/activesupport/lib/active_support/whiny_nil.rb +58 -0
  687. data/vendor/activesupport/lib/active_support/xml_mini.rb +33 -0
  688. data/vendor/activesupport/lib/active_support/xml_mini/jdom.rb +166 -0
  689. data/vendor/activesupport/lib/active_support/xml_mini/libxml.rb +139 -0
  690. data/vendor/activesupport/lib/active_support/xml_mini/nokogiri.rb +83 -0
  691. data/vendor/activesupport/lib/active_support/xml_mini/rexml.rb +123 -0
  692. data/vendor/activesupport/lib/activesupport.rb +1 -0
  693. data/vendor/activesupport/test/abstract_unit.rb +49 -0
  694. data/vendor/activesupport/test/autoloading_fixtures/a/b.rb +2 -0
  695. data/vendor/activesupport/test/autoloading_fixtures/a/c/d.rb +2 -0
  696. data/vendor/activesupport/test/autoloading_fixtures/a/c/e/f.rb +2 -0
  697. data/vendor/activesupport/test/autoloading_fixtures/application.rb +1 -0
  698. data/vendor/activesupport/test/autoloading_fixtures/class_folder.rb +3 -0
  699. data/vendor/activesupport/test/autoloading_fixtures/class_folder/class_folder_subclass.rb +3 -0
  700. data/vendor/activesupport/test/autoloading_fixtures/class_folder/inline_class.rb +2 -0
  701. data/vendor/activesupport/test/autoloading_fixtures/class_folder/nested_class.rb +7 -0
  702. data/vendor/activesupport/test/autoloading_fixtures/conflict.rb +1 -0
  703. data/vendor/activesupport/test/autoloading_fixtures/counting_loader.rb +5 -0
  704. data/vendor/activesupport/test/autoloading_fixtures/cross_site_dependency.rb +2 -0
  705. data/vendor/activesupport/test/autoloading_fixtures/e.rb +2 -0
  706. data/vendor/activesupport/test/autoloading_fixtures/module_folder/inline_class.rb +2 -0
  707. data/vendor/activesupport/test/autoloading_fixtures/module_folder/nested_class.rb +4 -0
  708. data/vendor/activesupport/test/autoloading_fixtures/module_folder/nested_sibling.rb +2 -0
  709. data/vendor/activesupport/test/autoloading_fixtures/module_with_custom_const_missing/a/b.rb +1 -0
  710. data/vendor/activesupport/test/autoloading_fixtures/multiple_constant_file.rb +2 -0
  711. data/vendor/activesupport/test/autoloading_fixtures/raises_name_error.rb +3 -0
  712. data/vendor/activesupport/test/autoloading_fixtures/raises_no_method_error.rb +3 -0
  713. data/vendor/activesupport/test/buffered_logger_test.rb +149 -0
  714. data/vendor/activesupport/test/caching_test.rb +344 -0
  715. data/vendor/activesupport/test/callbacks_test.rb +188 -0
  716. data/vendor/activesupport/test/clean_backtrace_test.rb +47 -0
  717. data/vendor/activesupport/test/clean_logger_test.rb +58 -0
  718. data/vendor/activesupport/test/concern_test.rb +97 -0
  719. data/vendor/activesupport/test/core_ext/array_ext_test.rb +367 -0
  720. data/vendor/activesupport/test/core_ext/base64_ext_test.rb +8 -0
  721. data/vendor/activesupport/test/core_ext/bigdecimal.rb +10 -0
  722. data/vendor/activesupport/test/core_ext/blank_test.rb +25 -0
  723. data/vendor/activesupport/test/core_ext/boolean_ext_test.rb +12 -0
  724. data/vendor/activesupport/test/core_ext/cgi_ext_test.rb +15 -0
  725. data/vendor/activesupport/test/core_ext/class/attribute_accessor_test.rb +32 -0
  726. data/vendor/activesupport/test/core_ext/class/class_inheritable_attributes_test.rb +225 -0
  727. data/vendor/activesupport/test/core_ext/class/delegating_attributes_test.rb +116 -0
  728. data/vendor/activesupport/test/core_ext/class_test.rb +47 -0
  729. data/vendor/activesupport/test/core_ext/date_ext_test.rb +279 -0
  730. data/vendor/activesupport/test/core_ext/date_time_ext_test.rb +360 -0
  731. data/vendor/activesupport/test/core_ext/duplicable_test.rb +24 -0
  732. data/vendor/activesupport/test/core_ext/duration_test.rb +114 -0
  733. data/vendor/activesupport/test/core_ext/enumerable_test.rb +104 -0
  734. data/vendor/activesupport/test/core_ext/exception_test.rb +69 -0
  735. data/vendor/activesupport/test/core_ext/file_test.rb +68 -0
  736. data/vendor/activesupport/test/core_ext/float_ext_test.rb +26 -0
  737. data/vendor/activesupport/test/core_ext/hash_ext_test.rb +970 -0
  738. data/vendor/activesupport/test/core_ext/integer_ext_test.rb +38 -0
  739. data/vendor/activesupport/test/core_ext/kernel_test.rb +59 -0
  740. data/vendor/activesupport/test/core_ext/load_error_test.rb +17 -0
  741. data/vendor/activesupport/test/core_ext/module/attr_accessor_with_default_test.rb +31 -0
  742. data/vendor/activesupport/test/core_ext/module/attr_internal_test.rb +53 -0
  743. data/vendor/activesupport/test/core_ext/module/attribute_accessor_test.rb +34 -0
  744. data/vendor/activesupport/test/core_ext/module/attribute_aliasing_test.rb +59 -0
  745. data/vendor/activesupport/test/core_ext/module/synchronization_test.rb +88 -0
  746. data/vendor/activesupport/test/core_ext/module_test.rb +364 -0
  747. data/vendor/activesupport/test/core_ext/name_error_test.rb +25 -0
  748. data/vendor/activesupport/test/core_ext/nil_ext_test.rb +8 -0
  749. data/vendor/activesupport/test/core_ext/numeric_ext_test.rb +150 -0
  750. data/vendor/activesupport/test/core_ext/object_and_class_ext_test.rb +275 -0
  751. data/vendor/activesupport/test/core_ext/object_ext_test.rb +16 -0
  752. data/vendor/activesupport/test/core_ext/proc_test.rb +12 -0
  753. data/vendor/activesupport/test/core_ext/range_ext_test.rb +65 -0
  754. data/vendor/activesupport/test/core_ext/regexp_ext_test.rb +29 -0
  755. data/vendor/activesupport/test/core_ext/string_ext_test.rb +358 -0
  756. data/vendor/activesupport/test/core_ext/symbol_test.rb +9 -0
  757. data/vendor/activesupport/test/core_ext/time_ext_test.rb +786 -0
  758. data/vendor/activesupport/test/core_ext/time_with_zone_test.rb +851 -0
  759. data/vendor/activesupport/test/core_ext/uri_ext_test.rb +13 -0
  760. data/vendor/activesupport/test/dependencies/check_warnings.rb +2 -0
  761. data/vendor/activesupport/test/dependencies/conflict.rb +1 -0
  762. data/vendor/activesupport/test/dependencies/cross_site_depender.rb +3 -0
  763. data/vendor/activesupport/test/dependencies/mutual_one.rb +4 -0
  764. data/vendor/activesupport/test/dependencies/mutual_two.rb +4 -0
  765. data/vendor/activesupport/test/dependencies/raises_exception.rb +3 -0
  766. data/vendor/activesupport/test/dependencies/requires_nonexistent0.rb +1 -0
  767. data/vendor/activesupport/test/dependencies/requires_nonexistent1.rb +1 -0
  768. data/vendor/activesupport/test/dependencies/service_one.rb +5 -0
  769. data/vendor/activesupport/test/dependencies/service_two.rb +2 -0
  770. data/vendor/activesupport/test/dependencies_test.rb +786 -0
  771. data/vendor/activesupport/test/deprecation_test.rb +167 -0
  772. data/vendor/activesupport/test/fixtures/omgomg.rb +2 -0
  773. data/vendor/activesupport/test/flush_cache_on_private_memoization_test.rb +43 -0
  774. data/vendor/activesupport/test/gzip_test.rb +7 -0
  775. data/vendor/activesupport/test/i18n_test.rb +100 -0
  776. data/vendor/activesupport/test/inflector_test.rb +316 -0
  777. data/vendor/activesupport/test/inflector_test_cases.rb +259 -0
  778. data/vendor/activesupport/test/isolation_test.rb +162 -0
  779. data/vendor/activesupport/test/json/decoding_test.rb +81 -0
  780. data/vendor/activesupport/test/json/encoding_test.rb +149 -0
  781. data/vendor/activesupport/test/memoizable_test.rb +242 -0
  782. data/vendor/activesupport/test/message_encryptor_test.rb +46 -0
  783. data/vendor/activesupport/test/message_verifier_test.rb +25 -0
  784. data/vendor/activesupport/test/multibyte_chars_test.rb +588 -0
  785. data/vendor/activesupport/test/multibyte_conformance.rb +129 -0
  786. data/vendor/activesupport/test/multibyte_test_helpers.rb +19 -0
  787. data/vendor/activesupport/test/multibyte_unicode_database_test.rb +22 -0
  788. data/vendor/activesupport/test/multibyte_utils_test.rb +137 -0
  789. data/vendor/activesupport/test/new_callback_inheritance_test.rb +115 -0
  790. data/vendor/activesupport/test/new_callbacks_test.rb +528 -0
  791. data/vendor/activesupport/test/option_merger_test.rb +86 -0
  792. data/vendor/activesupport/test/ordered_hash_test.rb +194 -0
  793. data/vendor/activesupport/test/ordered_options_test.rb +53 -0
  794. data/vendor/activesupport/test/rescuable_test.rb +75 -0
  795. data/vendor/activesupport/test/secure_random_test.rb +19 -0
  796. data/vendor/activesupport/test/string_inquirer_test.rb +15 -0
  797. data/vendor/activesupport/test/test_test.rb +149 -0
  798. data/vendor/activesupport/test/time_zone_test.rb +279 -0
  799. data/vendor/activesupport/test/whiny_nil_test.rb +38 -0
  800. data/vendor/activesupport/test/xml_mini/jdom_engine_test.rb +153 -0
  801. data/vendor/activesupport/test/xml_mini/nokogiri_engine_test.rb +169 -0
  802. data/vendor/activesupport/test/xml_mini/rexml_engine_test.rb +29 -0
  803. data/vendor/code_statistics.rb +107 -0
  804. metadata +891 -0
@@ -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
+
@@ -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
+