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,131 +0,0 @@
1
- require 'active_support/deprecation'
2
-
3
- module ActiveSupport
4
- # A typical module looks like this:
5
- #
6
- # module M
7
- # def self.included(base)
8
- # base.extend ClassMethods
9
- # scope :disabled, where(:disabled => true)
10
- # end
11
- #
12
- # module ClassMethods
13
- # ...
14
- # end
15
- # end
16
- #
17
- # By using <tt>ActiveSupport::Concern</tt> the above module could instead be written as:
18
- #
19
- # require 'active_support/concern'
20
- #
21
- # module M
22
- # extend ActiveSupport::Concern
23
- #
24
- # included do
25
- # scope :disabled, where(:disabled => true)
26
- # end
27
- #
28
- # module ClassMethods
29
- # ...
30
- # end
31
- # end
32
- #
33
- # Moreover, it gracefully handles module dependencies. Given a +Foo+ module and a +Bar+
34
- # module which depends on the former, we would typically write the following:
35
- #
36
- # module Foo
37
- # def self.included(base)
38
- # base.class_eval do
39
- # def self.method_injected_by_foo
40
- # ...
41
- # end
42
- # end
43
- # end
44
- # end
45
- #
46
- # module Bar
47
- # def self.included(base)
48
- # base.method_injected_by_foo
49
- # end
50
- # end
51
- #
52
- # class Host
53
- # include Foo # We need to include this dependency for Bar
54
- # include Bar # Bar is the module that Host really needs
55
- # end
56
- #
57
- # But why should +Host+ care about +Bar+'s dependencies, namely +Foo+? We could try to hide
58
- # these from +Host+ directly including +Foo+ in +Bar+:
59
- #
60
- # module Bar
61
- # include Foo
62
- # def self.included(base)
63
- # base.method_injected_by_foo
64
- # end
65
- # end
66
- #
67
- # class Host
68
- # include Bar
69
- # end
70
- #
71
- # Unfortunately this won't work, since when +Foo+ is included, its <tt>base</tt> is the +Bar+ module,
72
- # not the +Host+ class. With <tt>ActiveSupport::Concern</tt>, module dependencies are properly resolved:
73
- #
74
- # require 'active_support/concern'
75
- #
76
- # module Foo
77
- # extend ActiveSupport::Concern
78
- # included do
79
- # class_eval do
80
- # def self.method_injected_by_foo
81
- # ...
82
- # end
83
- # end
84
- # end
85
- # end
86
- #
87
- # module Bar
88
- # extend ActiveSupport::Concern
89
- # include Foo
90
- #
91
- # included do
92
- # self.method_injected_by_foo
93
- # end
94
- # end
95
- #
96
- # class Host
97
- # include Bar # works, Bar takes care now of its dependencies
98
- # end
99
- #
100
- module Concern
101
- def self.extended(base)
102
- base.instance_variable_set("@_dependencies", [])
103
- end
104
-
105
- def append_features(base)
106
- if base.instance_variable_defined?("@_dependencies")
107
- base.instance_variable_get("@_dependencies") << self
108
- return false
109
- else
110
- return false if base < self
111
- @_dependencies.each { |dep| base.send(:include, dep) }
112
- super
113
- base.extend const_get("ClassMethods") if const_defined?("ClassMethods")
114
- if const_defined?("InstanceMethods")
115
- base.send :include, const_get("InstanceMethods")
116
- ActiveSupport::Deprecation.warn "The InstanceMethods module inside ActiveSupport::Concern will be " \
117
- "no longer included automatically. Please define instance methods directly in #{self} instead.", caller
118
- end
119
- base.class_eval(&@_included_block) if instance_variable_defined?("@_included_block")
120
- end
121
- end
122
-
123
- def included(base = nil, &block)
124
- if base.nil?
125
- @_included_block = block
126
- else
127
- super
128
- end
129
- end
130
- end
131
- end
@@ -1,90 +0,0 @@
1
- require 'active_support/concern'
2
- require 'active_support/ordered_options'
3
- require 'active_support/core_ext/kernel/singleton_class'
4
- require 'active_support/core_ext/module/delegation'
5
- require 'active_support/core_ext/array/extract_options'
6
-
7
- module ActiveSupport
8
- # Configurable provides a <tt>config</tt> method to store and retrieve
9
- # configuration options as an <tt>OrderedHash</tt>.
10
- module Configurable
11
- extend ActiveSupport::Concern
12
-
13
- class Configuration < ActiveSupport::InheritableOptions
14
- def compile_methods!
15
- self.class.compile_methods!(keys)
16
- end
17
-
18
- # compiles reader methods so we don't have to go through method_missing
19
- def self.compile_methods!(keys)
20
- keys.reject { |m| method_defined?(m) }.each do |key|
21
- class_eval <<-RUBY, __FILE__, __LINE__ + 1
22
- def #{key}; _get(#{key.inspect}); end
23
- RUBY
24
- end
25
- end
26
- end
27
-
28
- module ClassMethods
29
- def config
30
- @_config ||= if respond_to?(:superclass) && superclass.respond_to?(:config)
31
- superclass.config.inheritable_copy
32
- else
33
- # create a new "anonymous" class that will host the compiled reader methods
34
- Class.new(Configuration).new
35
- end
36
- end
37
-
38
- def configure
39
- yield config
40
- end
41
-
42
- # Allows you to add shortcut so that you don't have to refer to attribute through config.
43
- # Also look at the example for config to contrast.
44
- #
45
- # class User
46
- # include ActiveSupport::Configurable
47
- # config_accessor :allowed_access
48
- # end
49
- #
50
- # user = User.new
51
- # user.allowed_access = true
52
- # user.allowed_access # => true
53
- #
54
- def config_accessor(*names)
55
- options = names.extract_options!
56
-
57
- names.each do |name|
58
- reader, line = "def #{name}; config.#{name}; end", __LINE__
59
- writer, line = "def #{name}=(value); config.#{name} = value; end", __LINE__
60
-
61
- singleton_class.class_eval reader, __FILE__, line
62
- singleton_class.class_eval writer, __FILE__, line
63
- class_eval reader, __FILE__, line unless options[:instance_reader] == false
64
- class_eval writer, __FILE__, line unless options[:instance_writer] == false
65
- end
66
- end
67
- end
68
-
69
- # Reads and writes attributes from a configuration <tt>OrderedHash</tt>.
70
- #
71
- # require 'active_support/configurable'
72
- #
73
- # class User
74
- # include ActiveSupport::Configurable
75
- # end
76
- #
77
- # user = User.new
78
- #
79
- # user.config.allowed_access = true
80
- # user.config.level = 1
81
- #
82
- # user.config.allowed_access # => true
83
- # user.config.level # => 1
84
- #
85
- def config
86
- @_config ||= self.class.config.inheritable_copy
87
- end
88
- end
89
- end
90
-
@@ -1,3 +0,0 @@
1
- Dir["#{File.dirname(__FILE__)}/core_ext/*.rb"].sort.each do |path|
2
- require "active_support/core_ext/#{File.basename(path, '.rb')}"
3
- end
@@ -1,8 +0,0 @@
1
- require 'active_support/core_ext/array/wrap'
2
- require 'active_support/core_ext/array/access'
3
- require 'active_support/core_ext/array/uniq_by'
4
- require 'active_support/core_ext/array/conversions'
5
- require 'active_support/core_ext/array/extract_options'
6
- require 'active_support/core_ext/array/grouping'
7
- require 'active_support/core_ext/array/random_access'
8
- require 'active_support/core_ext/array/prepend_and_append'
@@ -1,46 +0,0 @@
1
- class Array
2
- # Returns the tail of the array from +position+.
3
- #
4
- # %w( a b c d ).from(0) # => %w( a b c d )
5
- # %w( a b c d ).from(2) # => %w( c d )
6
- # %w( a b c d ).from(10) # => %w()
7
- # %w().from(0) # => %w()
8
- def from(position)
9
- self[position, length] || []
10
- end
11
-
12
- # Returns the beginning of the array up to +position+.
13
- #
14
- # %w( a b c d ).to(0) # => %w( a )
15
- # %w( a b c d ).to(2) # => %w( a b c )
16
- # %w( a b c d ).to(10) # => %w( a b c d )
17
- # %w().to(0) # => %w()
18
- def to(position)
19
- self.first position + 1
20
- end
21
-
22
- # Equal to <tt>self[1]</tt>.
23
- def second
24
- self[1]
25
- end
26
-
27
- # Equal to <tt>self[2]</tt>.
28
- def third
29
- self[2]
30
- end
31
-
32
- # Equal to <tt>self[3]</tt>.
33
- def fourth
34
- self[3]
35
- end
36
-
37
- # Equal to <tt>self[4]</tt>.
38
- def fifth
39
- self[4]
40
- end
41
-
42
- # Equal to <tt>self[41]</tt>. Also known as accessing "the reddit".
43
- def forty_two
44
- self[41]
45
- end
46
- end
@@ -1,164 +0,0 @@
1
- require 'active_support/xml_mini'
2
- require 'active_support/core_ext/hash/keys'
3
- require 'active_support/core_ext/hash/reverse_merge'
4
- require 'active_support/core_ext/string/inflections'
5
-
6
- class Array
7
- # Converts the array to a comma-separated sentence where the last element is joined by the connector word. Options:
8
- # * <tt>:words_connector</tt> - The sign or word used to join the elements in arrays with two or more elements (default: ", ")
9
- # * <tt>:two_words_connector</tt> - The sign or word used to join the elements in arrays with two elements (default: " and ")
10
- # * <tt>:last_word_connector</tt> - The sign or word used to join the last element in arrays with three or more elements (default: ", and ")
11
- def to_sentence(options = {})
12
- if defined?(I18n)
13
- default_words_connector = I18n.translate(:'support.array.words_connector', :locale => options[:locale])
14
- default_two_words_connector = I18n.translate(:'support.array.two_words_connector', :locale => options[:locale])
15
- default_last_word_connector = I18n.translate(:'support.array.last_word_connector', :locale => options[:locale])
16
- else
17
- default_words_connector = ", "
18
- default_two_words_connector = " and "
19
- default_last_word_connector = ", and "
20
- end
21
-
22
- options.assert_valid_keys(:words_connector, :two_words_connector, :last_word_connector, :locale)
23
- options.reverse_merge! :words_connector => default_words_connector, :two_words_connector => default_two_words_connector, :last_word_connector => default_last_word_connector
24
-
25
- case length
26
- when 0
27
- ""
28
- when 1
29
- self[0].to_s.dup
30
- when 2
31
- "#{self[0]}#{options[:two_words_connector]}#{self[1]}"
32
- else
33
- "#{self[0...-1].join(options[:words_connector])}#{options[:last_word_connector]}#{self[-1]}"
34
- end
35
- end
36
-
37
- # Converts a collection of elements into a formatted string by calling
38
- # <tt>to_s</tt> on all elements and joining them:
39
- #
40
- # Blog.all.to_formatted_s # => "First PostSecond PostThird Post"
41
- #
42
- # Adding in the <tt>:db</tt> argument as the format yields a comma separated
43
- # id list:
44
- #
45
- # Blog.all.to_formatted_s(:db) # => "1,2,3"
46
- def to_formatted_s(format = :default)
47
- case format
48
- when :db
49
- if respond_to?(:empty?) && self.empty?
50
- "null"
51
- else
52
- collect { |element| element.id }.join(",")
53
- end
54
- else
55
- to_default_s
56
- end
57
- end
58
- alias_method :to_default_s, :to_s
59
- alias_method :to_s, :to_formatted_s
60
-
61
- # Returns a string that represents the array in XML by invoking +to_xml+
62
- # on each element. Active Record collections delegate their representation
63
- # in XML to this method.
64
- #
65
- # All elements are expected to respond to +to_xml+, if any of them does
66
- # not then an exception is raised.
67
- #
68
- # The root node reflects the class name of the first element in plural
69
- # if all elements belong to the same type and that's not Hash:
70
- #
71
- # customer.projects.to_xml
72
- #
73
- # <?xml version="1.0" encoding="UTF-8"?>
74
- # <projects type="array">
75
- # <project>
76
- # <amount type="decimal">20000.0</amount>
77
- # <customer-id type="integer">1567</customer-id>
78
- # <deal-date type="date">2008-04-09</deal-date>
79
- # ...
80
- # </project>
81
- # <project>
82
- # <amount type="decimal">57230.0</amount>
83
- # <customer-id type="integer">1567</customer-id>
84
- # <deal-date type="date">2008-04-15</deal-date>
85
- # ...
86
- # </project>
87
- # </projects>
88
- #
89
- # Otherwise the root element is "records":
90
- #
91
- # [{:foo => 1, :bar => 2}, {:baz => 3}].to_xml
92
- #
93
- # <?xml version="1.0" encoding="UTF-8"?>
94
- # <records type="array">
95
- # <record>
96
- # <bar type="integer">2</bar>
97
- # <foo type="integer">1</foo>
98
- # </record>
99
- # <record>
100
- # <baz type="integer">3</baz>
101
- # </record>
102
- # </records>
103
- #
104
- # If the collection is empty the root element is "nil-classes" by default:
105
- #
106
- # [].to_xml
107
- #
108
- # <?xml version="1.0" encoding="UTF-8"?>
109
- # <nil-classes type="array"/>
110
- #
111
- # To ensure a meaningful root element use the <tt>:root</tt> option:
112
- #
113
- # customer_with_no_projects.projects.to_xml(:root => "projects")
114
- #
115
- # <?xml version="1.0" encoding="UTF-8"?>
116
- # <projects type="array"/>
117
- #
118
- # By default name of the node for the children of root is <tt>root.singularize</tt>.
119
- # You can change it with the <tt>:children</tt> option.
120
- #
121
- # The +options+ hash is passed downwards:
122
- #
123
- # Message.all.to_xml(:skip_types => true)
124
- #
125
- # <?xml version="1.0" encoding="UTF-8"?>
126
- # <messages>
127
- # <message>
128
- # <created-at>2008-03-07T09:58:18+01:00</created-at>
129
- # <id>1</id>
130
- # <name>1</name>
131
- # <updated-at>2008-03-07T09:58:18+01:00</updated-at>
132
- # <user-id>1</user-id>
133
- # </message>
134
- # </messages>
135
- #
136
- def to_xml(options = {})
137
- require 'active_support/builder' unless defined?(Builder)
138
-
139
- options = options.dup
140
- options[:indent] ||= 2
141
- options[:builder] ||= Builder::XmlMarkup.new(:indent => options[:indent])
142
- options[:root] ||= if first.class.to_s != "Hash" && all? { |e| e.is_a?(first.class) }
143
- underscored = ActiveSupport::Inflector.underscore(first.class.name)
144
- ActiveSupport::Inflector.pluralize(underscored).tr('/', '_')
145
- else
146
- "objects"
147
- end
148
-
149
- builder = options[:builder]
150
- builder.instruct! unless options.delete(:skip_instruct)
151
-
152
- root = ActiveSupport::XmlMini.rename_key(options[:root].to_s, options)
153
- children = options.delete(:children) || root.singularize
154
-
155
- attributes = options[:skip_types] ? {} : {:type => "array"}
156
- return builder.tag!(root, attributes) if empty?
157
-
158
- builder.__send__(:method_missing, root, attributes) do
159
- each { |value| ActiveSupport::XmlMini.to_tag(children, value, options) }
160
- yield builder if block_given?
161
- end
162
- end
163
-
164
- end