uploadcare-rails 0.6.1 → 1.0.0.rc4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (121) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +1 -1
  3. data/Rakefile +13 -8
  4. data/app/assets/javascripts/uploadcare-0.17.0.js +8248 -0
  5. data/app/assets/javascripts/uploadcare-0.17.0.min.js +17 -0
  6. data/app/assets/javascripts/uploadcare.js +1 -1
  7. data/config/initializers/uploadcare.rb +27 -0
  8. data/config/uploadcare_defaults.yml +12 -0
  9. data/lib/generators/templates/uploadcare_config_template.yml +56 -0
  10. data/lib/generators/uploadcare_config_generator.rb +9 -0
  11. data/lib/tasks/uploadcare_rails_tasks.rake +4 -0
  12. data/lib/uploadcare-rails.rb +6 -2
  13. data/lib/uploadcare/rails/action_view_include_tags.rb +36 -0
  14. data/lib/uploadcare/rails/action_view_uploader_tags.rb +75 -0
  15. data/lib/uploadcare/rails/active_record_has_file.rb +46 -0
  16. data/lib/uploadcare/rails/active_record_has_group.rb +43 -0
  17. data/lib/uploadcare/rails/engine.rb +17 -11
  18. data/lib/uploadcare/rails/file.rb +17 -20
  19. data/lib/uploadcare/rails/group.rb +27 -0
  20. data/lib/uploadcare/rails/settings.rb +63 -50
  21. data/lib/uploadcare/rails/version.rb +1 -1
  22. data/spec/dummy/README.rdoc +28 -0
  23. data/spec/dummy/Rakefile +6 -0
  24. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  25. data/spec/dummy/app/assets/javascripts/post_with_collections.js +2 -0
  26. data/spec/dummy/app/assets/javascripts/posts.js +2 -0
  27. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/spec/dummy/app/assets/stylesheets/post_with_collections.css +4 -0
  29. data/spec/dummy/app/assets/stylesheets/posts.css +4 -0
  30. data/spec/dummy/app/assets/stylesheets/scaffold.css +56 -0
  31. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  32. data/spec/dummy/app/controllers/post_with_collections_controller.rb +58 -0
  33. data/spec/dummy/app/controllers/posts_controller.rb +58 -0
  34. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  35. data/spec/dummy/app/helpers/post_with_collections_helper.rb +2 -0
  36. data/spec/dummy/app/helpers/posts_helper.rb +2 -0
  37. data/spec/dummy/app/models/post.rb +3 -0
  38. data/spec/dummy/app/models/post_with_collection.rb +3 -0
  39. data/spec/dummy/app/views/layouts/application.html.erb +16 -0
  40. data/spec/dummy/app/views/post_with_collections/_form.html.erb +25 -0
  41. data/spec/dummy/app/views/post_with_collections/edit.html.erb +6 -0
  42. data/spec/dummy/app/views/post_with_collections/index.html.erb +29 -0
  43. data/spec/dummy/app/views/post_with_collections/new.html.erb +5 -0
  44. data/spec/dummy/app/views/post_with_collections/show.html.erb +14 -0
  45. data/spec/dummy/app/views/posts/_form.html.erb +25 -0
  46. data/spec/dummy/app/views/posts/edit.html.erb +6 -0
  47. data/spec/dummy/app/views/posts/index.html.erb +37 -0
  48. data/spec/dummy/app/views/posts/new.html.erb +5 -0
  49. data/spec/dummy/app/views/posts/show.html.erb +15 -0
  50. data/spec/dummy/bin/bundle +3 -0
  51. data/spec/dummy/bin/rails +4 -0
  52. data/spec/dummy/bin/rake +4 -0
  53. data/spec/dummy/config.ru +4 -0
  54. data/spec/dummy/config/application.rb +23 -0
  55. data/spec/dummy/config/boot.rb +5 -0
  56. data/spec/dummy/config/database.yml +25 -0
  57. data/spec/dummy/config/environment.rb +5 -0
  58. data/spec/dummy/config/environments/development.rb +29 -0
  59. data/spec/dummy/config/environments/production.rb +80 -0
  60. data/spec/dummy/config/environments/test.rb +36 -0
  61. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  62. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  63. data/spec/dummy/config/initializers/inflections.rb +16 -0
  64. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  65. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  66. data/spec/dummy/config/initializers/session_store.rb +3 -0
  67. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  68. data/spec/dummy/config/locales/en.yml +23 -0
  69. data/spec/dummy/config/routes.rb +61 -0
  70. data/spec/dummy/config/uploadcare.yml +56 -0
  71. data/spec/dummy/db/development.sqlite3 +0 -0
  72. data/spec/dummy/db/migrate/20131119080328_create_posts.rb +10 -0
  73. data/spec/dummy/db/migrate/20131220083857_create_post_with_collections.rb +10 -0
  74. data/spec/dummy/db/schema.rb +30 -0
  75. data/spec/dummy/db/test.sqlite3 +0 -0
  76. data/spec/dummy/log/development.log +9900 -0
  77. data/spec/dummy/log/test.log +1976 -0
  78. data/spec/dummy/public/404.html +58 -0
  79. data/spec/dummy/public/422.html +58 -0
  80. data/spec/dummy/public/500.html +57 -0
  81. data/spec/dummy/public/favicon.ico +0 -0
  82. data/spec/dummy/tmp/cache/65C/2B0/uc.file.123213.store +1 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/1004cb216c6a15b26aa9c52095902ee6 +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/1930f1dc4fdf14493b9e0803644ae54a +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/1e8f75a6b5b33970fb8e397347caa0a1 +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/24204f742af588c8166d3160b500d20f +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/371bf96e99717688ed7313a0c53f4212 +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/416150dc3ac35079c94273cc46e90aa6 +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/510da110ae528e2d22533be39ff696c5 +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/5384ad85f52d3272dbc64d46ef3876a4 +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/6fc757c2c8329244ca95d6909865bbc2 +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/883a8569a0105010b3a20e0b3dbdf927 +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/95f1667ad97500a482296c32c98e0fa0 +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sprockets/c5ee0ee454770d592be595422c5f89b8 +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sprockets/c85016e7bbd4f3adbb7635d01f85d39b +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/d066c004d1fd26ae76a61303a7a18145 +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/e41598315cab1b953e63b62bc36ee2f6 +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  104. data/spec/dummy/tmp/restart.txt +0 -0
  105. data/spec/helpers/form_helpers_has_file_spec.rb +30 -0
  106. data/spec/helpers/form_helpers_has_group_spec.rb +30 -0
  107. data/spec/helpers/form_helpers_spec.rb +33 -0
  108. data/spec/helpers/include_tags_spec.rb +42 -0
  109. data/spec/helpers/uploader_tags_spec.rb +15 -0
  110. data/spec/models/file.rb +25 -0
  111. data/spec/models/group.rb +36 -0
  112. data/spec/models/has_file_spec.rb +31 -0
  113. data/spec/models/has_group_spec.rb +31 -0
  114. data/spec/spec_helper.rb +40 -0
  115. data/spec/uploadcare_rails_settings_spec.rb +50 -0
  116. metadata +290 -51
  117. data/README.md +0 -104
  118. data/app/assets/javascripts/uploadcare-0.8.js +0 -22865
  119. data/lib/uploadcare/rails/action_view.rb +0 -49
  120. data/lib/uploadcare/rails/active_record.rb +0 -61
  121. data/lib/uploadcare/rails/simple_form.rb +0 -9

There are too many changes on this page to be displayed.


The amount of changes on this page would crash your brower.

You can still verify the content by downloading the gem file manually.