simple_audit_trail 0.0.4 → 1.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 (44) hide show
  1. checksums.yaml +4 -4
  2. data/app/models/simple_audit_trail/audit.rb +0 -1
  3. data/lib/simple_audit_trail/version.rb +1 -1
  4. data/spec/dummy/README.rdoc +15 -248
  5. data/spec/dummy/Rakefile +1 -2
  6. data/spec/dummy/app/assets/javascripts/application.js +4 -6
  7. data/spec/dummy/app/assets/stylesheets/application.css +6 -4
  8. data/spec/dummy/app/controllers/application_controller.rb +3 -1
  9. data/spec/dummy/app/models/mr_torque.rb +0 -1
  10. data/spec/dummy/app/models/tina.rb +0 -1
  11. data/spec/dummy/app/views/layouts/application.html.erb +2 -2
  12. data/spec/dummy/bin/bundle +3 -0
  13. data/spec/dummy/bin/rails +4 -0
  14. data/spec/dummy/bin/rake +4 -0
  15. data/spec/dummy/bin/setup +29 -0
  16. data/spec/dummy/config/application.rb +3 -36
  17. data/spec/dummy/config/boot.rb +4 -9
  18. data/spec/dummy/config/environment.rb +3 -3
  19. data/spec/dummy/config/environments/development.rb +22 -18
  20. data/spec/dummy/config/environments/production.rb +46 -34
  21. data/spec/dummy/config/environments/test.rb +19 -14
  22. data/spec/dummy/config/initializers/assets.rb +11 -0
  23. data/spec/dummy/config/initializers/cookies_serializer.rb +3 -0
  24. data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
  25. data/spec/dummy/config/initializers/inflections.rb +6 -5
  26. data/spec/dummy/config/initializers/mime_types.rb +0 -1
  27. data/spec/dummy/config/initializers/session_store.rb +1 -6
  28. data/spec/dummy/config/initializers/wrap_parameters.rb +6 -6
  29. data/spec/dummy/config/locales/en.yml +20 -2
  30. data/spec/dummy/config/routes.rb +53 -1
  31. data/spec/dummy/config/secrets.yml +22 -0
  32. data/spec/dummy/config.ru +2 -2
  33. data/spec/dummy/db/development.sqlite3 +0 -0
  34. data/spec/dummy/db/schema.rb +11 -11
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/log/development.log +29 -55
  37. data/spec/dummy/log/test.log +951 -630
  38. data/spec/dummy/public/404.html +54 -13
  39. data/spec/dummy/public/422.html +54 -13
  40. data/spec/dummy/public/500.html +53 -12
  41. metadata +34 -60
  42. data/spec/dummy/config/initializers/secret_token.rb +0 -7
  43. data/spec/dummy/script/rails +0 -6
  44. data/spec/dummy/spec/factories/mr_torques.rb +0 -6
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The page you were looking for doesn't exist (404)</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; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/404.html -->
21
59
  <div class="dialog">
22
- <h1>The page you were looking for doesn't exist.</h1>
23
- <p>You may have mistyped the address or the page may have moved.</p>
60
+ <div>
61
+ <h1>The page you were looking for doesn't exist.</h1>
62
+ <p>You may have mistyped the address or the page may have moved.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,25 +2,66 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>The change you wanted was rejected (422)</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; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/422.html -->
21
59
  <div class="dialog">
22
- <h1>The change you wanted was rejected.</h1>
23
- <p>Maybe you tried to change something you didn't have access to.</p>
60
+ <div>
61
+ <h1>The change you wanted was rejected.</h1>
62
+ <p>Maybe you tried to change something you didn't have access to.</p>
63
+ </div>
64
+ <p>If you are the application owner check the logs for more information.</p>
24
65
  </div>
25
66
  </body>
26
67
  </html>
@@ -2,24 +2,65 @@
2
2
  <html>
3
3
  <head>
4
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; }
5
+ <meta name="viewport" content="width=device-width,initial-scale=1">
6
+ <style>
7
+ body {
8
+ background-color: #EFEFEF;
9
+ color: #2E2F30;
10
+ text-align: center;
11
+ font-family: arial, sans-serif;
12
+ margin: 0;
13
+ }
14
+
15
+ div.dialog {
16
+ width: 95%;
17
+ max-width: 33em;
18
+ margin: 4em auto 0;
19
+ }
20
+
21
+ div.dialog > div {
22
+ border: 1px solid #CCC;
23
+ border-right-color: #999;
24
+ border-left-color: #999;
25
+ border-bottom-color: #BBB;
26
+ border-top: #B00100 solid 4px;
27
+ border-top-left-radius: 9px;
28
+ border-top-right-radius: 9px;
29
+ background-color: white;
30
+ padding: 7px 12% 0;
31
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
32
+ }
33
+
34
+ h1 {
35
+ font-size: 100%;
36
+ color: #730E15;
37
+ line-height: 1.5em;
38
+ }
39
+
40
+ div.dialog > p {
41
+ margin: 0 0 1em;
42
+ padding: 1em;
43
+ background-color: #F7F7F7;
44
+ border: 1px solid #CCC;
45
+ border-right-color: #999;
46
+ border-left-color: #999;
47
+ border-bottom-color: #999;
48
+ border-bottom-left-radius: 4px;
49
+ border-bottom-right-radius: 4px;
50
+ border-top-color: #DADADA;
51
+ color: #666;
52
+ box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
53
+ }
16
54
  </style>
17
55
  </head>
18
56
 
19
57
  <body>
20
58
  <!-- This file lives in public/500.html -->
21
59
  <div class="dialog">
22
- <h1>We're sorry, but something went wrong.</h1>
60
+ <div>
61
+ <h1>We're sorry, but something went wrong.</h1>
62
+ </div>
63
+ <p>If you are the application owner check the logs for more information.</p>
23
64
  </div>
24
65
  </body>
25
66
  </html>
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_audit_trail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christopher Maujean
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-06 00:00:00.000000000 Z
11
+ date: 2016-11-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -16,140 +16,104 @@ dependencies:
16
16
  requirements:
17
17
  - - ~>
18
18
  - !ruby/object:Gem::Version
19
- version: '3.2'
19
+ version: '4'
20
20
  - - '>='
21
21
  - !ruby/object:Gem::Version
22
- version: 3.2.21
22
+ version: 4.0.0
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: '3.2'
29
+ version: '4'
30
30
  - - '>='
31
31
  - !ruby/object:Gem::Version
32
- version: 3.2.21
32
+ version: 4.0.0
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: sqlite3
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ~>
38
- - !ruby/object:Gem::Version
39
- version: '1.3'
40
37
  - - '>='
41
38
  - !ruby/object:Gem::Version
42
- version: 1.3.10
39
+ version: '0'
43
40
  type: :development
44
41
  prerelease: false
45
42
  version_requirements: !ruby/object:Gem::Requirement
46
43
  requirements:
47
- - - ~>
48
- - !ruby/object:Gem::Version
49
- version: '1.3'
50
44
  - - '>='
51
45
  - !ruby/object:Gem::Version
52
- version: 1.3.10
46
+ version: '0'
53
47
  - !ruby/object:Gem::Dependency
54
48
  name: rspec-rails
55
49
  requirement: !ruby/object:Gem::Requirement
56
50
  requirements:
57
- - - ~>
58
- - !ruby/object:Gem::Version
59
- version: '3.2'
60
51
  - - '>='
61
52
  - !ruby/object:Gem::Version
62
- version: 3.2.1
53
+ version: '0'
63
54
  type: :development
64
55
  prerelease: false
65
56
  version_requirements: !ruby/object:Gem::Requirement
66
57
  requirements:
67
- - - ~>
68
- - !ruby/object:Gem::Version
69
- version: '3.2'
70
58
  - - '>='
71
59
  - !ruby/object:Gem::Version
72
- version: 3.2.1
60
+ version: '0'
73
61
  - !ruby/object:Gem::Dependency
74
62
  name: capybara
75
63
  requirement: !ruby/object:Gem::Requirement
76
64
  requirements:
77
- - - ~>
78
- - !ruby/object:Gem::Version
79
- version: '2.4'
80
65
  - - '>='
81
66
  - !ruby/object:Gem::Version
82
- version: 2.4.4
67
+ version: '0'
83
68
  type: :development
84
69
  prerelease: false
85
70
  version_requirements: !ruby/object:Gem::Requirement
86
71
  requirements:
87
- - - ~>
88
- - !ruby/object:Gem::Version
89
- version: '2.4'
90
72
  - - '>='
91
73
  - !ruby/object:Gem::Version
92
- version: 2.4.4
74
+ version: '0'
93
75
  - !ruby/object:Gem::Dependency
94
76
  name: factory_girl_rails
95
77
  requirement: !ruby/object:Gem::Requirement
96
78
  requirements:
97
- - - ~>
98
- - !ruby/object:Gem::Version
99
- version: '4.5'
100
79
  - - '>='
101
80
  - !ruby/object:Gem::Version
102
- version: 4.5.0
81
+ version: '0'
103
82
  type: :development
104
83
  prerelease: false
105
84
  version_requirements: !ruby/object:Gem::Requirement
106
85
  requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: '4.5'
110
86
  - - '>='
111
87
  - !ruby/object:Gem::Version
112
- version: 4.5.0
88
+ version: '0'
113
89
  - !ruby/object:Gem::Dependency
114
90
  name: database_cleaner
115
91
  requirement: !ruby/object:Gem::Requirement
116
92
  requirements:
117
- - - ~>
118
- - !ruby/object:Gem::Version
119
- version: '1.4'
120
93
  - - '>='
121
94
  - !ruby/object:Gem::Version
122
- version: 1.4.1
95
+ version: '0'
123
96
  type: :development
124
97
  prerelease: false
125
98
  version_requirements: !ruby/object:Gem::Requirement
126
99
  requirements:
127
- - - ~>
128
- - !ruby/object:Gem::Version
129
- version: '1.4'
130
100
  - - '>='
131
101
  - !ruby/object:Gem::Version
132
- version: 1.4.1
102
+ version: '0'
133
103
  - !ruby/object:Gem::Dependency
134
104
  name: byebug
135
105
  requirement: !ruby/object:Gem::Requirement
136
106
  requirements:
137
- - - ~>
138
- - !ruby/object:Gem::Version
139
- version: '4.0'
140
107
  - - '>='
141
108
  - !ruby/object:Gem::Version
142
- version: 4.0.5
109
+ version: '0'
143
110
  type: :development
144
111
  prerelease: false
145
112
  version_requirements: !ruby/object:Gem::Requirement
146
113
  requirements:
147
- - - ~>
148
- - !ruby/object:Gem::Version
149
- version: '4.0'
150
114
  - - '>='
151
115
  - !ruby/object:Gem::Version
152
- version: 4.0.5
116
+ version: '0'
153
117
  description: "\n A simple audit trail for your ActiveRecord model, with a minimum
154
118
  of fuss.\n stores a before and after hash of the fields you want audited, whenever
155
119
  a\n change is made.\n "
@@ -179,6 +143,10 @@ files:
179
143
  - spec/dummy/app/models/mr_torque.rb
180
144
  - spec/dummy/app/models/tina.rb
181
145
  - spec/dummy/app/views/layouts/application.html.erb
146
+ - spec/dummy/bin/bundle
147
+ - spec/dummy/bin/rails
148
+ - spec/dummy/bin/rake
149
+ - spec/dummy/bin/setup
182
150
  - spec/dummy/config.ru
183
151
  - spec/dummy/config/application.rb
184
152
  - spec/dummy/config/boot.rb
@@ -187,14 +155,17 @@ files:
187
155
  - spec/dummy/config/environments/development.rb
188
156
  - spec/dummy/config/environments/production.rb
189
157
  - spec/dummy/config/environments/test.rb
158
+ - spec/dummy/config/initializers/assets.rb
190
159
  - spec/dummy/config/initializers/backtrace_silencers.rb
160
+ - spec/dummy/config/initializers/cookies_serializer.rb
161
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
191
162
  - spec/dummy/config/initializers/inflections.rb
192
163
  - spec/dummy/config/initializers/mime_types.rb
193
- - spec/dummy/config/initializers/secret_token.rb
194
164
  - spec/dummy/config/initializers/session_store.rb
195
165
  - spec/dummy/config/initializers/wrap_parameters.rb
196
166
  - spec/dummy/config/locales/en.yml
197
167
  - spec/dummy/config/routes.rb
168
+ - spec/dummy/config/secrets.yml
198
169
  - spec/dummy/db/development.sqlite3
199
170
  - spec/dummy/db/migrate/20150513181325_create_tinas.rb
200
171
  - spec/dummy/db/migrate/20150513221356_create_mr_torques.rb
@@ -206,8 +177,6 @@ files:
206
177
  - spec/dummy/public/422.html
207
178
  - spec/dummy/public/500.html
208
179
  - spec/dummy/public/favicon.ico
209
- - spec/dummy/script/rails
210
- - spec/dummy/spec/factories/mr_torques.rb
211
180
  - spec/lib/simple_audit_trail_auditor_spec.rb
212
181
  - spec/models/simple_audit_trail/audit_spec.rb
213
182
  - spec/spec_helper.rb
@@ -243,6 +212,10 @@ test_files:
243
212
  - spec/dummy/app/models/mr_torque.rb
244
213
  - spec/dummy/app/models/tina.rb
245
214
  - spec/dummy/app/views/layouts/application.html.erb
215
+ - spec/dummy/bin/bundle
216
+ - spec/dummy/bin/rails
217
+ - spec/dummy/bin/rake
218
+ - spec/dummy/bin/setup
246
219
  - spec/dummy/config/application.rb
247
220
  - spec/dummy/config/boot.rb
248
221
  - spec/dummy/config/database.yml
@@ -250,14 +223,17 @@ test_files:
250
223
  - spec/dummy/config/environments/development.rb
251
224
  - spec/dummy/config/environments/production.rb
252
225
  - spec/dummy/config/environments/test.rb
226
+ - spec/dummy/config/initializers/assets.rb
253
227
  - spec/dummy/config/initializers/backtrace_silencers.rb
228
+ - spec/dummy/config/initializers/cookies_serializer.rb
229
+ - spec/dummy/config/initializers/filter_parameter_logging.rb
254
230
  - spec/dummy/config/initializers/inflections.rb
255
231
  - spec/dummy/config/initializers/mime_types.rb
256
- - spec/dummy/config/initializers/secret_token.rb
257
232
  - spec/dummy/config/initializers/session_store.rb
258
233
  - spec/dummy/config/initializers/wrap_parameters.rb
259
234
  - spec/dummy/config/locales/en.yml
260
235
  - spec/dummy/config/routes.rb
236
+ - spec/dummy/config/secrets.yml
261
237
  - spec/dummy/config.ru
262
238
  - spec/dummy/db/development.sqlite3
263
239
  - spec/dummy/db/migrate/20150513181325_create_tinas.rb
@@ -272,8 +248,6 @@ test_files:
272
248
  - spec/dummy/public/favicon.ico
273
249
  - spec/dummy/Rakefile
274
250
  - spec/dummy/README.rdoc
275
- - spec/dummy/script/rails
276
- - spec/dummy/spec/factories/mr_torques.rb
277
251
  - spec/lib/simple_audit_trail_auditor_spec.rb
278
252
  - spec/models/simple_audit_trail/audit_spec.rb
279
253
  - spec/spec_helper.rb
@@ -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 = 'd05386907f1320d35d1d83b05b5506fc5e2fdaf609bf6eadbdbb214d5b7600ac1e1276d52e0e490d834b34443fd50b200a211d9c19d744c248e8bac88338d144'
@@ -1,6 +0,0 @@
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'
@@ -1,6 +0,0 @@
1
- FactoryGirl.define do
2
- factory :mr_torque do
3
-
4
- end
5
-
6
- end