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,98 +0,0 @@
1
- # encoding: utf-8
2
- require 'active_support/core_ext/string/multibyte'
3
- require 'active_support/i18n'
4
-
5
- module ActiveSupport
6
- module Inflector
7
-
8
- # Replaces non-ASCII characters with an ASCII approximation, or if none
9
- # exists, a replacement character which defaults to "?".
10
- #
11
- # transliterate("Ærøskøbing")
12
- # # => "AEroskobing"
13
- #
14
- # Default approximations are provided for Western/Latin characters,
15
- # e.g, "ø", "ñ", "é", "ß", etc.
16
- #
17
- # This method is I18n aware, so you can set up custom approximations for a
18
- # locale. This can be useful, for example, to transliterate German's "ü"
19
- # and "ö" to "ue" and "oe", or to add support for transliterating Russian
20
- # to ASCII.
21
- #
22
- # In order to make your custom transliterations available, you must set
23
- # them as the <tt>i18n.transliterate.rule</tt> i18n key:
24
- #
25
- # # Store the transliterations in locales/de.yml
26
- # i18n:
27
- # transliterate:
28
- # rule:
29
- # ü: "ue"
30
- # ö: "oe"
31
- #
32
- # # Or set them using Ruby
33
- # I18n.backend.store_translations(:de, :i18n => {
34
- # :transliterate => {
35
- # :rule => {
36
- # "ü" => "ue",
37
- # "ö" => "oe"
38
- # }
39
- # }
40
- # })
41
- #
42
- # The value for <tt>i18n.transliterate.rule</tt> can be a simple Hash that maps
43
- # characters to ASCII approximations as shown above, or, for more complex
44
- # requirements, a Proc:
45
- #
46
- # I18n.backend.store_translations(:de, :i18n => {
47
- # :transliterate => {
48
- # :rule => lambda {|string| MyTransliterator.transliterate(string)}
49
- # }
50
- # })
51
- #
52
- # Now you can have different transliterations for each locale:
53
- #
54
- # I18n.locale = :en
55
- # transliterate("Jürgen")
56
- # # => "Jurgen"
57
- #
58
- # I18n.locale = :de
59
- # transliterate("Jürgen")
60
- # # => "Juergen"
61
- def transliterate(string, replacement = "?")
62
- I18n.transliterate(ActiveSupport::Multibyte::Unicode.normalize(
63
- ActiveSupport::Multibyte::Unicode.tidy_bytes(string), :c),
64
- :replacement => replacement)
65
- end
66
-
67
- # Replaces special characters in a string so that it may be used as part of a 'pretty' URL.
68
- #
69
- # ==== Examples
70
- #
71
- # class Person
72
- # def to_param
73
- # "#{id}-#{name.parameterize}"
74
- # end
75
- # end
76
- #
77
- # @person = Person.find(1)
78
- # # => #<Person id: 1, name: "Donald E. Knuth">
79
- #
80
- # <%= link_to(@person.name, person_path(@person)) %>
81
- # # => <a href="/person/1-donald-e-knuth">Donald E. Knuth</a>
82
- def parameterize(string, sep = '-')
83
- # replace accented chars with their ascii equivalents
84
- parameterized_string = transliterate(string)
85
- # Turn unwanted chars into the separator
86
- parameterized_string.gsub!(/[^a-z0-9\-_]+/i, sep)
87
- unless sep.nil? || sep.empty?
88
- re_sep = Regexp.escape(sep)
89
- # No more than one of the separator in a row.
90
- parameterized_string.gsub!(/#{re_sep}{2,}/, sep)
91
- # Remove leading/trailing separator.
92
- parameterized_string.gsub!(/^#{re_sep}|#{re_sep}$/i, '')
93
- end
94
- parameterized_string.downcase
95
- end
96
-
97
- end
98
- end
@@ -1,2 +0,0 @@
1
- require 'active_support/json/decoding'
2
- require 'active_support/json/encoding'
@@ -1,79 +0,0 @@
1
- require 'active_support/core_ext/module/attribute_accessors'
2
- require 'active_support/core_ext/module/delegation'
3
- require 'multi_json'
4
-
5
- module ActiveSupport
6
- # Look for and parse json strings that look like ISO 8601 times.
7
- mattr_accessor :parse_json_times
8
-
9
- module JSON
10
- class << self
11
- def decode(json, options ={})
12
- # Can't reliably detect whether MultiJson responds to load, since it's
13
- # a reserved word. Use adapter as a proxy for new features.
14
- data = if MultiJson.respond_to?(:adapter)
15
- MultiJson.load(json, options)
16
- else
17
- MultiJson.decode(json, options)
18
- end
19
- if ActiveSupport.parse_json_times
20
- convert_dates_from(data)
21
- else
22
- data
23
- end
24
- end
25
-
26
- def engine
27
- if MultiJson.respond_to?(:adapter)
28
- MultiJson.adapter
29
- else
30
- MultiJson.engine
31
- end
32
- end
33
- alias :backend :engine
34
-
35
- def engine=(name)
36
- if MultiJson.respond_to?(:use)
37
- MultiJson.use name
38
- else
39
- MultiJson.engine = name
40
- end
41
- end
42
- alias :backend= :engine=
43
-
44
- def with_backend(name)
45
- old_backend, self.backend = backend, name
46
- yield
47
- ensure
48
- self.backend = old_backend
49
- end
50
-
51
- def parse_error
52
- MultiJson::DecodeError
53
- end
54
-
55
- private
56
-
57
- def convert_dates_from(data)
58
- case data
59
- when nil
60
- nil
61
- when DATE_REGEX
62
- begin
63
- DateTime.parse(data)
64
- rescue ArgumentError
65
- data
66
- end
67
- when Array
68
- data.map! { |d| convert_dates_from(d) }
69
- when Hash
70
- data.each do |key, value|
71
- data[key] = convert_dates_from(value)
72
- end
73
- else
74
- data
75
- end
76
- end
77
- end
78
- end
79
- end
@@ -1,284 +0,0 @@
1
- require 'active_support/core_ext/object/to_json'
2
- require 'active_support/core_ext/module/delegation'
3
- require 'active_support/json/variable'
4
- require 'active_support/ordered_hash'
5
-
6
- require 'bigdecimal'
7
- require 'active_support/core_ext/big_decimal/conversions' # for #to_s
8
- require 'active_support/core_ext/array/wrap'
9
- require 'active_support/core_ext/hash/except'
10
- require 'active_support/core_ext/hash/slice'
11
- require 'active_support/core_ext/object/instance_variables'
12
- require 'time'
13
- require 'active_support/core_ext/time/conversions'
14
- require 'active_support/core_ext/date_time/conversions'
15
- require 'active_support/core_ext/date/conversions'
16
- require 'set'
17
-
18
- module ActiveSupport
19
- class << self
20
- delegate :use_standard_json_time_format, :use_standard_json_time_format=,
21
- :escape_html_entities_in_json, :escape_html_entities_in_json=,
22
- :to => :'ActiveSupport::JSON::Encoding'
23
- end
24
-
25
- module JSON
26
- # matches YAML-formatted dates
27
- DATE_REGEX = /^(?:\d{4}-\d{2}-\d{2}|\d{4}-\d{1,2}-\d{1,2}[T \t]+\d{1,2}:\d{2}:\d{2}(\.[0-9]*)?(([ \t]*)Z|[-+]\d{2}?(:\d{2})?))$/
28
-
29
- # Dumps object in JSON (JavaScript Object Notation). See www.json.org for more info.
30
- def self.encode(value, options = nil)
31
- Encoding::Encoder.new(options).encode(value)
32
- end
33
-
34
- module Encoding #:nodoc:
35
- class CircularReferenceError < StandardError; end
36
-
37
- class Encoder
38
- attr_reader :options
39
-
40
- def initialize(options = nil)
41
- @options = options || {}
42
- @seen = Set.new
43
- end
44
-
45
- def encode(value, use_options = true)
46
- check_for_circular_references(value) do
47
- jsonified = use_options ? value.as_json(options_for(value)) : value.as_json
48
- jsonified.encode_json(self)
49
- end
50
- end
51
-
52
- # like encode, but only calls as_json, without encoding to string
53
- def as_json(value, use_options = true)
54
- check_for_circular_references(value) do
55
- use_options ? value.as_json(options_for(value)) : value.as_json
56
- end
57
- end
58
-
59
- def options_for(value)
60
- if value.is_a?(Array) || value.is_a?(Hash)
61
- # hashes and arrays need to get encoder in the options, so that they can detect circular references
62
- options.merge(:encoder => self)
63
- else
64
- options
65
- end
66
- end
67
-
68
- def escape(string)
69
- Encoding.escape(string)
70
- end
71
-
72
- private
73
- def check_for_circular_references(value)
74
- unless @seen.add?(value.__id__)
75
- raise CircularReferenceError, 'object references itself'
76
- end
77
- yield
78
- ensure
79
- @seen.delete(value.__id__)
80
- end
81
- end
82
-
83
-
84
- ESCAPED_CHARS = {
85
- "\x00" => '\u0000', "\x01" => '\u0001', "\x02" => '\u0002',
86
- "\x03" => '\u0003', "\x04" => '\u0004', "\x05" => '\u0005',
87
- "\x06" => '\u0006', "\x07" => '\u0007', "\x0B" => '\u000B',
88
- "\x0E" => '\u000E', "\x0F" => '\u000F', "\x10" => '\u0010',
89
- "\x11" => '\u0011', "\x12" => '\u0012', "\x13" => '\u0013',
90
- "\x14" => '\u0014', "\x15" => '\u0015', "\x16" => '\u0016',
91
- "\x17" => '\u0017', "\x18" => '\u0018', "\x19" => '\u0019',
92
- "\x1A" => '\u001A', "\x1B" => '\u001B', "\x1C" => '\u001C',
93
- "\x1D" => '\u001D', "\x1E" => '\u001E', "\x1F" => '\u001F',
94
- "\010" => '\b',
95
- "\f" => '\f',
96
- "\n" => '\n',
97
- "\r" => '\r',
98
- "\t" => '\t',
99
- '"' => '\"',
100
- '\\' => '\\\\',
101
- '>' => '\u003E',
102
- '<' => '\u003C',
103
- '&' => '\u0026' }
104
-
105
- class << self
106
- # If true, use ISO 8601 format for dates and times. Otherwise, fall back to the Active Support legacy format.
107
- attr_accessor :use_standard_json_time_format
108
-
109
- attr_accessor :escape_regex
110
- attr_reader :escape_html_entities_in_json
111
-
112
- def escape_html_entities_in_json=(value)
113
- self.escape_regex = \
114
- if @escape_html_entities_in_json = value
115
- /[\x00-\x1F"\\><&]/
116
- else
117
- /[\x00-\x1F"\\]/
118
- end
119
- end
120
-
121
- def escape(string)
122
- if string.respond_to?(:force_encoding)
123
- string = string.encode(::Encoding::UTF_8, :undef => :replace).force_encoding(::Encoding::BINARY)
124
- end
125
- json = string.
126
- gsub(escape_regex) { |s| ESCAPED_CHARS[s] }.
127
- gsub(/([\xC0-\xDF][\x80-\xBF]|
128
- [\xE0-\xEF][\x80-\xBF]{2}|
129
- [\xF0-\xF7][\x80-\xBF]{3})+/nx) { |s|
130
- s.unpack("U*").pack("n*").unpack("H*")[0].gsub(/.{4}/n, '\\\\u\&')
131
- }
132
- json = %("#{json}")
133
- json.force_encoding(::Encoding::UTF_8) if json.respond_to?(:force_encoding)
134
- json
135
- end
136
- end
137
-
138
- self.use_standard_json_time_format = true
139
- self.escape_html_entities_in_json = false
140
- end
141
- end
142
- end
143
-
144
- class Object
145
- def as_json(options = nil) #:nodoc:
146
- if respond_to?(:to_hash)
147
- to_hash
148
- else
149
- instance_values
150
- end
151
- end
152
- end
153
-
154
- class Struct #:nodoc:
155
- def as_json(options = nil)
156
- Hash[members.zip(values)]
157
- end
158
- end
159
-
160
- class TrueClass
161
- def as_json(options = nil) self end #:nodoc:
162
- def encode_json(encoder) to_s end #:nodoc:
163
- end
164
-
165
- class FalseClass
166
- def as_json(options = nil) self end #:nodoc:
167
- def encode_json(encoder) to_s end #:nodoc:
168
- end
169
-
170
- class NilClass
171
- def as_json(options = nil) self end #:nodoc:
172
- def encode_json(encoder) 'null' end #:nodoc:
173
- end
174
-
175
- class String
176
- def as_json(options = nil) self end #:nodoc:
177
- def encode_json(encoder) encoder.escape(self) end #:nodoc:
178
- end
179
-
180
- class Symbol
181
- def as_json(options = nil) to_s end #:nodoc:
182
- end
183
-
184
- class Numeric
185
- def as_json(options = nil) self end #:nodoc:
186
- def encode_json(encoder) to_s end #:nodoc:
187
- end
188
-
189
- class BigDecimal
190
- # A BigDecimal would be naturally represented as a JSON number. Most libraries,
191
- # however, parse non-integer JSON numbers directly as floats. Clients using
192
- # those libraries would get in general a wrong number and no way to recover
193
- # other than manually inspecting the string with the JSON code itself.
194
- #
195
- # That's why a JSON string is returned. The JSON literal is not numeric, but if
196
- # the other end knows by contract that the data is supposed to be a BigDecimal,
197
- # it still has the chance to post-process the string and get the real value.
198
- def as_json(options = nil) to_s end #:nodoc:
199
- end
200
-
201
- class Regexp
202
- def as_json(options = nil) to_s end #:nodoc:
203
- end
204
-
205
- module Enumerable
206
- def as_json(options = nil) #:nodoc:
207
- to_a.as_json(options)
208
- end
209
- end
210
-
211
- class Array
212
- def as_json(options = nil) #:nodoc:
213
- # use encoder as a proxy to call as_json on all elements, to protect from circular references
214
- encoder = options && options[:encoder] || ActiveSupport::JSON::Encoding::Encoder.new(options)
215
- map { |v| encoder.as_json(v, options) }
216
- end
217
-
218
- def encode_json(encoder) #:nodoc:
219
- # we assume here that the encoder has already run as_json on self and the elements, so we run encode_json directly
220
- "[#{map { |v| v.encode_json(encoder) } * ','}]"
221
- end
222
- end
223
-
224
- class Hash
225
- def as_json(options = nil) #:nodoc:
226
- # create a subset of the hash by applying :only or :except
227
- subset = if options
228
- if attrs = options[:only]
229
- slice(*Array.wrap(attrs))
230
- elsif attrs = options[:except]
231
- except(*Array.wrap(attrs))
232
- else
233
- self
234
- end
235
- else
236
- self
237
- end
238
-
239
- # use encoder as a proxy to call as_json on all values in the subset, to protect from circular references
240
- encoder = options && options[:encoder] || ActiveSupport::JSON::Encoding::Encoder.new(options)
241
- result = self.is_a?(ActiveSupport::OrderedHash) ? ActiveSupport::OrderedHash : Hash
242
- result[subset.map { |k, v| [k.to_s, encoder.as_json(v, options)] }]
243
- end
244
-
245
- def encode_json(encoder)
246
- # values are encoded with use_options = false, because we don't want hash representations from ActiveModel to be
247
- # processed once again with as_json with options, as this could cause unexpected results (i.e. missing fields);
248
-
249
- # on the other hand, we need to run as_json on the elements, because the model representation may contain fields
250
- # like Time/Date in their original (not jsonified) form, etc.
251
-
252
- "{#{map { |k,v| "#{encoder.encode(k.to_s)}:#{encoder.encode(v, false)}" } * ','}}"
253
- end
254
- end
255
-
256
- class Time
257
- def as_json(options = nil) #:nodoc:
258
- if ActiveSupport.use_standard_json_time_format
259
- xmlschema
260
- else
261
- %(#{strftime("%Y/%m/%d %H:%M:%S")} #{formatted_offset(false)})
262
- end
263
- end
264
- end
265
-
266
- class Date
267
- def as_json(options = nil) #:nodoc:
268
- if ActiveSupport.use_standard_json_time_format
269
- strftime("%Y-%m-%d")
270
- else
271
- strftime("%Y/%m/%d")
272
- end
273
- end
274
- end
275
-
276
- class DateTime
277
- def as_json(options = nil) #:nodoc:
278
- if ActiveSupport.use_standard_json_time_format
279
- xmlschema
280
- else
281
- strftime('%Y/%m/%d %H:%M:%S %z')
282
- end
283
- end
284
- end