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,40 +0,0 @@
1
- module ActiveSupport
2
- module Testing
3
- module Declarative
4
-
5
- def self.extended(klass)
6
- klass.class_eval do
7
-
8
- unless method_defined?(:describe)
9
- def self.describe(text)
10
- class_eval <<-RUBY_EVAL, __FILE__, __LINE__ + 1
11
- def self.name
12
- "#{text}"
13
- end
14
- RUBY_EVAL
15
- end
16
- end
17
-
18
- end
19
- end
20
-
21
- unless defined?(Spec)
22
- # test "verify something" do
23
- # ...
24
- # end
25
- def test(name, &block)
26
- test_name = "test_#{name.gsub(/\s+/,'_')}".to_sym
27
- defined = instance_method(test_name) rescue false
28
- raise "#{test_name} is already defined in #{self}" if defined
29
- if block_given?
30
- define_method(test_name, &block)
31
- else
32
- define_method(test_name) do
33
- flunk "No implementation provided for #{name}"
34
- end
35
- end
36
- end
37
- end
38
- end
39
- end
40
- end
@@ -1,55 +0,0 @@
1
- require 'active_support/deprecation'
2
-
3
- module ActiveSupport
4
- module Testing
5
- module Deprecation #:nodoc:
6
- def assert_deprecated(match = nil, &block)
7
- result, warnings = collect_deprecations(&block)
8
- assert !warnings.empty?, "Expected a deprecation warning within the block but received none"
9
- if match
10
- match = Regexp.new(Regexp.escape(match)) unless match.is_a?(Regexp)
11
- assert warnings.any? { |w| w =~ match }, "No deprecation warning matched #{match}: #{warnings.join(', ')}"
12
- end
13
- result
14
- end
15
-
16
- def assert_not_deprecated(&block)
17
- result, deprecations = collect_deprecations(&block)
18
- assert deprecations.empty?, "Expected no deprecation warning within the block but received #{deprecations.size}: \n #{deprecations * "\n "}"
19
- result
20
- end
21
-
22
- private
23
- def collect_deprecations
24
- old_behavior = ActiveSupport::Deprecation.behavior
25
- deprecations = []
26
- ActiveSupport::Deprecation.behavior = Proc.new do |message, callstack|
27
- deprecations << message
28
- end
29
- result = yield
30
- [result, deprecations]
31
- ensure
32
- ActiveSupport::Deprecation.behavior = old_behavior
33
- end
34
- end
35
- end
36
- end
37
-
38
- begin
39
- require 'test/unit/error'
40
- rescue LoadError
41
- # Using miniunit, ignore.
42
- else
43
- module Test
44
- module Unit
45
- class Error #:nodoc:
46
- # Silence warnings when reporting test errors.
47
- def message_with_silenced_deprecation
48
- ::ActiveSupport::Deprecation.silence { message_without_silenced_deprecation }
49
- end
50
- alias_method :message_without_silenced_deprecation, :message
51
- alias_method :message, :message_with_silenced_deprecation
52
- end
53
- end
54
- end
55
- end
@@ -1,157 +0,0 @@
1
- require 'rbconfig'
2
- module ActiveSupport
3
- module Testing
4
- class RemoteError < StandardError
5
-
6
- attr_reader :message, :backtrace
7
-
8
- def initialize(exception)
9
- @message = "caught #{exception.class.name}: #{exception.message}"
10
- @backtrace = exception.backtrace
11
- end
12
- end
13
-
14
- class ProxyTestResult
15
- def initialize
16
- @calls = []
17
- end
18
-
19
- def add_error(e)
20
- e = Test::Unit::Error.new(e.test_name, RemoteError.new(e.exception))
21
- @calls << [:add_error, e]
22
- end
23
-
24
- def __replay__(result)
25
- @calls.each do |name, args|
26
- result.send(name, *args)
27
- end
28
- end
29
-
30
- def method_missing(name, *args)
31
- @calls << [name, args]
32
- end
33
- end
34
-
35
- module Isolation
36
- def self.forking_env?
37
- !ENV["NO_FORK"] && ((RbConfig::CONFIG['host_os'] !~ /mswin|mingw/) && (RUBY_PLATFORM !~ /java/))
38
- end
39
-
40
- def self.included(base)
41
- if defined?(::MiniTest) && base < ::MiniTest::Unit::TestCase
42
- base.send :include, MiniTest
43
- elsif defined?(Test::Unit)
44
- base.send :include, TestUnit
45
- end
46
- end
47
-
48
- def _run_class_setup # class setup method should only happen in parent
49
- unless defined?(@@ran_class_setup) || ENV['ISOLATION_TEST']
50
- self.class.setup if self.class.respond_to?(:setup)
51
- @@ran_class_setup = true
52
- end
53
- end
54
-
55
- module TestUnit
56
- def run(result)
57
- _run_class_setup
58
-
59
- yield(Test::Unit::TestCase::STARTED, name)
60
-
61
- @_result = result
62
-
63
- serialized = run_in_isolation do |proxy|
64
- begin
65
- super(proxy) { }
66
- rescue Exception => e
67
- proxy.add_error(Test::Unit::Error.new(name, e))
68
- end
69
- end
70
-
71
- retval, proxy = Marshal.load(serialized)
72
- proxy.__replay__(@_result)
73
-
74
- yield(Test::Unit::TestCase::FINISHED, name)
75
- retval
76
- end
77
- end
78
-
79
- module MiniTest
80
- def run(runner)
81
- _run_class_setup
82
-
83
- serialized = run_in_isolation do |isolated_runner|
84
- super(isolated_runner)
85
- end
86
-
87
- retval, proxy = Marshal.load(serialized)
88
- proxy.__replay__(runner)
89
- retval
90
- end
91
- end
92
-
93
- module Forking
94
- def run_in_isolation(&blk)
95
- read, write = IO.pipe
96
-
97
- pid = fork do
98
- read.close
99
- proxy = ProxyTestResult.new
100
- retval = yield proxy
101
- write.puts [Marshal.dump([retval, proxy])].pack("m")
102
- exit!
103
- end
104
-
105
- write.close
106
- result = read.read
107
- Process.wait2(pid)
108
- return result.unpack("m")[0]
109
- end
110
- end
111
-
112
- module Subprocess
113
- ORIG_ARGV = ARGV.dup unless defined?(ORIG_ARGV)
114
-
115
- # Crazy H4X to get this working in windows / jruby with
116
- # no forking.
117
- def run_in_isolation(&blk)
118
- require "tempfile"
119
-
120
- if ENV["ISOLATION_TEST"]
121
- proxy = ProxyTestResult.new
122
- retval = yield proxy
123
- File.open(ENV["ISOLATION_OUTPUT"], "w") do |file|
124
- file.puts [Marshal.dump([retval, proxy])].pack("m")
125
- end
126
- exit!
127
- else
128
- Tempfile.open("isolation") do |tmpfile|
129
- ENV["ISOLATION_TEST"] = @method_name
130
- ENV["ISOLATION_OUTPUT"] = tmpfile.path
131
-
132
- load_paths = $-I.map {|p| "-I\"#{File.expand_path(p)}\"" }.join(" ")
133
- `#{Gem.ruby} #{load_paths} #{$0} #{ORIG_ARGV.join(" ")} -t\"#{self.class}\"`
134
-
135
- ENV.delete("ISOLATION_TEST")
136
- ENV.delete("ISOLATION_OUTPUT")
137
-
138
- return tmpfile.read.unpack("m")[0]
139
- end
140
- end
141
- end
142
- end
143
-
144
- include forking_env? ? Forking : Subprocess
145
- end
146
- end
147
- end
148
-
149
- # Only in subprocess for windows / jruby.
150
- if ENV['ISOLATION_TEST']
151
- require "test/unit/collector/objectspace"
152
- class Test::Unit::Collector::ObjectSpace
153
- def include?(test)
154
- super && test.method_name == ENV['ISOLATION_TEST']
155
- end
156
- end
157
- end
@@ -1,7 +0,0 @@
1
- begin
2
- silence_warnings { require 'mocha' }
3
- rescue LoadError
4
- # Fake Mocha::ExpectationError so we can rescue it in #run. Bleh.
5
- Object.const_set :Mocha, Module.new
6
- Mocha.const_set :ExpectationError, Class.new(StandardError)
7
- end
@@ -1,52 +0,0 @@
1
- # Some code from jeremymcanally's "pending"
2
- # https://github.com/jeremymcanally/pending/tree/master
3
-
4
- module ActiveSupport
5
- module Testing
6
- module Pending
7
-
8
- unless defined?(Spec)
9
-
10
- @@pending_cases = []
11
- @@at_exit = false
12
-
13
- def pending(description = "", &block)
14
- if defined?(::MiniTest)
15
- skip(description.blank? ? nil : description)
16
- else
17
- if description.is_a?(Symbol)
18
- is_pending = $tags[description]
19
- return block.call unless is_pending
20
- end
21
-
22
- if block_given?
23
- failed = false
24
-
25
- begin
26
- block.call
27
- rescue Exception
28
- failed = true
29
- end
30
-
31
- flunk("<#{description}> did not fail.") unless failed
32
- end
33
-
34
- caller[0] =~ (/(.*):(.*):in `(.*)'/)
35
- @@pending_cases << "#{$3} at #{$1}, line #{$2}"
36
- print "P"
37
-
38
- @@at_exit ||= begin
39
- at_exit do
40
- puts "\nPending Cases:"
41
- @@pending_cases.each do |test_case|
42
- puts test_case
43
- end
44
- end
45
- end
46
- end
47
- end
48
- end
49
-
50
- end
51
- end
52
- end
@@ -1,317 +0,0 @@
1
- require 'fileutils'
2
- require 'rails/version'
3
- require 'active_support/concern'
4
- require 'active_support/core_ext/class/delegating_attributes'
5
- require 'active_support/core_ext/string/inflections'
6
- require 'action_view/helpers/number_helper'
7
-
8
- module ActiveSupport
9
- module Testing
10
- module Performance
11
- extend ActiveSupport::Concern
12
-
13
- included do
14
- superclass_delegating_accessor :profile_options
15
- self.profile_options = {}
16
-
17
- if defined?(MiniTest::Assertions) && TestCase < MiniTest::Assertions
18
- include ForMiniTest
19
- else
20
- include ForClassicTestUnit
21
- end
22
- end
23
-
24
- # each implementation should define metrics and freeze the defaults
25
- DEFAULTS =
26
- if ARGV.include?('--benchmark') # HAX for rake test
27
- { :runs => 4,
28
- :output => 'tmp/performance',
29
- :benchmark => true }
30
- else
31
- { :runs => 1,
32
- :output => 'tmp/performance',
33
- :benchmark => false }
34
- end
35
-
36
- def full_profile_options
37
- DEFAULTS.merge(profile_options)
38
- end
39
-
40
- def full_test_name
41
- "#{self.class.name}##{method_name}"
42
- end
43
-
44
- module ForMiniTest
45
- def run(runner)
46
- @runner = runner
47
-
48
- run_warmup
49
- if full_profile_options && metrics = full_profile_options[:metrics]
50
- metrics.each do |metric_name|
51
- if klass = Metrics[metric_name.to_sym]
52
- run_profile(klass.new)
53
- end
54
- end
55
- end
56
-
57
- return
58
- end
59
-
60
- def run_test(metric, mode)
61
- result = '.'
62
- begin
63
- run_callbacks :setup
64
- setup
65
- metric.send(mode) { __send__ method_name }
66
- rescue Exception => e
67
- result = @runner.puke(self.class, method_name, e)
68
- ensure
69
- begin
70
- teardown
71
- run_callbacks :teardown, :enumerator => :reverse_each
72
- rescue Exception => e
73
- result = @runner.puke(self.class, method_name, e)
74
- end
75
- end
76
- result
77
- end
78
- end
79
-
80
- module ForClassicTestUnit
81
- def run(result)
82
- return if method_name =~ /^default_test$/
83
-
84
- yield(self.class::STARTED, name)
85
- @_result = result
86
-
87
- run_warmup
88
- if full_profile_options && metrics = full_profile_options[:metrics]
89
- metrics.each do |metric_name|
90
- if klass = Metrics[metric_name.to_sym]
91
- run_profile(klass.new)
92
- result.add_run
93
- else
94
- puts '%20s: unsupported' % metric_name
95
- end
96
- end
97
- end
98
-
99
- yield(self.class::FINISHED, name)
100
- end
101
-
102
- def run_test(metric, mode)
103
- run_callbacks :setup
104
- setup
105
- metric.send(mode) { __send__ @method_name }
106
- rescue ::Test::Unit::AssertionFailedError => e
107
- add_failure(e.message, e.backtrace)
108
- rescue StandardError, ScriptError => e
109
- add_error(e)
110
- ensure
111
- begin
112
- teardown
113
- run_callbacks :teardown, :enumerator => :reverse_each
114
- rescue ::Test::Unit::AssertionFailedError => e
115
- add_failure(e.message, e.backtrace)
116
- rescue StandardError, ScriptError => e
117
- add_error(e)
118
- end
119
- end
120
- end
121
-
122
- protected
123
- # overridden by each implementation
124
- def run_gc; end
125
-
126
- def run_warmup
127
- run_gc
128
-
129
- time = Metrics::Time.new
130
- run_test(time, :benchmark)
131
- puts "%s (%s warmup)" % [full_test_name, time.format(time.total)]
132
-
133
- run_gc
134
- end
135
-
136
- def run_profile(metric)
137
- klass = full_profile_options[:benchmark] ? Benchmarker : Profiler
138
- performer = klass.new(self, metric)
139
-
140
- performer.run
141
- puts performer.report
142
- performer.record
143
- end
144
-
145
- class Performer
146
- delegate :run_test, :full_profile_options, :full_test_name, :to => :@harness
147
-
148
- def initialize(harness, metric)
149
- @harness, @metric, @supported = harness, metric, false
150
- end
151
-
152
- def report
153
- if @supported
154
- rate = @total / full_profile_options[:runs]
155
- '%20s: %s' % [@metric.name, @metric.format(rate)]
156
- else
157
- '%20s: unsupported' % @metric.name
158
- end
159
- end
160
-
161
- protected
162
- def output_filename
163
- "#{full_profile_options[:output]}/#{full_test_name}_#{@metric.name}"
164
- end
165
- end
166
-
167
- # overridden by each implementation
168
- class Profiler < Performer
169
- def time_with_block
170
- before = Time.now
171
- yield
172
- Time.now - before
173
- end
174
-
175
- def run; end
176
- def record; end
177
- end
178
-
179
- class Benchmarker < Performer
180
- def initialize(*args)
181
- super
182
- @supported = @metric.respond_to?('measure')
183
- end
184
-
185
- def run
186
- return unless @supported
187
-
188
- full_profile_options[:runs].to_i.times { run_test(@metric, :benchmark) }
189
- @total = @metric.total
190
- end
191
-
192
- def record
193
- avg = @metric.total / full_profile_options[:runs].to_i
194
- now = Time.now.utc.xmlschema
195
- with_output_file do |file|
196
- file.puts "#{avg},#{now},#{environment}"
197
- end
198
- end
199
-
200
- def environment
201
- unless defined? @env
202
- app = "#{$1}.#{$2}" if File.directory?('.git') && `git branch -v` =~ /^\* (\S+)\s+(\S+)/
203
-
204
- rails = Rails::VERSION::STRING
205
- if File.directory?('vendor/rails/.git')
206
- Dir.chdir('vendor/rails') do
207
- rails += ".#{$1}.#{$2}" if `git branch -v` =~ /^\* (\S+)\s+(\S+)/
208
- end
209
- end
210
-
211
- ruby = defined?(RUBY_ENGINE) ? RUBY_ENGINE : 'ruby'
212
- ruby += "-#{RUBY_VERSION}.#{RUBY_PATCHLEVEL}"
213
-
214
- @env = [app, rails, ruby, RUBY_PLATFORM] * ','
215
- end
216
-
217
- @env
218
- end
219
-
220
- protected
221
- HEADER = 'measurement,created_at,app,rails,ruby,platform'
222
-
223
- def with_output_file
224
- fname = output_filename
225
-
226
- if new = !File.exist?(fname)
227
- FileUtils.mkdir_p(File.dirname(fname))
228
- end
229
-
230
- File.open(fname, 'ab') do |file|
231
- file.puts(HEADER) if new
232
- yield file
233
- end
234
- end
235
-
236
- def output_filename
237
- "#{super}.csv"
238
- end
239
- end
240
-
241
- module Metrics
242
- def self.[](name)
243
- const_get(name.to_s.camelize)
244
- rescue NameError
245
- nil
246
- end
247
-
248
- class Base
249
- include ActionView::Helpers::NumberHelper
250
-
251
- attr_reader :total
252
-
253
- def initialize
254
- @total = 0
255
- end
256
-
257
- def name
258
- @name ||= self.class.name.demodulize.underscore
259
- end
260
-
261
- def benchmark
262
- with_gc_stats do
263
- before = measure
264
- yield
265
- @total += (measure - before)
266
- end
267
- end
268
-
269
- # overridden by each implementation
270
- def profile; end
271
-
272
- protected
273
- # overridden by each implementation
274
- def with_gc_stats; end
275
- end
276
-
277
- class Time < Base
278
- def measure
279
- ::Time.now.to_f
280
- end
281
-
282
- def format(measurement)
283
- if measurement < 1
284
- '%d ms' % (measurement * 1000)
285
- else
286
- '%.2f sec' % measurement
287
- end
288
- end
289
- end
290
-
291
- class Amount < Base
292
- def format(measurement)
293
- number_with_delimiter(measurement.floor)
294
- end
295
- end
296
-
297
- class DigitalInformationUnit < Base
298
- def format(measurement)
299
- number_to_human_size(measurement, :precision => 2)
300
- end
301
- end
302
-
303
- # each implementation provides its own metrics like ProcessTime, Memory or GcRuns
304
- end
305
- end
306
- end
307
- end
308
-
309
- RUBY_ENGINE = 'ruby' unless defined?(RUBY_ENGINE) # mri 1.8
310
- case RUBY_ENGINE
311
- when 'ruby' then require 'active_support/testing/performance/ruby'
312
- when 'rbx' then require 'active_support/testing/performance/rubinius'
313
- when 'jruby' then require 'active_support/testing/performance/jruby'
314
- else
315
- $stderr.puts 'Your ruby interpreter is not supported for benchmarking.'
316
- exit
317
- end