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,61 +0,0 @@
1
- require 'active_support/ordered_hash'
2
-
3
- # Usually key value pairs are handled something like this:
4
- #
5
- # h = {}
6
- # h[:boy] = 'John'
7
- # h[:girl] = 'Mary'
8
- # h[:boy] # => 'John'
9
- # h[:girl] # => 'Mary'
10
- #
11
- # Using <tt>OrderedOptions</tt>, the above code could be reduced to:
12
- #
13
- # h = ActiveSupport::OrderedOptions.new
14
- # h.boy = 'John'
15
- # h.girl = 'Mary'
16
- # h.boy # => 'John'
17
- # h.girl # => 'Mary'
18
- #
19
- module ActiveSupport #:nodoc:
20
- class OrderedOptions < OrderedHash
21
- alias_method :_get, :[] # preserve the original #[] method
22
- protected :_get # make it protected
23
-
24
- def []=(key, value)
25
- super(key.to_sym, value)
26
- end
27
-
28
- def [](key)
29
- super(key.to_sym)
30
- end
31
-
32
- def method_missing(name, *args)
33
- if name.to_s =~ /(.*)=$/
34
- self[$1] = args.first
35
- else
36
- self[name]
37
- end
38
- end
39
-
40
- def respond_to?(name)
41
- true
42
- end
43
- end
44
-
45
- class InheritableOptions < OrderedOptions
46
- def initialize(parent = nil)
47
- if parent.kind_of?(OrderedOptions)
48
- # use the faster _get when dealing with OrderedOptions
49
- super() { |h,k| parent._get(k) }
50
- elsif parent
51
- super() { |h,k| parent[k] }
52
- else
53
- super()
54
- end
55
- end
56
-
57
- def inheritable_copy
58
- self.class.new(self)
59
- end
60
- end
61
- end
@@ -1,59 +0,0 @@
1
- require "active_support"
2
- require "active_support/i18n_railtie"
3
-
4
- module ActiveSupport
5
- class Railtie < Rails::Railtie
6
- config.active_support = ActiveSupport::OrderedOptions.new
7
-
8
- # Loads support for "whiny nil" (noisy warnings when methods are invoked
9
- # on +nil+ values) if Configuration#whiny_nils is true.
10
- initializer "active_support.initialize_whiny_nils" do |app|
11
- require 'active_support/whiny_nil' if app.config.whiny_nils
12
- end
13
-
14
- initializer "active_support.deprecation_behavior" do |app|
15
- if deprecation = app.config.active_support.deprecation
16
- ActiveSupport::Deprecation.behavior = deprecation
17
- else
18
- defaults = {"development" => :log,
19
- "production" => :notify,
20
- "test" => :stderr}
21
-
22
- env = Rails.env
23
-
24
- if defaults.key?(env)
25
- msg = "You did not specify how you would like Rails to report " \
26
- "deprecation notices for your #{env} environment, please " \
27
- "set config.active_support.deprecation to :#{defaults[env]} " \
28
- "at config/environments/#{env}.rb"
29
-
30
- warn msg
31
- ActiveSupport::Deprecation.behavior = defaults[env]
32
- else
33
- msg = "You did not specify how you would like Rails to report " \
34
- "deprecation notices for your #{env} environment, please " \
35
- "set config.active_support.deprecation to :log, :notify or " \
36
- ":stderr at config/environments/#{env}.rb"
37
-
38
- warn msg
39
- ActiveSupport::Deprecation.behavior = :stderr
40
- end
41
- end
42
- end
43
-
44
- # Sets the default value for Time.zone
45
- # If assigned value cannot be matched to a TimeZone, an exception will be raised.
46
- initializer "active_support.initialize_time_zone" do |app|
47
- require 'active_support/core_ext/time/zones'
48
- zone_default = Time.find_zone!(app.config.time_zone)
49
-
50
- unless zone_default
51
- raise \
52
- 'Value assigned to config.time_zone not recognized.' +
53
- 'Run "rake -D time" for a list of tasks for finding appropriate time zone names.'
54
- end
55
-
56
- Time.zone_default = zone_default
57
- end
58
- end
59
- end
@@ -1,115 +0,0 @@
1
- require 'active_support/concern'
2
- require 'active_support/core_ext/class/attribute'
3
- require 'active_support/core_ext/proc'
4
- require 'active_support/core_ext/string/inflections'
5
- require 'active_support/core_ext/array/extract_options'
6
-
7
- module ActiveSupport
8
- # Rescuable module adds support for easier exception handling.
9
- module Rescuable
10
- extend Concern
11
-
12
- included do
13
- class_attribute :rescue_handlers
14
- self.rescue_handlers = []
15
- end
16
-
17
- module ClassMethods
18
- # Rescue exceptions raised in controller actions.
19
- #
20
- # <tt>rescue_from</tt> receives a series of exception classes or class
21
- # names, and a trailing <tt>:with</tt> option with the name of a method
22
- # or a Proc object to be called to handle them. Alternatively a block can
23
- # be given.
24
- #
25
- # Handlers that take one argument will be called with the exception, so
26
- # that the exception can be inspected when dealing with it.
27
- #
28
- # Handlers are inherited. They are searched from right to left, from
29
- # bottom to top, and up the hierarchy. The handler of the first class for
30
- # which <tt>exception.is_a?(klass)</tt> holds true is the one invoked, if
31
- # any.
32
- #
33
- # class ApplicationController < ActionController::Base
34
- # rescue_from User::NotAuthorized, :with => :deny_access # self defined exception
35
- # rescue_from ActiveRecord::RecordInvalid, :with => :show_errors
36
- #
37
- # rescue_from 'MyAppError::Base' do |exception|
38
- # render :xml => exception, :status => 500
39
- # end
40
- #
41
- # protected
42
- # def deny_access
43
- # ...
44
- # end
45
- #
46
- # def show_errors(exception)
47
- # exception.record.new_record? ? ...
48
- # end
49
- # end
50
- #
51
- def rescue_from(*klasses, &block)
52
- options = klasses.extract_options!
53
-
54
- unless options.has_key?(:with)
55
- if block_given?
56
- options[:with] = block
57
- else
58
- raise ArgumentError, "Need a handler. Supply an options hash that has a :with key as the last argument."
59
- end
60
- end
61
-
62
- klasses.each do |klass|
63
- key = if klass.is_a?(Class) && klass <= Exception
64
- klass.name
65
- elsif klass.is_a?(String)
66
- klass
67
- else
68
- raise ArgumentError, "#{klass} is neither an Exception nor a String"
69
- end
70
-
71
- # put the new handler at the end because the list is read in reverse
72
- self.rescue_handlers += [[key, options[:with]]]
73
- end
74
- end
75
- end
76
-
77
- # Tries to rescue the exception by looking up and calling a registered handler.
78
- def rescue_with_handler(exception)
79
- if handler = handler_for_rescue(exception)
80
- handler.arity != 0 ? handler.call(exception) : handler.call
81
- true # don't rely on the return value of the handler
82
- end
83
- end
84
-
85
- def handler_for_rescue(exception)
86
- # We go from right to left because pairs are pushed onto rescue_handlers
87
- # as rescue_from declarations are found.
88
- _, rescuer = self.class.rescue_handlers.reverse.detect do |klass_name, handler|
89
- # The purpose of allowing strings in rescue_from is to support the
90
- # declaration of handler associations for exception classes whose
91
- # definition is yet unknown.
92
- #
93
- # Since this loop needs the constants it would be inconsistent to
94
- # assume they should exist at this point. An early raised exception
95
- # could trigger some other handler and the array could include
96
- # precisely a string whose corresponding constant has not yet been
97
- # seen. This is why we are tolerant to unknown constants.
98
- #
99
- # Note that this tolerance only matters if the exception was given as
100
- # a string, otherwise a NameError will be raised by the interpreter
101
- # itself when rescue_from CONSTANT is executed.
102
- klass = self.class.const_get(klass_name) rescue nil
103
- klass ||= klass_name.constantize rescue nil
104
- exception.is_a?(klass) if klass
105
- end
106
-
107
- case rescuer
108
- when Symbol
109
- method(rescuer)
110
- when Proc
111
- rescuer.bind(self)
112
- end
113
- end
114
- end
115
- end
@@ -1,22 +0,0 @@
1
- # Backported Ruby builtins so you can code with the latest & greatest
2
- # but still run on any Ruby 1.8.x.
3
- #
4
- # Date next_year, next_month
5
- # DateTime to_date, to_datetime, xmlschema
6
- # Enumerable group_by, each_with_object, none?
7
- # Process Process.daemon
8
- # REXML security fix
9
- # String ord
10
- # Time to_date, to_time, to_datetime
11
- require 'active_support'
12
- require 'active_support/core_ext/date/calculations'
13
- require 'active_support/core_ext/date_time/conversions'
14
- require 'active_support/core_ext/enumerable'
15
- require 'active_support/core_ext/process/daemon'
16
- require 'active_support/core_ext/string/conversions'
17
- require 'active_support/core_ext/string/interpolation'
18
- require 'active_support/core_ext/string/encoding'
19
- require 'active_support/core_ext/rexml'
20
- require 'active_support/core_ext/time/conversions'
21
- require 'active_support/core_ext/file/path'
22
- require 'active_support/core_ext/module/method_names'
@@ -1,21 +0,0 @@
1
- module ActiveSupport
2
- # Wrapping a string in this class gives you a prettier way to test
3
- # for equality. The value returned by <tt>Rails.env</tt> is wrapped
4
- # in a StringInquirer object so instead of calling this:
5
- #
6
- # Rails.env == "production"
7
- #
8
- # you can call this:
9
- #
10
- # Rails.env.production?
11
- #
12
- class StringInquirer < String
13
- def method_missing(method_name, *arguments)
14
- if method_name.to_s[-1,1] == "?"
15
- self == method_name.to_s[0..-2]
16
- else
17
- super
18
- end
19
- end
20
- end
21
- end
@@ -1,80 +0,0 @@
1
- require 'active_support/core_ext/object/blank'
2
- require 'active_support/deprecation'
3
- require 'logger'
4
-
5
- module ActiveSupport
6
- # Wraps any standard Logger class to provide tagging capabilities. Examples:
7
- #
8
- # Logger = ActiveSupport::TaggedLogging.new(Logger.new(STDOUT))
9
- # Logger.tagged("BCX") { Logger.info "Stuff" } # Logs "[BCX] Stuff"
10
- # Logger.tagged("BCX", "Jason") { Logger.info "Stuff" } # Logs "[BCX] [Jason] Stuff"
11
- # Logger.tagged("BCX") { Logger.tagged("Jason") { Logger.info "Stuff" } } # Logs "[BCX] [Jason] Stuff"
12
- #
13
- # This is used by the default Rails.logger as configured by Railties to make it easy to stamp log lines
14
- # with subdomains, request ids, and anything else to aid debugging of multi-user production applications.
15
- class TaggedLogging
16
- def initialize(logger)
17
- @logger = logger
18
- end
19
-
20
- def tagged(*tags)
21
- new_tags = push_tags(*tags)
22
- yield self
23
- ensure
24
- pop_tags(new_tags.size)
25
- end
26
-
27
- def push_tags(*tags)
28
- tags.flatten.reject(&:blank?).tap do |new_tags|
29
- current_tags.concat new_tags
30
- end
31
- end
32
-
33
- def pop_tags(size = 1)
34
- current_tags.pop size
35
- end
36
-
37
- def clear_tags!
38
- current_tags.clear
39
- end
40
-
41
- def silence(temporary_level = Logger::ERROR, &block)
42
- @logger.silence(temporary_level, &block)
43
- end
44
- deprecate :silence
45
-
46
- def add(severity, message = nil, progname = nil, &block)
47
- message = (block_given? ? block.call : progname) if message.nil?
48
- @logger.add(severity, "#{tags_text}#{message}", progname)
49
- end
50
-
51
- %w( fatal error warn info debug unknown ).each do |severity|
52
- eval <<-EOM, nil, __FILE__, __LINE__ + 1
53
- def #{severity}(progname = nil, &block)
54
- add(Logger::#{severity.upcase}, nil, progname, &block)
55
- end
56
- EOM
57
- end
58
-
59
- def flush
60
- clear_tags!
61
- @logger.flush if @logger.respond_to?(:flush)
62
- end
63
-
64
- def method_missing(method, *args)
65
- @logger.send(method, *args)
66
- end
67
-
68
- private
69
- def tags_text
70
- tags = current_tags
71
- if tags.any?
72
- tags.collect { |tag| "[#{tag}] " }.join
73
- end
74
- end
75
-
76
- def current_tags
77
- Thread.current[:activesupport_tagged_logging_tags] ||= []
78
- end
79
- end
80
- end
@@ -1,34 +0,0 @@
1
- require 'test/unit/testcase'
2
- require 'active_support/testing/setup_and_teardown'
3
- require 'active_support/testing/assertions'
4
- require 'active_support/testing/deprecation'
5
- require 'active_support/testing/declarative'
6
- require 'active_support/testing/pending'
7
- require 'active_support/testing/isolation'
8
- require 'active_support/testing/mochaing'
9
- require 'active_support/core_ext/kernel/reporting'
10
-
11
- module ActiveSupport
12
- class TestCase < ::Test::Unit::TestCase
13
- if defined? MiniTest
14
- Assertion = MiniTest::Assertion
15
- alias_method :method_name, :name if method_defined? :name
16
- alias_method :method_name, :__name__ if method_defined? :__name__
17
- else
18
- Assertion = Test::Unit::AssertionFailedError
19
-
20
- undef :default_test
21
- end
22
-
23
- $tags = {}
24
- def self.for_tag(tag)
25
- yield if $tags[tag]
26
- end
27
-
28
- include ActiveSupport::Testing::SetupAndTeardown
29
- include ActiveSupport::Testing::Assertions
30
- include ActiveSupport::Testing::Deprecation
31
- include ActiveSupport::Testing::Pending
32
- extend ActiveSupport::Testing::Declarative
33
- end
34
- end
@@ -1,97 +0,0 @@
1
- require 'active_support/core_ext/array/wrap'
2
- require 'active_support/core_ext/object/blank'
3
-
4
- module ActiveSupport
5
- module Testing
6
- module Assertions
7
- # Test numeric difference between the return value of an expression as a result of what is evaluated
8
- # in the yielded block.
9
- #
10
- # assert_difference 'Article.count' do
11
- # post :create, :article => {...}
12
- # end
13
- #
14
- # An arbitrary expression is passed in and evaluated.
15
- #
16
- # assert_difference 'assigns(:article).comments(:reload).size' do
17
- # post :create, :comment => {...}
18
- # end
19
- #
20
- # An arbitrary positive or negative difference can be specified. The default is +1.
21
- #
22
- # assert_difference 'Article.count', -1 do
23
- # post :delete, :id => ...
24
- # end
25
- #
26
- # An array of expressions can also be passed in and evaluated.
27
- #
28
- # assert_difference [ 'Article.count', 'Post.count' ], +2 do
29
- # post :create, :article => {...}
30
- # end
31
- #
32
- # A lambda or a list of lambdas can be passed in and evaluated:
33
- #
34
- # assert_difference lambda { Article.count }, 2 do
35
- # post :create, :article => {...}
36
- # end
37
- #
38
- # assert_difference [->{ Article.count }, ->{ Post.count }], 2 do
39
- # post :create, :article => {...}
40
- # end
41
- #
42
- # A error message can be specified.
43
- #
44
- # assert_difference 'Article.count', -1, "An Article should be destroyed" do
45
- # post :delete, :id => ...
46
- # end
47
- def assert_difference(expression, difference = 1, message = nil, &block)
48
- expressions = Array.wrap expression
49
-
50
- exps = expressions.map { |e|
51
- e.respond_to?(:call) ? e : lambda { eval(e, block.binding) }
52
- }
53
- before = exps.map { |e| e.call }
54
-
55
- yield
56
-
57
- expressions.zip(exps).each_with_index do |(code, e), i|
58
- error = "#{code.inspect} didn't change by #{difference}"
59
- error = "#{message}.\n#{error}" if message
60
- assert_equal(before[i] + difference, e.call, error)
61
- end
62
- end
63
-
64
- # Assertion that the numeric result of evaluating an expression is not changed before and after
65
- # invoking the passed in block.
66
- #
67
- # assert_no_difference 'Article.count' do
68
- # post :create, :article => invalid_attributes
69
- # end
70
- #
71
- # A error message can be specified.
72
- #
73
- # assert_no_difference 'Article.count', "An Article should not be created" do
74
- # post :create, :article => invalid_attributes
75
- # end
76
- def assert_no_difference(expression, message = nil, &block)
77
- assert_difference expression, 0, message, &block
78
- end
79
-
80
- # Test if an expression is blank. Passes if object.blank? is true.
81
- #
82
- # assert_blank [] # => true
83
- def assert_blank(object, message=nil)
84
- message ||= "#{object.inspect} is not blank"
85
- assert object.blank?, message
86
- end
87
-
88
- # Test if an expression is not blank. Passes if object.present? is true.
89
- #
90
- # assert_present {:data => 'x' } # => true
91
- def assert_present(object, message=nil)
92
- message ||= "#{object.inspect} is blank"
93
- assert object.present?, message
94
- end
95
- end
96
- end
97
- end