protected_record_manager 0.0.0

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 (58) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/javascripts/protected_record_manager/application.js +15 -0
  6. data/app/assets/stylesheets/protected_record_manager/application.css +13 -0
  7. data/app/controllers/protected_record_manager/application_controller.rb +12 -0
  8. data/app/controllers/protected_record_manager/change_requests_controller.rb +80 -0
  9. data/app/helpers/protected_record_manager/application_helper.rb +4 -0
  10. data/app/helpers/protected_record_manager/change_requests_helper.rb +4 -0
  11. data/app/views/layouts/protected_record_manager/application.html.erb +14 -0
  12. data/app/views/protected_record_manager/change_requests/_form.html.erb +35 -0
  13. data/app/views/protected_record_manager/change_requests/edit.html.erb +6 -0
  14. data/app/views/protected_record_manager/change_requests/index.html.erb +26 -0
  15. data/app/views/protected_record_manager/change_requests/show.html.erb +19 -0
  16. data/config/routes.rb +4 -0
  17. data/db/migrate/20130424181224_add_protected_record_manager_to_users.rb +5 -0
  18. data/db/migrate/20130424195950_create_protected_record_change_log_records.rb +12 -0
  19. data/db/migrate/20130424195959_create_protected_record_change_request_records.rb +13 -0
  20. data/lib/protected_record_manager/engine.rb +5 -0
  21. data/lib/protected_record_manager/version.rb +3 -0
  22. data/lib/protected_record_manager.rb +4 -0
  23. data/lib/tasks/protected_record_manager_tasks.rake +4 -0
  24. data/test/dummy/README.rdoc +261 -0
  25. data/test/dummy/Rakefile +7 -0
  26. data/test/dummy/app/assets/javascripts/application.js +15 -0
  27. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  28. data/test/dummy/app/controllers/application_controller.rb +3 -0
  29. data/test/dummy/app/helpers/application_helper.rb +2 -0
  30. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/test/dummy/config/application.rb +59 -0
  32. data/test/dummy/config/boot.rb +10 -0
  33. data/test/dummy/config/database.yml +20 -0
  34. data/test/dummy/config/environment.rb +5 -0
  35. data/test/dummy/config/environments/development.rb +37 -0
  36. data/test/dummy/config/environments/production.rb +67 -0
  37. data/test/dummy/config/environments/test.rb +37 -0
  38. data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
  39. data/test/dummy/config/initializers/inflections.rb +15 -0
  40. data/test/dummy/config/initializers/mime_types.rb +5 -0
  41. data/test/dummy/config/initializers/secret_token.rb +7 -0
  42. data/test/dummy/config/initializers/session_store.rb +8 -0
  43. data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
  44. data/test/dummy/config/locales/en.yml +5 -0
  45. data/test/dummy/config/routes.rb +4 -0
  46. data/test/dummy/config.ru +4 -0
  47. data/test/dummy/public/404.html +26 -0
  48. data/test/dummy/public/422.html +26 -0
  49. data/test/dummy/public/500.html +25 -0
  50. data/test/dummy/public/favicon.ico +0 -0
  51. data/test/dummy/script/rails +6 -0
  52. data/test/functional/protected_record_manager/change_requests_controller_test.rb +51 -0
  53. data/test/integration/navigation_test.rb +10 -0
  54. data/test/protected_record_manager_test.rb +7 -0
  55. data/test/test_helper.rb +15 -0
  56. data/test/unit/helpers/protected_record_manager/change_requests_helper_test.rb +6 -0
  57. data/test/unit/helpers/protected_record_manager/protected_records_helper_test.rb +6 -0
  58. metadata +163 -0
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,51 @@
1
+ require 'test_helper'
2
+
3
+ module ProtectedRecordManager
4
+ class ChangeRequestsControllerTest < ActionController::TestCase
5
+ setup do
6
+ @change_request = change_requests(:one)
7
+ end
8
+
9
+ test "should get index" do
10
+ get :index
11
+ assert_response :success
12
+ assert_not_nil assigns(:change_requests)
13
+ end
14
+
15
+ test "should get new" do
16
+ get :new
17
+ assert_response :success
18
+ end
19
+
20
+ test "should create change_request" do
21
+ assert_difference('ChangeRequest.count') do
22
+ post :create, change_request: { }
23
+ end
24
+
25
+ assert_redirected_to change_request_path(assigns(:change_request))
26
+ end
27
+
28
+ test "should show change_request" do
29
+ get :show, id: @change_request
30
+ assert_response :success
31
+ end
32
+
33
+ test "should get edit" do
34
+ get :edit, id: @change_request
35
+ assert_response :success
36
+ end
37
+
38
+ test "should update change_request" do
39
+ put :update, id: @change_request, change_request: { }
40
+ assert_redirected_to change_request_path(assigns(:change_request))
41
+ end
42
+
43
+ test "should destroy change_request" do
44
+ assert_difference('ChangeRequest.count', -1) do
45
+ delete :destroy, id: @change_request
46
+ end
47
+
48
+ assert_redirected_to change_requests_path
49
+ end
50
+ end
51
+ end
@@ -0,0 +1,10 @@
1
+ require 'test_helper'
2
+
3
+ class NavigationTest < ActionDispatch::IntegrationTest
4
+ fixtures :all
5
+
6
+ # test "the truth" do
7
+ # assert true
8
+ # end
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ require 'test_helper'
2
+
3
+ class ProtectedRecordManagerTest < ActiveSupport::TestCase
4
+ test "truth" do
5
+ assert_kind_of Module, ProtectedRecordManager
6
+ end
7
+ end
@@ -0,0 +1,15 @@
1
+ # Configure Rails Environment
2
+ ENV["RAILS_ENV"] = "test"
3
+
4
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
5
+ require "rails/test_help"
6
+
7
+ Rails.backtrace_cleaner.remove_silencers!
8
+
9
+ # Load support files
10
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
11
+
12
+ # Load fixtures from the engine
13
+ if ActiveSupport::TestCase.method_defined?(:fixture_path=)
14
+ ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
15
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module ProtectedRecordManager
4
+ class ChangeRequestsHelperTest < ActionView::TestCase
5
+ end
6
+ end
@@ -0,0 +1,6 @@
1
+ require 'test_helper'
2
+
3
+ module ProtectedRecordManager
4
+ class ProtectedRecordsHelperTest < ActionView::TestCase
5
+ end
6
+ end
metadata ADDED
@@ -0,0 +1,163 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: protected_record_manager
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Tad Hosford
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-04-24 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 3.2.13
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 3.2.13
27
+ - !ruby/object:Gem::Dependency
28
+ name: protected_record
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description: Installs the protected_record gem and provides an interface for triaging
42
+ ChangeRequest records
43
+ email:
44
+ - tad.hosford@gmail.com
45
+ executables: []
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - app/assets/javascripts/protected_record_manager/application.js
50
+ - app/assets/stylesheets/protected_record_manager/application.css
51
+ - app/helpers/protected_record_manager/application_helper.rb
52
+ - app/helpers/protected_record_manager/change_requests_helper.rb
53
+ - app/controllers/protected_record_manager/change_requests_controller.rb
54
+ - app/controllers/protected_record_manager/application_controller.rb
55
+ - app/views/layouts/protected_record_manager/application.html.erb
56
+ - app/views/protected_record_manager/change_requests/show.html.erb
57
+ - app/views/protected_record_manager/change_requests/_form.html.erb
58
+ - app/views/protected_record_manager/change_requests/edit.html.erb
59
+ - app/views/protected_record_manager/change_requests/index.html.erb
60
+ - config/routes.rb
61
+ - db/migrate/20130424195950_create_protected_record_change_log_records.rb
62
+ - db/migrate/20130424181224_add_protected_record_manager_to_users.rb
63
+ - db/migrate/20130424195959_create_protected_record_change_request_records.rb
64
+ - lib/protected_record_manager.rb
65
+ - lib/protected_record_manager/version.rb
66
+ - lib/protected_record_manager/engine.rb
67
+ - lib/tasks/protected_record_manager_tasks.rake
68
+ - MIT-LICENSE
69
+ - Rakefile
70
+ - README.rdoc
71
+ - test/functional/protected_record_manager/change_requests_controller_test.rb
72
+ - test/test_helper.rb
73
+ - test/integration/navigation_test.rb
74
+ - test/dummy/Rakefile
75
+ - test/dummy/public/404.html
76
+ - test/dummy/public/422.html
77
+ - test/dummy/public/favicon.ico
78
+ - test/dummy/public/500.html
79
+ - test/dummy/script/rails
80
+ - test/dummy/app/assets/javascripts/application.js
81
+ - test/dummy/app/assets/stylesheets/application.css
82
+ - test/dummy/app/helpers/application_helper.rb
83
+ - test/dummy/app/controllers/application_controller.rb
84
+ - test/dummy/app/views/layouts/application.html.erb
85
+ - test/dummy/config/boot.rb
86
+ - test/dummy/config/routes.rb
87
+ - test/dummy/config/application.rb
88
+ - test/dummy/config/environment.rb
89
+ - test/dummy/config/database.yml
90
+ - test/dummy/config/initializers/secret_token.rb
91
+ - test/dummy/config/initializers/mime_types.rb
92
+ - test/dummy/config/initializers/wrap_parameters.rb
93
+ - test/dummy/config/initializers/backtrace_silencers.rb
94
+ - test/dummy/config/initializers/inflections.rb
95
+ - test/dummy/config/initializers/session_store.rb
96
+ - test/dummy/config/environments/test.rb
97
+ - test/dummy/config/environments/production.rb
98
+ - test/dummy/config/environments/development.rb
99
+ - test/dummy/config/locales/en.yml
100
+ - test/dummy/config.ru
101
+ - test/dummy/README.rdoc
102
+ - test/unit/helpers/protected_record_manager/protected_records_helper_test.rb
103
+ - test/unit/helpers/protected_record_manager/change_requests_helper_test.rb
104
+ - test/protected_record_manager_test.rb
105
+ homepage: http://github.com/rthbound/protected_record_manager
106
+ licenses: []
107
+ metadata: {}
108
+ post_install_message:
109
+ rdoc_options: []
110
+ require_paths:
111
+ - lib
112
+ required_ruby_version: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - '>='
115
+ - !ruby/object:Gem::Version
116
+ version: '0'
117
+ required_rubygems_version: !ruby/object:Gem::Requirement
118
+ requirements:
119
+ - - '>='
120
+ - !ruby/object:Gem::Version
121
+ version: '0'
122
+ requirements: []
123
+ rubyforge_project:
124
+ rubygems_version: 2.0.0.rc.2
125
+ signing_key:
126
+ specification_version: 4
127
+ summary: Installs the protected_record gem and provides an interface for triaging
128
+ ChangeRequest records
129
+ test_files:
130
+ - test/functional/protected_record_manager/change_requests_controller_test.rb
131
+ - test/test_helper.rb
132
+ - test/integration/navigation_test.rb
133
+ - test/dummy/Rakefile
134
+ - test/dummy/public/404.html
135
+ - test/dummy/public/422.html
136
+ - test/dummy/public/favicon.ico
137
+ - test/dummy/public/500.html
138
+ - test/dummy/script/rails
139
+ - test/dummy/app/assets/javascripts/application.js
140
+ - test/dummy/app/assets/stylesheets/application.css
141
+ - test/dummy/app/helpers/application_helper.rb
142
+ - test/dummy/app/controllers/application_controller.rb
143
+ - test/dummy/app/views/layouts/application.html.erb
144
+ - test/dummy/config/boot.rb
145
+ - test/dummy/config/routes.rb
146
+ - test/dummy/config/application.rb
147
+ - test/dummy/config/environment.rb
148
+ - test/dummy/config/database.yml
149
+ - test/dummy/config/initializers/secret_token.rb
150
+ - test/dummy/config/initializers/mime_types.rb
151
+ - test/dummy/config/initializers/wrap_parameters.rb
152
+ - test/dummy/config/initializers/backtrace_silencers.rb
153
+ - test/dummy/config/initializers/inflections.rb
154
+ - test/dummy/config/initializers/session_store.rb
155
+ - test/dummy/config/environments/test.rb
156
+ - test/dummy/config/environments/production.rb
157
+ - test/dummy/config/environments/development.rb
158
+ - test/dummy/config/locales/en.yml
159
+ - test/dummy/config.ru
160
+ - test/dummy/README.rdoc
161
+ - test/unit/helpers/protected_record_manager/protected_records_helper_test.rb
162
+ - test/unit/helpers/protected_record_manager/change_requests_helper_test.rb
163
+ - test/protected_record_manager_test.rb