espinita 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (70) hide show
  1. checksums.yaml +7 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.md +60 -0
  4. data/Rakefile +31 -0
  5. data/app/models/espinita/audit.rb +41 -0
  6. data/config/database.yml +24 -0
  7. data/config/routes.rb +2 -0
  8. data/db/migrate/20131029200927_create_auditable_audits.rb +15 -0
  9. data/lib/espinita.rb +16 -0
  10. data/lib/espinita/auditor.rb +18 -0
  11. data/lib/espinita/auditor_behavior.rb +83 -0
  12. data/lib/espinita/auditor_request.rb +13 -0
  13. data/lib/espinita/engine.rb +18 -0
  14. data/lib/espinita/version.rb +3 -0
  15. data/lib/tasks/espinita_tasks.rake +4 -0
  16. data/spec/controllers/audits_controller_spec.rb +47 -0
  17. data/spec/dummy/README.rdoc +28 -0
  18. data/spec/dummy/Rakefile +6 -0
  19. data/spec/dummy/app/assets/javascripts/application.js +13 -0
  20. data/spec/dummy/app/assets/javascripts/general_controller.js +2 -0
  21. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  22. data/spec/dummy/app/assets/stylesheets/general_controller.css +4 -0
  23. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  24. data/spec/dummy/app/controllers/general_controller_controller.rb +2 -0
  25. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  26. data/spec/dummy/app/helpers/general_controller_helper.rb +2 -0
  27. data/spec/dummy/app/models/general_model.rb +4 -0
  28. data/spec/dummy/app/models/user.rb +2 -0
  29. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  30. data/spec/dummy/bin/bundle +3 -0
  31. data/spec/dummy/bin/rails +4 -0
  32. data/spec/dummy/bin/rake +4 -0
  33. data/spec/dummy/config.ru +4 -0
  34. data/spec/dummy/config/application.rb +23 -0
  35. data/spec/dummy/config/boot.rb +5 -0
  36. data/spec/dummy/config/database.yml +25 -0
  37. data/spec/dummy/config/environment.rb +5 -0
  38. data/spec/dummy/config/environments/development.rb +29 -0
  39. data/spec/dummy/config/environments/production.rb +80 -0
  40. data/spec/dummy/config/environments/test.rb +36 -0
  41. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  42. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  43. data/spec/dummy/config/initializers/inflections.rb +16 -0
  44. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  45. data/spec/dummy/config/initializers/secret_token.rb +12 -0
  46. data/spec/dummy/config/initializers/session_store.rb +3 -0
  47. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  48. data/spec/dummy/config/locales/en.yml +23 -0
  49. data/spec/dummy/config/routes.rb +4 -0
  50. data/spec/dummy/db/development.sqlite3 +0 -0
  51. data/spec/dummy/db/migrate/20131029211126_create_general_models.rb +12 -0
  52. data/spec/dummy/db/migrate/20131030014901_create_users.rb +11 -0
  53. data/spec/dummy/db/schema.rb +52 -0
  54. data/spec/dummy/log/development.log +28 -0
  55. data/spec/dummy/log/test.log +17268 -0
  56. data/spec/dummy/public/404.html +58 -0
  57. data/spec/dummy/public/422.html +58 -0
  58. data/spec/dummy/public/500.html +57 -0
  59. data/spec/dummy/public/favicon.ico +0 -0
  60. data/spec/factories/auditable_audits.rb +11 -0
  61. data/spec/factories/general_models.rb +10 -0
  62. data/spec/factories/users.rb +9 -0
  63. data/spec/integration/navigation_test.rb +10 -0
  64. data/spec/models/espinita/audit_spec.rb +8 -0
  65. data/spec/models/models/general_model_spec.rb +160 -0
  66. data/spec/models/models/user_spec.rb +5 -0
  67. data/spec/spec_helper.rb +24 -0
  68. data/spec/support/models.rb +8 -0
  69. data/spec/support/schema.rb +34 -0
  70. metadata +291 -0
metadata ADDED
@@ -0,0 +1,291 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: espinita
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Miguel Michelson
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-11-04 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: 4.0.1.rc3
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 4.0.1.rc3
27
+ - !ruby/object:Gem::Dependency
28
+ name: request_store
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
+ - !ruby/object:Gem::Dependency
42
+ name: sqlite3
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - '>='
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - '>='
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: factory_girl
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - '>='
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory_girl_rails
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - '>='
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - '>='
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: shoulda-matchers
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ~>
102
+ - !ruby/object:Gem::Version
103
+ version: '1.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ~>
109
+ - !ruby/object:Gem::Version
110
+ version: '1.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: database_cleaner
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: capybara
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - '>='
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ description: Audit activerecord models like a boss
140
+ email:
141
+ - miguelmichelson@gmail.com
142
+ executables: []
143
+ extensions: []
144
+ extra_rdoc_files: []
145
+ files:
146
+ - app/models/espinita/audit.rb
147
+ - config/database.yml
148
+ - config/routes.rb
149
+ - db/migrate/20131029200927_create_auditable_audits.rb
150
+ - lib/espinita/auditor.rb
151
+ - lib/espinita/auditor_behavior.rb
152
+ - lib/espinita/auditor_request.rb
153
+ - lib/espinita/engine.rb
154
+ - lib/espinita/version.rb
155
+ - lib/espinita.rb
156
+ - lib/tasks/espinita_tasks.rake
157
+ - MIT-LICENSE
158
+ - Rakefile
159
+ - README.md
160
+ - spec/controllers/audits_controller_spec.rb
161
+ - spec/dummy/app/assets/javascripts/application.js
162
+ - spec/dummy/app/assets/javascripts/general_controller.js
163
+ - spec/dummy/app/assets/stylesheets/application.css
164
+ - spec/dummy/app/assets/stylesheets/general_controller.css
165
+ - spec/dummy/app/controllers/application_controller.rb
166
+ - spec/dummy/app/controllers/general_controller_controller.rb
167
+ - spec/dummy/app/helpers/application_helper.rb
168
+ - spec/dummy/app/helpers/general_controller_helper.rb
169
+ - spec/dummy/app/models/general_model.rb
170
+ - spec/dummy/app/models/user.rb
171
+ - spec/dummy/app/views/layouts/application.html.erb
172
+ - spec/dummy/bin/bundle
173
+ - spec/dummy/bin/rails
174
+ - spec/dummy/bin/rake
175
+ - spec/dummy/config/application.rb
176
+ - spec/dummy/config/boot.rb
177
+ - spec/dummy/config/database.yml
178
+ - spec/dummy/config/environment.rb
179
+ - spec/dummy/config/environments/development.rb
180
+ - spec/dummy/config/environments/production.rb
181
+ - spec/dummy/config/environments/test.rb
182
+ - spec/dummy/config/initializers/backtrace_silencers.rb
183
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
184
+ - spec/dummy/config/initializers/inflections.rb
185
+ - spec/dummy/config/initializers/mime_types.rb
186
+ - spec/dummy/config/initializers/secret_token.rb
187
+ - spec/dummy/config/initializers/session_store.rb
188
+ - spec/dummy/config/initializers/wrap_parameters.rb
189
+ - spec/dummy/config/locales/en.yml
190
+ - spec/dummy/config/routes.rb
191
+ - spec/dummy/config.ru
192
+ - spec/dummy/db/development.sqlite3
193
+ - spec/dummy/db/migrate/20131029211126_create_general_models.rb
194
+ - spec/dummy/db/migrate/20131030014901_create_users.rb
195
+ - spec/dummy/db/schema.rb
196
+ - spec/dummy/log/development.log
197
+ - spec/dummy/log/test.log
198
+ - spec/dummy/public/404.html
199
+ - spec/dummy/public/422.html
200
+ - spec/dummy/public/500.html
201
+ - spec/dummy/public/favicon.ico
202
+ - spec/dummy/Rakefile
203
+ - spec/dummy/README.rdoc
204
+ - spec/factories/auditable_audits.rb
205
+ - spec/factories/general_models.rb
206
+ - spec/factories/users.rb
207
+ - spec/integration/navigation_test.rb
208
+ - spec/models/espinita/audit_spec.rb
209
+ - spec/models/models/general_model_spec.rb
210
+ - spec/models/models/user_spec.rb
211
+ - spec/spec_helper.rb
212
+ - spec/support/models.rb
213
+ - spec/support/schema.rb
214
+ homepage: http://github.com/continuum/espinita
215
+ licenses: []
216
+ metadata: {}
217
+ post_install_message:
218
+ rdoc_options: []
219
+ require_paths:
220
+ - lib
221
+ required_ruby_version: !ruby/object:Gem::Requirement
222
+ requirements:
223
+ - - '>='
224
+ - !ruby/object:Gem::Version
225
+ version: '0'
226
+ required_rubygems_version: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - '>='
229
+ - !ruby/object:Gem::Version
230
+ version: '0'
231
+ requirements: []
232
+ rubyforge_project:
233
+ rubygems_version: 2.0.6
234
+ signing_key:
235
+ specification_version: 4
236
+ summary: Auditable Rails Engine.
237
+ test_files:
238
+ - spec/controllers/audits_controller_spec.rb
239
+ - spec/dummy/app/assets/javascripts/application.js
240
+ - spec/dummy/app/assets/javascripts/general_controller.js
241
+ - spec/dummy/app/assets/stylesheets/application.css
242
+ - spec/dummy/app/assets/stylesheets/general_controller.css
243
+ - spec/dummy/app/controllers/application_controller.rb
244
+ - spec/dummy/app/controllers/general_controller_controller.rb
245
+ - spec/dummy/app/helpers/application_helper.rb
246
+ - spec/dummy/app/helpers/general_controller_helper.rb
247
+ - spec/dummy/app/models/general_model.rb
248
+ - spec/dummy/app/models/user.rb
249
+ - spec/dummy/app/views/layouts/application.html.erb
250
+ - spec/dummy/bin/bundle
251
+ - spec/dummy/bin/rails
252
+ - spec/dummy/bin/rake
253
+ - spec/dummy/config/application.rb
254
+ - spec/dummy/config/boot.rb
255
+ - spec/dummy/config/database.yml
256
+ - spec/dummy/config/environment.rb
257
+ - spec/dummy/config/environments/development.rb
258
+ - spec/dummy/config/environments/production.rb
259
+ - spec/dummy/config/environments/test.rb
260
+ - spec/dummy/config/initializers/backtrace_silencers.rb
261
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
262
+ - spec/dummy/config/initializers/inflections.rb
263
+ - spec/dummy/config/initializers/mime_types.rb
264
+ - spec/dummy/config/initializers/secret_token.rb
265
+ - spec/dummy/config/initializers/session_store.rb
266
+ - spec/dummy/config/initializers/wrap_parameters.rb
267
+ - spec/dummy/config/locales/en.yml
268
+ - spec/dummy/config/routes.rb
269
+ - spec/dummy/config.ru
270
+ - spec/dummy/db/development.sqlite3
271
+ - spec/dummy/db/migrate/20131029211126_create_general_models.rb
272
+ - spec/dummy/db/migrate/20131030014901_create_users.rb
273
+ - spec/dummy/db/schema.rb
274
+ - spec/dummy/log/development.log
275
+ - spec/dummy/log/test.log
276
+ - spec/dummy/public/404.html
277
+ - spec/dummy/public/422.html
278
+ - spec/dummy/public/500.html
279
+ - spec/dummy/public/favicon.ico
280
+ - spec/dummy/Rakefile
281
+ - spec/dummy/README.rdoc
282
+ - spec/factories/auditable_audits.rb
283
+ - spec/factories/general_models.rb
284
+ - spec/factories/users.rb
285
+ - spec/integration/navigation_test.rb
286
+ - spec/models/espinita/audit_spec.rb
287
+ - spec/models/models/general_model_spec.rb
288
+ - spec/models/models/user_spec.rb
289
+ - spec/spec_helper.rb
290
+ - spec/support/models.rb
291
+ - spec/support/schema.rb