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,33 +0,0 @@
1
- # Date memoizes some instance methods using metaprogramming to wrap
2
- # the methods with one that caches the result in an instance variable.
3
- #
4
- # If a Date is frozen but the memoized method hasn't been called, the
5
- # first call will result in a frozen object error since the memo
6
- # instance variable is uninitialized.
7
- #
8
- # Work around by eagerly memoizing before the first freeze.
9
- #
10
- # Ruby 1.9 uses a preinitialized instance variable so it's unaffected.
11
- # This hack is as close as we can get to feature detection:
12
- if RUBY_VERSION < '1.9'
13
- require 'date'
14
- begin
15
- ::Date.today.freeze.jd
16
- rescue => frozen_object_error
17
- if frozen_object_error.message =~ /frozen/
18
- class Date #:nodoc:
19
- def freeze
20
- unless frozen?
21
- self.class.private_instance_methods(false).each do |m|
22
- if m.to_s =~ /\A__\d+__\Z/
23
- instance_variable_set(:"@#{m}", [send(m)])
24
- end
25
- end
26
- end
27
-
28
- super
29
- end
30
- end
31
- end
32
- end
33
- end
@@ -1,14 +0,0 @@
1
- require 'date'
2
- require 'active_support/core_ext/time/zones'
3
-
4
- class Date
5
- # Converts Date to a TimeWithZone in the current zone if Time.zone or Time.zone_default
6
- # is set, otherwise converts Date to a Time via Date#to_time
7
- def to_time_in_current_zone
8
- if ::Time.zone
9
- ::Time.zone.local(year, month, day)
10
- else
11
- to_time
12
- end
13
- end
14
- end
@@ -1,13 +0,0 @@
1
- require 'active_support/core_ext/object/acts_like'
2
-
3
- class DateTime
4
- # Duck-types as a Date-like class. See Object#acts_like?.
5
- def acts_like_date?
6
- true
7
- end
8
-
9
- # Duck-types as a Time-like class. See Object#acts_like?.
10
- def acts_like_time?
11
- true
12
- end
13
- end
@@ -1,143 +0,0 @@
1
- require 'rational' unless RUBY_VERSION >= '1.9.2'
2
-
3
- class DateTime
4
- class << self
5
- # DateTimes aren't aware of DST rules, so use a consistent non-DST offset when creating a DateTime with an offset in the local zone
6
- def local_offset
7
- ::Time.local(2012).utc_offset.to_r / 86400
8
- end
9
-
10
- # Returns <tt>Time.zone.now.to_datetime</tt> when <tt>Time.zone</tt> or <tt>config.time_zone</tt> are set, otherwise returns <tt>Time.now.to_datetime</tt>.
11
- def current
12
- ::Time.zone ? ::Time.zone.now.to_datetime : ::Time.now.to_datetime
13
- end
14
- end
15
-
16
- # Tells whether the DateTime object's datetime lies in the past
17
- def past?
18
- self < ::DateTime.current
19
- end
20
-
21
- # Tells whether the DateTime object's datetime lies in the future
22
- def future?
23
- self > ::DateTime.current
24
- end
25
-
26
- # Seconds since midnight: DateTime.now.seconds_since_midnight
27
- def seconds_since_midnight
28
- sec + (min * 60) + (hour * 3600)
29
- end
30
-
31
- # Returns a new DateTime where one or more of the elements have been changed according to the +options+ parameter. The time options
32
- # (hour, minute, sec) reset cascadingly, so if only the hour is passed, then minute and sec is set to 0. If the hour and
33
- # minute is passed, then sec is set to 0.
34
- def change(options)
35
- ::DateTime.civil(
36
- options[:year] || year,
37
- options[:month] || month,
38
- options[:day] || day,
39
- options[:hour] || hour,
40
- options[:min] || (options[:hour] ? 0 : min),
41
- options[:sec] || ((options[:hour] || options[:min]) ? 0 : sec),
42
- options[:offset] || offset,
43
- options[:start] || start
44
- )
45
- end
46
-
47
- # Uses Date to provide precise Time calculations for years, months, and days.
48
- # The +options+ parameter takes a hash with any of these keys: <tt>:years</tt>,
49
- # <tt>:months</tt>, <tt>:weeks</tt>, <tt>:days</tt>, <tt>:hours</tt>,
50
- # <tt>:minutes</tt>, <tt>:seconds</tt>.
51
- def advance(options)
52
- d = to_date.advance(options)
53
- datetime_advanced_by_date = change(:year => d.year, :month => d.month, :day => d.day)
54
- seconds_to_advance = (options[:seconds] || 0) + (options[:minutes] || 0) * 60 + (options[:hours] || 0) * 3600
55
- seconds_to_advance == 0 ? datetime_advanced_by_date : datetime_advanced_by_date.since(seconds_to_advance)
56
- end
57
-
58
- # Returns a new DateTime representing the time a number of seconds ago
59
- # Do not use this method in combination with x.months, use months_ago instead!
60
- def ago(seconds)
61
- since(-seconds)
62
- end
63
-
64
- # Returns a new DateTime representing the time a number of seconds since the instance time
65
- # Do not use this method in combination with x.months, use months_since instead!
66
- def since(seconds)
67
- self + Rational(seconds.round, 86400)
68
- end
69
- alias :in :since
70
-
71
- # Returns a new DateTime representing the start of the day (0:00)
72
- def beginning_of_day
73
- change(:hour => 0)
74
- end
75
- alias :midnight :beginning_of_day
76
- alias :at_midnight :beginning_of_day
77
- alias :at_beginning_of_day :beginning_of_day
78
-
79
- # Returns a new DateTime representing the end of the day (23:59:59)
80
- def end_of_day
81
- change(:hour => 23, :min => 59, :sec => 59)
82
- end
83
-
84
- # Returns a new DateTime representing the start of the hour (hh:00:00)
85
- def beginning_of_hour
86
- change(:min => 0)
87
- end
88
- alias :at_beginning_of_hour :beginning_of_hour
89
-
90
- # Returns a new DateTime representing the end of the hour (hh:59:59)
91
- def end_of_hour
92
- change(:min => 59, :sec => 59)
93
- end
94
-
95
- # 1.9.3 defines + and - on DateTime, < 1.9.3 do not.
96
- if DateTime.public_instance_methods(false).include?(:+)
97
- def plus_with_duration(other) #:nodoc:
98
- if ActiveSupport::Duration === other
99
- other.since(self)
100
- else
101
- plus_without_duration(other)
102
- end
103
- end
104
- alias_method :plus_without_duration, :+
105
- alias_method :+, :plus_with_duration
106
-
107
- def minus_with_duration(other) #:nodoc:
108
- if ActiveSupport::Duration === other
109
- plus_with_duration(-other)
110
- else
111
- minus_without_duration(other)
112
- end
113
- end
114
- alias_method :minus_without_duration, :-
115
- alias_method :-, :minus_with_duration
116
- end
117
-
118
- # Adjusts DateTime to UTC by adding its offset value; offset is set to 0
119
- #
120
- # Example:
121
- #
122
- # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)) # => Mon, 21 Feb 2005 10:11:12 -0600
123
- # DateTime.civil(2005, 2, 21, 10, 11, 12, Rational(-6, 24)).utc # => Mon, 21 Feb 2005 16:11:12 +0000
124
- def utc
125
- new_offset(0)
126
- end
127
- alias_method :getutc, :utc
128
-
129
- # Returns true if offset == 0
130
- def utc?
131
- offset == 0
132
- end
133
-
134
- # Returns the offset value in seconds
135
- def utc_offset
136
- (offset * 86400).to_i
137
- end
138
-
139
- # Layers additional behavior on DateTime#<=> so that Time and ActiveSupport::TimeWithZone instances can be compared with a DateTime
140
- def <=>(other)
141
- super other.to_datetime
142
- end
143
- end
@@ -1,103 +0,0 @@
1
- require 'active_support/inflector/methods'
2
- require 'active_support/core_ext/time/conversions'
3
- require 'active_support/core_ext/date_time/calculations'
4
- require 'active_support/values/time_zone'
5
-
6
- class DateTime
7
- # Ruby 1.9 has DateTime#to_time which internally relies on Time. We define our own #to_time which allows
8
- # DateTimes outside the range of what can be created with Time.
9
- remove_method :to_time if instance_methods.include?(:to_time)
10
-
11
- # Convert to a formatted string. See Time::DATE_FORMATS for predefined formats.
12
- #
13
- # This method is aliased to <tt>to_s</tt>.
14
- #
15
- # === Examples
16
- # datetime = DateTime.civil(2007, 12, 4, 0, 0, 0, 0) # => Tue, 04 Dec 2007 00:00:00 +0000
17
- #
18
- # datetime.to_formatted_s(:db) # => "2007-12-04 00:00:00"
19
- # datetime.to_s(:db) # => "2007-12-04 00:00:00"
20
- # datetime.to_s(:number) # => "20071204000000"
21
- # datetime.to_formatted_s(:short) # => "04 Dec 00:00"
22
- # datetime.to_formatted_s(:long) # => "December 04, 2007 00:00"
23
- # datetime.to_formatted_s(:long_ordinal) # => "December 4th, 2007 00:00"
24
- # datetime.to_formatted_s(:rfc822) # => "Tue, 04 Dec 2007 00:00:00 +0000"
25
- #
26
- # == Adding your own datetime formats to to_formatted_s
27
- # DateTime formats are shared with Time. You can add your own to the
28
- # Time::DATE_FORMATS hash. Use the format name as the hash key and
29
- # either a strftime string or Proc instance that takes a time or
30
- # datetime argument as the value.
31
- #
32
- # # config/initializers/time_formats.rb
33
- # Time::DATE_FORMATS[:month_and_year] = "%B %Y"
34
- # Time::DATE_FORMATS[:short_ordinal] = lambda { |time| time.strftime("%B #{time.day.ordinalize}") }
35
- def to_formatted_s(format = :default)
36
- if formatter = ::Time::DATE_FORMATS[format]
37
- formatter.respond_to?(:call) ? formatter.call(self).to_s : strftime(formatter)
38
- else
39
- to_default_s
40
- end
41
- end
42
- alias_method :to_default_s, :to_s unless (instance_methods(false) & [:to_s, 'to_s']).empty?
43
- alias_method :to_s, :to_formatted_s
44
-
45
- # Returns the +utc_offset+ as an +HH:MM formatted string. Examples:
46
- #
47
- # datetime = DateTime.civil(2000, 1, 1, 0, 0, 0, Rational(-6, 24))
48
- # datetime.formatted_offset # => "-06:00"
49
- # datetime.formatted_offset(false) # => "-0600"
50
- def formatted_offset(colon = true, alternate_utc_string = nil)
51
- utc? && alternate_utc_string || ActiveSupport::TimeZone.seconds_to_utc_offset(utc_offset, colon)
52
- end
53
-
54
- # Overrides the default inspect method with a human readable one, e.g., "Mon, 21 Feb 2005 14:30:00 +0000".
55
- def readable_inspect
56
- to_s(:rfc822)
57
- end
58
- alias_method :default_inspect, :inspect
59
- alias_method :inspect, :readable_inspect
60
-
61
- # Converts self to a Ruby Date object; time portion is discarded.
62
- def to_date
63
- ::Date.new(year, month, day)
64
- end unless instance_methods(false).include?(:to_date)
65
-
66
- # Attempts to convert self to a Ruby Time object; returns self if out of range of Ruby Time class.
67
- # If self has an offset other than 0, self will just be returned unaltered, since there's no clean way to map it to a Time.
68
- def to_time
69
- self.offset == 0 ? ::Time.utc_time(year, month, day, hour, min, sec, sec_fraction * (RUBY_VERSION < '1.9' ? 86400000000 : 1000000)) : self
70
- end
71
-
72
- # To be able to keep Times, Dates and DateTimes interchangeable on conversions.
73
- def to_datetime
74
- self
75
- end unless instance_methods(false).include?(:to_datetime)
76
-
77
- def self.civil_from_format(utc_or_local, year, month=1, day=1, hour=0, min=0, sec=0)
78
- offset = utc_or_local.to_sym == :local ? local_offset : 0
79
- civil(year, month, day, hour, min, sec, offset)
80
- end
81
-
82
- # Converts datetime to an appropriate format for use in XML.
83
- def xmlschema
84
- strftime("%Y-%m-%dT%H:%M:%S%Z")
85
- end unless instance_methods(false).include?(:xmlschema)
86
-
87
- # Converts self to a floating-point number of seconds since the Unix epoch.
88
- def to_f
89
- seconds_since_unix_epoch.to_f
90
- end
91
-
92
- # Converts self to an integer number of seconds since the Unix epoch.
93
- def to_i
94
- seconds_since_unix_epoch.to_i
95
- end
96
-
97
- private
98
-
99
- def seconds_since_unix_epoch
100
- seconds_per_day = 86_400
101
- (self - ::DateTime.civil(1970)) * seconds_per_day
102
- end
103
- end
@@ -1,21 +0,0 @@
1
- require 'active_support/core_ext/time/zones'
2
-
3
- class DateTime
4
- # Returns the simultaneous time in <tt>Time.zone</tt>.
5
- #
6
- # Time.zone = 'Hawaii' # => 'Hawaii'
7
- # DateTime.new(2000).in_time_zone # => Fri, 31 Dec 1999 14:00:00 HST -10:00
8
- #
9
- # This method is similar to Time#localtime, except that it uses <tt>Time.zone</tt> as the local zone
10
- # instead of the operating system's time zone.
11
- #
12
- # You can also pass in a TimeZone instance or string that identifies a TimeZone as an argument,
13
- # and the conversion will be based on that zone instead of <tt>Time.zone</tt>.
14
- #
15
- # DateTime.new(2000).in_time_zone('Alaska') # => Fri, 31 Dec 1999 15:00:00 AKST -09:00
16
- def in_time_zone(zone = ::Time.zone)
17
- return self unless zone
18
-
19
- ActiveSupport::TimeWithZone.new(utc? ? self : getutc, ::Time.find_zone!(zone))
20
- end
21
- end
@@ -1,127 +0,0 @@
1
- require 'active_support/ordered_hash'
2
-
3
- module Enumerable
4
- # Ruby 1.8.7 introduces group_by, but the result isn't ordered. Override it.
5
- remove_method(:group_by) if [].respond_to?(:group_by) && RUBY_VERSION < '1.9'
6
-
7
- # Collect an enumerable into sets, grouped by the result of a block. Useful,
8
- # for example, for grouping records by date.
9
- #
10
- # Example:
11
- #
12
- # latest_transcripts.group_by(&:day).each do |day, transcripts|
13
- # p "#{day} -> #{transcripts.map(&:class).join(', ')}"
14
- # end
15
- # "2006-03-01 -> Transcript"
16
- # "2006-02-28 -> Transcript"
17
- # "2006-02-27 -> Transcript, Transcript"
18
- # "2006-02-26 -> Transcript, Transcript"
19
- # "2006-02-25 -> Transcript"
20
- # "2006-02-24 -> Transcript, Transcript"
21
- # "2006-02-23 -> Transcript"
22
- def group_by
23
- return to_enum :group_by unless block_given?
24
- assoc = ActiveSupport::OrderedHash.new
25
-
26
- each do |element|
27
- key = yield(element)
28
-
29
- if assoc.has_key?(key)
30
- assoc[key] << element
31
- else
32
- assoc[key] = [element]
33
- end
34
- end
35
-
36
- assoc
37
- end unless [].respond_to?(:group_by)
38
-
39
- # Calculates a sum from the elements. Examples:
40
- #
41
- # payments.sum { |p| p.price * p.tax_rate }
42
- # payments.sum(&:price)
43
- #
44
- # The latter is a shortcut for:
45
- #
46
- # payments.inject(0) { |sum, p| sum + p.price }
47
- #
48
- # It can also calculate the sum without the use of a block.
49
- #
50
- # [5, 15, 10].sum # => 30
51
- # ["foo", "bar"].sum # => "foobar"
52
- # [[1, 2], [3, 1, 5]].sum => [1, 2, 3, 1, 5]
53
- #
54
- # The default sum of an empty list is zero. You can override this default:
55
- #
56
- # [].sum(Payment.new(0)) { |i| i.amount } # => Payment.new(0)
57
- #
58
- def sum(identity = 0, &block)
59
- if block_given?
60
- map(&block).sum(identity)
61
- else
62
- inject(:+) || identity
63
- end
64
- end
65
-
66
- # Iterates over a collection, passing the current element *and* the
67
- # +memo+ to the block. Handy for building up hashes or
68
- # reducing collections down to one object. Examples:
69
- #
70
- # %w(foo bar).each_with_object({}) { |str, hsh| hsh[str] = str.upcase }
71
- # # => {'foo' => 'FOO', 'bar' => 'BAR'}
72
- #
73
- # *Note* that you can't use immutable objects like numbers, true or false as
74
- # the memo. You would think the following returns 120, but since the memo is
75
- # never changed, it does not.
76
- #
77
- # (1..5).each_with_object(1) { |value, memo| memo *= value } # => 1
78
- #
79
- def each_with_object(memo)
80
- return to_enum :each_with_object, memo unless block_given?
81
- each do |element|
82
- yield element, memo
83
- end
84
- memo
85
- end unless [].respond_to?(:each_with_object)
86
-
87
- # Convert an enumerable to a hash. Examples:
88
- #
89
- # people.index_by(&:login)
90
- # => { "nextangle" => <Person ...>, "chade-" => <Person ...>, ...}
91
- # people.index_by { |person| "#{person.first_name} #{person.last_name}" }
92
- # => { "Chade- Fowlersburg-e" => <Person ...>, "David Heinemeier Hansson" => <Person ...>, ...}
93
- #
94
- def index_by
95
- return to_enum :index_by unless block_given?
96
- Hash[map { |elem| [yield(elem), elem] }]
97
- end
98
-
99
- # Returns true if the enumerable has more than 1 element. Functionally equivalent to enum.to_a.size > 1.
100
- # Can be called with a block too, much like any?, so <tt>people.many? { |p| p.age > 26 }</tt> returns true if more than one person is over 26.
101
- def many?
102
- cnt = 0
103
- if block_given?
104
- any? do |element|
105
- cnt += 1 if yield element
106
- cnt > 1
107
- end
108
- else
109
- any?{ (cnt += 1) > 1 }
110
- end
111
- end
112
-
113
- # The negative of the <tt>Enumerable#include?</tt>. Returns true if the collection does not include the object.
114
- def exclude?(object)
115
- !include?(object)
116
- end
117
- end
118
-
119
- class Range #:nodoc:
120
- # Optimize range sum to use arithmetic progression if a block is not given and
121
- # we have a range of numeric values.
122
- def sum(identity = 0)
123
- return super if block_given? || !(first.instance_of?(Integer) && last.instance_of?(Integer))
124
- actual_last = exclude_end? ? (last - 1) : last
125
- (actual_last - first + 1) * (actual_last + first) / 2
126
- end
127
- end