backbone-deep-rails 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/lib/backbone/deep/rails/version.rb +1 -1
  4. metadata +18 -245
  5. data/vendor/bundle/cache/activemodel-3.2.11.gem +0 -0
  6. data/vendor/bundle/cache/activesupport-3.2.11.gem +0 -0
  7. data/vendor/bundle/gems/activesupport-3.2.11/CHANGELOG.md +0 -157
  8. data/vendor/bundle/gems/activesupport-3.2.11/MIT-LICENSE +0 -20
  9. data/vendor/bundle/gems/activesupport-3.2.11/README.rdoc +0 -33
  10. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support.rb +0 -82
  11. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/all.rb +0 -3
  12. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/backtrace_cleaner.rb +0 -99
  13. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/base64.rb +0 -54
  14. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/basic_object.rb +0 -21
  15. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/benchmarkable.rb +0 -55
  16. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/buffered_logger.rb +0 -125
  17. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/builder.rb +0 -6
  18. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache.rb +0 -638
  19. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/file_store.rb +0 -178
  20. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/mem_cache_store.rb +0 -206
  21. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/memory_store.rb +0 -159
  22. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/null_store.rb +0 -44
  23. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/cache/strategy/local_cache.rb +0 -169
  24. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/callbacks.rb +0 -626
  25. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/concern.rb +0 -131
  26. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/configurable.rb +0 -90
  27. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext.rb +0 -3
  28. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array.rb +0 -8
  29. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/access.rb +0 -46
  30. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/conversions.rb +0 -164
  31. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/extract_options.rb +0 -29
  32. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/grouping.rb +0 -100
  33. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/prepend_and_append.rb +0 -7
  34. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/random_access.rb +0 -30
  35. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/uniq_by.rb +0 -16
  36. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/array/wrap.rb +0 -48
  37. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/benchmark.rb +0 -7
  38. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal.rb +0 -1
  39. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/big_decimal/conversions.rb +0 -45
  40. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class.rb +0 -4
  41. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute.rb +0 -115
  42. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/attribute_accessors.rb +0 -168
  43. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/delegating_attributes.rb +0 -44
  44. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/class/subclasses.rb +0 -36
  45. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/acts_like.rb +0 -8
  46. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/calculations.rb +0 -276
  47. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/conversions.rb +0 -106
  48. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/freeze.rb +0 -33
  49. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date/zones.rb +0 -14
  50. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/acts_like.rb +0 -13
  51. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/calculations.rb +0 -143
  52. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/conversions.rb +0 -103
  53. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/date_time/zones.rb +0 -21
  54. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/enumerable.rb +0 -127
  55. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/exception.rb +0 -3
  56. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file.rb +0 -2
  57. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/atomic.rb +0 -42
  58. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/file/path.rb +0 -5
  59. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float.rb +0 -1
  60. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/float/rounding.rb +0 -19
  61. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash.rb +0 -9
  62. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/conversions.rb +0 -175
  63. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_dup.rb +0 -18
  64. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/deep_merge.rb +0 -21
  65. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/diff.rb +0 -13
  66. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/except.rb +0 -23
  67. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/indifferent_access.rb +0 -24
  68. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/keys.rb +0 -54
  69. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/reverse_merge.rb +0 -23
  70. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/hash/slice.rb +0 -40
  71. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer.rb +0 -3
  72. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/inflections.rb +0 -17
  73. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/multiple.rb +0 -10
  74. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/integer/time.rb +0 -39
  75. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/io.rb +0 -15
  76. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel.rb +0 -4
  77. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/agnostics.rb +0 -11
  78. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/debugger.rb +0 -10
  79. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/reporting.rb +0 -93
  80. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/kernel/singleton_class.rb +0 -13
  81. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/load_error.rb +0 -23
  82. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/logger.rb +0 -83
  83. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module.rb +0 -12
  84. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/aliasing.rb +0 -70
  85. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/anonymous.rb +0 -24
  86. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attr_internal.rb +0 -39
  87. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/attribute_accessors.rb +0 -64
  88. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/delegation.rb +0 -153
  89. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/deprecation.rb +0 -9
  90. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/introspection.rb +0 -88
  91. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/method_names.rb +0 -14
  92. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/qualified_const.rb +0 -64
  93. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/reachable.rb +0 -8
  94. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/remove_method.rb +0 -16
  95. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/module/synchronization.rb +0 -45
  96. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/name_error.rb +0 -18
  97. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric.rb +0 -2
  98. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/bytes.rb +0 -44
  99. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/numeric/time.rb +0 -79
  100. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object.rb +0 -13
  101. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/acts_like.rb +0 -10
  102. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/blank.rb +0 -121
  103. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/conversions.rb +0 -4
  104. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/duplicable.rb +0 -119
  105. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/inclusion.rb +0 -25
  106. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/instance_variables.rb +0 -33
  107. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_json.rb +0 -19
  108. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_param.rb +0 -55
  109. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/to_query.rb +0 -27
  110. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/try.rb +0 -57
  111. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/object/with_options.rb +0 -43
  112. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/proc.rb +0 -14
  113. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process.rb +0 -1
  114. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/process/daemon.rb +0 -23
  115. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range.rb +0 -5
  116. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/blockless_step.rb +0 -29
  117. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/conversions.rb +0 -21
  118. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/cover.rb +0 -3
  119. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/include_range.rb +0 -21
  120. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/range/overlaps.rb +0 -8
  121. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/regexp.rb +0 -5
  122. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/rexml.rb +0 -46
  123. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string.rb +0 -14
  124. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/access.rb +0 -99
  125. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/behavior.rb +0 -6
  126. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/conversions.rb +0 -66
  127. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/encoding.rb +0 -11
  128. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/exclude.rb +0 -11
  129. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/filters.rb +0 -49
  130. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inflections.rb +0 -202
  131. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/inquiry.rb +0 -13
  132. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/interpolation.rb +0 -2
  133. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/multibyte.rb +0 -72
  134. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/output_safety.rb +0 -186
  135. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/starts_ends_with.rb +0 -4
  136. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/strip.rb +0 -26
  137. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/string/xchar.rb +0 -18
  138. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/acts_like.rb +0 -8
  139. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/calculations.rb +0 -360
  140. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/conversions.rb +0 -85
  141. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/marshal.rb +0 -57
  142. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/publicize_conversion_methods.rb +0 -10
  143. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/time/zones.rb +0 -86
  144. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/core_ext/uri.rb +0 -30
  145. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies.rb +0 -703
  146. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/dependencies/autoload.rb +0 -50
  147. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation.rb +0 -18
  148. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/behaviors.rb +0 -49
  149. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/method_wrappers.rb +0 -29
  150. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/proxy_wrappers.rb +0 -81
  151. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/deprecation/reporting.rb +0 -65
  152. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/descendants_tracker.rb +0 -45
  153. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/duration.rb +0 -110
  154. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_update_checker.rb +0 -121
  155. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/file_watcher.rb +0 -36
  156. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/gzip.rb +0 -30
  157. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/hash_with_indifferent_access.rb +0 -178
  158. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n.rb +0 -9
  159. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/i18n_railtie.rb +0 -102
  160. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflections.rb +0 -63
  161. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector.rb +0 -7
  162. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/inflections.rb +0 -174
  163. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/methods.rb +0 -321
  164. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/inflector/transliterate.rb +0 -98
  165. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json.rb +0 -2
  166. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/decoding.rb +0 -79
  167. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/encoding.rb +0 -284
  168. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/json/variable.rb +0 -9
  169. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/lazy_load_hooks.rb +0 -46
  170. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/locale/en.yml +0 -36
  171. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber.rb +0 -122
  172. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/log_subscriber/test_helper.rb +0 -101
  173. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/memoizable.rb +0 -116
  174. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_encryptor.rb +0 -103
  175. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/message_verifier.rb +0 -74
  176. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte.rb +0 -44
  177. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/chars.rb +0 -476
  178. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/exceptions.rb +0 -8
  179. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/unicode.rb +0 -393
  180. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/multibyte/utils.rb +0 -60
  181. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications.rb +0 -154
  182. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/fanout.rb +0 -61
  183. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb +0 -53
  184. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/option_merger.rb +0 -25
  185. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_hash.rb +0 -222
  186. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ordered_options.rb +0 -61
  187. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/railtie.rb +0 -59
  188. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/rescuable.rb +0 -115
  189. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/ruby/shim.rb +0 -22
  190. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/string_inquirer.rb +0 -21
  191. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/tagged_logging.rb +0 -80
  192. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/test_case.rb +0 -34
  193. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/assertions.rb +0 -97
  194. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/declarative.rb +0 -40
  195. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/deprecation.rb +0 -55
  196. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/isolation.rb +0 -157
  197. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/mochaing.rb +0 -7
  198. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/pending.rb +0 -52
  199. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance.rb +0 -317
  200. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/jruby.rb +0 -115
  201. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/rubinius.rb +0 -113
  202. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby.rb +0 -152
  203. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/mri.rb +0 -57
  204. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/performance/ruby/yarv.rb +0 -57
  205. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/testing/setup_and_teardown.rb +0 -118
  206. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time.rb +0 -35
  207. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time/autoload.rb +0 -5
  208. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/time_with_zone.rb +0 -358
  209. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/time_zone.rb +0 -397
  210. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/values/unicode_tables.dat +0 -0
  211. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/version.rb +0 -10
  212. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/whiny_nil.rb +0 -24
  213. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini.rb +0 -168
  214. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/jdom.rb +0 -175
  215. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxml.rb +0 -80
  216. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/libxmlsax.rb +0 -86
  217. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogiri.rb +0 -84
  218. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/nokogirisax.rb +0 -88
  219. data/vendor/bundle/gems/activesupport-3.2.11/lib/active_support/xml_mini/rexml.rb +0 -130
  220. data/vendor/bundle/specifications/activesupport-3.2.11.gemspec +0 -33
@@ -1,44 +0,0 @@
1
- require 'active_support/core_ext/object/blank'
2
- require 'active_support/core_ext/array/extract_options'
3
- require 'active_support/core_ext/kernel/singleton_class'
4
- require 'active_support/core_ext/module/remove_method'
5
-
6
- class Class
7
- def superclass_delegating_accessor(name, options = {})
8
- # Create private _name and _name= methods that can still be used if the public
9
- # methods are overridden. This allows
10
- _superclass_delegating_accessor("_#{name}")
11
-
12
- # Generate the public methods name, name=, and name?
13
- # These methods dispatch to the private _name, and _name= methods, making them
14
- # overridable
15
- singleton_class.send(:define_method, name) { send("_#{name}") }
16
- singleton_class.send(:define_method, "#{name}?") { !!send("_#{name}") }
17
- singleton_class.send(:define_method, "#{name}=") { |value| send("_#{name}=", value) }
18
-
19
- # If an instance_reader is needed, generate methods for name and name= on the
20
- # class itself, so instances will be able to see them
21
- define_method(name) { send("_#{name}") } if options[:instance_reader] != false
22
- define_method("#{name}?") { !!send("#{name}") } if options[:instance_reader] != false
23
- end
24
-
25
- private
26
-
27
- # Take the object being set and store it in a method. This gives us automatic
28
- # inheritance behavior, without having to store the object in an instance
29
- # variable and look up the superclass chain manually.
30
- def _stash_object_in_method(object, method, instance_reader = true)
31
- singleton_class.remove_possible_method(method)
32
- singleton_class.send(:define_method, method) { object }
33
- remove_possible_method(method)
34
- define_method(method) { object } if instance_reader
35
- end
36
-
37
- def _superclass_delegating_accessor(name, options = {})
38
- singleton_class.send(:define_method, "#{name}=") do |value|
39
- _stash_object_in_method(value, name, options[:instance_reader] != false)
40
- end
41
- send("#{name}=", nil)
42
- end
43
-
44
- end
@@ -1,36 +0,0 @@
1
- require 'active_support/core_ext/module/anonymous'
2
- require 'active_support/core_ext/module/reachable'
3
-
4
- class Class #:nodoc:
5
- begin
6
- ObjectSpace.each_object(Class.new) {}
7
-
8
- def descendants
9
- descendants = []
10
- ObjectSpace.each_object(class << self; self; end) do |k|
11
- descendants.unshift k unless k == self
12
- end
13
- descendants
14
- end
15
- rescue StandardError # JRuby
16
- def descendants
17
- descendants = []
18
- ObjectSpace.each_object(Class) do |k|
19
- descendants.unshift k if k < self
20
- end
21
- descendants.uniq!
22
- descendants
23
- end
24
- end
25
-
26
- # Returns an array with the direct children of +self+.
27
- #
28
- # Integer.subclasses # => [Bignum, Fixnum]
29
- def subclasses
30
- subclasses, chain = [], descendants
31
- chain.each do |k|
32
- subclasses << k unless chain.any? { |c| c > k }
33
- end
34
- subclasses
35
- end
36
- end
@@ -1,8 +0,0 @@
1
- require 'active_support/core_ext/object/acts_like'
2
-
3
- class Date
4
- # Duck-types as a Date-like class. See Object#acts_like?.
5
- def acts_like_date?
6
- true
7
- end
8
- end
@@ -1,276 +0,0 @@
1
- require 'date'
2
- require 'active_support/duration'
3
- require 'active_support/core_ext/object/acts_like'
4
- require 'active_support/core_ext/date/zones'
5
- require 'active_support/core_ext/time/zones'
6
-
7
- class Date
8
- DAYS_INTO_WEEK = { :monday => 0, :tuesday => 1, :wednesday => 2, :thursday => 3, :friday => 4, :saturday => 5, :sunday => 6 }
9
-
10
- if RUBY_VERSION < '1.9'
11
- undef :>>
12
-
13
- # Backported from 1.9. The one in 1.8 leads to incorrect next_month and
14
- # friends for dates where the calendar reform is involved. It additionally
15
- # prevents an infinite loop fixed in r27013.
16
- def >>(n)
17
- y, m = (year * 12 + (mon - 1) + n).divmod(12)
18
- m, = (m + 1) .divmod(1)
19
- d = mday
20
- until jd2 = self.class.valid_civil?(y, m, d, start)
21
- d -= 1
22
- raise ArgumentError, 'invalid date' unless d > 0
23
- end
24
- self + (jd2 - jd)
25
- end
26
- end
27
-
28
- class << self
29
- # Returns a new Date representing the date 1 day ago (i.e. yesterday's date).
30
- def yesterday
31
- ::Date.current.yesterday
32
- end
33
-
34
- # Returns a new Date representing the date 1 day after today (i.e. tomorrow's date).
35
- def tomorrow
36
- ::Date.current.tomorrow
37
- end
38
-
39
- # Returns Time.zone.today when <tt>Time.zone</tt> or <tt>config.time_zone</tt> are set, otherwise just returns Date.today.
40
- def current
41
- ::Time.zone ? ::Time.zone.today : ::Date.today
42
- end
43
- end
44
-
45
- # Returns true if the Date object's date lies in the past. Otherwise returns false.
46
- def past?
47
- self < ::Date.current
48
- end
49
-
50
- # Returns true if the Date object's date is today.
51
- def today?
52
- self.to_date == ::Date.current # we need the to_date because of DateTime
53
- end
54
-
55
- # Returns true if the Date object's date lies in the future.
56
- def future?
57
- self > ::Date.current
58
- end
59
-
60
- # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
61
- # and then subtracts the specified number of seconds.
62
- def ago(seconds)
63
- to_time_in_current_zone.since(-seconds)
64
- end
65
-
66
- # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
67
- # and then adds the specified number of seconds
68
- def since(seconds)
69
- to_time_in_current_zone.since(seconds)
70
- end
71
- alias :in :since
72
-
73
- # Converts Date to a Time (or DateTime if necessary) with the time portion set to the beginning of the day (0:00)
74
- def beginning_of_day
75
- to_time_in_current_zone
76
- end
77
- alias :midnight :beginning_of_day
78
- alias :at_midnight :beginning_of_day
79
- alias :at_beginning_of_day :beginning_of_day
80
-
81
- # Converts Date to a Time (or DateTime if necessary) with the time portion set to the end of the day (23:59:59)
82
- def end_of_day
83
- to_time_in_current_zone.end_of_day
84
- end
85
-
86
- def plus_with_duration(other) #:nodoc:
87
- if ActiveSupport::Duration === other
88
- other.since(self)
89
- else
90
- plus_without_duration(other)
91
- end
92
- end
93
- alias_method :plus_without_duration, :+
94
- alias_method :+, :plus_with_duration
95
-
96
- def minus_with_duration(other) #:nodoc:
97
- if ActiveSupport::Duration === other
98
- plus_with_duration(-other)
99
- else
100
- minus_without_duration(other)
101
- end
102
- end
103
- alias_method :minus_without_duration, :-
104
- alias_method :-, :minus_with_duration
105
-
106
- # Provides precise Date calculations for years, months, and days. The +options+ parameter takes a hash with
107
- # any of these keys: <tt>:years</tt>, <tt>:months</tt>, <tt>:weeks</tt>, <tt>:days</tt>.
108
- def advance(options)
109
- options = options.dup
110
- d = self
111
- d = d >> options.delete(:years) * 12 if options[:years]
112
- d = d >> options.delete(:months) if options[:months]
113
- d = d + options.delete(:weeks) * 7 if options[:weeks]
114
- d = d + options.delete(:days) if options[:days]
115
- d
116
- end
117
-
118
- # Returns a new Date where one or more of the elements have been changed according to the +options+ parameter.
119
- #
120
- # Examples:
121
- #
122
- # Date.new(2007, 5, 12).change(:day => 1) # => Date.new(2007, 5, 1)
123
- # Date.new(2007, 5, 12).change(:year => 2005, :month => 1) # => Date.new(2005, 1, 12)
124
- def change(options)
125
- ::Date.new(
126
- options[:year] || self.year,
127
- options[:month] || self.month,
128
- options[:day] || self.day
129
- )
130
- end
131
-
132
- # Returns a new Date/DateTime representing the time a number of specified weeks ago.
133
- def weeks_ago(weeks)
134
- advance(:weeks => -weeks)
135
- end
136
-
137
- # Returns a new Date/DateTime representing the time a number of specified months ago.
138
- def months_ago(months)
139
- advance(:months => -months)
140
- end
141
-
142
- # Returns a new Date/DateTime representing the time a number of specified months in the future.
143
- def months_since(months)
144
- advance(:months => months)
145
- end
146
-
147
- # Returns a new Date/DateTime representing the time a number of specified years ago.
148
- def years_ago(years)
149
- advance(:years => -years)
150
- end
151
-
152
- # Returns a new Date/DateTime representing the time a number of specified years in the future.
153
- def years_since(years)
154
- advance(:years => years)
155
- end
156
-
157
- # Shorthand for years_ago(1)
158
- def prev_year
159
- years_ago(1)
160
- end unless method_defined?(:prev_year)
161
-
162
- # Shorthand for years_since(1)
163
- def next_year
164
- years_since(1)
165
- end unless method_defined?(:next_year)
166
-
167
- # Shorthand for months_ago(1)
168
- def prev_month
169
- months_ago(1)
170
- end unless method_defined?(:prev_month)
171
-
172
- # Shorthand for months_since(1)
173
- def next_month
174
- months_since(1)
175
- end unless method_defined?(:next_month)
176
-
177
- # Returns number of days to start of this week. Week is assumed to start on
178
- # +start_day+, default is +:monday+.
179
- def days_to_week_start(start_day = :monday)
180
- start_day_number = DAYS_INTO_WEEK[start_day]
181
- current_day_number = wday != 0 ? wday - 1 : 6
182
- (current_day_number - start_day_number) % 7
183
- end
184
-
185
- # Returns a new +Date+/+DateTime+ representing the start of this week. Week is
186
- # assumed to start on +start_day+, default is +:monday+. +DateTime+ objects
187
- # have their time set to 0:00.
188
- def beginning_of_week(start_day = :monday)
189
- days_to_start = days_to_week_start(start_day)
190
- result = self - days_to_start
191
- acts_like?(:time) ? result.midnight : result
192
- end
193
- alias :at_beginning_of_week :beginning_of_week
194
-
195
- # Returns a new +Date+/+DateTime+ representing the start of this week. Week is
196
- # assumed to start on a Monday. +DateTime+ objects have their time set to 0:00.
197
- def monday
198
- beginning_of_week
199
- end
200
-
201
- # Returns a new +Date+/+DateTime+ representing the end of this week. Week is
202
- # assumed to start on +start_day+, default is +:monday+. +DateTime+ objects
203
- # have their time set to 23:59:59.
204
- def end_of_week(start_day = :monday)
205
- days_to_end = 6 - days_to_week_start(start_day)
206
- result = self + days_to_end.days
207
- self.acts_like?(:time) ? result.end_of_day : result
208
- end
209
- alias :at_end_of_week :end_of_week
210
-
211
- # Returns a new +Date+/+DateTime+ representing the end of this week. Week is
212
- # assumed to start on a Monday. +DateTime+ objects have their time set to 23:59:59.
213
- def sunday
214
- end_of_week
215
- end
216
-
217
- # Returns a new +Date+/+DateTime+ representing the given +day+ in the previous
218
- # week. Default is +:monday+. +DateTime+ objects have their time set to 0:00.
219
- def prev_week(day = :monday)
220
- result = (self - 7).beginning_of_week + DAYS_INTO_WEEK[day]
221
- self.acts_like?(:time) ? result.change(:hour => 0) : result
222
- end
223
-
224
- # Returns a new Date/DateTime representing the start of the given day in next week (default is :monday).
225
- def next_week(day = :monday)
226
- result = (self + 7).beginning_of_week + DAYS_INTO_WEEK[day]
227
- self.acts_like?(:time) ? result.change(:hour => 0) : result
228
- end
229
-
230
- # Returns a new ; DateTime objects will have time set to 0:00DateTime representing the start of the month (1st of the month; DateTime objects will have time set to 0:00)
231
- def beginning_of_month
232
- self.acts_like?(:time) ? change(:day => 1, :hour => 0) : change(:day => 1)
233
- end
234
- alias :at_beginning_of_month :beginning_of_month
235
-
236
- # Returns a new Date/DateTime representing the end of the month (last day of the month; DateTime objects will have time set to 0:00)
237
- def end_of_month
238
- last_day = ::Time.days_in_month( self.month, self.year )
239
- self.acts_like?(:time) ? change(:day => last_day, :hour => 23, :min => 59, :sec => 59) : change(:day => last_day)
240
- end
241
- alias :at_end_of_month :end_of_month
242
-
243
- # Returns a new Date/DateTime representing the start of the quarter (1st of january, april, july, october; DateTime objects will have time set to 0:00)
244
- def beginning_of_quarter
245
- beginning_of_month.change(:month => [10, 7, 4, 1].detect { |m| m <= self.month })
246
- end
247
- alias :at_beginning_of_quarter :beginning_of_quarter
248
-
249
- # Returns a new Date/DateTime representing the end of the quarter (last day of march, june, september, december; DateTime objects will have time set to 23:59:59)
250
- def end_of_quarter
251
- beginning_of_month.change(:month => [3, 6, 9, 12].detect { |m| m >= self.month }).end_of_month
252
- end
253
- alias :at_end_of_quarter :end_of_quarter
254
-
255
- # Returns a new Date/DateTime representing the start of the year (1st of january; DateTime objects will have time set to 0:00)
256
- def beginning_of_year
257
- self.acts_like?(:time) ? change(:month => 1, :day => 1, :hour => 0) : change(:month => 1, :day => 1)
258
- end
259
- alias :at_beginning_of_year :beginning_of_year
260
-
261
- # Returns a new Time representing the end of the year (31st of december; DateTime objects will have time set to 23:59:59)
262
- def end_of_year
263
- self.acts_like?(:time) ? change(:month => 12, :day => 31, :hour => 23, :min => 59, :sec => 59) : change(:month => 12, :day => 31)
264
- end
265
- alias :at_end_of_year :end_of_year
266
-
267
- # Convenience method which returns a new Date/DateTime representing the time 1 day ago
268
- def yesterday
269
- self - 1
270
- end
271
-
272
- # Convenience method which returns a new Date/DateTime representing the time 1 day since the instance time
273
- def tomorrow
274
- self + 1
275
- end
276
- end
@@ -1,106 +0,0 @@
1
- require 'date'
2
- require 'active_support/inflector/methods'
3
- require 'active_support/core_ext/date/zones'
4
- require 'active_support/core_ext/module/remove_method'
5
-
6
- class Date
7
- DATE_FORMATS = {
8
- :short => "%e %b",
9
- :long => "%B %e, %Y",
10
- :db => "%Y-%m-%d",
11
- :number => "%Y%m%d",
12
- :long_ordinal => lambda { |date| date.strftime("%B #{ActiveSupport::Inflector.ordinalize(date.day)}, %Y") }, # => "April 25th, 2007"
13
- :rfc822 => "%e %b %Y"
14
- }
15
-
16
- # Ruby 1.9 has Date#to_time which converts to localtime only.
17
- remove_possible_method :to_time
18
-
19
- # Ruby 1.9 has Date#xmlschema which converts to a string without the time component.
20
- remove_possible_method :xmlschema
21
-
22
- # Convert to a formatted string. See DATE_FORMATS for predefined formats.
23
- #
24
- # This method is aliased to <tt>to_s</tt>.
25
- #
26
- # ==== Examples
27
- # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007
28
- #
29
- # date.to_formatted_s(:db) # => "2007-11-10"
30
- # date.to_s(:db) # => "2007-11-10"
31
- #
32
- # date.to_formatted_s(:short) # => "10 Nov"
33
- # date.to_formatted_s(:long) # => "November 10, 2007"
34
- # date.to_formatted_s(:long_ordinal) # => "November 10th, 2007"
35
- # date.to_formatted_s(:rfc822) # => "10 Nov 2007"
36
- #
37
- # == Adding your own time formats to to_formatted_s
38
- # You can add your own formats to the Date::DATE_FORMATS hash.
39
- # Use the format name as the hash key and either a strftime string
40
- # or Proc instance that takes a date argument as the value.
41
- #
42
- # # config/initializers/time_formats.rb
43
- # Date::DATE_FORMATS[:month_and_year] = "%B %Y"
44
- # Date::DATE_FORMATS[:short_ordinal] = lambda { |date| date.strftime("%B #{date.day.ordinalize}") }
45
- def to_formatted_s(format = :default)
46
- if formatter = DATE_FORMATS[format]
47
- if formatter.respond_to?(:call)
48
- formatter.call(self).to_s
49
- else
50
- strftime(formatter)
51
- end
52
- else
53
- to_default_s
54
- end
55
- end
56
- alias_method :to_default_s, :to_s
57
- alias_method :to_s, :to_formatted_s
58
-
59
- # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005"
60
- def readable_inspect
61
- strftime("%a, %d %b %Y")
62
- end
63
- alias_method :default_inspect, :inspect
64
- alias_method :inspect, :readable_inspect
65
-
66
- # A method to keep Time, Date and DateTime instances interchangeable on conversions.
67
- # In this case, it simply returns +self+.
68
- def to_date
69
- self
70
- end if RUBY_VERSION < '1.9'
71
-
72
- # Converts a Date instance to a Time, where the time is set to the beginning of the day.
73
- # The timezone can be either :local or :utc (default :local).
74
- #
75
- # ==== Examples
76
- # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007
77
- #
78
- # date.to_time # => Sat Nov 10 00:00:00 0800 2007
79
- # date.to_time(:local) # => Sat Nov 10 00:00:00 0800 2007
80
- #
81
- # date.to_time(:utc) # => Sat Nov 10 00:00:00 UTC 2007
82
- def to_time(form = :local)
83
- ::Time.send("#{form}_time", year, month, day)
84
- end
85
-
86
- # Converts a Date instance to a DateTime, where the time is set to the beginning of the day
87
- # and UTC offset is set to 0.
88
- #
89
- # ==== Examples
90
- # date = Date.new(2007, 11, 10) # => Sat, 10 Nov 2007
91
- #
92
- # date.to_datetime # => Sat, 10 Nov 2007 00:00:00 0000
93
- def to_datetime
94
- ::DateTime.civil(year, month, day, 0, 0, 0, 0)
95
- end if RUBY_VERSION < '1.9'
96
-
97
- def iso8601
98
- strftime('%F')
99
- end if RUBY_VERSION < '1.9'
100
-
101
- alias_method :rfc3339, :iso8601 if RUBY_VERSION < '1.9'
102
-
103
- def xmlschema
104
- to_time_in_current_zone.xmlschema
105
- end
106
- end