resourcy-rails 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/{LICENSE → MIT.LICENSE} +0 -0
  2. data/README.md +268 -0
  3. data/lib/resourcy/rails.rb +2 -4
  4. data/lib/resourcy/version.rb +1 -1
  5. data/spec/dummy/config/application.rb +3 -1
  6. data/spec/dummy/config/initializers/teabag.rb +13 -0
  7. data/spec/dummy/log/development.log +6153 -0
  8. data/spec/dummy/tmp/cache/assets/C26/0B0/sprockets%2Ff219028b768500ee63133053299ff763 +0 -0
  9. data/spec/dummy/tmp/cache/assets/C28/930/sprockets%2Fae51d79f7255745e47095614074601b6 +0 -0
  10. data/spec/dummy/tmp/cache/assets/C6C/A10/sprockets%2F6a60165bfe1f105268227c41d091e133 +0 -0
  11. data/spec/dummy/tmp/cache/assets/C80/DA0/sprockets%2F5427bc408f19d1d4d1d2528558340c77 +0 -0
  12. data/spec/dummy/tmp/cache/assets/CB5/B50/sprockets%2F79aa99ae854341b51308845e3ed750b3 +0 -0
  13. data/spec/dummy/tmp/cache/assets/CD4/FC0/sprockets%2Fbcb9ed408236507a15350153ffe3a636 +0 -0
  14. data/spec/dummy/tmp/cache/assets/CE2/020/sprockets%2F30c6d863ae431135cbb7768ae227894e +0 -0
  15. data/spec/dummy/tmp/cache/assets/CE7/DA0/sprockets%2F1b5a340695ed9f08f3e30cf59d453546 +0 -0
  16. data/spec/dummy/tmp/cache/assets/CEE/890/sprockets%2F7917f2a4116ef6ff536467ff9811b2d2 +0 -0
  17. data/spec/dummy/tmp/cache/assets/D0E/140/sprockets%2F679ab384fd4c39e46406110c7c8cbf11 +0 -0
  18. data/spec/dummy/tmp/cache/assets/D10/140/sprockets%2F76b88145bcce068005e465e680fcbe40 +0 -0
  19. data/spec/dummy/tmp/cache/assets/D10/B10/sprockets%2F445cd5a429170e739abc1afb3897166c +0 -0
  20. data/spec/dummy/tmp/cache/assets/D1E/440/sprockets%2F60458fb7e71cc79d38f0147b633f08ff +0 -0
  21. data/spec/dummy/tmp/cache/assets/D26/6B0/sprockets%2Fe33b09d33c3946fc0f9a5afd79566599 +0 -0
  22. data/spec/dummy/tmp/cache/assets/D31/A90/sprockets%2F2990161b5f6b33226eee3facae02d273 +0 -0
  23. data/spec/dummy/tmp/cache/assets/D37/E80/sprockets%2Fa196f8f5d3e010180dd4a8aa276a298a +0 -0
  24. data/spec/dummy/tmp/cache/assets/D41/8E0/sprockets%2F12b175ae51665e6eaa7598acb284b8d5 +0 -0
  25. data/spec/dummy/tmp/cache/assets/D47/770/sprockets%2Fcf8444c0e6a95e9f3e1a46af5108e870 +0 -0
  26. data/spec/dummy/tmp/cache/assets/D47/780/sprockets%2F872537fcdcf083ba8908edaa487431f2 +0 -0
  27. data/spec/dummy/tmp/cache/assets/D4D/C80/sprockets%2F7731a714c697dab895b1fda7dd1d4688 +0 -0
  28. data/spec/dummy/tmp/cache/assets/D55/C80/sprockets%2F715c2a17cfa6a94c743892dfdf92d979 +0 -0
  29. data/spec/dummy/tmp/cache/assets/D56/CC0/sprockets%2Fd4f8ede468744cd7dc395d5639ac4462 +0 -0
  30. data/spec/dummy/tmp/cache/assets/D66/660/sprockets%2F4cf820ee8148b704a14eca0a49e8cd51 +0 -0
  31. data/spec/dummy/tmp/cache/assets/D6D/D90/sprockets%2Ff44ef9a6e48e8d59e6295f9e9c04796c +0 -0
  32. data/spec/dummy/tmp/cache/assets/D6F/EE0/sprockets%2Ff3883eb6b81c90c7409aeb8a2e2454bc +0 -0
  33. data/spec/dummy/tmp/cache/assets/D70/000/sprockets%2F1293e9e2da0acdfd501995007f6ebf57 +0 -0
  34. data/spec/dummy/tmp/cache/assets/D82/DC0/sprockets%2F69dce23ec7b4f2db19b8f9718173c39f +0 -0
  35. data/spec/dummy/tmp/cache/assets/D8C/F80/sprockets%2Fac5f59aebc1022cef7be3122d11264d9 +0 -0
  36. data/spec/dummy/tmp/cache/assets/D94/450/sprockets%2F7ec1193e50b3e1d5391fd9c1e53a4bbc +0 -0
  37. data/spec/dummy/tmp/cache/assets/D96/840/sprockets%2Fa0011c18bf53e02ea94667f8e2e8aecc +0 -0
  38. data/spec/dummy/tmp/cache/assets/D9E/7D0/sprockets%2F9890a424e2b6f8efc5df0544a0af5a2f +0 -0
  39. data/spec/dummy/tmp/cache/assets/DF0/680/sprockets%2F5376d36d3edfd6e9fb5ffd89af558e71 +0 -0
  40. data/spec/dummy/tmp/cache/assets/E8F/B10/sprockets%2F2cecb5fec0fa6cd6a1f46ff7583ec3fa +0 -0
  41. data/spec/javascripts/{templates → fixtures}/ujs.html +0 -0
  42. data/spec/javascripts/{jquery.resourcy_spec.js.coffee → jquery/resourcy_spec.coffee} +4 -4
  43. data/spec/javascripts/{resourcy_spec.js.coffee → resourcy_spec.coffee} +1 -1
  44. data/spec/javascripts/spec_helper.coffee +31 -0
  45. metadata +97 -103
  46. data/spec/dummy/config/evergreen.rb +0 -47
  47. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  48. data/spec/dummy/config/initializers/inflections.rb +0 -15
  49. data/spec/dummy/config/initializers/mime_types.rb +0 -5
  50. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  51. data/spec/dummy/config/initializers/session_store.rb +0 -8
  52. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  53. data/spec/dummy/config/locales/en.yml +0 -5
  54. data/spec/dummy/log/.gitkeep +0 -0
  55. data/spec/javascripts/spec_helper.js +0 -37
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
4
- # Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
5
-
6
- # You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
7
- # Rails.backtrace_cleaner.remove_silencers!
@@ -1,15 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new inflection rules using the following format
4
- # (all these examples are active by default):
5
- # ActiveSupport::Inflector.inflections do |inflect|
6
- # inflect.plural /^(ox)$/i, '\1en'
7
- # inflect.singular /^(ox)en/i, '\1'
8
- # inflect.irregular 'person', 'people'
9
- # inflect.uncountable %w( fish sheep )
10
- # end
11
- #
12
- # These inflection rules are supported but not enabled by default:
13
- # ActiveSupport::Inflector.inflections do |inflect|
14
- # inflect.acronym 'RESTful'
15
- # end
@@ -1,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -1,7 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Your secret key for verifying the integrity of signed cookies.
4
- # If you change this key, all old signed cookies will become invalid!
5
- # Make sure the secret is at least 30 characters and all random,
6
- # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = '990bac5b6d4f068883259503539cad4e9ec00f137986fcbc718a1e0b645af7a3eb0340468f8fae09958a6281190396d65789b6316af61e47a8cbda3c8c071a0e'
@@ -1,8 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- Dummy::Application.config.session_store :cookie_store, :key => '_dummy_session'
4
-
5
- # Use the database for sessions instead of the cookie-based default,
6
- # which shouldn't be used to store highly confidential information
7
- # (create the session table with "rails generate session_migration")
8
- # Dummy::Application.config.session_store :active_record_store
@@ -1,14 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
- #
3
- # This file contains settings for ActionController::ParamsWrapper which
4
- # is enabled by default.
5
-
6
- # Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array.
7
- ActiveSupport.on_load(:action_controller) do
8
- wrap_parameters :format => [:json]
9
- end
10
-
11
- # Disable root element in JSON by default.
12
- ActiveSupport.on_load(:active_record) do
13
- self.include_root_in_json = false
14
- end
@@ -1,5 +0,0 @@
1
- # Sample localization file for English. Add more files in this directory for other locales.
2
- # See https://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
-
4
- en:
5
- hello: "Hello world"
File without changes
@@ -1,37 +0,0 @@
1
- RESOURCES = {
2
- POSTS: {
3
- 'index': function() { return 'PostsController#index' },
4
- 'show': function() { return 'PostsController#show' },
5
- 'new': function() { return 'PostsController#new' },
6
- 'create': function() { return 'PostsController#create' },
7
- 'edit': function() { return 'PostsController#edit' },
8
- 'update': function() { return 'PostsController#update' },
9
- 'destroy': function() { return 'PostsController#destroy'},
10
- 'get:comments': function() { return 'PostsController#comments:GET' },
11
- 'post:reorder': function() { return 'PostsController#reorder:POST' },
12
- 'delete:comments': function() { return 'PostsController#comments:DELETE' },
13
- 'put:publish': function() { return 'PostsController#publish:PUT' }
14
- },
15
- COMMENTS: {
16
- 'index': function() { return 'CommentsController#index' },
17
- 'new': function() { return 'CommentsController#new' },
18
- 'create': function() { return 'CommentsController#create' },
19
- 'destroy': function() { return 'CommentsController#destroy' },
20
- 'put:approve': function() { return 'CommentsController#publish:PUT' }
21
- },
22
- OWNER: {
23
- 'show': function() { return 'OwnerController#show' },
24
- 'new': function() { return 'OwnerController#new' },
25
- 'create': function() { return 'OwnerController#create' },
26
- 'edit': function() { return 'OwnerController#edit' },
27
- 'update': function() { return 'OwnerController#update' },
28
- 'destroy': function() { return 'OwnerController#destroy'},
29
- }
30
- };
31
-
32
- window.Resourcy = {
33
- noConflict: function() {
34
- window.R = Resourcy;
35
- delete(window.Resourcy);
36
- }
37
- };