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,115 +0,0 @@
1
- require 'jruby/profiler'
2
- require 'java'
3
- java_import java.lang.management.ManagementFactory
4
-
5
- module ActiveSupport
6
- module Testing
7
- module Performance
8
- DEFAULTS.merge!(
9
- if ARGV.include?('--benchmark')
10
- {:metrics => [:wall_time, :user_time, :memory, :gc_runs, :gc_time]}
11
- else
12
- { :metrics => [:wall_time],
13
- :formats => [:flat, :graph] }
14
- end).freeze
15
-
16
- protected
17
- def run_gc
18
- ManagementFactory.memory_mx_bean.gc
19
- end
20
-
21
- class Profiler < Performer
22
- def initialize(*args)
23
- super
24
- @supported = @metric.is_a?(Metrics::WallTime)
25
- end
26
-
27
- def run
28
- return unless @supported
29
-
30
- @total = time_with_block do
31
- @data = JRuby::Profiler.profile do
32
- full_profile_options[:runs].to_i.times { run_test(@metric, :profile) }
33
- end
34
- end
35
- end
36
-
37
- def record
38
- return unless @supported
39
-
40
- klasses = full_profile_options[:formats].map { |f| JRuby::Profiler.const_get("#{f.to_s.camelize}ProfilePrinter") }.compact
41
-
42
- klasses.each do |klass|
43
- fname = output_filename(klass)
44
- FileUtils.mkdir_p(File.dirname(fname))
45
- file = File.open(fname, 'wb') do |file|
46
- klass.new(@data).printProfile(file)
47
- end
48
- end
49
- end
50
-
51
- protected
52
- def output_filename(printer_class)
53
- suffix =
54
- case printer_class.name.demodulize
55
- when 'FlatProfilePrinter'; 'flat.txt'
56
- when 'GraphProfilePrinter'; 'graph.txt'
57
- else printer_class.name.sub(/ProfilePrinter$/, '').underscore
58
- end
59
-
60
- "#{super()}_#{suffix}"
61
- end
62
- end
63
-
64
- module Metrics
65
- class Base
66
- def profile
67
- yield
68
- end
69
-
70
- protected
71
- def with_gc_stats
72
- ManagementFactory.memory_mx_bean.gc
73
- yield
74
- end
75
- end
76
-
77
- class WallTime < Time
78
- def measure
79
- super
80
- end
81
- end
82
-
83
- class CpuTime < Time
84
- def measure
85
- ManagementFactory.thread_mx_bean.get_current_thread_cpu_time / 1000 / 1000 / 1000.0 # seconds
86
- end
87
- end
88
-
89
- class UserTime < Time
90
- def measure
91
- ManagementFactory.thread_mx_bean.get_current_thread_user_time / 1000 / 1000 / 1000.0 # seconds
92
- end
93
- end
94
-
95
- class Memory < DigitalInformationUnit
96
- def measure
97
- ManagementFactory.memory_mx_bean.non_heap_memory_usage.used + ManagementFactory.memory_mx_bean.heap_memory_usage.used
98
- end
99
- end
100
-
101
- class GcRuns < Amount
102
- def measure
103
- ManagementFactory.garbage_collector_mx_beans.inject(0) { |total_runs, current_gc| total_runs += current_gc.collection_count }
104
- end
105
- end
106
-
107
- class GcTime < Time
108
- def measure
109
- ManagementFactory.garbage_collector_mx_beans.inject(0) { |total_time, current_gc| total_time += current_gc.collection_time } / 1000.0 # seconds
110
- end
111
- end
112
- end
113
- end
114
- end
115
- end
@@ -1,113 +0,0 @@
1
- require 'rubinius/agent'
2
-
3
- module ActiveSupport
4
- module Testing
5
- module Performance
6
- DEFAULTS.merge!(
7
- if ARGV.include?('--benchmark')
8
- {:metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time]}
9
- else
10
- { :metrics => [:wall_time],
11
- :formats => [:flat, :graph] }
12
- end).freeze
13
-
14
- protected
15
- def run_gc
16
- GC.run(true)
17
- end
18
-
19
- class Performer; end
20
-
21
- class Profiler < Performer
22
- def initialize(*args)
23
- super
24
- @supported = @metric.is_a?(Metrics::WallTime)
25
- end
26
-
27
- def run
28
- return unless @supported
29
-
30
- @profiler = Rubinius::Profiler::Instrumenter.new
31
-
32
- @total = time_with_block do
33
- @profiler.profile(false) do
34
- full_profile_options[:runs].to_i.times { run_test(@metric, :profile) }
35
- end
36
- end
37
- end
38
-
39
- def record
40
- return unless @supported
41
-
42
- if(full_profile_options[:formats].include?(:flat))
43
- create_path_and_open_file(:flat) do |file|
44
- @profiler.show(file)
45
- end
46
- end
47
-
48
- if(full_profile_options[:formats].include?(:graph))
49
- create_path_and_open_file(:graph) do |file|
50
- @profiler.show(file)
51
- end
52
- end
53
- end
54
-
55
- protected
56
- def create_path_and_open_file(printer_name)
57
- fname = "#{output_filename}_#{printer_name}.txt"
58
- FileUtils.mkdir_p(File.dirname(fname))
59
- File.open(fname, 'wb') do |file|
60
- yield(file)
61
- end
62
- end
63
- end
64
-
65
- module Metrics
66
- class Base
67
- attr_reader :loopback
68
-
69
- def profile
70
- yield
71
- end
72
-
73
- protected
74
- def with_gc_stats
75
- @loopback = Rubinius::Agent.loopback
76
- GC.run(true)
77
- yield
78
- end
79
- end
80
-
81
- class WallTime < Time
82
- def measure
83
- super
84
- end
85
- end
86
-
87
- class Memory < DigitalInformationUnit
88
- def measure
89
- loopback.get("system.memory.counter.bytes").last
90
- end
91
- end
92
-
93
- class Objects < Amount
94
- def measure
95
- loopback.get("system.memory.counter.objects").last
96
- end
97
- end
98
-
99
- class GcRuns < Amount
100
- def measure
101
- loopback.get("system.gc.full.count").last + loopback.get("system.gc.young.count").last
102
- end
103
- end
104
-
105
- class GcTime < Time
106
- def measure
107
- (loopback.get("system.gc.full.wallclock").last + loopback.get("system.gc.young.wallclock").last) / 1000.0
108
- end
109
- end
110
- end
111
- end
112
- end
113
- end
@@ -1,152 +0,0 @@
1
- begin
2
- require 'ruby-prof'
3
- rescue LoadError
4
- $stderr.puts 'Specify ruby-prof as application\'s dependency in Gemfile to run benchmarks.'
5
- exit
6
- end
7
-
8
- module ActiveSupport
9
- module Testing
10
- module Performance
11
- DEFAULTS.merge!(
12
- if ARGV.include?('--benchmark')
13
- { :metrics => [:wall_time, :memory, :objects, :gc_runs, :gc_time] }
14
- else
15
- { :min_percent => 0.01,
16
- :metrics => [:process_time, :memory, :objects],
17
- :formats => [:flat, :graph_html, :call_tree, :call_stack] }
18
- end).freeze
19
-
20
- protected
21
- def run_gc
22
- GC.start
23
- end
24
-
25
- class Profiler < Performer
26
- def initialize(*args)
27
- super
28
- @supported = @metric.measure_mode rescue false
29
- end
30
-
31
- def run
32
- return unless @supported
33
-
34
- RubyProf.measure_mode = @metric.measure_mode
35
- RubyProf.start
36
- RubyProf.pause
37
- full_profile_options[:runs].to_i.times { run_test(@metric, :profile) }
38
- @data = RubyProf.stop
39
- @total = @data.threads.sum(0) { |thread| thread.methods.max.total_time }
40
- end
41
-
42
- def record
43
- return unless @supported
44
-
45
- klasses = full_profile_options[:formats].map { |f| RubyProf.const_get("#{f.to_s.camelize}Printer") }.compact
46
-
47
- klasses.each do |klass|
48
- fname = output_filename(klass)
49
- FileUtils.mkdir_p(File.dirname(fname))
50
- File.open(fname, 'wb') do |file|
51
- klass.new(@data).print(file, full_profile_options.slice(:min_percent))
52
- end
53
- end
54
- end
55
-
56
- protected
57
- def output_filename(printer_class)
58
- suffix =
59
- case printer_class.name.demodulize
60
- when 'FlatPrinter'; 'flat.txt'
61
- when 'FlatPrinterWithLineNumbers'; 'flat_line_numbers.txt'
62
- when 'GraphPrinter'; 'graph.txt'
63
- when 'GraphHtmlPrinter'; 'graph.html'
64
- when 'GraphYamlPrinter'; 'graph.yml'
65
- when 'CallTreePrinter'; 'tree.txt'
66
- when 'CallStackPrinter'; 'stack.html'
67
- when 'DotPrinter'; 'graph.dot'
68
- else printer_class.name.sub(/Printer$/, '').underscore
69
- end
70
-
71
- "#{super()}_#{suffix}"
72
- end
73
- end
74
-
75
- module Metrics
76
- class Base
77
- def measure_mode
78
- self.class::Mode
79
- end
80
-
81
- def profile
82
- RubyProf.resume
83
- yield
84
- ensure
85
- RubyProf.pause
86
- end
87
-
88
- protected
89
- # overridden by each implementation
90
- def with_gc_stats
91
- yield
92
- end
93
- end
94
-
95
- class ProcessTime < Time
96
- Mode = RubyProf::PROCESS_TIME if RubyProf.const_defined?(:PROCESS_TIME)
97
-
98
- def measure
99
- RubyProf.measure_process_time
100
- end
101
- end
102
-
103
- class WallTime < Time
104
- Mode = RubyProf::WALL_TIME if RubyProf.const_defined?(:WALL_TIME)
105
-
106
- def measure
107
- RubyProf.measure_wall_time
108
- end
109
- end
110
-
111
- class CpuTime < Time
112
- Mode = RubyProf::CPU_TIME if RubyProf.const_defined?(:CPU_TIME)
113
-
114
- def initialize(*args)
115
- # FIXME: yeah my CPU is 2.33 GHz
116
- RubyProf.cpu_frequency = 2.33e9 unless RubyProf.cpu_frequency > 0
117
- super
118
- end
119
-
120
- def measure
121
- RubyProf.measure_cpu_time
122
- end
123
- end
124
-
125
- class Memory < DigitalInformationUnit
126
- Mode = RubyProf::MEMORY if RubyProf.const_defined?(:MEMORY)
127
- end
128
-
129
- class Objects < Amount
130
- Mode = RubyProf::ALLOCATIONS if RubyProf.const_defined?(:ALLOCATIONS)
131
- end
132
-
133
- class GcRuns < Amount
134
- Mode = RubyProf::GC_RUNS if RubyProf.const_defined?(:GC_RUNS)
135
- end
136
-
137
- class GcTime < Time
138
- Mode = RubyProf::GC_TIME if RubyProf.const_defined?(:GC_TIME)
139
- end
140
- end
141
- end
142
- end
143
- end
144
-
145
- if RUBY_VERSION.between?('1.9.2', '2.0')
146
- require 'active_support/testing/performance/ruby/yarv'
147
- elsif RUBY_VERSION.between?('1.8.6', '1.9')
148
- require 'active_support/testing/performance/ruby/mri'
149
- else
150
- $stderr.puts 'Update your ruby interpreter to be able to run benchmarks.'
151
- exit
152
- end
@@ -1,57 +0,0 @@
1
- module ActiveSupport
2
- module Testing
3
- module Performance
4
- module Metrics
5
- class Base
6
- protected
7
- # Ruby 1.8 + ruby-prof wrapper (enable/disable stats for Benchmarker)
8
- if GC.respond_to?(:enable_stats)
9
- def with_gc_stats
10
- GC.enable_stats
11
- GC.start
12
- yield
13
- ensure
14
- GC.disable_stats
15
- end
16
- end
17
- end
18
-
19
- class Memory < DigitalInformationUnit
20
- # Ruby 1.8 + ruby-prof wrapper
21
- if RubyProf.respond_to?(:measure_memory)
22
- def measure
23
- RubyProf.measure_memory
24
- end
25
- end
26
- end
27
-
28
- class Objects < Amount
29
- # Ruby 1.8 + ruby-prof wrapper
30
- if RubyProf.respond_to?(:measure_allocations)
31
- def measure
32
- RubyProf.measure_allocations
33
- end
34
- end
35
- end
36
-
37
- class GcRuns < Amount
38
- # Ruby 1.8 + ruby-prof wrapper
39
- if RubyProf.respond_to?(:measure_gc_runs)
40
- def measure
41
- RubyProf.measure_gc_runs
42
- end
43
- end
44
- end
45
-
46
- class GcTime < Time
47
- # Ruby 1.8 + ruby-prof wrapper
48
- if RubyProf.respond_to?(:measure_gc_time)
49
- def measure
50
- RubyProf.measure_gc_time / 1000.0 / 1000.0
51
- end
52
- end
53
- end
54
- end
55
- end
56
- end
57
- end
@@ -1,57 +0,0 @@
1
- module ActiveSupport
2
- module Testing
3
- module Performance
4
- module Metrics
5
- class Base
6
- protected
7
- # Ruby 1.9 with GC::Profiler
8
- if defined?(GC::Profiler)
9
- def with_gc_stats
10
- GC::Profiler.enable
11
- GC.start
12
- yield
13
- ensure
14
- GC::Profiler.disable
15
- end
16
- end
17
- end
18
-
19
- class Memory < DigitalInformationUnit
20
- # Ruby 1.9 + GCdata patch
21
- if GC.respond_to?(:malloc_allocated_size)
22
- def measure
23
- GC.malloc_allocated_size
24
- end
25
- end
26
- end
27
-
28
- class Objects < Amount
29
- # Ruby 1.9 + GCdata patch
30
- if GC.respond_to?(:malloc_allocations)
31
- def measure
32
- GC.malloc_allocations
33
- end
34
- end
35
- end
36
-
37
- class GcRuns < Amount
38
- # Ruby 1.9
39
- if GC.respond_to?(:count)
40
- def measure
41
- GC.count
42
- end
43
- end
44
- end
45
-
46
- class GcTime < Time
47
- # Ruby 1.9 with GC::Profiler
48
- if defined?(GC::Profiler) && GC::Profiler.respond_to?(:total_time)
49
- def measure
50
- GC::Profiler.total_time
51
- end
52
- end
53
- end
54
- end
55
- end
56
- end
57
- end