db_notes_engine2 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/images/db_notes_engine2/glyphicons-halflings-white.png +0 -0
  6. data/app/assets/images/db_notes_engine2/glyphicons-halflings.png +0 -0
  7. data/app/assets/images/db_notes_engine2/profile_b32.png +0 -0
  8. data/app/assets/javascripts/db_notes_engine2/bootstrap.js +2276 -0
  9. data/app/assets/javascripts/model_info.js +2 -0
  10. data/app/assets/stylesheets/db_notes_engine2/bootstrap-responsive.css +1109 -0
  11. data/app/assets/stylesheets/db_notes_engine2/bootstrap.css +6158 -0
  12. data/app/assets/stylesheets/model_info.css +4 -0
  13. data/app/controllers/model_info_controller.rb +165 -0
  14. data/app/helpers/model_info_helper.rb +2 -0
  15. data/app/models/comment.rb +4 -0
  16. data/app/models/note.rb +4 -0
  17. data/app/views/model_info/DBNotes.html.erb +418 -0
  18. data/config/routes.rb +32 -0
  19. data/db/migrate/1_create_notes.rb +12 -0
  20. data/db/migrate/2_create_comments.rb +11 -0
  21. data/lib/db_notes_engine2/engine.rb +4 -0
  22. data/lib/db_notes_engine2/version.rb +3 -0
  23. data/lib/db_notes_engine2.rb +4 -0
  24. data/lib/tasks/db_notes_engine2_tasks.rake +4 -0
  25. data/test/db_notes_engine2_test.rb +7 -0
  26. data/test/dummy/README.rdoc +261 -0
  27. data/test/dummy/Rakefile +7 -0
  28. data/test/dummy/app/assets/javascripts/application.js +15 -0
  29. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  30. data/test/dummy/app/controllers/application_controller.rb +3 -0
  31. data/test/dummy/app/helpers/application_helper.rb +2 -0
  32. data/test/dummy/app/models/table1.rb +3 -0
  33. data/test/dummy/app/models/table2.rb +3 -0
  34. data/test/dummy/app/views/layouts/application.html.erb +16 -0
  35. data/test/dummy/config/application.rb +59 -0
  36. data/test/dummy/config/boot.rb +10 -0
  37. data/test/dummy/config/database.yml +25 -0
  38. data/test/dummy/config/environment.rb +5 -0
  39. data/test/dummy/config/environments/development.rb +37 -0
  40. data/test/dummy/config/environments/production.rb +67 -0
  41. data/test/dummy/config/environments/test.rb +37 -0
  42. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  43. data/test/dummy/config/initializers/inflections.rb +15 -0
  44. data/test/dummy/config/initializers/mime_types.rb +5 -0
  45. data/test/dummy/config/initializers/secret_token.rb +7 -0
  46. data/test/dummy/config/initializers/session_store.rb +8 -0
  47. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/test/dummy/config/locales/en.yml +5 -0
  49. data/test/dummy/config/routes.rb +58 -0
  50. data/test/dummy/config.ru +4 -0
  51. data/test/dummy/db/development.sqlite3 +0 -0
  52. data/test/dummy/db/migrate/20130429103747_create_table1s.rb +11 -0
  53. data/test/dummy/db/migrate/20130429103818_create_table2s.rb +11 -0
  54. data/test/dummy/db/schema.rb +49 -0
  55. data/test/dummy/log/development.log +3344 -0
  56. data/test/dummy/public/404.html +26 -0
  57. data/test/dummy/public/422.html +26 -0
  58. data/test/dummy/public/500.html +25 -0
  59. data/test/dummy/public/favicon.ico +0 -0
  60. data/test/dummy/script/rails +6 -0
  61. data/test/dummy/test/fixtures/table1s.yml +11 -0
  62. data/test/dummy/test/fixtures/table2s.yml +11 -0
  63. data/test/dummy/test/unit/table1_test.rb +7 -0
  64. data/test/dummy/test/unit/table2_test.rb +7 -0
  65. data/test/dummy/tmp/cache/assets/C3D/0B0/sprockets%2Fa90e1f5537e716291e61838559766d78 +0 -0
  66. data/test/dummy/tmp/cache/assets/C5C/C70/sprockets%2Ffe40816117579661b1169b80494dae78 +0 -0
  67. data/test/dummy/tmp/cache/assets/C85/B90/sprockets%2F3752b7a9ca8205c7152739e4b04d5498 +0 -0
  68. data/test/dummy/tmp/cache/assets/C8B/D80/sprockets%2Fe1099f086a9013779fbf0644a6d08465 +0 -0
  69. data/test/dummy/tmp/cache/assets/CC0/690/sprockets%2Fde26f6ed8a7253208ca5e93235753869 +0 -0
  70. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  71. data/test/dummy/tmp/cache/assets/CE3/100/sprockets%2F80c613eaa3543b4085b7f550878b88dc +0 -0
  72. data/test/dummy/tmp/cache/assets/D1A/5C0/sprockets%2Fa9d7786d843709f1e0eba4c803b3e926 +0 -0
  73. data/test/dummy/tmp/cache/assets/D31/5E0/sprockets%2F138072f71f7bae615ff40a740e73a1bb +0 -0
  74. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  75. data/test/dummy/tmp/cache/assets/D37/3D0/sprockets%2Fda69cb627e8723a40554434a5e9a3baa +0 -0
  76. data/test/dummy/tmp/cache/assets/D4A/320/sprockets%2F35053de8bfc618818a5ab98e51ef6b28 +0 -0
  77. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  78. data/test/dummy/tmp/cache/assets/D53/5C0/sprockets%2Fe4fcc71e4933b8bffc17c869316c7719 +0 -0
  79. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  80. data/test/dummy/tmp/cache/assets/D6E/5B0/sprockets%2Fe70a8df5eea2403f7f21a0861d7673de +0 -0
  81. data/test/dummy/tmp/cache/assets/DB5/320/sprockets%2F0d355156da9bea1ea0dacd5a4e27513b +0 -0
  82. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  83. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  84. data/test/dummy/tmp/cache/assets/E05/F10/sprockets%2Ffb396321cce1c7ea39cefed54f4a962e +0 -0
  85. data/test/dummy/tmp/pids/server.pid +1 -0
  86. data/test/fixtures/comments.yml +11 -0
  87. data/test/fixtures/notes.yml +13 -0
  88. data/test/functional/model_info_controller_test.rb +9 -0
  89. data/test/integration/navigation_test.rb +10 -0
  90. data/test/test_helper.rb +15 -0
  91. data/test/unit/comment_test.rb +7 -0
  92. data/test/unit/helpers/model_info_helper_test.rb +4 -0
  93. data/test/unit/note_test.rb +7 -0
  94. metadata +232 -0
@@ -0,0 +1,5 @@
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"
@@ -0,0 +1,58 @@
1
+ Dummy::Application.routes.draw do
2
+ # The priority is based upon order of creation:
3
+ # first created -> highest priority.
4
+
5
+ # Sample of regular route:
6
+ # match 'products/:id' => 'catalog#view'
7
+ # Keep in mind you can assign values other than :controller and :action
8
+
9
+ # Sample of named route:
10
+ # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
11
+ # This route can be invoked with purchase_url(:id => product.id)
12
+
13
+ # Sample resource route (maps HTTP verbs to controller actions automatically):
14
+ # resources :products
15
+
16
+ # Sample resource route with options:
17
+ # resources :products do
18
+ # member do
19
+ # get 'short'
20
+ # post 'toggle'
21
+ # end
22
+ #
23
+ # collection do
24
+ # get 'sold'
25
+ # end
26
+ # end
27
+
28
+ # Sample resource route with sub-resources:
29
+ # resources :products do
30
+ # resources :comments, :sales
31
+ # resource :seller
32
+ # end
33
+
34
+ # Sample resource route with more complex sub-resources
35
+ # resources :products do
36
+ # resources :comments
37
+ # resources :sales do
38
+ # get 'recent', :on => :collection
39
+ # end
40
+ # end
41
+
42
+ # Sample resource route within a namespace:
43
+ # namespace :admin do
44
+ # # Directs /admin/products/* to Admin::ProductsController
45
+ # # (app/controllers/admin/products_controller.rb)
46
+ # resources :products
47
+ # end
48
+
49
+ # You can have the root of your site routed with "root"
50
+ # just remember to delete public/index.html.
51
+ # root :to => 'welcome#index'
52
+
53
+ # See how all your routes lay out with "rake routes"
54
+
55
+ # This is a legacy wild controller route that's not recommended for RESTful applications.
56
+ # Note: This route will make all actions in every controller accessible via GET requests.
57
+ # match ':controller(/:action(/:id))(.:format)'
58
+ end
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
Binary file
@@ -0,0 +1,11 @@
1
+ class CreateTable1s < ActiveRecord::Migration
2
+ def change
3
+ create_table :table1s do |t|
4
+ t.string :col1
5
+ t.string :col2
6
+ t.string :col3
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,11 @@
1
+ class CreateTable2s < ActiveRecord::Migration
2
+ def change
3
+ create_table :table2s do |t|
4
+ t.string :col1
5
+ t.string :col2
6
+ t.string :col3
7
+
8
+ t.timestamps
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,49 @@
1
+ # encoding: UTF-8
2
+ # This file is auto-generated from the current state of the database. Instead
3
+ # of editing this file, please use the migrations feature of Active Record to
4
+ # incrementally modify your database, and then regenerate this schema definition.
5
+ #
6
+ # Note that this schema.rb definition is the authoritative source for your
7
+ # database schema. If you need to create the application database on another
8
+ # system, you should be using db:schema:load, not running all the migrations
9
+ # from scratch. The latter is a flawed and unsustainable approach (the more migrations
10
+ # you'll amass, the slower it'll run and the greater likelihood for issues).
11
+ #
12
+ # It's strongly recommended to check this file into your version control system.
13
+
14
+ ActiveRecord::Schema.define(:version => 20130429103818) do
15
+
16
+ create_table "comments", :force => true do |t|
17
+ t.string "author"
18
+ t.text "comment_text"
19
+ t.integer "note_id"
20
+ t.datetime "created_at", :null => false
21
+ t.datetime "updated_at", :null => false
22
+ end
23
+
24
+ create_table "notes", :force => true do |t|
25
+ t.string "author"
26
+ t.string "column_name"
27
+ t.text "note_text"
28
+ t.string "table_name"
29
+ t.datetime "created_at", :null => false
30
+ t.datetime "updated_at", :null => false
31
+ end
32
+
33
+ create_table "table1s", :force => true do |t|
34
+ t.string "col1"
35
+ t.string "col2"
36
+ t.string "col3"
37
+ t.datetime "created_at", :null => false
38
+ t.datetime "updated_at", :null => false
39
+ end
40
+
41
+ create_table "table2s", :force => true do |t|
42
+ t.string "col1"
43
+ t.string "col2"
44
+ t.string "col3"
45
+ t.datetime "created_at", :null => false
46
+ t.datetime "updated_at", :null => false
47
+ end
48
+
49
+ end